pico/docs/scss/components/_nav.scss

50 lines
872 B
SCSS
Raw Normal View History

2019-11-27 18:35:19 +07:00
/**
* Docs: Navs
*/
body > nav {
-webkit-backdrop-filter: saturate(180%) blur(20px);
z-index: 99;
position: fixed;
top: 0;
right: 0;
left: 0;
backdrop-filter: saturate(180%) blur(20px);
background-color: var(--nav-background);
box-shadow: 0px 1px 0 var(--nav-border);
2019-12-11 08:46:32 +07:00
a {
2019-11-27 18:35:19 +07:00
border-radius: 0;
svg {
vertical-align: text-bottom;
}
2019-11-27 18:35:19 +07:00
}
ul:first-of-type li {
// Brand
&:first-of-type {
a {
width: 3.5rem;
height: 3.5rem;
2020-09-29 08:38:35 +07:00
margin-left: calc(var(--spacing-gutter) * -1);
2019-11-27 18:35:19 +07:00
padding: 0;
background: var(--h1);
color: var(--background);
}
}
// Title
&:nth-of-type(2) {
display: none;
2020-09-29 08:38:35 +07:00
margin-left: var(--spacing-gutter);
color: var(--h1);
2019-11-27 18:35:19 +07:00
@media (min-width: map-get($breakpoints, "lg")) {
display: inline;
}
}
}
}