p5.js-web-editor/client/styles/components/_nav.scss

45 lines
939 B
SCSS
Raw Normal View History

2016-06-10 04:15:50 +02:00
.nav {
width: 100%;
2016-08-28 02:46:20 +02:00
padding: #{10 / $base-font-size}rem #{70 / $base-font-size}rem;
2016-06-17 20:11:52 +02:00
padding-left: #{170 / $base-font-size}rem;
2016-06-10 04:15:50 +02:00
display: flex;
flex-direction: row;
2016-06-17 20:11:52 +02:00
justify-content: space-between;
2016-06-10 04:15:50 +02:00
}
2016-06-17 20:11:52 +02:00
.nav__items-left, .nav__items-right {
2016-06-10 04:15:50 +02:00
list-style: none;
display: flex;
flex-direction: row;
justify-content: flex-end;
padding: #{5 / $base-font-size}rem #{10 / $base-font-size}rem;
border-bottom: 2px dashed;
2016-06-17 20:11:52 +02:00
}
.nav__save, .nav__new {
@extend %fake-link;
}
.nav__item {
& + & {
margin-left: #{20 / $base-font-size}rem;
}
2016-08-28 02:46:20 +02:00
position: relative;
&:hover .nav__dropdown {
display: flex;
}
}
.nav__dropdown {
display: none;
position: absolute;
flex-direction: column;
background-color: $light-background-color;
padding: #{10 / $base-font-size}rem;
left: #{-10 / $base-font-size}rem;
border: 1px solid $ide-border-color;
& li + li {
margin-top: #{10 / $base-font-size}rem;
}
width: #{140 / $base-font-size}rem;
2016-06-10 04:15:50 +02:00
}