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@use "../global-styles/variables.module.scss";
@use "../global-styles/fonts.scss";
.drawer-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.8);
}
.drawer-content {
position: fixed;
right: 0;
top: 5vh;
min-height: 40vh;
width: 50vw;
border-radius: variables.$spacing;
overflow: hidden;
margin-right: variables.$spacing;
border-width: 1px; /* Equivalent to border */
max-width: 50vw;
color: variables.$black;
background: variables.$paper;
margin: calc(2 * variables.$spacing);
.drawer-content-inner {
margin: calc(2 * variables.$spacing);
h4 {
margin: 0;
}
.drawer-code {
max-width: 100%;
max-height: 35vw;
border-radius: variables.$spacing;
user-select: text;
flex-wrap: wrap;
code {
white-space: pre-wrap !important;
}
}
.drawer-content-close {
}
}
}