refactor: cleanup css code and remove duplicates
This commit is contained in:
20 files changed
+58
-1065
No files matched your search
@@ -20,12 +20,7 @@
|
||||
pointer-events: none;
|
||||
border-radius: inherit;
|
||||
|
||||
// Glass styling matching Search Dialog
|
||||
background-color: rgba(20, 20, 30, 0.7);
|
||||
backdrop-filter: blur(24px) saturate(180%);
|
||||
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
||||
@include glass-effect;
|
||||
|
||||
opacity: 0;
|
||||
z-index: -1;
|
||||
|
||||
@@ -11,16 +11,13 @@
|
||||
&-sidebar {
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
background: rgba(10, 10, 14, 0.4); // Darker, more distinct
|
||||
@include glass-effect($bg-color: rgba(10, 10, 14, 0.4));
|
||||
border-radius: 24px;
|
||||
backdrop-filter: blur(24px) saturate(180%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
grid-area: sidebar;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 12px;
|
||||
gap: 8px;
|
||||
box-shadow: 0 4px 24px rgba(0,0,0,0.2);
|
||||
|
||||
// Ensure programmatic scroll respects padding
|
||||
scroll-padding-block: 24px;
|
||||
|
||||
@@ -85,7 +85,7 @@ $cardWidth: 18%;
|
||||
top: -4.4em;
|
||||
left: -$page-margin;
|
||||
width: 100vw;
|
||||
height: calc(54vh + 4.4em);
|
||||
height: calc(64vh + 4.4em);
|
||||
z-index: -1;
|
||||
mask-image: linear-gradient(to top, transparent, black);
|
||||
-webkit-mask-image: linear-gradient(
|
||||
|
||||
@@ -18,12 +18,7 @@
|
||||
inset: -0.35em;
|
||||
pointer-events: none;
|
||||
border-radius: inherit;
|
||||
// Glass styling matching Search Dialog
|
||||
background-color: rgba(20, 20, 30, 0.7);
|
||||
backdrop-filter: blur(24px) saturate(180%);
|
||||
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
||||
@include glass-effect;
|
||||
opacity: 0;
|
||||
z-index: -1;
|
||||
transition: all 150ms;
|
||||
@@ -35,28 +30,3 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Glass styling for Menus and Dialogs
|
||||
.glass-menu-paper, .glass-dialog-paper {
|
||||
background-color: rgba(20, 20, 30, 0.7) !important;
|
||||
backdrop-filter: blur(24px) saturate(180%) !important;
|
||||
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
||||
box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
|
||||
border-radius: 16px !important;
|
||||
}
|
||||
|
||||
// Ensure the menu items themselves look good on the glass background
|
||||
.glass-menu-paper {
|
||||
.MuiMenuItem-root {
|
||||
font-family: inherit;
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
&.Mui-selected {
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,10 +13,11 @@ $image-size: 4em;
|
||||
gap: 1.5em;
|
||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
|
||||
grid-template-columns: 25% 1fr 25%;
|
||||
background: rgba(18, 18, 18, 0.85) !important;
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
@include glass-effect($blur: 12px, $bg-color: rgba(18, 18, 18, 0.85));
|
||||
// background: rgba(18, 18, 18, 0.85) !important;
|
||||
// backdrop-filter: blur(12px);
|
||||
// -webkit-backdrop-filter: blur(12px);
|
||||
// border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 1rem;
|
||||
align-items: center;
|
||||
|
||||
|
||||
@@ -151,14 +151,9 @@ const Search = () => {
|
||||
slotProps={{
|
||||
transition: Transition,
|
||||
paper: {
|
||||
className: "glass-panel",
|
||||
sx: {
|
||||
backgroundColor: "rgba(20, 20, 30, 0.7)",
|
||||
backdropFilter: "blur(24px) saturate(180%)",
|
||||
willChange: "opacity, transform, backdrop-filter",
|
||||
backgroundImage:
|
||||
"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0))",
|
||||
border: "1px solid rgba(255, 255, 255, 0.08)",
|
||||
boxShadow: "0 20px 50px rgba(0,0,0,0.5)",
|
||||
borderRadius: 4,
|
||||
overflow: "hidden",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user