style: improve page-margin

This commit is contained in:
Prayag Prajapati committed 2024-03-27 16:34:15 +05:30
1 parent 3efe4a4473
commit 325a4ab858
12 files changed
+28 -37

No files matched your search

@@ -9,14 +9,14 @@
position: absolute !important; position: absolute !important;
height: 100%; height: 100%;
font-size: 1em !important; font-size: 1em !important;
width: 3.2em; width: $page-margin;
&.right{ &.right{
border-radius: $border-radius-default 0 0 $border-radius-default !important; border-radius: $border-radius-default 0 0 $border-radius-default !important;
right: -3.2em; right: -$page-margin;
} }
&.left{ &.left{
border-radius: 0 $border-radius-default $border-radius-default 0 !important; border-radius: 0 $border-radius-default $border-radius-default 0 !important;
left: -3.2em; left: -$page-margin;
} }
.material-symbols-rounded{ .material-symbols-rounded{
font-size: 3.2em; font-size: 3.2em;
+1 -1
View File
@@ -2,7 +2,7 @@
.carousel { .carousel {
position: relative; position: relative;
height: 70vh; height: 70vh;
margin: 0.6em 2.8em 2.8em 2.8em; margin-bottom: 3.2em;
&-button { &-button {
position: absolute !important; position: absolute !important;
top: 50%; top: 50%;
+2 -1
View File
@@ -37,7 +37,8 @@ const ShowMoreText = ({ content, collapsedLines, extraProps }) => {
WebkitBoxOrient: "vertical", WebkitBoxOrient: "vertical",
width: "100%", width: "100%",
}} }}
variant="subtitle1" variant="subtitle2"
fontWeight={300}
> >
{content} {content}
</Typography> </Typography>
+1 -1
View File
@@ -11,7 +11,7 @@ export const CarouselSkeleton = () => {
elevation={0} elevation={0}
sx={{ sx={{
height: "70vh", height: "70vh",
margin: "0.6em 1.6em 1.6em 1.6em", marginBottom: "3.2em",
position: "relative", position: "relative",
background: "black", background: "black",
border: "1px solid rgb(255 255 255 / 0.2)", border: "1px solid rgb(255 255 255 / 0.2)",
+12 -2
View File
@@ -1,14 +1,24 @@
import React from "react"; import React from "react";
import { Divider, LinearProgress, Skeleton } from "@mui/material"; import { Divider, LinearProgress, Skeleton } from "@mui/material";
import { motion } from "framer-motion";
const ItemSkeleton = () => { const ItemSkeleton = () => {
return ( return (
<div <motion.div
className="item item-default scrollY padded-top flex flex-column" className="item item-default scrollY padded-top flex flex-column"
style={{ style={{
width: "100vw", width: "100vw",
}} }}
initial={{
opacity: 0,
}}
animate={{
opacity: 1,
}}
exit={{
opacity: 0,
}}
> >
<div className="item-hero"> <div className="item-hero">
<div <div
@@ -111,7 +121,7 @@ const ItemSkeleton = () => {
/> />
</div> </div>
</div> </div>
</div> </motion.div>
); );
}; };
-5
View File
@@ -308,11 +308,6 @@ const MusicAlbumTitlePage = () => {
artist artist
</span> </span>
} }
sx={{
"& .MuiChip-label": {
marginLeft: 0.5,
},
}}
/> />
{item.data.PremiereDate && ( {item.data.PremiereDate && (
<Typography style={{ opacity: "0.8" }} variant="subtitle2"> <Typography style={{ opacity: "0.8" }} variant="subtitle2">
-4
View File
@@ -123,7 +123,3 @@
} }
} }
} }
.home {
padding: 0;
}
-10
View File
@@ -200,15 +200,6 @@ const Home = () => {
)} )}
</ErrorBoundary> </ErrorBoundary>
<div
className="padded-container"
style={{
padding: "2.8em",
scrollPadding: "4.4em",
paddingTop: "1em"
}}
id="libraries"
>
<ErrorBoundary <ErrorBoundary
fallback={ fallback={
<div className="error"> <div className="error">
@@ -418,7 +409,6 @@ const Home = () => {
return <LatestMediaSection key={lib[0]} latestMediaLib={lib} />; return <LatestMediaSection key={lib[0]} latestMediaLib={lib} />;
})} })}
</ErrorBoundary> </ErrorBoundary>
</div>
</main> </main>
</> </>
); );
+1 -1
View File
@@ -306,7 +306,7 @@ const ItemDetail = () => {
opacity: 1, opacity: 1,
}} }}
transition={{ transition={{
duration: 0.25, duration: 0.35,
ease: "easeInOut", ease: "easeInOut",
}} }}
className="scrollY padded-top flex flex-column item item-default" className="scrollY padded-top flex flex-column item item-default"
+1 -1
View File
@@ -126,7 +126,7 @@ h1 {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
min-height: 100vh; min-height: 100vh;
padding: $page-margin; padding: ($page-margin - 1.2em) $page-margin;
scrollbar-gutter: stable; scrollbar-gutter: stable;
&.padded-top { &.padded-top {
padding-top: 4.4em; padding-top: 4.4em;
+1 -1
View File
@@ -32,4 +32,4 @@ $shadow-card-image: 0 2px 8px rgb(0 0 0 / 0.25);
$clr-background-card-icon: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.2)); $clr-background-card-icon: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.2));
$page-margin: 3.2em; $page-margin: 4em;
+6 -7
View File
@@ -10,17 +10,16 @@ const { palette } = createTheme({});
const { augmentColor } = palette; const { augmentColor } = palette;
export const theme = createTheme({ export const theme = createTheme({
palette: { palette: {
primary: { primary: augmentColor({
color: {
main: clrAccentDefault, main: clrAccentDefault,
background: {
main: clrBackgroundDefault,
light: clrBackgroundLight,
dark: clrBackgroundDark,
}, },
}, }),
secondary: { secondary: augmentColor({
color: {
main: clrSecondaryDefault, main: clrSecondaryDefault,
}, },
}),
background: { background: {
default: clrBackgroundDefault, default: clrBackgroundDefault,
paper: clrBackgroundDark, paper: clrBackgroundDark,