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

96 lines
2.1 KiB
SCSS
Raw Normal View History

2016-06-10 04:15:50 +02:00
.nav {
width: 100%;
padding: #{10 / $base-font-size}rem #{32 / $base-font-size}rem 0 #{32 / $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-09-15 00:38:57 +02:00
@include themify() {
2016-09-22 03:46:23 +02:00
border-bottom: 1px dashed map-get($theme-map, 'inactive-text-color');
2016-09-15 00:38:57 +02:00
}
2016-06-10 04:15:50 +02:00
list-style: none;
display: flex;
flex-direction: row;
justify-content: flex-end;
padding: #{3 / $base-font-size}rem 0;
2016-06-17 20:11:52 +02:00
}
.nav__item {
2016-08-28 02:46:20 +02:00
position: relative;
padding: 0 #{24 / $base-font-size}rem;
2016-10-05 20:02:46 +02:00
text-align: center;
2016-08-28 02:46:20 +02:00
}
.nav__item:first-child {
padding-left: #{15 / $base-font-size}rem;
}
.nav__item:last-child {
padding-right: #{15 / $base-font-size}rem;
}
2016-08-28 02:46:20 +02:00
.nav__dropdown {
2016-09-22 01:00:24 +02:00
@include themify() {
background-color: map-get($theme-map, 'modal-background-color');
border: 1px solid map-get($theme-map, 'modal-border-color');
box-shadow: 0 0 18px getThemifyVariable('shadow-color');
2016-08-28 02:46:20 +02:00
}
@extend %hidden-element;
text-align: left;
2016-08-28 02:46:20 +02:00
width: #{140 / $base-font-size}rem;
2016-09-22 01:00:24 +02:00
.nav__item:hover & {
display: flex;
position: absolute;
flex-direction: column;
top: #{-8 / $base-font-size}rem;;
left: #{-11 / $base-font-size}rem;
2016-09-22 01:00:24 +02:00
height: auto;
}
padding-bottom: #{8 / $base-font-size}rem;
}
2016-12-19 23:56:39 +01:00
.nav__item-spacer {
@include themify() {
color: map-get($theme-map, 'inactive-text-color');
}
padding: 0 #{15 / $base-font-size}rem;
}
.nav__dropdown li {
padding: #{4 / $base-font-size}rem #{16 / $base-font-size}rem;
width: 100%;
}
.nav__dropdown a {
@include themify() {
color: getThemifyVariable('secondary-text-color');
}
}
.nav__dropdown a:hover {
@include themify() {
color: getThemifyVariable('primary-text-color');
}
}
.nav__dropdown-heading {
@include themify() {
border-bottom: 1px dashed map-get($theme-map, 'inactive-text-color');
}
margin-top: #{3 / $base-font-size}rem;
text-align: center;
margin-bottom: #{4 / $base-font-size}rem;
}
.nav__dropdown-heading a, .nav__dropdown-heading a:hover {
@include themify() {
color: getThemifyVariable('inactive-text-color');
}
cursor: default;
width: 100%;
}