Tweak styles
This commit is contained in:
parent
a76b515b80
commit
5ca7514891
2 changed files with 7 additions and 18 deletions
|
|
@ -1,4 +1,5 @@
|
|||
@use 'sass:math';
|
||||
@use 'sass:color';
|
||||
|
||||
$breakpoint-width: 700px !default;
|
||||
|
||||
|
|
@ -14,12 +15,6 @@ $breakpoint-width: 700px !default;
|
|||
}
|
||||
}
|
||||
|
||||
@mixin in-dark-mode() {
|
||||
html[theme='dark'] {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin title-fragment-link() {
|
||||
position: relative;
|
||||
|
||||
|
|
@ -68,7 +63,8 @@ $breakpoint-width: 700px !default;
|
|||
transform: translateX(-50%) translateY(-50%);
|
||||
}
|
||||
|
||||
@mixin blurred-background() {
|
||||
@mixin blurred-background($color: transparent) {
|
||||
background-color: color.adjust($color, $alpha: -0.66);
|
||||
backdrop-filter: blur(var(--blur-radius));
|
||||
-webkit-backdrop-filter: blur(var(--blur-radius));
|
||||
|
||||
|
|
@ -76,7 +72,7 @@ $breakpoint-width: 700px !default;
|
|||
(backdrop-filter: blur(var(--blur-radius))) or
|
||||
(-webkit-backdrop-filter: blur(var(--blur-radius)))
|
||||
) {
|
||||
background-color: var(--card-color);
|
||||
background-color: $color;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue