Files
v1.pivoine.art/_sass/pivoine/_search.pre.scss
2025-10-25 12:39:30 +02:00

75 lines
2.0 KiB
SCSS

// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
hm-search {
display: flex; // inline
flex-grow: 1; // inline
padding: 1em; // inline
position: relative; // inline
overflow: hidden; // inline
@media screen {
// <<< link
--hm-search-input-color: var(--menu-text);
--hm-search-input-color-bg: none;
--hm-search-input-color-border: none;
--hm-search-input-color-caret: var(--accent-color);
--hm-search-font-size: larger;
// >>>
}
}
// <<< link
.search-results {
> article {
animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
&:hover img {
filter: grayscale(0);
}
img {
filter: grayscale(1.0);
transition: filter 250ms ease-in-out;
}
}
/* ----------------------------------------------
* Generated by Animista on 2025-4-30 22:39:13
* Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */
/**
* ----------------------------------------
* animation scale-in-center
* ----------------------------------------
*/
@keyframes scale-in-center {
0% {
transform: scale(0);
opacity: 1;
}
100% {
transform: scale(1);
opacity: 1;
}
}
}
// >>>