-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAside.css
More file actions
199 lines (167 loc) · 3.45 KB
/
Aside.css
File metadata and controls
199 lines (167 loc) · 3.45 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
body > aside {
position: fixed;
top: 0px;
right: auto;
bottom: 0px;
left: 0px;
z-index: 19;
}
aside {
width: auto;
height: auto;
padding: 8px 8px;
color: var(--aside-color);
background: var(--aside-background);
text-align: center;
box-sizing: border-box;
}
aside,
aside[data-layout="flex"] {
display: block flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
aside[data-layout="grid"] {
display: block grid;
align-items: unset;
justify-content: unset;
}
aside[data-layout="flow"] {
display: block flow-root;
align-items: unset;
justify-content: unset;
}
aside ul {
display: block flow-root;
width: 100%;
/* XXX: Makes ul li's the size of their content */
/* width: auto; */
margin: 0px auto 0px auto;
padding: 0px;
list-style: none;
text-align: left;
user-select: none;
}
aside ul li {
display: block;
margin: 4px 0px;
padding: 0px;
border-top: 1px solid var(--button-default-border);
border-right: 1px solid var(--button-default-border);
border-bottom: 1px solid var(--button-default-border);
border-left: 1px solid var(--button-default-border);
border-radius: 4px 4px 4px 4px;
}
aside ul li {
color: var(--button-default-color);
background: var(--button-default-background);
}
aside ul li:hover {
background: var(--button-focus-background);
}
aside ul li:hover a {
color: var(--button-focus-color);
}
aside ul li[data-state="active"] {
background: var(--palette-primary-background);
}
aside ul li[data-state="active"] a {
color: var(--palette-primary-color);
}
aside ul li a {
display: block;
height: 32px;
line-height: 32px;
color: var(--button-default-color);
font-family: 'cantarell';
font-weight: normal;
font-size: 16px;
text-decoration: none;
margin: 0px;
padding: 0px 12px;
box-sizing: border-box;
transition: all 250ms ease-out;
}
aside ul li a[data-view] {
padding: 0px;
}
aside ul li a[data-view]:before {
display: inline-block;
content: '\e811';
width: auto;
margin: 0em 0.5em 0em 0.5em;
padding: 0px;
font-family: "icon";
font-size: 16px;
font-style: normal;
font-weight: normal;
text-align: center;
text-decoration: none;
text-transform: none;
font-smooth: antialiased;
white-space: nowrap;
transition: all 250ms ease-out;
}
aside div:first-of-type {
margin-bottom: auto;
}
aside div:last-of-type {
margin-top: auto;
}
aside div:last-of-type button {
width: auto;
line-height: 16px;
height: 32px;
}
body:has(> header) > aside {
top: 50px;
}
body:has(> footer) > aside {
bottom: 50px;
}
@supports (transition: all 250ms ease-out) {
aside {
width: 50px;
transition: all 250ms ease-out;
}
aside ul li {
width: 32px;
transition: all 250ms ease-out;
}
aside ul li a[data-view] {
color: transparent;
overflow: hidden;
text-overflow: clip;
transition: all 250ms ease-out;
}
aside ul li a[data-view]:before {
color: var(--button-default-color);
}
aside:hover,
aside[data-state="active"] {
width: 200px;
transition: all 250ms ease-out;
}
aside:hover ul li,
aside[data-state="active"] ul li {
width: calc(100%);
transition: all 250ms ease-out;
}
aside:hover ul li a[data-view],
aside[data-state="active"] ul li a[data-view] {
color: var(--button-default-color);
transition: all 250ms ease-out;
}
aside div button {
overflow: hidden;
text-overflow: clip;
opacity: 0;
transition: all 250ms ease-out;
}
aside:hover div button,
aside[data-state="active"] div button {
opacity: 1;
transition: all 250ms ease-out 250ms;
}
}