-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathCodeView.module.scss
More file actions
43 lines (38 loc) · 963 Bytes
/
CodeView.module.scss
File metadata and controls
43 lines (38 loc) · 963 Bytes
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
.codeView {
position: relative;
background: var(--color-neutral-surface-inset);
border-radius: var(--corner-radius-small);
overflow: hidden;
/* Fill parent container for consistent modal height */
height: 100%;
box-shadow: inset 0 2px 8px rgba(var(--color-neutral-shadow-raw) / 12%);
border: 1px solid var(--color-neutral-border);
}
.copyButton {
position: absolute !important;
top: var(--spacing-tight);
right: var(--spacing-tight);
width: 32px;
height: 32px;
padding: 0 !important;
z-index: 10;
color: var(--color-neutral-content-subtle);
& svg {
width: 20px;
height: 20px;
}
}
.listContainer {
height: 100%;
width: 100%;
padding: var(--spacing-base);
padding-right: 0;
}
.line {
font-family: var(--font-family-mono);
font-size: var(--font-size-body-smaller);
line-height: 20px;
white-space: pre;
color: var(--color-neutral-content-subtle);
padding-right: 40px; /* space for copy button */
}