propapier/app/assets/styles/header.css
webfussel 1bd69c9c97 add: subheader
Subheader for dynamic content
2025-05-10 18:36:42 +02:00

61 lines
No EOL
1.3 KiB
CSS
Executable file

.Header {
position: sticky;
top: 0;
z-index: 100;
background: var(--color-main-darkest);
& header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--padding-default);
padding-bottom: 0;
font-family: 'Roboto', sans-serif;
font-weight: bold;
& a {
text-decoration: none;
color: var(--color-lightest);
}
& .header-text {
font-size: 1.5em;
}
& input[type="checkbox"] {
display: none;
}
& input[type="checkbox"]:checked + nav {
translate: 0;
}
& nav,
& ul {
gap: 1em;
}
& nav {
position: fixed;
padding: var(--padding-default);
translate: 100% 0;
width: 100vw;
right: 0;
top: 0;
height: 100dvh;
transition: 150ms ease-in-out;
background: var(--color-lightest);
font-size: 2em;
align-items: end;
z-index: 100;
}
& ul {
width: 100%;
align-items: center;
& li {
list-style: none;
}
}
}
}