-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
136 lines (111 loc) · 2.53 KB
/
main.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
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
:root {
--bg-color: white;
--dark-text-color: black;
--light-text-color: white;
--edit-code-bg: hsl(44, 87%, 94%);
--view-code-bg: hsl(44, 50%, 97%);
--border-color: rgba(0, 0, 0, 1);
--border-radius: 6px;
}
.column-1 {
width: 100%;
padding: 0 0.5em;
}
.column-2 {
width: 50%;
padding: 0 0.5em;
}
.row {
display: flex;
}
.center {
margin: 0 auto;
}
.compact {
width: max-content;
}
#editor-header {
position: sticky;
top: 0;
z-index: 10;
background: var(--bg-color);
border: 0.8px solid var(--border-color);
border-radius: var(--border-radius);
padding: 0.3em;
scrollbar-width: thin;
}
#editor-header * {
margin: 0.2em;
}
#passes {
overflow: auto;
white-space: nowrap;
box-shadow: inset 0 2px 2px 0 rgba(0, 0, 0, 0.14);
border: 0.5px solid var(--border-color);
border-radius: var(--border-radius);
padding: 0.2em;
}
#compile {
margin-left: auto;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.editor pre {
font-family: 'Source Code Pro', monospace;
font-size: 1em;
font-weight: 400;
/* height: 500px; */
letter-spacing: normal;
line-height: 20px;
white-space: pre;
padding: 0.4em 0.4em;
border: 0.7px solid var(--border-color);
width: 80%;
overflow: auto;
}
pre.right {
padding-left: 0.4em;
border-radius: 0 var(--border-radius) var(--border-radius) 0;
background: var(--view-code-bg);
border-left: 0.5px dashed rgba(0, 0, 0, 0.7);
z-index: 1;
}
pre.left {
padding-right: 0.1em;
border-radius: var(--border-radius) 0 0 var(--border-radius);
background: var(--edit-code-bg);
border-right: unset;
z-index: 2;
box-shadow: inset 0 2px 2px 0 rgba(0, 0, 0, 0.14);
}
.editor {
border-radius: 6px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
padding: 0.3em;
}
.token.diff-addition {
background: hsla(120,100%,75%,0.4);;
}
.token.diff-deletion {
background: hsla(0,100%,75%,0.4);;
}
span.line.diff-addition {
background: hsla(120,100%,75%,0.2);;
}
span.line.diff-deletion {
background: hsla(0,100%,75%,0.2);;
}
span.line {
width: 100%;
display: block;
}
/* span.line:nth-child(2n+1) { */
/* background-color: hsl(44, 87%, 92%); */
/* } */