Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
249 lines
6.1 KiB
SCSS
249 lines
6.1 KiB
SCSS
|
|
.search-page {
|
|
position: relative;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
// Glossy subtle background animation - fixed to viewport so it stays while scrolling
|
|
&-bg {
|
|
position: fixed;
|
|
top: -50%;
|
|
left: -50%;
|
|
right: -50%;
|
|
bottom: -50%;
|
|
background: radial-gradient(circle at center, rgba(var(--mui-palette-primary-mainChannel), 0.15) 0%, transparent 60%);
|
|
opacity: 0;
|
|
transition: opacity 0.8s ease;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
|
|
&.active {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
// New Sticky AppBar styles mirroring LibraryHeader exactly
|
|
.search-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
inset: 1em 1em auto 1em !important;
|
|
border-radius: 9999px;
|
|
margin: 0 auto;
|
|
position: fixed;
|
|
width: calc(100vw - 4em) !important;
|
|
z-index: 100;
|
|
padding: 0.25em !important;
|
|
transition: all 0.2s ease-in-out;
|
|
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0 -0.35em;
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
@include glass-effect;
|
|
opacity: 0;
|
|
z-index: -1;
|
|
transition: all $transition-time-fast;
|
|
}
|
|
|
|
&.scrolling {
|
|
&::after {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-content {
|
|
flex-grow: 1;
|
|
width: 100%;
|
|
align-self: center;
|
|
z-index: 1;
|
|
padding-top: 4.4em;
|
|
}
|
|
|
|
// Input Container adapted for the pill header
|
|
.search-input-container {
|
|
display: flex;
|
|
align-items: center;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 9999px; // Match pill
|
|
padding: 2px 4px 2px 16px;
|
|
flex-grow: 1;
|
|
width: 100%;
|
|
max-width: 800px;
|
|
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
height: 48px; // Match library header elements roughly
|
|
|
|
&:hover, &:focus-within {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-color: rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.search-category-select {
|
|
flex-shrink: 0;
|
|
max-width: 40%;
|
|
|
|
.MuiSelect-select {
|
|
padding-right: 24px !important; // Make room for clear icon inside select if needed, though we put it in EndAdornment
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-input {
|
|
flex-grow: 1;
|
|
|
|
.MuiInputBase-input {
|
|
font-size: 1rem;
|
|
padding: 4px 8px;
|
|
color: white;
|
|
|
|
&::placeholder {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.search-icon {
|
|
font-size: 1.2rem;
|
|
opacity: 0.7;
|
|
margin-right: 8px;
|
|
}
|
|
}
|
|
|
|
.search-category-select {
|
|
flex-shrink: 0;
|
|
min-width: 120px;
|
|
margin-left: 8px;
|
|
|
|
.MuiOutlinedInput-root {
|
|
border-radius: 20px;
|
|
background-color: transparent ;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
height: 36px;
|
|
font-size: 0.85rem;
|
|
transition: all 0.2s ease;
|
|
|
|
fieldset { border: none; }
|
|
|
|
// Keep the clear button clear of the absolutely positioned dropdown arrow
|
|
&.MuiInputBase-adornedEnd {
|
|
padding-right: 32px;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
}
|
|
}
|
|
}
|
|
|
|
&-empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 60vh; // Take up vertical space to look nice
|
|
text-align: center;
|
|
width: 100%;
|
|
|
|
.icon-stack {
|
|
position: relative;
|
|
height: 120px;
|
|
width: 200px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 24px;
|
|
|
|
.icon-lg {
|
|
font-size: 5rem;
|
|
z-index: 2;
|
|
color: var(--mui-palette-primary-main);
|
|
filter: drop-shadow(0 0 20px rgba(var(--mui-palette-primary-mainChannel), 0.4));
|
|
}
|
|
.icon-md {
|
|
font-size: 3.5rem;
|
|
position: absolute;
|
|
right: 30px;
|
|
top: 10px;
|
|
opacity: 0.4;
|
|
transform: rotate(15deg);
|
|
}
|
|
.icon-sm {
|
|
font-size: 3rem;
|
|
position: absolute;
|
|
left: 40px;
|
|
bottom: 10px;
|
|
opacity: 0.3;
|
|
transform: rotate(-10deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
&-no-results {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 4em;
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
.search-page .search-header {
|
|
inset: calc(0.5em + var(--safe-top)) 0.5em auto 0.5em !important;
|
|
width: auto !important;
|
|
flex-wrap: wrap;
|
|
border-radius: 22px;
|
|
padding: 0.3em 0.5em !important;
|
|
row-gap: 0.25em;
|
|
|
|
html.is-macos & {
|
|
left: 76px !important;
|
|
right: 0.5em !important;
|
|
width: auto !important;
|
|
/* The window traffic lights are already cleared by the offset. */
|
|
padding-left: 0.5em !important;
|
|
}
|
|
|
|
.library-header-center {
|
|
order: 3;
|
|
width: 100%;
|
|
}
|
|
|
|
.search-input-container {
|
|
height: 42px;
|
|
}
|
|
|
|
.search-category-select {
|
|
display: none;
|
|
}
|
|
|
|
> .flex.flex-row:last-child [aria-label="Избранное"] {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.search-page-content {
|
|
padding: calc(8.4em + var(--safe-top)) 1rem calc(8rem + var(--safe-bottom));
|
|
}
|
|
}
|
|
|
|
|
|
@media (min-width: 701px) and (max-width: 900px) {
|
|
.search-page .search-header {
|
|
.search-category-select {
|
|
display: block;
|
|
}
|
|
|
|
> .flex.flex-row:last-child [aria-label="Избранное"] {
|
|
display: inline-flex;
|
|
}
|
|
}
|
|
}
|