ildi-wp/dev/scss/components/_header-menu.scss

73 lines
1.2 KiB
SCSS
Raw Permalink Normal View History

2018-07-24 18:52:51 -05:00
.header-menu {
display: flex;
2018-08-10 15:08:34 -05:00
flex-direction: column;
align-content: flex-start;
align-items: flex-start;
justify-content: flex-start;
margin: 5px 0;
2018-07-24 18:52:51 -05:00
padding: 0;
2018-08-10 15:08:34 -05:00
width: 100%;
2018-07-24 18:52:51 -05:00
list-style: none;
line-height: 1;
li {
2018-08-10 15:08:34 -05:00
flex: 1 0 auto;
2018-07-24 18:52:51 -05:00
margin: 0;
2018-08-10 15:08:34 -05:00
padding: 0;
width: 100%;
}
a {
display: block;
padding: $gutter 0;
text-transform: uppercase;
text-decoration: none;
letter-spacing: 0.125ch;
color: $di-purple;
font-weight: 700;
2018-10-07 14:32:23 -05:00
.current-menu-item &,
2018-08-10 15:08:34 -05:00
&:hover,
&:active {
background-color: $di-purple;
color: $copy-light;
}
}
2018-10-07 14:32:23 -05:00
.current-menu-item {
a {
background-color: rgba($di-purple, 0.8);
color: $copy-light;
pointer-events: none;
}
}
2018-08-10 15:08:34 -05:00
}
@media screen and (max-width: #{$screen-tablet - 1}) {
.header-menu {
margin-left: -$gutter;
width: calc(100% + #{$gutter * 2});
a {
padding-right: $gutter;
padding-left: $gutter;
}
}
}
@media screen and (min-width: $screen-tablet) {
.header-menu {
flex-direction: row;
align-content: center;
align-items: center;
justify-content: space-around;
li { width: auto; }
li,
a {
text-align: center;
}
2018-07-24 18:52:51 -05:00
}
}