73 lines
1.0 KiB
CSS
73 lines
1.0 KiB
CSS
nav {
|
|
border-bottom: 1px solid rgba(255, 62, 0, 0.1);
|
|
font-weight: 300;
|
|
padding: 0;
|
|
}
|
|
|
|
ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* clearfix */
|
|
ul::after {
|
|
content: '';
|
|
display: block;
|
|
clear: both;
|
|
}
|
|
|
|
li {
|
|
display: block;
|
|
float: left;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
padding: 1em 0.5em;
|
|
display: block;
|
|
}
|
|
|
|
ul {
|
|
position: relative;
|
|
padding: 0;
|
|
margin: 0;
|
|
height: 3em;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
list-style: none;
|
|
background: var(--background);
|
|
background-size: contain;
|
|
}
|
|
|
|
li {
|
|
position: relative;
|
|
height: 100%;
|
|
}
|
|
|
|
li.active::before {
|
|
--size: 6px;
|
|
content: '';
|
|
width: 0;
|
|
height: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
left: calc(50% - var(--size));
|
|
border: var(--size) solid transparent;
|
|
border-top: var(--size) solid var(--accent-color);
|
|
}
|
|
|
|
nav a {
|
|
display: flex;
|
|
height: 100%;
|
|
align-items: center;
|
|
padding: 0 1em;
|
|
color: var(--heading-color);
|
|
font-weight: 700;
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
text-decoration: none;
|
|
transition: color 0.2s linear;
|
|
}
|