minor improvements
This commit is contained in:
parent
c59e79a654
commit
54c8b11ae3
@ -1,3 +1,34 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
/* add nice gradient to the header*/
|
||||
body>header {
|
||||
background-image: linear-gradient(to right, rgba(255, 239, 186, .7), var(--pico-background-color));
|
||||
}
|
||||
|
||||
[data-theme=light],
|
||||
:root:not([data-theme=dark]),
|
||||
:host(:not([data-theme=dark])) {
|
||||
/* adapt the header gradient for dark mode */
|
||||
body>header {
|
||||
background-image: linear-gradient(to right, #ffefba, var(--pico-background-color));
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme]),
|
||||
:host(:not([data-theme])) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* on smaller screens, give the main menu dropdown an absolute position so it stretches over the content instead of pushing the content down */
|
||||
@media (max-width: 767px) {
|
||||
ul#navbar {
|
||||
position: absolute;
|
||||
top: 50px
|
||||
}
|
||||
}
|
||||
|
||||
nav {
|
||||
a {
|
||||
--pico-text-decoration: none;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user