Darken muted
colors when necessary
This commit is contained in:
@@ -24,8 +24,9 @@ const getDifferentRand = (range, lastNs, iterations = 0) => {
|
||||
};
|
||||
|
||||
const getButtonClasses = (isClient, colorMode = "vibrant") => {
|
||||
const textColor = colorMode === 'vibrant' ? 'text-vibrant-light' : 'text-muted-light'
|
||||
const bgColor = colorMode === 'vibrant' ? 'bg-vibrant-dark' : 'bg-muted-dark'
|
||||
const textColor =
|
||||
colorMode === "vibrant" ? "text-vibrant-light" : "text-muted-light";
|
||||
const bgColor = colorMode === "vibrant" ? "bg-vibrant-dark" : "bg-muted-dark";
|
||||
return classnames(
|
||||
"z-20 rounded-md text-md inline-block px-3 py-2 my-1 mr-2 text-md hover:underline",
|
||||
isClient && `${textColor} ${bgColor} blurred-or-opaque-bg-2`,
|
||||
@@ -143,7 +144,7 @@ const IndexPage = ({
|
||||
props: { currentImage: currentImage?.base },
|
||||
});
|
||||
// eslint-disable-next-line
|
||||
_paq.push(['trackEvent', 'Index', 'Shuffle', currentImage?.base]);
|
||||
_paq.push(["trackEvent", "Index", "Shuffle", currentImage?.base]);
|
||||
} catch (e) {
|
||||
/* do nothing */
|
||||
}
|
||||
|
@@ -32,26 +32,20 @@
|
||||
.scroll-padding-6 {
|
||||
scroll-padding: theme("spacing.6");
|
||||
}
|
||||
.blurred-or-opaque-bg-1 {
|
||||
@apply bg-opacity-70;
|
||||
}
|
||||
.blurred-or-opaque-bg-2 {
|
||||
@apply bg-opacity-90;
|
||||
}
|
||||
@supports (backdrop-filter: none) {
|
||||
.blurred-or-opaque-bg-1 {
|
||||
@apply bg-opacity-50 backdrop-filter backdrop-blur-lg;
|
||||
}
|
||||
.blurred-or-opaque-bg-2 {
|
||||
@apply bg-opacity-70 backdrop-filter backdrop-blur;
|
||||
@apply bg-opacity-60 backdrop-filter backdrop-blur;
|
||||
}
|
||||
}
|
||||
@supports not (backdrop-filter: none) {
|
||||
.blurred-or-opaque-bg-1 {
|
||||
@apply bg-opacity-70;
|
||||
@apply bg-opacity-60;
|
||||
}
|
||||
.blurred-or-opaque-bg-2 {
|
||||
@apply bg-opacity-90;
|
||||
@apply bg-opacity-70;
|
||||
}
|
||||
}
|
||||
@variants responsive {
|
||||
|
Reference in New Issue
Block a user