blob: b9c061400166f9e618bb74b7597473bb1b892669 (
plain) (
blame)
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
|
#sideMenu {
backdrop-filter: blur(1rem);
-webkit-backdrop-filter: blur(1rem);
background-color: color-mix(in srgb, var(--backgroundColour), transparent 50%);
box-shadow: 0 0 1rem color-mix(in srgb, black, transparent 50%);;
display: flex;
flex-direction: column;
gap: 1rem;
height: calc(100vh - var(--hamburgerWidth) - 3rem);
justify-content: space-between;
left: 100%;
overflow: scroll;
padding: 1rem;
position: absolute;
top: calc(var(--hamburgerWidth) + 2rem);
transition: left $slideDuration;
width: 100vw;
z-index: 255;
&.visible {
left: 0;
}
@media (orientation: landscape) and (pointer: fine) {
border-bottom-left-radius: 1rem;
border-top-left-radius: 1rem;
width: 50vw;
&.visible {
left: 50%;
}
}
@media (pointer: coarse) {
border-style: solid;
border-width: $separatorWidth;
font-size: 2em;
}
div.links {
display: flex;
gap: 1rem;
@media (pointer: coarse) {
flex-direction: column;
}
section {
$gap: 0.25rem;
display: flex;
flex-direction: column;
gap: $gap;
p {
text-align: center;
&::after {
background-color: var(--textColour);
border-radius: calc($separatorWidth / 2);
content: "";
display: block;
height: $separatorWidth;
margin-top: $gap;
width: 100%;
}
@media (pointer: coarse) {
&::before {
background-color: var(--textColour);
border-radius: calc($separatorWidth / 2);
content: "";
display: block;
height: $separatorWidth;
margin-top: $gap;
width: 100%;
}
}
}
}
}
#themeToggler {
align-self: center;
}
}
|