style: improve styling

This commit is contained in:
Prayag Prajapati committed 2024-04-27 14:53:16 +05:30
1 parent e7af13970c
commit 91491a78c5
6 files changed
+12 -14

No files matched your search

+7 -1
View File
@@ -14,7 +14,7 @@
padding: 0.5em; padding: 0.5em;
background: rgb(0 0 0 / 0.4); background: rgb(0 0 0 / 0.4);
backdrop-filter: blur(40px); backdrop-filter: blur(40px);
box-shadow: 0 0 15px rgb(0 0 0 / 0.2); box-shadow: 0 0 25px rgb(0 0 0 / 0.45);
} }
} }
&-avatar { &-avatar {
@@ -63,6 +63,12 @@
} }
.library-drawer{ .library-drawer{
width: 20em;
margin: 1.4em;
height: calc(100vh - 2.8em) !important;
border-radius: 20px;
overflow-x: hidden;
overflow-y: auto;
.library-drawer-item{ .library-drawer-item{
position: relative; position: relative;
overflow: hidden; overflow: hidden;
+1 -9
View File
@@ -305,15 +305,7 @@ export const AppBar = () => {
open={showDrawer} open={showDrawer}
PaperProps={{ PaperProps={{
className: "glass library-drawer", className: "glass library-drawer",
style: { elevation: 6,
width: "20em",
margin: "1.4em",
height: "calc(100vh - 2.8em)",
borderRadius: "20px",
overflowX: "hidden",
overflowY: "auto",
border: "1.2px solid rgb(255 255 255 / 0.2)",
},
}} }}
className="library-drawer" className="library-drawer"
onClose={() => setShowDrawer(false)} onClose={() => setShowDrawer(false)}
-1
View File
@@ -31,7 +31,6 @@
overflow: hidden; overflow: hidden;
height: auto; height: auto;
z-index: 0; z-index: 0;
border: 1.2px solid rgb(255 255 255 / 0.05);
&.thumb{ &.thumb{
aspect-ratio: 1.777777; aspect-ratio: 1.777777;
+1 -1
View File
@@ -360,7 +360,7 @@ const LibraryView = () => {
const scrollTrigger = useScrollTrigger({ const scrollTrigger = useScrollTrigger({
disableHysteresis: true, disableHysteresis: true,
threshold: 0, threshold: 50,
}); });
const [backdropItems, setBackdropItems] = useState([]); const [backdropItems, setBackdropItems] = useState([]);
+2 -1
View File
@@ -70,11 +70,12 @@
z-index: 1000; z-index: 1000;
&.scrolling { &.scrolling {
background: rgb(0 0 0 / 0.4) !important; background: rgb(0 0 0 / 0.4) !important;
box-shadow: 0 0 25px rgb(0 0 0 / 0.45);
top: 1em; top: 1em;
} }
} }
&-options { &-options {
padding: 0.5em 1.2em; padding: 0.5em 0.75em;
gap: 0.5em; gap: 0.5em;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
+1 -1
View File
@@ -292,6 +292,6 @@ h1 {
} }
.glass { .glass {
background: rgb(0 0 0 / 0.1) !important; background: rgb(0 0 0 / 0.2) !important;
backdrop-filter: blur(40px); backdrop-filter: blur(40px);
} }