forked from zombieFox/nightTab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.css
More file actions
99 lines (82 loc) · 1.51 KB
/
Copy pathmenu.css
File metadata and controls
99 lines (82 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.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;
transform: translateY(calc(-100% - 2em));
transition: transform var(--animation-speed-fast) ease-in-out;
z-index: var(--z-index-menu);
}
.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 {
flex-grow: 1;
}
.menu-nav-item:not(:last-child) {
margin: 0;
}
.menu-content {
padding: 2em;
}
.menu-content-area {
display: grid;
grid-template-columns: 1fr;
grid-gap: 2em;
}
.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;
}
.menu-nav-button {
margin: 0;
padding-top: 1.5em;
padding-bottom: 1.5em;
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-nav {
flex-direction: row;
}
.menu-content-area {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 900px) {
.menu {
width: calc(60vw - 2em);
max-height: calc(100vh - 2em);
}
}
@media (min-width: 1100px) {
.menu {
width: calc(50vw - 2em);
}
}