popov.link/_scss/components/_navigation.scss
Valentin Popov 6900263c52
feat(css): Added navigation bar animation
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-12-07 01:07:26 +04:00

63 lines
900 B
SCSS

.nav-pills {
list-style-type: none;
margin: 0;
overflow: hidden;
padding: 0;
text-align: center;
li {
float: left;
padding: .5em;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
}
}
.nav-link {
text-align: center;
text-decoration: none;
&:active,
&:focus,
&:hover {
border: 0;
text-decoration: underline;
}
}
.nav-right {
float: right;
}
@media(min-width: 382px) {
.nav-pills {
li {
display: inline-block;
transform: perspective(1px) translateZ(0);
transition-duration: .3s;
transition-property: transform;
transition-timing-function: ease-out;
vertical-align: middle;
&:active,
&:focus,
&:hover {
transform: translateY(8px);
}
}
}
}
@media (max-width: 382px) {
.nav-right,
.nav-pills li {
float: none;
}
}