1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00
blog/src/components/molecules/Menu.module.scss

52 lines
831 B
SCSS

@import 'variables';
@import 'mixins';
.menu {
@include divider-top;
margin-top: 0;
padding-top: $spacer / 2;
position: absolute;
top: calc(100% + #{$spacer / 2});
left: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 100%;
li {
list-style: none;
flex: 0 0 50%;
@media (min-width: $screen-xs) {
flex-basis: 33%;
}
&::before {
display: none;
}
}
opacity: 0;
:global(.has-menu-open) & {
opacity: 1;
}
a {
color: $text-color;
line-height: 1;
text-transform: uppercase;
margin: 0;
font-size: $font-size-small;
text-shadow: 0 1px 0 rgba(#fff, 0.5);
padding: $padding-base-horizontal;
display: block;
text-align: center;
:global(.dark) & {
text-shadow: 0 -1px 0 rgba(#000, 0.5);
}
}
}