-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.css
64 lines (57 loc) · 1.07 KB
/
header.css
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
.header{
display: flex;
align-items: center;
z-index: 2;
}
.button-open{
justify-self: flex-start;
}
.sidebar{
width: var(--sidebar);
position: fixed;
top: 0;
bottom: 0;
left: -100%;
background-color: var(--bg-base);
transition: all 300ms var(--transition-2);
}
.sidebar:target {
left: 0;
transition: all 300ms var(--transition-2);
}
.button-close{
display: block;
text-align: end;
}
/* .sidebar__list{
} */
.sidebar__item,
.button-close {
padding: var(--space-3) var(--space-4);
}
.sidebar__link{
color: var(--text-base);
}
@media screen and (min-width: 800px) {
.button-open,
.button-close {
display: none;
}
.sidebar__item .button {
display: inline-block;
}
.sidebar {
position: static;
left: 0;
width: 100%;
height: 100%;
background-color: var(--transparent);
}
.sidebar__list {
display: inline-flex;
align-items: center;
justify-content: flex-end;
width: 100%;
height: 100%;
}
}