Skip to content

Commit 336f55f

Browse files
committed
Switch to python-based sass compiler
1 parent e54efdd commit 336f55f

File tree

4 files changed

+224
-3
lines changed

4 files changed

+224
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ SCSS = coverage/htmlfiles/style.scss
4343

4444
css: $(CSS) ## Compile .scss into .css.
4545
$(CSS): $(SCSS)
46-
sass --style=compact --sourcemap=none --no-cache $(SCSS) $@
46+
pysassc --style=compact $(SCSS) $@
4747
cp $@ tests/gold/html/styled
4848

4949
LINTABLE = coverage tests igor.py setup.py __main__.py

coverage/htmlfiles/style.css

Lines changed: 111 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
html, body, h1, h2, h3, p, table, td, th { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; }
66

77
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 1em; background: #fff; color: #000; }
8+
89
@media (prefers-color-scheme: dark) { body { background: #1e1e1e; } }
10+
911
@media (prefers-color-scheme: dark) { body { color: #eee; } }
1012

1113
html > body { font-size: 16px; }
@@ -23,17 +25,21 @@ table tr.hidden { display: none !important; }
2325
p#no_rows { display: none; font-size: 1.2em; }
2426

2527
a.nav { text-decoration: none; color: inherit; }
28+
2629
a.nav:hover { text-decoration: underline; color: inherit; }
2730

2831
#header { background: #f8f8f8; width: 100%; border-bottom: 1px solid #eee; }
32+
2933
@media (prefers-color-scheme: dark) { #header { background: black; } }
34+
3035
@media (prefers-color-scheme: dark) { #header { border-color: #333; } }
3136

3237
.indexfile #footer { margin: 1rem 3rem; }
3338

3439
.pyfile #footer { margin: 1rem 1rem; }
3540

3641
#footer .content { padding: 0; color: #666; font-style: italic; }
42+
3743
@media (prefers-color-scheme: dark) { #footer .content { color: #aaa; } }
3844

3945
#index { margin: 1rem 0 0 3rem; }
@@ -43,129 +49,233 @@ a.nav:hover { text-decoration: underline; color: inherit; }
4349
h1 { font-size: 1.25em; display: inline-block; }
4450

4551
#filter_container { float: right; margin: 0 2em 0 0; }
52+
4653
#filter_container input { width: 10em; padding: 0.2em 0.5em; border: 2px solid #ccc; background: #fff; color: #000; }
54+
4755
@media (prefers-color-scheme: dark) { #filter_container input { border-color: #444; } }
56+
4857
@media (prefers-color-scheme: dark) { #filter_container input { background: #1e1e1e; } }
58+
4959
@media (prefers-color-scheme: dark) { #filter_container input { color: #eee; } }
60+
5061
#filter_container input:focus { border-color: #007acc; }
5162

5263
h2.stats { margin-top: .5em; font-size: 1em; }
5364

5465
.stats button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; color: inherit; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; }
66+
5567
@media (prefers-color-scheme: dark) { .stats button { border-color: #444; } }
68+
5669
.stats button:active, .stats button:focus { outline: 2px dashed #007acc; }
70+
5771
.stats button:active, .stats button:focus { outline: 2px dashed #007acc; }
72+
5873
.stats button.run { background: #eeffee; }
74+
5975
@media (prefers-color-scheme: dark) { .stats button.run { background: #373d29; } }
76+
6077
.stats button.run.show_run { background: #dfd; border: 2px solid #00dd00; margin: 0 .1em; }
78+
6179
@media (prefers-color-scheme: dark) { .stats button.run.show_run { background: #373d29; } }
80+
6281
.stats button.mis { background: #ffeeee; }
82+
6383
@media (prefers-color-scheme: dark) { .stats button.mis { background: #4b1818; } }
84+
6485
.stats button.mis.show_mis { background: #fdd; border: 2px solid #ff0000; margin: 0 .1em; }
86+
6587
@media (prefers-color-scheme: dark) { .stats button.mis.show_mis { background: #4b1818; } }
88+
6689
.stats button.exc { background: #f7f7f7; }
90+
6791
@media (prefers-color-scheme: dark) { .stats button.exc { background: #333; } }
92+
6893
.stats button.exc.show_exc { background: #eee; border: 2px solid #808080; margin: 0 .1em; }
94+
6995
@media (prefers-color-scheme: dark) { .stats button.exc.show_exc { background: #333; } }
96+
7097
.stats button.par { background: #ffffd5; }
98+
7199
@media (prefers-color-scheme: dark) { .stats button.par { background: #650; } }
100+
72101
.stats button.par.show_par { background: #ffa; border: 2px solid #dddd00; margin: 0 .1em; }
102+
73103
@media (prefers-color-scheme: dark) { .stats button.par.show_par { background: #650; } }
74104

75-
#source p .annotate.long, .help_panel { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; color: #333; padding: .25em .5em; }
105+
.help_panel, #source p .annotate.long { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; color: #333; padding: .25em .5em; }
76106

77107
#source p .annotate.long { white-space: normal; float: right; top: 1.75em; right: 1em; height: auto; }
78108

79109
#keyboard_icon { float: right; margin: 5px; cursor: pointer; }
80110

81111
.help_panel { padding: .5em; border: 1px solid #883; }
112+
82113
.help_panel .legend { font-style: italic; margin-bottom: 1em; }
114+
83115
.indexfile .help_panel { width: 20em; min-height: 4em; }
116+
84117
.pyfile .help_panel { width: 16em; min-height: 8em; }
85118

86119
#panel_icon { float: right; cursor: pointer; }
87120

88121
.keyhelp { margin: .75em; }
122+
89123
.keyhelp .key { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em .35em; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: bold; background: #eee; }
90124

91125
#source { padding: 1em 0 1em 3rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
126+
92127
#source p { position: relative; white-space: pre; }
128+
93129
#source p * { box-sizing: border-box; }
130+
94131
#source p .n { float: left; text-align: right; width: 3rem; box-sizing: border-box; margin-left: -3rem; padding-right: 1em; color: #999; }
132+
95133
@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }
134+
96135
#source p .n a { text-decoration: none; color: #999; }
136+
97137
@media (prefers-color-scheme: dark) { #source p .n a { color: #777; } }
138+
98139
#source p .n a:hover { text-decoration: underline; color: #999; }
140+
99141
@media (prefers-color-scheme: dark) { #source p .n a:hover { color: #777; } }
142+
100143
#source p.highlight .n { background: #ffdd00; }
144+
101145
#source p .t { display: inline-block; width: 100%; box-sizing: border-box; margin-left: -.5em; padding-left: 0.3em; border-left: 0.2em solid #fff; }
146+
102147
@media (prefers-color-scheme: dark) { #source p .t { border-color: #1e1e1e; } }
148+
103149
#source p .t:hover { background: #f2f2f2; }
150+
104151
@media (prefers-color-scheme: dark) { #source p .t:hover { background: #282828; } }
152+
105153
#source p .t:hover ~ .r .annotate.long { display: block; }
154+
106155
#source p .t .com { color: #008000; font-style: italic; line-height: 1px; }
156+
107157
@media (prefers-color-scheme: dark) { #source p .t .com { color: #6A9955; } }
158+
108159
#source p .t .key { font-weight: bold; line-height: 1px; }
160+
109161
#source p .t .str { color: #0451A5; }
162+
110163
@media (prefers-color-scheme: dark) { #source p .t .str { color: #9CDCFE; } }
164+
111165
#source p.mis .t { border-left: 0.2em solid #ff0000; }
166+
112167
#source p.mis.show_mis .t { background: #fdd; }
168+
113169
@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t { background: #4b1818; } }
170+
114171
#source p.mis.show_mis .t:hover { background: #f2d2d2; }
172+
115173
@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t:hover { background: #532323; } }
174+
116175
#source p.run .t { border-left: 0.2em solid #00dd00; }
176+
117177
#source p.run.show_run .t { background: #dfd; }
178+
118179
@media (prefers-color-scheme: dark) { #source p.run.show_run .t { background: #373d29; } }
180+
119181
#source p.run.show_run .t:hover { background: #d2f2d2; }
182+
120183
@media (prefers-color-scheme: dark) { #source p.run.show_run .t:hover { background: #404633; } }
184+
121185
#source p.exc .t { border-left: 0.2em solid #808080; }
186+
122187
#source p.exc.show_exc .t { background: #eee; }
188+
123189
@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t { background: #333; } }
190+
124191
#source p.exc.show_exc .t:hover { background: #e2e2e2; }
192+
125193
@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t:hover { background: #3c3c3c; } }
194+
126195
#source p.par .t { border-left: 0.2em solid #dddd00; }
196+
127197
#source p.par.show_par .t { background: #ffa; }
198+
128199
@media (prefers-color-scheme: dark) { #source p.par.show_par .t { background: #650; } }
200+
129201
#source p.par.show_par .t:hover { background: #f2f2a2; }
202+
130203
@media (prefers-color-scheme: dark) { #source p.par.show_par .t:hover { background: #6d5d0c; } }
204+
131205
#source p .r { position: absolute; top: 0; right: 2.5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
206+
132207
#source p .annotate { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; color: #666; padding-right: .5em; }
208+
133209
@media (prefers-color-scheme: dark) { #source p .annotate { color: #ddd; } }
210+
134211
#source p .annotate.short:hover ~ .long { display: block; }
212+
135213
#source p .annotate.long { width: 30em; right: 2.5em; }
214+
136215
#source p input { display: none; }
216+
137217
#source p input ~ .r label.ctx { cursor: pointer; border-radius: .25em; }
218+
138219
#source p input ~ .r label.ctx::before { content: "▶ "; }
220+
139221
#source p input ~ .r label.ctx:hover { background: #d5f7ff; color: #666; }
222+
140223
#source p input:checked ~ .r label.ctx { background: #aaeeff; color: #666; border-radius: .75em .75em 0 0; padding: 0 .5em; margin: -.25em 0; }
224+
141225
#source p input:checked ~ .r label.ctx::before { content: "▼ "; }
226+
142227
#source p input:checked ~ .ctxs { padding: .25em .5em; overflow-y: scroll; max-height: 10.5em; }
228+
143229
#source p label.ctx { color: #999; display: inline-block; padding: 0 .5em; font-size: .8333em; }
230+
144231
@media (prefers-color-scheme: dark) { #source p label.ctx { color: #777; } }
232+
145233
#source p .ctxs { display: block; max-height: 0; overflow-y: hidden; transition: all .2s; padding: 0 .5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; white-space: nowrap; background: #aaeeff; border-radius: .25em; margin-right: 1.75em; }
234+
146235
#source p .ctxs span { display: block; text-align: right; }
147236

148237
#index { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 0.875em; }
238+
149239
#index table.index { margin-left: -.5em; }
240+
150241
#index td, #index th { text-align: right; width: 5em; padding: .25em .5em; border-bottom: 1px solid #eee; }
242+
151243
@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } }
244+
152245
#index td.name, #index th.name { text-align: left; width: auto; }
246+
153247
#index th { font-style: italic; color: #333; cursor: pointer; }
248+
154249
@media (prefers-color-scheme: dark) { #index th { color: #ddd; } }
250+
155251
#index th:hover { background: #eee; }
252+
156253
@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } }
254+
157255
#index th.headerSortDown, #index th.headerSortUp { white-space: nowrap; background: #eee; }
256+
158257
@media (prefers-color-scheme: dark) { #index th.headerSortDown, #index th.headerSortUp { background: #333; } }
258+
159259
#index th.headerSortDown:after { content: " ↑"; }
260+
160261
#index th.headerSortUp:after { content: " ↓"; }
262+
161263
#index td.name a { text-decoration: none; color: inherit; }
264+
162265
#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; }
266+
163267
#index tr.file:hover { background: #eee; }
268+
164269
@media (prefers-color-scheme: dark) { #index tr.file:hover { background: #333; } }
270+
165271
#index tr.file:hover td.name { text-decoration: underline; color: inherit; }
166272

167273
#scroll_marker { position: fixed; right: 0; top: 0; width: 16px; height: 100%; background: #fff; border-left: 1px solid #eee; will-change: transform; }
274+
168275
@media (prefers-color-scheme: dark) { #scroll_marker { background: #1e1e1e; } }
276+
169277
@media (prefers-color-scheme: dark) { #scroll_marker { border-color: #333; } }
278+
170279
#scroll_marker .marker { background: #ccc; position: absolute; min-height: 3px; width: 100%; }
280+
171281
@media (prefers-color-scheme: dark) { #scroll_marker .marker { background: #444; } }

requirements/dev.pip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ readme_renderer==26.0
2121
# for kitting.
2222
requests==2.24.0
2323
twine==3.2.0
24+
libsass==0.20.0

0 commit comments

Comments
 (0)