Nuxt Content 3 migration #12
@ -22,15 +22,19 @@ import { navItems } from "@/data/navItems";
|
||||
|
||||
<style scoped>
|
||||
nav {
|
||||
--nav-drop-color: lightgray;
|
||||
height: 4rem;
|
||||
width: 100%;
|
||||
box-shadow: 0 0.25rem 0.5rem 0 lightgray;
|
||||
background: white;
|
||||
box-shadow: 0 0.25rem 0.5rem 0 var(--nav-drop-color);
|
||||
padding: 1rem;
|
||||
/* main stuff is z-index 1 and the hamburger must be above everything else */
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
html.dark nav {
|
||||
--nav-drop-color: black;
|
||||
}
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -52,8 +56,9 @@ li.home-text {
|
||||
|
||||
* {
|
||||
--trans: 0.2s ease;
|
||||
--box-trans-time: 0.4s;
|
||||
transition: opacity var(--trans), transform var(--trans), gap var(--trans),
|
||||
width var(--trans);
|
||||
width var(--trans), box-shadow var(--box-trans-time) ease;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 510px) {
|
||||
|
@ -64,7 +64,12 @@ main {
|
||||
}
|
||||
|
||||
footer {
|
||||
--footer-drop-color: lightgray;
|
||||
transition: background 0.2s ease;
|
||||
box-shadow: 0 -0.05rem 0.75rem 0 lightgray;
|
||||
box-shadow: 0 -0.05rem 0.75rem 0 var(--footer-drop-color);
|
||||
}
|
||||
|
||||
html.dark footer {
|
||||
--footer-drop-color: black;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user