hugo-theme-paradox/assets/styles/features/search.scss

79 lines
1.7 KiB
SCSS
Raw Normal View History

2022-10-16 22:15:34 +00:00
.search-results__title {
display: block;
font-size: 2em;
line-height: 1;
2022-12-23 11:21:41 +00:00
margin-block-end: 1em;
2022-10-16 22:15:34 +00:00
}
.search-results strong {
font-weight: 900;
2022-10-16 23:04:05 +00:00
background: var(--primary-accent-transparent);
color: var(--ui-text-bold);
2022-12-18 14:10:54 +00:00
transition:
background var(--color-crossfade-duration) var(--color-crossfade-ease),
color var(--color-crossfade-duration) var(--color-crossfade-ease);
2022-10-16 22:15:34 +00:00
}
#search-results {
display: flex;
flex-flow: column;
2022-12-23 11:21:41 +00:00
max-inline-size: 80ch;
2022-10-16 22:15:34 +00:00
}
#search-results li:not(:first-child) {
2022-12-23 11:21:41 +00:00
border-block-start: 1px solid;
2022-12-18 14:10:54 +00:00
border-color: var(--ui-text-muted);
transition:
border-color var(--color-crossfade-duration) var(--color-crossfade-ease);
2022-10-16 22:15:34 +00:00
}
#search-results li {
2022-12-23 11:21:41 +00:00
padding-block: 1em;
2022-10-16 22:15:34 +00:00
}
2022-10-16 23:04:05 +00:00
.search-result-page-title {
font-size: 1.25em;
display: block;
2022-12-23 11:21:41 +00:00
margin-block-end: 1rem;
2022-10-16 23:04:05 +00:00
}
.search-result-item p {
line-height: 1.5;
}
2022-10-16 22:15:34 +00:00
#search-form {
display: flex;
justify-content: center;
align-items: center;
2022-12-23 11:21:41 +00:00
max-inline-size: 100%;
2022-10-16 22:15:34 +00:00
}
#search-input {
background: var(--ui-overlay);
color: var(--ui-overlay-text);
2022-12-18 14:10:54 +00:00
transition:
background var(--color-crossfade-duration) var(--color-crossfade-ease),
color var(--color-crossfade-duration) var(--color-crossfade-ease);
2022-10-17 14:46:58 +00:00
filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.15));
2022-10-16 22:15:34 +00:00
border-radius: 100rem;
border: 0;
padding: 0.5rem 1rem;
2022-12-23 11:21:41 +00:00
margin-inline-end: 0.5rem;
inline-size: 100%;
2022-10-16 22:15:34 +00:00
flex-shrink: 1;
2022-12-23 11:21:41 +00:00
block-size: 2rem;
2022-10-16 22:49:29 +00:00
box-sizing: border-box;
2022-10-16 22:15:34 +00:00
}
#search-submit {
padding: 0.5rem 1rem;
border: 0;
background: var(--primary-accent);
color: var(--primary-accent-text);
2022-12-18 14:10:54 +00:00
transition:
background var(--color-crossfade-duration) var(--color-crossfade-ease),
color var(--color-crossfade-duration) var(--color-crossfade-ease);
2022-10-16 22:15:34 +00:00
border-radius: 4px;
2022-12-23 11:21:41 +00:00
block-size: 2rem;
2022-10-17 14:46:58 +00:00
filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.15));
2022-10-16 22:15:34 +00:00
}