-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.styl
300 lines (241 loc) · 5.75 KB
/
index.styl
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
lsm-8-color = orchid
lsm-16-color = darkorchid
alu-8-color = limegreen
alu-16-color = seagreen
rsb-8-color = deepskyblue
control-br-color = tomato
control-misc-color = lightsalmon
default-background = snow
pre, table.opcode, div.sample-instruction
font-size: 0.7rem
#titlecard
text-align: center
input, select
background-color: default-background
color: rgb(34, 34, 34)
border: 1px solid grey
fill: default-background
flood-color: default-background
stop-coor: default-background
border-radius: 2px
box-shadow: none
table.opcode
font-family: 'Ubuntu Mono', monospace
table.opcode
position: relative
table-layout: fixed
width: 100%
min-width: 75em
margin-bottom: 1em
background-color: black
border-spacing: 0px;
border-left: 1px solid black
caption
font-size: 1rem
text-align: left
font-family: 'KoHo', sans-serif
tr
>th
padding: 0.8em
&:first-child
width: 3em
>td
text-align: center
padding: 0
th, td
border-bottom: 1px solid black;
border-right: 1px solid black;
thead
width: 100%
&>tr
> th
border-top: 1px solid black;
&:nth-of-type(odd)>th
background-color: lightgrey
&>th:not(:first-child)
position: sticky
top: 0px
z-index: 1
padding 0.8em 0.3em;
tbody>tr
&:nth-of-type(even)>th
background-color: lightgrey
&:nth-of-type(odd)>th
background-color: rgb(245, 245, 245)
&>th
position: sticky
left: 0px
z-index: 1
:root {
background-color: default-background
font-family: 'KoHo', sans-serif
font-size: 16px
color: #222
}
h1
font-size: 1.25rem
#floating-box-container
z-index: 100
position: fixed
top: 0%
left: 0%
width: 100%
height: 100%
background-color: darkgrey
background-color: rgba(169,169,169, .6)
#floating-box {
position: fixed
width: 80%
left: 10%
height: 100%;
@media screen and (min-width: 30em) and (max-width: 48em) {
width: 24em
left: 50%
transform: translateX(-50%)
}
@media screen and (min-width: 48em) {
left: 25%
width: 50%
}
@media screen and (min-height: 18em) and (max-height: 30em) {
height: 18em
top: 50%
transform: translateY(-50%)
}
@media screen and (min-height: 30em) {
top: 20%
height: 60%
}
background-color: default-background
padding: 0
font-family: 'Ubuntu Mono', monospace
overflow: auto
}
opcode-coloring(color)
$lightend = lighten(color, 40%);
background-color: $lightend
&:not(.unused):hover
background-color: lighten($lightend, 25%)
&::before
background-color: color
td.opcode
background-color: rgb(237,237,237)
position: relative
background-clip: padding-box
-webkit-user-select: none
&::before
position: absolute
left: 0
top: 0
bottom: 0
width: 0.7em
background-color: slategray
content: ""
> div
padding: 0.8em 0.4em 0.8em 0.75em
> div
overflow-wrap: break-word;
display: inline;
&.lsm
&.x8
opcode-coloring(lsm-8-color)
&.x16
opcode-coloring(lsm-16-color)
&.alu
&.x8
opcode-coloring(alu-8-color)
&.x16
opcode-coloring(alu-16-color)
&.x8.rsb
opcode-coloring(rsb-8-color)
&.control
&.misc
opcode-coloring(control-misc-color)
&.br
opcode-coloring(control-br-color)
td.opcode.unused
background-color: #c8cdd1
td.opcode.hidden
visibility: hidden
code
background-color: rgb(230, 230, 230)
font-family: 'Ubuntu Mono', monospace
header
margin: 0 1em 0.5em 1em
#glossary
>dl
>dt
font-weight: bold
padding-bottom: 0.5em
.header-section
margin: 1em 1em 0.5em 1em
dl.groups, ul.groups
list-style: none;
>li,>dt
&::before
content: "■"
padding-right: 1em;
color: orchid;
&.lsm
&.x8::before
color: lsm-8-color
&.x16::before
color: lsm-16-color
&.alu
&.x8::before
color: alu-8-color
&.x16::before
color: alu-16-color
&.x8.rsb::before
color: rsb-8-color
&.control
&.misc::before
color: control-misc-color
&.br::before
color: control-br-color
dl.sameline
display: grid;
grid-template-columns: max-content auto auto
dt
grid-column-start: 1
a
color: darkcyan;
&.self-link:not(:hover)
color: rgba(darkcyan, 0.5);
.floating-grid-container
display: grid
grid-template-columns: 1fr 1fr
grid-template-rows: auto auto
.name
grid-area: 1 / 1 / 1 / 3
justify-self: center
text-align: center
margin: 0.5em
.data-column
justify-self: start
grid-area: 2 / 1
margin: 0.5em
.timing-column
justify-self: end
grid-area: 2 / 2
margin: 0.5em
.flag-table
caption
margin-top: 1em
th
text-align: left
margin-right: 0.5em
margin-bottom: 1em;
.sample-instruction
display: inline-block;
border: 1pt solid black;
font-family: 'Ubuntu Mono', monospace;
text-align: center;
padding: 0.5em 1em
margin: 1em
pre
font-family: 'Ubuntu Mono', monospace;
#table-controls
display: inline-block
>*
margin: 0em 1em;