Files
30-seconds-of-code/src/docs/styles/_menu.scss
Angelos Chalaris 5e8dd9a9b3 Website optimization
- Remove AnyLink and ReactCSSTransitionReplace
- Clean up GraphQL queries
- Improve getTextualContent method in website utilities
- Convert ttf fonts to woff2
- Add title attribute to menu items
2019-08-27 20:14:23 +03:00

66 lines
1.6 KiB
SCSS

// ===================================================
// Menu
// ===================================================
.menu {
// z-index: 8;
transition: 0.3s ease all;
// Menu container
background: var(--menu-back-color);
border-top: 1px solid var(--menu-border-color);
@media screen and (max-width: calc(#{$layout-medium-breakpoint} - 1px)) {
position: fixed;
bottom: 0;
width: 100vw;
z-index: 1001;
}
@media screen and (min-width: $layout-medium-breakpoint) {
border-top: none;
border-right: 1px solid var(--menu-border-color);
padding-top: 17vh;
}
@media screen and (min-width: $layout-large-breakpoint) {
padding-top: 23.5vh;
}
// Menu buttons
.menu-button {
cursor: pointer;
transition: 0.3s ease all;
background: transparent;
color: var(--menu-fore-color);
display: inline-block;
width: 25%;
height: 61px;
margin: 0;
text-align: center;
margin-top: 0.5rem;
border: none;
line-height: 61px;
@media screen and (min-width: $layout-medium-breakpoint) {
height: 12.5vh;
width: 100%;
margin-top: 1vh;
margin-bottom: 4vh;
line-height: 12.5vh;
}
@media screen and (min-width: $layout-large-breakpoint) {
margin-bottom: 1vh;
}
&:hover, &:focus {
outline: 0;
color: var(--menu-active-fore-color);
}
&.active {
color: var(--menu-active-fore-color);
svg {
color: var(--menu-active-fore-color);
}
}
svg {
color: var(--menu-fore-color);
}
&:last-of-type {
vertical-align: top;
}
}
}