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