2019-01-03 22:30:27 +00:00
|
|
|
.menu {
|
|
|
|
background-color: var(--gray-02);
|
|
|
|
border-radius: var(--radius);
|
|
|
|
position: fixed;
|
2019-01-04 19:40:49 +00:00
|
|
|
top: 1em;
|
|
|
|
right: 1em;
|
|
|
|
width: calc(100vw - 2em);
|
|
|
|
max-height: calc(80vh - 2em);
|
2019-01-03 22:30:27 +00:00
|
|
|
overflow-y: scroll;
|
2019-01-04 19:40:49 +00:00
|
|
|
transform: translateY(calc(-100% - 2em));
|
2019-01-03 22:30:27 +00:00
|
|
|
transition: transform var(--animation-speed-fast) ease-in-out;
|
2019-01-05 20:57:21 +00:00
|
|
|
z-index: var(--z-index-menu);
|
2019-01-03 22:30:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.is-menu-open .menu {
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
|
2019-01-04 16:24:05 +00:00
|
|
|
.menu-area {
|
2019-01-04 19:40:49 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-01-04 16:24:05 +00:00
|
|
|
}
|
|
|
|
|
2019-01-04 19:40:49 +00:00
|
|
|
.menu-nav {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-01-04 16:24:05 +00:00
|
|
|
}
|
|
|
|
|
2019-01-04 19:40:49 +00:00
|
|
|
.menu-nav:not(:last-child) {
|
2019-01-04 16:24:05 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
2019-01-05 20:57:21 +00:00
|
|
|
|
2019-01-04 20:10:06 +00:00
|
|
|
.menu-nav-item {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2019-01-05 20:57:21 +00:00
|
|
|
|
2019-01-04 19:40:49 +00:00
|
|
|
.menu-nav-item:not(:last-child) {
|
|
|
|
margin: 0;
|
2019-01-04 16:24:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-content {
|
|
|
|
padding: 2em;
|
|
|
|
}
|
|
|
|
|
2019-01-04 19:40:49 +00:00
|
|
|
.menu-content-area {
|
2019-01-04 16:24:05 +00:00
|
|
|
display: grid;
|
2019-01-04 19:40:49 +00:00
|
|
|
grid-template-columns: repeat(auto-fill, 1fr);
|
2019-01-04 16:24:05 +00:00
|
|
|
grid-gap: 2em;
|
|
|
|
}
|
|
|
|
|
2019-01-05 20:57:21 +00:00
|
|
|
.menu-item {
|
|
|
|
padding-bottom: 2em;
|
|
|
|
border-bottom: var(--line-width) solid var(--gray-04);
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-item:last-child,
|
|
|
|
.menu-item:nth-last-child(2):nth-child(odd) {
|
|
|
|
padding-bottom: 0;
|
|
|
|
border-bottom: 0;
|
2019-01-04 19:40:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-nav-button {
|
|
|
|
margin: 0;
|
2019-01-05 20:57:21 +00:00
|
|
|
padding-top: 1.5em;
|
|
|
|
padding-bottom: 1.5em;
|
2019-01-04 19:40:49 +00:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-nav-button.active {
|
|
|
|
background-color: var(--gray-04);
|
|
|
|
color: var(--white);
|
2019-01-03 22:30:27 +00:00
|
|
|
}
|
|
|
|
|
2019-01-04 16:24:05 +00:00
|
|
|
@media (min-width: 550px) {
|
|
|
|
.menu {
|
2019-01-04 19:40:49 +00:00
|
|
|
max-height: calc(90vh - 2em);
|
|
|
|
}
|
|
|
|
|
2019-01-04 16:24:05 +00:00
|
|
|
.menu-nav {
|
2019-01-04 19:40:49 +00:00
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-content-area {
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
|
2019-01-04 16:24:05 +00:00
|
|
|
}
|
2019-01-03 22:30:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 900px) {
|
2019-01-04 19:40:49 +00:00
|
|
|
.menu {
|
|
|
|
width: calc(50vw - 2em);
|
2019-01-04 16:24:05 +00:00
|
|
|
}
|
|
|
|
|
2019-01-04 19:40:49 +00:00
|
|
|
.menu-content-area {
|
2019-01-04 16:24:05 +00:00
|
|
|
grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
|
2019-01-03 22:30:27 +00:00
|
|
|
}
|
|
|
|
}
|