mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-11-24 00:53:53 +01:00
93 lines
1.5 KiB
CSS
93 lines
1.5 KiB
CSS
.menu {
|
|
background-color: var(--gray-02);
|
|
border-radius: var(--radius);
|
|
position: fixed;
|
|
top: 1em;
|
|
right: 1em;
|
|
width: calc(100vw - 2em);
|
|
max-height: calc(80vh - 2em);
|
|
overflow-y: scroll;
|
|
z-index: 3000;
|
|
transform: translateY(calc(-100% - 2em));
|
|
transition: transform var(--animation-speed-fast) ease-in-out;
|
|
}
|
|
|
|
.is-menu-open .menu {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.menu-area {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.menu-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.menu-nav:not(:last-child) {
|
|
margin: 0;
|
|
}
|
|
|
|
.menu-nav-item:not(:last-child) {
|
|
margin: 0;
|
|
}
|
|
|
|
.menu-content {
|
|
padding: 2em;
|
|
}
|
|
|
|
.menu-content-area {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, 1fr);
|
|
grid-gap: 2em;
|
|
}
|
|
|
|
.menu-header {
|
|
padding-top: 1em;
|
|
border-top: var(--line-width) solid var(--gray-04);
|
|
}
|
|
|
|
.menu-nav-button {
|
|
margin: 0;
|
|
padding: 1.5em 2em;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.menu-nav-button.active {
|
|
background-color: var(--gray-04);
|
|
color: var(--white);
|
|
}
|
|
|
|
@media (min-width: 550px) {
|
|
.menu {
|
|
max-height: calc(90vh - 2em);
|
|
}
|
|
|
|
.menu-header {
|
|
padding-top: 0;
|
|
padding-bottom: 1em;
|
|
border-top: 0;
|
|
border-bottom: var(--line-width) solid var(--gray-04);
|
|
}
|
|
|
|
.menu-nav {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.menu-content-area {
|
|
grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (min-width: 900px) {
|
|
.menu {
|
|
width: calc(50vw - 2em);
|
|
}
|
|
|
|
.menu-content-area {
|
|
grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
|
|
}
|
|
}
|