10
10
// Core
11
11
* { box-sizing : border-box ; }
12
12
html { display : flex ; flex-direction : column ; height : 100% ; min-height : 100% ; }
13
+ html { font-size : 115% ; font-family : system-ui , geneva, tahoma , sans-serif ; } // override font-size percent to resize base font
13
14
body { width : 100% ; flex : 1 ; }
14
- body { font-size : 100% ; font-family : system-ui , geneva, tahoma , sans-serif ; } /* override font-size percent to resize base font */
15
15
body , h1 , h2 , h3 , h4 , h5 , h6 , p , figure , nav ul , nav ul li { padding : 0px ; margin : 0px ; }
16
16
h1 , h2 , h3 , h4 , h5 , h6 { letter-spacing : 0.04em ; margin-bottom : 0.2em ; }
17
17
section , header , figure { margin-bottom : 20px ; }
18
18
p , ul , ol { margin-bottom : 0.9em ; }
19
19
ul , ol { margin-top : 2px ; }
20
- ul li , ol li { font-size : 0.9 rem ; padding-left : 1.2em ; text-indent : -1.3em ; }
20
+ ul li , ol li { font-size : 0.9 em ; padding-left : 1.2em ; text-indent : -1.3em ; }
21
21
nav ul { list-style-type : none ; }
22
22
nav ul li { text-indent : 0px ; }
23
23
pre , code { font-family : menlo, consolas, monospace ; font-style : normal ; font-weight : bold ; line-height : 1.3em ; margin : 0px ; }
@@ -31,7 +31,7 @@ hr { border: none; border-top: 1px solid silver; }
31
31
sup , sub { font-size : 0.7rem ; }
32
32
iframe { border : none ; }
33
33
34
- /* Basic styling */
34
+ // Basic styling
35
35
body { max-width : 900px ; color : dimgray ; padding : 40px 15px ; margin : 0px auto ; }
36
36
body > header { text-align : center ; }
37
37
main { min-height : 300px ; }
@@ -43,14 +43,14 @@ main section aside.simple { background-color: transparent; border: none; padding
43
43
main section aside h2 { font-size : 1.1rem ; }
44
44
main section aside img { width : 100% ; max-width : 100% ; }
45
45
main section aside p :last-child { margin-bottom : 0px ; }
46
- section :after { content : " " ; display : table ; clear : both ; } /* a section with an aside will self clear */
46
+ section :after { content : " " ; display : table ; clear : both ; } // a section with an aside will self clear
47
47
body > footer { display : flex ; justify-content : space-between ; align-items : center ; clear : both ; text-align : center ; font-size : 0.9rem ; color : darkgray ; padding : 30px 0px ; }
48
- body > footer > div { min-width : 20% ; } /* centers middle child */
48
+ body > footer > div { min-width : 20% ; } // centers middle child
49
49
body > footer > div :first-child:last-child { width : 100% ; }
50
50
body > footer > div :first-child :not (:last-child ) { text-align : left ; }
51
51
body > footer > div :last-child :not (:first-child ) { text-align : right ; }
52
52
body > footer a img [alt= logo] { height : 50px ; }
53
- h1 { font-size : 2.6 rem ; font-family : Chango, system-ui , sans-serif ; }
53
+ h1 { font-size : 2.5 rem ; font-family : Chango, system-ui , sans-serif ; }
54
54
h2 { font-size : 1.5rem ; }
55
55
h3 { font-size : 1.2rem ; }
56
56
h4 { font-size : 0.9rem ; font-weight : normal ; text-transform : uppercase ; letter-spacing : 0.14em ; }
@@ -60,7 +60,7 @@ quoteblock:after { content: close-quote; }
60
60
i .font-icon { font-size : 1.5em ; }
61
61
[title] { cursor : help ; }
62
62
63
- /* Links */
63
+ // Links
64
64
a { color : dimgray ; text-decoration : none ; border-bottom : 1px dotted ; outline : 2px solid transparent ; transition : all 400ms ; }
65
65
a :visited { color : darkgray ; }
66
66
a :hover { color : white ; }
@@ -82,12 +82,12 @@ label { display: block; }
82
82
label > span :first-child { display : block ; }
83
83
input , textarea , select , fieldset > aside { width : 100% ; max-width : 25em ; font-size : 1.1em ; }
84
84
input , textarea { background-color : mintcream ; border : 1px solid silver ; border-radius : 5px ; padding : 0.3em ; }
85
- input :not ([type= checkbox]):not ([type= radio]), textarea { -webkit-appearance : none ; } /* ios inner shadow */
85
+ input :not ([type= checkbox]):not ([type= radio]), textarea { -webkit-appearance : none ; } // ios inner shadow
86
86
select { font-size : 1.1em ; }
87
87
input [type= number] { font-family : menlo, consolas, monospace ; text-align : right ; }
88
88
input [type= checkbox], input [type= radio] { width : auto ; margin : 0px 0.5em 0.2em 1.5em ; }
89
89
label :last-of-type input { margin-bottom : 1em ; }
90
- textarea { height : 4.1em ; } /* 3 lines */
90
+ textarea { height : 4.1em ; } // 3 lines
91
91
input , select , textarea { margin : 0px 0px 1em 0px ; }
92
92
input [type= range] { height : 0.7em ; padding : 0px ; margin : 0.5em 0px 1em 0px ; cursor : grab ; }
93
93
input [type= range]:active { cursor : grabbing ; }
@@ -352,7 +352,7 @@ body >header >#fork-me-container { //dynamically added wrapper element
352
352
pointer-events : auto ;
353
353
}
354
354
}
355
- @media (max-width : 667px ) { // selects iPhone 6/6s/7/8/SE(2020) landscape and anything narrower
355
+ @media (max-width : 667px ) { // selects iPhone 6/6s/7/8/SE2/SE3 landscape and anything narrower
356
356
body > header > #fork-me-container > a #fork-me { display : none }
357
357
body > header > #fork-me-container > i .font-icon { display : block }
358
358
}
@@ -413,11 +413,11 @@ img.popup-image + .popup-image-layer img { display: block; width: auto; height:
413
413
.info-rollover-msg { display : none ; }
414
414
415
415
// Mobile devices
416
- @media (max-width : 667px ) { // selects iPhone 6/6s/7/8/SE(2020) landscape and anything narrower
416
+ @media (max-width : 667px ) { // selects iPhone 6/6s/7/8/SE2/SE3 landscape and anything narrower
417
417
h1 { font-size : 2.0rem ; }
418
418
h1 + h2 { font-size : 1.3rem ; }
419
419
main section aside ,
420
- main section aside .left { float : none ; max-width : none ; text-align : center ; margin : 0px 0px 20px 0px ; }
420
+ main section aside .left { clear : both ; float : none ; max-width : none ; text-align : center ; margin : 0px 0px 20px 0px ; }
421
421
main section aside img { width : auto ; max-height : 200px }
422
422
body { padding : 20px 10px ; }
423
423
body > footer { flex-direction : column ; padding : 20px 2px ; }
0 commit comments