Blurhash-type of thing for articles with a banner
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
outline-color: transparent;
|
||||
outline-style: dashed;
|
||||
outline-width: 0.125rem;
|
||||
box-shadow: var(--edge-highlight);
|
||||
box-shadow: var(--edge-highlight), var(--shadow-glass);
|
||||
border-radius: var(--rounded-corner);
|
||||
border-start-end-radius: 2.125rem;
|
||||
border-end-end-radius: 1.8125rem;
|
||||
@ -320,5 +320,16 @@
|
||||
border-block-start: max(1px, 0.0625rem) solid var(--fg-muted-2);
|
||||
padding-block-start: 0.5rem;
|
||||
}
|
||||
|
||||
.blurhash {
|
||||
position: absolute;
|
||||
opacity: var(--dim-opacity);
|
||||
z-index: -1;
|
||||
filter: var(--blurhash-blur);
|
||||
inset: 0;
|
||||
background-image: var(--blurhash);
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -32,6 +32,10 @@
|
||||
--purple-fg: rgb(220 138 221);
|
||||
--red-fg: rgb(246 97 81);
|
||||
--yellow-fg: rgb(248 228 92);
|
||||
|
||||
// FILTERS
|
||||
--blurhash-blur: brightness(25%) blur(1rem);
|
||||
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
@ -69,6 +73,7 @@
|
||||
|
||||
// FILTERS
|
||||
--blur: saturate(180%) blur(0.75rem);
|
||||
--blurhash-blur: contrast(25%) brightness(175%) blur(1rem);
|
||||
|
||||
// FONT SIZES
|
||||
--font-size-xx-small: 0.625rem;
|
||||
@ -114,10 +119,10 @@
|
||||
--disabled-opacity: 60%;
|
||||
|
||||
// SHADOWS
|
||||
--edge-highlight: inset 0 0.0625rem 0 rgb(255 255 255 / 10%);
|
||||
--shadow: 0 0 0 0.0625rem rgb(0 0 0 / 3%), 0 0.0625rem 0.1875rem 0.0625rem rgb(0 0 0 / 7%), 0 0.125rem 0.375rem 0.125rem rgb(0 0 0 / 3%);
|
||||
--shadow-raised: 0 0 0 0.0625rem rgb(0 0 0 / 6%), 0 0.125rem 0.375rem 0.125rem rgb(0 0 0 / 14%), 0 0.25rem 0.75rem 0.25rem rgb(0 0 0 / 6%);
|
||||
--shadow-glass: 0 0.75rem 1.5rem -1rem rgb(0 0 0 / 50%);
|
||||
--edge-highlight: inset 0 0.0625rem 0 rgb(255 255 255 / 10%);
|
||||
|
||||
// STATES
|
||||
--hover: scale(110%);
|
||||
|
Reference in New Issue
Block a user