2019-01-03 22:30:27 +00:00
|
|
|
.menu {
|
2019-01-24 20:28:11 +00:00
|
|
|
background-color: rgb(var(--gray-01));
|
2019-01-03 22:30:27 +00:00
|
|
|
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-02-03 13:51:54 +00:00
|
|
|
overflow-y: auto;
|
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
|
|
|
}
|
|
|
|
|
2019-01-15 12:33:15 +00:00
|
|
|
.menu:focus {
|
2019-01-24 20:28:11 +00:00
|
|
|
outline: none;
|
2019-01-15 12:33:15 +00:00
|
|
|
}
|
|
|
|
|
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 {
|
2019-01-14 18:22:39 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-nav-area {
|
2019-01-04 19:40:49 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-01-04 16:24:05 +00:00
|
|
|
}
|
|
|
|
|
2019-01-14 18:22:39 +00:00
|
|
|
.menu-nav-area-grow {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
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 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-06 15:57:25 +00:00
|
|
|
grid-template-columns: 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;
|
2019-01-24 20:28:11 +00:00
|
|
|
border-bottom: var(--line-width) solid rgb(var(--gray-04));
|
2019-01-05 20:57:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.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
|
|
|
}
|
|
|
|
|
2019-01-14 18:22:39 +00:00
|
|
|
.menu-close {
|
2019-01-24 20:28:11 +00:00
|
|
|
background-color: transparent;
|
2019-01-14 18:22:39 +00:00
|
|
|
margin: 0;
|
2019-01-24 20:28:11 +00:00
|
|
|
padding-top: 0.75em;
|
|
|
|
padding-bottom: 0.75em;
|
2019-02-03 13:51:54 +00:00
|
|
|
border-radius: 0 var(--radius) 0 0;
|
2019-01-14 18:22:39 +00:00
|
|
|
}
|
|
|
|
|
2019-01-04 19:40:49 +00:00
|
|
|
.menu-nav-button {
|
2019-01-24 20:28:11 +00:00
|
|
|
background-color: transparent;
|
2019-01-04 19:40:49 +00:00
|
|
|
margin: 0;
|
2019-01-24 20:28:11 +00:00
|
|
|
padding-top: 1em;
|
|
|
|
padding-bottom: 1em;
|
2019-01-04 19:40:49 +00:00
|
|
|
border-radius: 0;
|
2019-02-03 13:51:54 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-nav-button:first-child {
|
|
|
|
border-radius: var(--radius) 0 0 0;
|
2019-01-04 19:40:49 +00:00
|
|
|
}
|
|
|
|
|
2019-01-14 18:22:39 +00:00
|
|
|
.menu-nav-button [class^="icon-"],
|
|
|
|
.menu-nav-button [class*=" icon-"] {
|
|
|
|
line-height: 1;
|
|
|
|
padding-top: 1.5em;
|
|
|
|
padding-bottom: 1.5em;
|
|
|
|
}
|
|
|
|
|
2019-01-04 16:24:05 +00:00
|
|
|
@media (min-width: 550px) {
|
|
|
|
.menu {
|
2019-02-03 13:51:54 +00:00
|
|
|
overflow-y: inherit;
|
2019-01-24 20:28:11 +00:00
|
|
|
max-height: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-content {
|
|
|
|
padding: 2em;
|
|
|
|
max-height: 70vh;
|
|
|
|
overflow-y: scroll;
|
2019-01-04 19:40:49 +00:00
|
|
|
}
|
|
|
|
|
2019-01-04 16:24:05 +00:00
|
|
|
.menu-nav {
|
2019-01-04 19:40:49 +00:00
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2019-01-14 18:22:39 +00:00
|
|
|
.menu-nav-area {
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2019-01-04 19:40:49 +00:00
|
|
|
.menu-content-area {
|
2019-01-06 15:57:25 +00:00
|
|
|
grid-template-columns: repeat(2, 1fr);
|
2019-01-24 20:28:11 +00:00
|
|
|
margin-bottom: 10vh;
|
2019-01-04 16:24:05 +00:00
|
|
|
}
|
2019-02-03 14:56:31 +00:00
|
|
|
|
|
|
|
.menu-nav-button {
|
|
|
|
flex-basis: 0;
|
|
|
|
}
|
2019-01-03 22:30:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 900px) {
|
2019-01-04 19:40:49 +00:00
|
|
|
.menu {
|
2019-01-06 15:57:25 +00:00
|
|
|
width: calc(60vw - 2em);
|
|
|
|
max-height: calc(100vh - 2em);
|
2019-01-15 12:33:15 +00:00
|
|
|
max-width: 40em;
|
2019-01-04 16:24:05 +00:00
|
|
|
}
|
2019-01-06 15:57:25 +00:00
|
|
|
}
|
2019-01-04 16:24:05 +00:00
|
|
|
|
2019-01-06 15:57:25 +00:00
|
|
|
@media (min-width: 1100px) {
|
|
|
|
.menu {
|
|
|
|
width: calc(50vw - 2em);
|
2019-01-15 12:33:15 +00:00
|
|
|
max-width: 50em;
|
2019-01-03 22:30:27 +00:00
|
|
|
}
|
|
|
|
}
|