JOL/assets/css/sass/header.css
Jessica Canady 1bf44f3344
MEGACOMMIT: Ton of blog and layout work.
Mostly reimplementing the old Zola theme.
2024-07-30 11:46:47 -04:00

62 lines
1.6 KiB
CSS

.header {
display: flex;
flex-direction: column;
position: relative; }
.header__inner {
display: flex;
align-items: center;
justify-content: space-between; }
.header__logo {
display: flex;
flex: 1; }
.header__logo:after {
content: '';
background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 2px, transparent 0, transparent 16px);
display: block;
width: 100%;
right: 10px; }
.header__logo a {
flex: 0 0 auto;
max-width: 100%; }
.header .menu {
margin: 20px 0; }
.header .menu__inner {
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0; }
.header .menu__inner li.active {
color: var(--accent-alpha-70); }
.header .menu__inner li:not(:last-of-type) {
margin-right: 20px;
margin-bottom: 10px;
flex: 0 0 auto; }
.header .menu__sub-inner {
position: relative;
list-style: none;
padding: 0;
margin: 0; }
.header .menu__sub-inner:not(:only-child) {
margin-left: 20px; }
.header .menu__sub-inner-more {
position: absolute;
background: var(--background);
box-shadow: var(--shadow);
color: white;
border: 2px solid;
margin: 0;
padding: 10px;
list-style: none;
z-index: 99;
top: 35px;
left: 0; }
.header .menu__sub-inner-more-trigger {
color: var(--accent);
user-select: none;
cursor: pointer; }
.header .menu__sub-inner-more li {
margin: 0;
padding: 5px;
white-space: nowrap; }