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

124 lines
2.6 KiB
SCSS
Raw Normal View History

2016-06-10 02:15:50 +00:00
.nav {
width: 100%;
padding: #{10 / $base-font-size}rem #{32 / $base-font-size}rem 0 #{32 / $base-font-size}rem;
2016-06-10 02:15:50 +00:00
display: flex;
flex-direction: row;
2016-06-17 18:11:52 +00:00
justify-content: space-between;
2016-06-10 02:15:50 +00:00
}
2016-06-17 18:11:52 +00:00
.nav__items-left, .nav__items-right {
2016-09-14 22:38:57 +00:00
@include themify() {
2016-09-22 01:46:23 +00:00
border-bottom: 1px dashed map-get($theme-map, 'inactive-text-color');
2016-09-14 22:38:57 +00:00
}
2016-06-10 02:15:50 +00:00
list-style: none;
display: flex;
flex-direction: row;
justify-content: flex-end;
padding: #{3 / $base-font-size}rem 0;
2016-06-17 18:11:52 +00:00
}
2017-03-30 17:22:23 +00:00
.nav__items-left {
& button {
@include themify() {
color: getThemifyVariable('inactive-text-color');
}
}
}
2016-06-17 18:11:52 +00:00
.nav__item {
2016-08-28 00:46:20 +00:00
position: relative;
padding: 0 #{24 / $base-font-size}rem;
2016-10-05 18:02:46 +00:00
text-align: center;
2016-08-28 00:46:20 +00: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 00:46:20 +00:00
.nav__dropdown {
2016-09-21 23:00:24 +00: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 00:46:20 +00:00
}
@extend %hidden-element;
text-align: left;
2016-08-28 00:46:20 +00:00
width: #{140 / $base-font-size}rem;
2016-09-21 23:00:24 +00: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-21 23:00:24 +00:00
height: auto;
}
padding-bottom: #{8 / $base-font-size}rem;
z-index: 1;
}
2016-12-19 22:56:39 +00: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, button {
@include themify() {
color: getThemifyVariable('secondary-text-color');
}
}
.nav__dropdown button {
padding: 0;
}
.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%;
}
.nav__announce {
position: absolute;
top: #{40 / $base-font-size}rem;
right: #{88 / $base-font-size}rem;
width: #{398 / $base-font-size}rem;
padding: #{5 / $base-font-size}rem 0;
text-transform: uppercase;
background-color: #ffbc00;
color: white;
text-align: center;
padding: #{7 / $base-font-size}rem #{8 / $base-font-size}rem;
line-height: 145%;
z-index: 0;
}