style: improve page-margin
This commit is contained in:
12 files changed
+226
-235
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;
|
||||||
|
|||||||
@@ -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%;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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)",
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -123,7 +123,3 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.home {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
+195
-205
@@ -200,225 +200,215 @@ const Home = () => {
|
|||||||
)}
|
)}
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
|
|
||||||
<div
|
<ErrorBoundary
|
||||||
className="padded-container"
|
fallback={
|
||||||
style={{
|
<div className="error">
|
||||||
padding: "2.8em",
|
<Typography>Error with Carousel</Typography>
|
||||||
scrollPadding: "4.4em",
|
</div>
|
||||||
paddingTop: "1em"
|
}
|
||||||
}}
|
|
||||||
id="libraries"
|
|
||||||
>
|
>
|
||||||
<ErrorBoundary
|
{libraries.isPending ? (
|
||||||
fallback={
|
<CardsSkeleton />
|
||||||
<div className="error">
|
) : (
|
||||||
<Typography>Error with Carousel</Typography>
|
<CardScroller displayCards={4} title="Libraries">
|
||||||
</div>
|
{libraries.status === "success" &&
|
||||||
}
|
libraries.data.Items.map((item) => {
|
||||||
>
|
|
||||||
{libraries.isPending ? (
|
|
||||||
<CardsSkeleton />
|
|
||||||
) : (
|
|
||||||
<CardScroller displayCards={4} title="Libraries">
|
|
||||||
{libraries.status === "success" &&
|
|
||||||
libraries.data.Items.map((item) => {
|
|
||||||
return (
|
|
||||||
<Card
|
|
||||||
key={item.Id}
|
|
||||||
item={item}
|
|
||||||
cardTitle={item.Name}
|
|
||||||
imageType="Primary"
|
|
||||||
cardType="thumb"
|
|
||||||
disableOverlay
|
|
||||||
onClick={() => navigate(`/library/${item.Id}`)}
|
|
||||||
imageBlurhash={
|
|
||||||
!!item.ImageBlurHashes?.Primary &&
|
|
||||||
item.ImageBlurHashes?.Primary[
|
|
||||||
Object.keys(item.ImageBlurHashes.Primary)[0]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
overrideIcon={item.CollectionType}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</CardScroller>
|
|
||||||
)}
|
|
||||||
</ErrorBoundary>
|
|
||||||
<ErrorBoundary
|
|
||||||
fallback={
|
|
||||||
<div className="error">
|
|
||||||
<Typography>Error with Libraries</Typography>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{upNextItems.isPending ? (
|
|
||||||
<CardsSkeleton />
|
|
||||||
) : upNextItems.isSuccess && upNextItems.data.Items.length === 0 ? (
|
|
||||||
<></>
|
|
||||||
) : (
|
|
||||||
<CardScroller displayCards={4} title="Up Next">
|
|
||||||
{upNextItems.data.Items.map((item) => {
|
|
||||||
return (
|
|
||||||
<Card
|
|
||||||
key={item.Id}
|
|
||||||
item={item}
|
|
||||||
cardTitle={
|
|
||||||
item.Type === BaseItemKind.Episode
|
|
||||||
? item.SeriesName
|
|
||||||
: item.Name
|
|
||||||
}
|
|
||||||
imageType={
|
|
||||||
item.Type === BaseItemKind.Episode
|
|
||||||
? "Primary"
|
|
||||||
: Object.keys(item.ImageTags).includes("Thumb")
|
|
||||||
? "Thumb"
|
|
||||||
: "Backdrop"
|
|
||||||
}
|
|
||||||
cardCaption={
|
|
||||||
item.Type === BaseItemKind.Episode
|
|
||||||
? item.ParentIndexNumber === 0
|
|
||||||
? `${item.SeasonName} - ${item.Name}`
|
|
||||||
: item.IndexNumberEnd
|
|
||||||
? `${item.IndexNumber}-${item.IndexNumberEnd}. ${item.Name}`
|
|
||||||
: `${item.IndexNumber}. ${item.Name}`
|
|
||||||
: item.Type === BaseItemKind.Series
|
|
||||||
? `${item.ProductionYear} - ${
|
|
||||||
item.EndDate
|
|
||||||
? new Date(item.EndDate).toLocaleString([], {
|
|
||||||
year: "numeric",
|
|
||||||
})
|
|
||||||
: "Present"
|
|
||||||
}`
|
|
||||||
: item.ProductionYear
|
|
||||||
}
|
|
||||||
cardType="thumb"
|
|
||||||
queryKey={["home", "upNext"]}
|
|
||||||
userId={user.data.Id}
|
|
||||||
imageBlurhash={
|
|
||||||
!!item.ImageBlurHashes?.Primary &&
|
|
||||||
item.ImageBlurHashes?.Primary[
|
|
||||||
Object.keys(item.ImageBlurHashes.Primary)[0]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</CardScroller>
|
|
||||||
)}
|
|
||||||
</ErrorBoundary>
|
|
||||||
<ErrorBoundary
|
|
||||||
fallback={
|
|
||||||
<div className="error">
|
|
||||||
<Typography>Error with resumeItemsVideo</Typography>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{resumeItemsVideo.isPending ? (
|
|
||||||
<CardsSkeleton />
|
|
||||||
) : resumeItemsVideo.isSuccess &&
|
|
||||||
resumeItemsVideo.data.Items.length === 0 ? (
|
|
||||||
<></>
|
|
||||||
) : (
|
|
||||||
<CardScroller displayCards={4} title="Continue Watching">
|
|
||||||
{resumeItemsVideo.data.Items.map((item) => {
|
|
||||||
return (
|
|
||||||
<Card
|
|
||||||
key={item.Id}
|
|
||||||
item={item}
|
|
||||||
cardTitle={
|
|
||||||
item.Type === BaseItemKind.Episode
|
|
||||||
? item.SeriesName
|
|
||||||
: item.Name
|
|
||||||
}
|
|
||||||
imageType={
|
|
||||||
item.Type === BaseItemKind.Episode
|
|
||||||
? "Primary"
|
|
||||||
: Object.keys(item.ImageTags).includes("Thumb")
|
|
||||||
? "Thumb"
|
|
||||||
: "Backdrop"
|
|
||||||
}
|
|
||||||
cardCaption={
|
|
||||||
item.Type === BaseItemKind.Episode
|
|
||||||
? `S${item.ParentIndexNumber}:E${item.IndexNumber} - ${item.Name}`
|
|
||||||
: item.Type === BaseItemKind.Series
|
|
||||||
? `${item.ProductionYear} - ${
|
|
||||||
item.EndDate
|
|
||||||
? new Date(item.EndDate).toLocaleString([], {
|
|
||||||
year: "numeric",
|
|
||||||
})
|
|
||||||
: "Present"
|
|
||||||
}`
|
|
||||||
: item.ProductionYear
|
|
||||||
}
|
|
||||||
cardType="thumb"
|
|
||||||
queryKey={["home", "resume", "video"]}
|
|
||||||
userId={user.data.Id}
|
|
||||||
imageBlurhash={
|
|
||||||
!!item.ImageBlurHashes?.Primary &&
|
|
||||||
item.ImageBlurHashes?.Primary[
|
|
||||||
Object.keys(item.ImageBlurHashes.Primary)[0]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</CardScroller>
|
|
||||||
)}
|
|
||||||
</ErrorBoundary>
|
|
||||||
<ErrorBoundary
|
|
||||||
fallback={
|
|
||||||
<div className="error">
|
|
||||||
<Typography>Error with resumeItemsAudio</Typography>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{resumeItemsAudio.isPending ? (
|
|
||||||
<CardsSkeleton />
|
|
||||||
) : resumeItemsAudio.isSuccess &&
|
|
||||||
resumeItemsAudio.data.Items.length === 0 ? (
|
|
||||||
<></>
|
|
||||||
) : (
|
|
||||||
<CardScroller displayCards={4} title="Continue Listening">
|
|
||||||
{resumeItemsAudio.data.Items.map((item) => {
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
key={item.Id}
|
key={item.Id}
|
||||||
item={item}
|
item={item}
|
||||||
cardTitle={item.Name}
|
cardTitle={item.Name}
|
||||||
imageType={
|
imageType="Primary"
|
||||||
item.Type === BaseItemKind.Episode
|
|
||||||
? "Primary"
|
|
||||||
: Object.keys(item.ImageTags).includes("Thumb")
|
|
||||||
? "Thumb"
|
|
||||||
: "Backdrop"
|
|
||||||
}
|
|
||||||
cardCaption={item.ProductionYear}
|
|
||||||
cardType="thumb"
|
cardType="thumb"
|
||||||
queryKey={["home", "resume", "audio"]}
|
disableOverlay
|
||||||
userId={user.data.Id}
|
onClick={() => navigate(`/library/${item.Id}`)}
|
||||||
imageBlurhash={
|
imageBlurhash={
|
||||||
item.ImageBlurHashes?.Primary?.[
|
!!item.ImageBlurHashes?.Primary &&
|
||||||
|
item.ImageBlurHashes?.Primary[
|
||||||
Object.keys(item.ImageBlurHashes.Primary)[0]
|
Object.keys(item.ImageBlurHashes.Primary)[0]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
overrideIcon={item.CollectionType}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</CardScroller>
|
</CardScroller>
|
||||||
)}
|
)}
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
<ErrorBoundary
|
<ErrorBoundary
|
||||||
fallback={
|
fallback={
|
||||||
<div className="error">
|
<div className="error">
|
||||||
<Typography>Error with LatestMediaSections</Typography>
|
<Typography>Error with Libraries</Typography>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{latestMediaLibs.map((lib) => {
|
{upNextItems.isPending ? (
|
||||||
return <LatestMediaSection key={lib[0]} latestMediaLib={lib} />;
|
<CardsSkeleton />
|
||||||
})}
|
) : upNextItems.isSuccess && upNextItems.data.Items.length === 0 ? (
|
||||||
</ErrorBoundary>
|
<></>
|
||||||
</div>
|
) : (
|
||||||
|
<CardScroller displayCards={4} title="Up Next">
|
||||||
|
{upNextItems.data.Items.map((item) => {
|
||||||
|
return (
|
||||||
|
<Card
|
||||||
|
key={item.Id}
|
||||||
|
item={item}
|
||||||
|
cardTitle={
|
||||||
|
item.Type === BaseItemKind.Episode
|
||||||
|
? item.SeriesName
|
||||||
|
: item.Name
|
||||||
|
}
|
||||||
|
imageType={
|
||||||
|
item.Type === BaseItemKind.Episode
|
||||||
|
? "Primary"
|
||||||
|
: Object.keys(item.ImageTags).includes("Thumb")
|
||||||
|
? "Thumb"
|
||||||
|
: "Backdrop"
|
||||||
|
}
|
||||||
|
cardCaption={
|
||||||
|
item.Type === BaseItemKind.Episode
|
||||||
|
? item.ParentIndexNumber === 0
|
||||||
|
? `${item.SeasonName} - ${item.Name}`
|
||||||
|
: item.IndexNumberEnd
|
||||||
|
? `${item.IndexNumber}-${item.IndexNumberEnd}. ${item.Name}`
|
||||||
|
: `${item.IndexNumber}. ${item.Name}`
|
||||||
|
: item.Type === BaseItemKind.Series
|
||||||
|
? `${item.ProductionYear} - ${
|
||||||
|
item.EndDate
|
||||||
|
? new Date(item.EndDate).toLocaleString([], {
|
||||||
|
year: "numeric",
|
||||||
|
})
|
||||||
|
: "Present"
|
||||||
|
}`
|
||||||
|
: item.ProductionYear
|
||||||
|
}
|
||||||
|
cardType="thumb"
|
||||||
|
queryKey={["home", "upNext"]}
|
||||||
|
userId={user.data.Id}
|
||||||
|
imageBlurhash={
|
||||||
|
!!item.ImageBlurHashes?.Primary &&
|
||||||
|
item.ImageBlurHashes?.Primary[
|
||||||
|
Object.keys(item.ImageBlurHashes.Primary)[0]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</CardScroller>
|
||||||
|
)}
|
||||||
|
</ErrorBoundary>
|
||||||
|
<ErrorBoundary
|
||||||
|
fallback={
|
||||||
|
<div className="error">
|
||||||
|
<Typography>Error with resumeItemsVideo</Typography>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{resumeItemsVideo.isPending ? (
|
||||||
|
<CardsSkeleton />
|
||||||
|
) : resumeItemsVideo.isSuccess &&
|
||||||
|
resumeItemsVideo.data.Items.length === 0 ? (
|
||||||
|
<></>
|
||||||
|
) : (
|
||||||
|
<CardScroller displayCards={4} title="Continue Watching">
|
||||||
|
{resumeItemsVideo.data.Items.map((item) => {
|
||||||
|
return (
|
||||||
|
<Card
|
||||||
|
key={item.Id}
|
||||||
|
item={item}
|
||||||
|
cardTitle={
|
||||||
|
item.Type === BaseItemKind.Episode
|
||||||
|
? item.SeriesName
|
||||||
|
: item.Name
|
||||||
|
}
|
||||||
|
imageType={
|
||||||
|
item.Type === BaseItemKind.Episode
|
||||||
|
? "Primary"
|
||||||
|
: Object.keys(item.ImageTags).includes("Thumb")
|
||||||
|
? "Thumb"
|
||||||
|
: "Backdrop"
|
||||||
|
}
|
||||||
|
cardCaption={
|
||||||
|
item.Type === BaseItemKind.Episode
|
||||||
|
? `S${item.ParentIndexNumber}:E${item.IndexNumber} - ${item.Name}`
|
||||||
|
: item.Type === BaseItemKind.Series
|
||||||
|
? `${item.ProductionYear} - ${
|
||||||
|
item.EndDate
|
||||||
|
? new Date(item.EndDate).toLocaleString([], {
|
||||||
|
year: "numeric",
|
||||||
|
})
|
||||||
|
: "Present"
|
||||||
|
}`
|
||||||
|
: item.ProductionYear
|
||||||
|
}
|
||||||
|
cardType="thumb"
|
||||||
|
queryKey={["home", "resume", "video"]}
|
||||||
|
userId={user.data.Id}
|
||||||
|
imageBlurhash={
|
||||||
|
!!item.ImageBlurHashes?.Primary &&
|
||||||
|
item.ImageBlurHashes?.Primary[
|
||||||
|
Object.keys(item.ImageBlurHashes.Primary)[0]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</CardScroller>
|
||||||
|
)}
|
||||||
|
</ErrorBoundary>
|
||||||
|
<ErrorBoundary
|
||||||
|
fallback={
|
||||||
|
<div className="error">
|
||||||
|
<Typography>Error with resumeItemsAudio</Typography>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{resumeItemsAudio.isPending ? (
|
||||||
|
<CardsSkeleton />
|
||||||
|
) : resumeItemsAudio.isSuccess &&
|
||||||
|
resumeItemsAudio.data.Items.length === 0 ? (
|
||||||
|
<></>
|
||||||
|
) : (
|
||||||
|
<CardScroller displayCards={4} title="Continue Listening">
|
||||||
|
{resumeItemsAudio.data.Items.map((item) => {
|
||||||
|
return (
|
||||||
|
<Card
|
||||||
|
key={item.Id}
|
||||||
|
item={item}
|
||||||
|
cardTitle={item.Name}
|
||||||
|
imageType={
|
||||||
|
item.Type === BaseItemKind.Episode
|
||||||
|
? "Primary"
|
||||||
|
: Object.keys(item.ImageTags).includes("Thumb")
|
||||||
|
? "Thumb"
|
||||||
|
: "Backdrop"
|
||||||
|
}
|
||||||
|
cardCaption={item.ProductionYear}
|
||||||
|
cardType="thumb"
|
||||||
|
queryKey={["home", "resume", "audio"]}
|
||||||
|
userId={user.data.Id}
|
||||||
|
imageBlurhash={
|
||||||
|
item.ImageBlurHashes?.Primary?.[
|
||||||
|
Object.keys(item.ImageBlurHashes.Primary)[0]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</CardScroller>
|
||||||
|
)}
|
||||||
|
</ErrorBoundary>
|
||||||
|
<ErrorBoundary
|
||||||
|
fallback={
|
||||||
|
<div className="error">
|
||||||
|
<Typography>Error with LatestMediaSections</Typography>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{latestMediaLibs.map((lib) => {
|
||||||
|
return <LatestMediaSection key={lib[0]} latestMediaLib={lib} />;
|
||||||
|
})}
|
||||||
|
</ErrorBoundary>
|
||||||
</main>
|
</main>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
+9
-10
@@ -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({
|
||||||
main: clrAccentDefault,
|
color: {
|
||||||
background: {
|
main: clrAccentDefault,
|
||||||
main: clrBackgroundDefault,
|
|
||||||
light: clrBackgroundLight,
|
|
||||||
dark: clrBackgroundDark,
|
|
||||||
},
|
},
|
||||||
},
|
}),
|
||||||
secondary: {
|
secondary: augmentColor({
|
||||||
main: clrSecondaryDefault,
|
color: {
|
||||||
},
|
main: clrSecondaryDefault,
|
||||||
|
},
|
||||||
|
}),
|
||||||
background: {
|
background: {
|
||||||
default: clrBackgroundDefault,
|
default: clrBackgroundDefault,
|
||||||
paper: clrBackgroundDark,
|
paper: clrBackgroundDark,
|
||||||
|
|||||||
Reference in new issue
Block a user