-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
696 lines (670 loc) · 13.9 KB
/
style.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
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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
/* this CSS file is based on compiled CC0 licensed sass theme from https://github.com/pages-themes/slate v0.1.1 (commit 875d0c0 0 from 2018-04-11) */
/* this CSS file is GPLv3 licensed, see https://opensource.org/licenses/gpl-3.0.html for a license text */
/* style preview page for the original style: https://pages-themes.github.io/slate/ */
/* as of 2024-06-13 it may make sense to pull in
https://github.com/pages-themes/slate/commit/30f2cb9b2f2c2e45eb7c1a6da4def8a7829ff1c8
*/
/*
overall main change was increasing minimum text size
index of changes up to 2019-07-28:
- max-width of content set in cm rather px (search ".inner" for comment why I consider it desirable)
- increase text size to make it legible:
for big screens
- h2 size reduced from 32 to 28 px
- h5 size increased from 18 px to 20 px
- h6 size increased from 16 px to 19 px
- text size increased from 16 px to 18 px
for small screens
- h4 size increased from 18 px to 19 px
- h5 size increased from 14 px to 18 px
- h6 size increased from 12 px to 17 px
- text size increased from 14 px to 16 px
- code size increased from 11 px to 16 px
for very small screens
- h3 size increased from 18 px to 20 px
- h4 size increased from 16 px to 19 px
- h5 size increased from 14 px to 18 px
- h6 size increased from 12 px to 17 px
- text size increased from 14 px to 16 px
- code size increased from 11 px to 16 px
- aded main navigation styling, inspired by https://css-tricks.com/flexbox-bar-navigation/
- drop dead code unused on my page (like "fork me" banner styling)
- added less-visible class for pale text
*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{
margin:0;
padding:0;
border:0;
font:inherit;
vertical-align:baseline
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{
display:block
}
.outer{
width:100%
}
.inner{
padding:20px 10px;
position:relative;
margin:0 auto;
max-width:22cm; /* coordinated with large_leaflet_interactive_map, leaflet_interactive_map_not_hiding_further_content, and img and indirectly with main-nav */
/*
usually desirable px was deliberately NOT used
yes, I know about https://www.w3.org/Style/Examples/007/units.en.html
in this case usual justification for not using cm as unit on webpage does not apply,
as I am not interested in precise measurement, +-20% is perfectly OK
I want to achieve not applying margins on small screens, small as defined by
physical size, not in logical, real, or magical CSS pixels
so em, ex is useless as it depends on font size
px is useless as magical CSS px unit is "usually not related to physical centimeters"
% is obviously useless to measure width of screen that is available
so only units that are usually not recommended remain
*/
}
img {
max-width:21.7cm; /* to fit into a wrapper container, coordinated with large_leaflet_interactive_map, leaflet_interactive_map_not_hiding_further_content, .inner and img and indirectly with main-nav */
}
.main-nav {
max-width:30cm;
margin: auto;
}
#main_content_wrap{
background:#f2f2f2;
}
#main_content{
padding-top:40px
}
@media screen and (max-width: 1000px){
#main_content{
padding-top:20px
}
}
@media screen and (max-width: 640px){
#main_content{
padding-top:13px
}
}
@media screen and (max-width: 410px){
#main_content{
padding-top:5px
}
}
#footer_wrap{
background:#212121
}
ol,ul{
list-style:none
}
table{
border-collapse:collapse;
border-spacing:0
}
body{
box-sizing:border-box;
background:#f2f2f2;
font-size:18px;
font-family:'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
-webkit-font-smoothing:antialiased
}
h1,h2,h3,h4,h5,h6{
margin:10px 0;
font-weight:700;
color:#222222;
font-family:'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif;
letter-spacing:-1px
}
h1{
font-size:36px;
font-weight:700
}
h2{
padding-bottom:10px;
font-size:28px;
background:url("css_images/bg_hr.png") repeat-x bottom
}
h3{
font-size:24px
}
h4{
font-size:21px
}
h5{
font-size:20px
}
h6{
font-size:19px
}
p{
/* font-size set in body */
margin:10px 0 15px 0
}
@media screen and (max-width: 640px){
p{
margin:8px 0 12px 0
}
}
@media screen and (max-width: 410px){
p{
margin:7px 0 9px 0
}
}
footer p{
color:#f2f2f2
}
p.small{
font-size: 14px
}
a{
text-decoration:none;
color:#0F79D0;
text-shadow:none;
transition:color 0.5s ease;
transition:text-shadow 0.5s ease;
-webkit-transition:color 0.5s ease;
-webkit-transition:text-shadow 0.5s ease;
-moz-transition:color 0.5s ease;
-moz-transition:text-shadow 0.5s ease;
-o-transition:color 0.5s ease;
-o-transition:text-shadow 0.5s ease;
-ms-transition:color 0.5s ease;
-ms-transition:text-shadow 0.5s ease
}
a:hover,a:focus{
text-decoration:underline
}
footer a{
color:#F2F2F2;
text-decoration:underline
}
em,cite{
font-style:italic
}
strong{
font-weight:bold
}
img{
position:relative;
margin:0 auto;
}
img.wrapped_in_img_container {
margin: 0;
padding: 0;
}
img.image_with_frame, .framed, div.img_container{
border:1px solid #e0e0e0;
box-shadow:0 0 5px #e0e0e0;
-webkit-box-shadow:0 0 5px #e0e0e0;
-moz-box-shadow:0 0 5px #e0e0e0;
-o-box-shadow:0 0 5px #e0e0e0;
-ms-box-shadow:0 0 5px #e0e0e0;
padding: 5px 5px 5px 5px;
}
.img_container p {
font-size:16px;
margin: 0px 5px;
}
.img_container {
margin: 0;
}
pre,code{
color:#222;
background-color:#fff;
font-family:Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
font-size:14px;
border-radius:2px;
-moz-border-radius:2px;
-webkit-border-radius:2px;
box-shadow:0 0 10px rgba(0,0,0,0.1);
}
pre{
padding:10px;
overflow:auto
}
code{
padding:3px;
margin:0 3px;
}
pre code{
display:block;
box-shadow:none
}
blockquote{
color:#666;
margin-bottom:20px;
padding:0 0 0 20px;
border-left:3px solid #bbb
}
ul,ol,dl{
margin-bottom:15px
}
ul,ol{
list-style-position:inside;
padding-left:20px
}
ul{
list-style:disc;
}
ol{
list-style:decimal;
}
dl dt{
font-weight:bold
}
dl dd{
padding-left:20px;
font-style:italic
}
dl p{
padding-left:20px;
font-style:italic
}
hr{
height:1px;
margin-bottom:5px;
border:none;
background:url("css_images/bg_hr.png") repeat-x center
}
table{
border:1px solid #373737;
margin-bottom:20px;
text-align:left
}
th{
font-family:'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding:10px;
background:#373737;
color:#fff;
position: sticky;
top: 0px
}
td{
padding:10px;
border:1px solid #373737
}
form{
background:#f2f2f2;
padding:20px
}
.less-visible{
color: #888
}
@media screen and (max-width: 992px){
img{
max-width:100%
}
}
@media screen and (max-width: 640px){
body{
font-size:16px
}
.inner{
max-width:100%
}
#project_title{
font-size:32px
}
h1{
font-size:28px
}
h2{
font-size:24px
}
h3{
font-size:21px
}
h4{
font-size:19px
}
h5{
font-size:18px
}
h6{
font-size:17px
}
code,pre{
font-size:16px
}
}
@media screen and (max-width: 410px){
body{
font-size:16px
}
.inner{
max-width:100%
}
#project_title{
font-size:28px
}
h1{
font-size:24px
}
h2{
font-size:21px
}
h3{
font-size:20px
}
h4{
font-size:19px
}
h5{
font-size:18px
}
h6{
font-size:17px
}
code,pre{
min-width:240px;
max-width:100%;
font-size:16px
}
}
/* main navigation - see changelog at the top for source of the inspiration */
.main-nav {
background: #eee;
}
.main-nav li {
flex: 1 1 120px;
}
.main-nav ul {
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
list-style: none;
}
.main-nav a {
max-width: 500000px; /*TODO HACK without this NOP hover background styling breaks - and background area starts to mismatch the text area */
padding: 1.25rem 0.5rem;
font-size: 1.6rem;
font-weight: bold;
text-decoration: none;
display: flex;
justify-content: center;
color: #333;
}
.main-nav a:hover, .main-nav a:focus {
background: #ccc;
color: black;
}
.main-nav a.active {
background: #aaa;
}
@media (min-width: 1000px) {
.main-nav a {
font-size: 2rem;
}
}
@media (max-width: 640px) {
.main-nav a {
padding: 1rem 0.4rem;
font-size: 1.4rem;
}
}
.full_size_leaflet_interactive_map {
max-width: 100%;
width: 100vw;
height: 100vh;
margin: auto;
}
.large_leaflet_interactive_map {
max-width: 22cm; /* coordinated with leaflet_interactive_map_not_hiding_further_content, .inner and img and indirectly with main-nav */
width: 80vw; /*
it is necessary to leave enough space on sides to allow scrolling through this section of website.
80% of viewport is nicely becoming not relevant on larger screens, as map will simply fill entire space between margins :)
*/
height: 90vh;
margin: auto;
}
.leaflet_interactive_map_not_hiding_further_content {
max-width: 22cm; /* coordinated with large_leaflet_interactive_map, .inner and img and indirectly with main-nav */
width: 80vw; /*
it is necessary to leave enough space on sides to allow scrolling through this section of website.
80% of viewport is nicely becoming not relevant on larger screens, as map will simply fill entire space between margins :)
*/
height: 50vh;
margin: auto;
}
/*
interactive_map_collapse_switch is a way to pass information from CSS to JS
on page load JS will read it and collapse map switch if content is set to 'true'
it is hacky, but still better than JS manipulating style based on rules set in a completely
different place
note that div and JS code needs to be placed manually :(
if there is a smarter way to do this, let me know
https://github.com/matkoniecz/mapsaregreat.com/issues
*/ #leaflet_interactive_map_collapse_switch::after {
display: none;
content: 'true';
}
@media (min-width: 600px) {
#leaflet_interactive_map_collapse_switch::after {
display: none;
content: 'false';
}
}
/*
why?
generated SVG may be transparent, in such cases it is better to show them on white background
not website background
*/
.generated_svg_map_within {
background-color: white;
}
/* highlight rules require formatted HTML as generated by Jekyll
see https://github.com/jekyll/jekyll/blob/035ea729ff5668dfc96e7f56a86d214e5a633291/lib/jekyll/tags/highlight.rb */
.highlight table td{
padding:5px
}
.highlight table pre{
margin:0
}
.highlight .cm{
color:#777772;
font-style:italic
}
.highlight .cp{
color:#797676;
font-weight:bold
}
.highlight .c1{
color:#777772;
font-style:italic
}
.highlight .cs{
color:#797676;
font-weight:bold;
font-style:italic
}
.highlight .c,.highlight .cd{
color:#777772;
font-style:italic
}
.highlight .err{
color:#a61717;
background-color:#e3d2d2
}
.highlight .gd{
color:#000000;
background-color:#ffdddd
}
.highlight .ge{
color:#000000;
font-style:italic
}
.highlight .gr{
color:#aa0000
}
.highlight .gh{
color:#797676
}
.highlight .gi{
color:#000000;
background-color:#ddffdd
}
.highlight .go{
color:#888888
}
.highlight .gp{
color:#555555
}
.highlight .gs{
font-weight:bold
}
.highlight .gu{
color:#aaaaaa
}
.highlight .gt{
color:#aa0000
}
.highlight .kc{
color:#000000;
font-weight:bold
}
.highlight .kd{
color:#000000;
font-weight:bold
}
.highlight .kn{
color:#000000;
font-weight:bold
}
.highlight .kp{
color:#000000;
font-weight:bold
}
.highlight .kr{
color:#000000;
font-weight:bold
}
.highlight .kt{
color:#445588;
font-weight:bold
}
.highlight .k,.highlight .kv{
color:#000000;
font-weight:bold
}
.highlight .mf{
color:#009999
}
.highlight .mh{
color:#009999
}
.highlight .il{
color:#009999
}
.highlight .mi{
color:#009999
}
.highlight .mo{
color:#009999
}
.highlight .m,.highlight .mb,.highlight .mx{
color:#009999
}
.highlight .sb{
color:#d14
}
.highlight .sc{
color:#d14
}
.highlight .sd{
color:#d14
}
.highlight .s2{
color:#d14
}
.highlight .se{
color:#d14
}
.highlight .sh{
color:#d14
}
.highlight .si{
color:#d14
}
.highlight .sx{
color:#d14
}
.highlight .sr{
color:#009926
}
.highlight .s1{
color:#d14
}
.highlight .ss{
color:#990073
}
.highlight .s{
color:#d14
}
.highlight .na{
color:#008080
}
.highlight .bp{
color:#797676
}
.highlight .nb{
color:#0086B3
}
.highlight .nc{
color:#445588;
font-weight:bold
}
.highlight .no{
color:#008080
}
.highlight .nd{
color:#3c5d5d;
font-weight:bold
}
.highlight .ni{
color:#800080
}
.highlight .ne{
color:#990000;
font-weight:bold
}
.highlight .nf{
color:#990000;
font-weight:bold
}
.highlight .nl{
color:#990000;
font-weight:bold
}
.highlight .nn{
color:#555555
}
.highlight .nt{
color:#000080
}
.highlight .vc{
color:#008080
}
.highlight .vg{
color:#008080
}
.highlight .vi{
color:#008080
}
.highlight .nv{
color:#008080
}
.highlight .ow{
color:#000000;
font-weight:bold
}
.highlight .o{
color:#000000;
font-weight:bold
}
.highlight .w{
color:#bbbbbb
}
.highlight{
background-color:#f8f8f8
}