Initial Commit
This commit is contained in:
27
themes/hugo-coder/assets/scss/_float_dark.scss
Normal file
27
themes/hugo-coder/assets/scss/_float_dark.scss
Normal file
@ -0,0 +1,27 @@
|
||||
@mixin float_dark {
|
||||
.float-container {
|
||||
a {
|
||||
color: $alt-fg-color-dark;
|
||||
background-color: $alt-bg-color-dark;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $link-color-dark;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
color: $alt-fg-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.colorscheme-dark {
|
||||
@include float_dark();
|
||||
}
|
||||
|
||||
body.colorscheme-auto {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include float_dark();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user