nightTab/css/menu.css

179 lines
2.7 KiB
CSS
Raw Normal View History

.menu {
2019-02-17 15:31:29 +01:00
padding: 1em;
position: fixed;
2019-02-17 15:31:29 +01:00
top: 0;
right: 0;
width: 100%;
height: 80vh;
2019-01-04 20:40:49 +01:00
transform: translateY(calc(-100% - 2em));
transition: transform var(--animation-speed-fast) ease-in-out;
2019-01-05 21:57:21 +01:00
z-index: var(--z-index-menu);
2019-02-17 15:31:29 +01:00
pointer-events: none;
}
2019-01-15 13:33:15 +01:00
.menu:focus {
outline: none;
2019-01-15 13:33:15 +01:00
}
.is-menu-open .menu {
transform: translateY(0);
}
2019-01-04 17:24:05 +01:00
.menu-area {
2019-02-17 15:31:29 +01:00
background-color: rgb(var(--gray-01));
border-radius: var(--radius);
width: 100%;
max-height: 100%;
2019-02-17 15:31:29 +01:00
overflow-y: auto;
pointer-events: all;
opacity: 1;
transition: background-color var(--animation-speed-fast) ease-in-out, opacity var(--animation-speed-fast) ease-in-out;
}
.is-edge .menu-area {
opacity: 0.2;
2019-01-04 17:24:05 +01:00
}
2019-01-04 20:40:49 +01:00
.menu-nav {
2019-01-14 19:22:39 +01:00
display: flex;
2019-02-17 15:31:29 +01:00
flex-direction: row;
2019-01-14 19:22:39 +01:00
}
.menu-nav-area {
2019-01-04 20:40:49 +01:00
display: flex;
2019-02-17 15:31:29 +01:00
flex-direction: row;
flex-wrap: wrap;
align-items: flex-start;
2019-01-04 17:24:05 +01:00
}
2019-01-14 19:22:39 +01:00
.menu-nav-area-grow {
flex-grow: 1;
}
2019-01-04 20:40:49 +01:00
.menu-nav:not(:last-child) {
2019-01-04 17:24:05 +01:00
margin: 0;
}
2019-01-05 21:57:21 +01:00
2019-01-04 20:40:49 +01:00
.menu-content-area {
2019-01-04 17:24:05 +01:00
display: grid;
2019-01-06 16:57:25 +01:00
grid-template-columns: 1fr;
2019-01-04 17:24:05 +01:00
}
2019-01-05 21:57:21 +01:00
.menu-item {
position: relative;
z-index: 1;
2019-01-05 21:57:21 +01:00
}
.menu-item:not(:last-child) {
border-bottom: var(--menu-border);
2019-01-04 20:40:49 +01:00
}
.menu-item-header {
padding: 2em;
}
.menu-item-header-text {
margin-bottom: 0;
}
.menu-item-form {
padding: 0 2em 2em 4em;
}
2019-01-14 19:22:39 +01:00
.menu-close {
background-color: transparent;
2019-01-14 19:22:39 +01:00
margin: 0;
padding-top: 0.75em;
padding-bottom: 0.75em;
border-radius: 0 var(--radius) 0 0;
2019-01-14 19:22:39 +01:00
}
2019-01-04 20:40:49 +01:00
.menu-nav-button {
background-color: transparent;
2019-01-04 20:40:49 +01:00
margin: 0;
padding-top: 1em;
padding-bottom: 1em;
2019-01-04 20:40:49 +01:00
border-radius: 0;
flex-grow: 1;
flex-basis: 33%;
}
.menu-nav-button:first-child {
border-radius: var(--radius) 0 0 0;
2019-01-04 20:40:49 +01:00
}
2019-01-14 19:22:39 +01: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 17:24:05 +01:00
@media (min-width: 550px) {
.menu {
width: 80vw;
}
.menu-nav-button {
flex-basis: 0;
}
}
@media (min-width: 700px) {
2019-01-04 17:24:05 +01:00
.menu {
width: 60vw;
2019-02-17 15:31:29 +01:00
height: 100%;
overflow-y: inherit;
max-height: inherit;
}
2019-02-17 15:31:29 +01:00
.menu-area {
overflow-y: inherit;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
2019-02-17 15:31:29 +01:00
justify-items: stretch;
align-items: stretch;
2019-01-04 20:40:49 +01:00
}
2019-02-17 15:31:29 +01:00
.menu-content {
overflow-y: auto;
2019-01-14 19:22:39 +01:00
}
.menu-item {
display: grid;
grid-template-columns: 2fr 3fr;
grid-template-rows: 1fr;
align-items: flex-start;
grid-gap: 2em;
}
.menu-item-header {
padding: 2em 0 2em 2em;
position: sticky;
top: 0;
z-index: 3;
}
.menu-item-form {
padding: 2em 2em 2em 0;
z-index: 2;
}
}
@media (min-width: 900px) {
2019-01-04 20:40:49 +01:00
.menu {
width: 60vw;
}
.menu-item {
grid-template-columns: 1fr 2fr;
2019-01-04 17:24:05 +01:00
}
2019-01-06 16:57:25 +01:00
}
2019-01-04 17:24:05 +01:00
2019-04-01 17:11:39 +02:00
@media (min-width: 1600px) {
2019-01-06 16:57:25 +01:00
.menu {
width: 40vw;
}
}