brutcss/src/navbar.less
Yann Esposito (Yogsototh) 6be8d16967
width container change
2022-10-07 23:43:51 +02:00

82 lines
1.3 KiB
Plaintext

.nav {
background: var(--bg2);
border-bottom: solid 1px var(--darken);
}
footer {
background: var(--bg2);
border-top: solid 1px var(--darken);
}
.nav {
height: 3rem;
padding: 11px 0 15px;
/* TODO: migrate to ems (currently we don't use them because of iOS compatibility problems (has to do with unicode icon for close)) */
/* Uncomment for animations
max-height: 1.5em;
*/
}
.nav a {
text-decoration: none;
opacity: 0.7;
padding-right: 1em;
position: relative;
top: -1px;
}
.nav a:hover { opacity: 1; }
.nav .pagename {
opacity: 1;
font-weight: bold;
font-size: 22px;
top: 1px;
}
.btn.btn-close {
float: right;
font-size: 25px;
margin: -4.1rem 0px;
display: none;
border: none;
box-shadow: none;
background: transparent;
color: var(--fg);
}
@media (max-width:640px) {
.btn.btn-close {
display: block;
}
.nav {
/* transition: max-height .5s ease-in-out, height .5s ease-in-out; */
overflow: hidden;
}
.pagename {
margin-top: -11px;
}
.nav:active,.nav:focus {
height: auto;
/* Necesary for animations
max-height: 500px;
height: 100%;
*/
}
.nav div:before {
background: var(--bg2);
border-bottom: 11px double;
border-top: 3px solid;
content: '';
float: right;
height: 0.25rem;
position: relative;
right: 0;
top: 8px;
width: 2rem;
}
.nav a {
display: block;
padding: .5em 0;
width: 50%;
}
}