Skip to content

Commit e91138b

Browse files
committed
Larger base font size
1 parent bebe9ad commit e91138b

File tree

7 files changed

+21
-20
lines changed

7 files changed

+21
-20
lines changed

src/css/layouts/color-blocks.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ body >footer a:hover {
133133
outline: none;
134134
}
135135
/* Mobile devices */
136-
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE(2020) landscape and anything narrower */
136+
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE2/SE3 landscape and anything narrower */
137137
body >header { text-align: center; }
138138
body >header >aside { float: none; margin: 0px; }
139139
body >header.forkable >aside { text-align: left; }

src/css/layouts/letterbox.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ main >cite {
8181
opacity: 0.6;
8282
}
8383
/* Mobile devices */
84-
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE(2020) landscape and anything narrower */
84+
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE2/SE3 landscape and anything narrower */
8585
main >section+section { padding: 10px; }
8686
}
8787
/******************************************************************************/

src/css/layouts/modern.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ body >footer >div >address >p >span >a {
170170
body >footer >small {
171171
color: silver;
172172
}
173-
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE(2020) landscape and anything narrower */
173+
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE2/SE3 landscape and anything narrower */
174174
body >header { padding-top: 40px; }
175175
body >header >h2 { font-size: 1.2rem; }
176176
body >header >nav >a { margin: 0px 0px 5px 0px; }

src/css/layouts/modern.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
ul >li:nth-child(7) { font-weight: 700; }
3434
ul >li:nth-child(8) { font-weight: 800; }
3535
ul >li:nth-child(9) { font-weight: 900; }
36+
body >footer >div >figure >img { background-color: silver; }
3637
</style>
3738
<script defer src=https://cdn.jsdelivr.net/npm/jquery@3.6/dist/jquery.min.js></script>
3839
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@2.3/dist/dna-engine.min.js></script>
@@ -99,10 +100,10 @@ <h3>Font weights:</h3>
99100
<footer>
100101
<div>
101102
<figure>
102-
<img src=https://avatarfiles.alphacoders.com/153/153677.jpg alt=avatar>
103+
<img src=https://robohash.org/3 alt=avatar>
103104
</figure>
104105
<address>
105-
<b>The Purple Hair Club</b>
106+
<b>The Purple Robot Club</b>
106107
<p>
107108
<span>https://example.com</span>
108109
<span>contact@example.com</span>

src/css/layouts/neon.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ body.neon-image-6 { background-image: url(neon/supernova-nasagov.jpg); }
3434
body.neon-image-7 { background-image: url(neon/supernova-shock-lblgov.jpg); }
3535
body.neon-image-8 { background-image: url(neon/wind-tunnel-nasagov.jpg); }
3636
body {
37-
max-width: 750px;
37+
max-width: 850px;
3838
color: lime;
3939
background: black 20px 20px no-repeat fixed;
4040
background-size: 200px;
@@ -164,7 +164,7 @@ body >footer p {
164164
}
165165

166166
/* Mobile devices */
167-
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE(2020) landscape and anything narrower */
167+
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE2/SE3 landscape and anything narrower */
168168
main >section >h2 + aside,
169169
main >section >h3 + aside {
170170
margin-top: 10px;

src/css/layouts/vertical-bars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ body >footer #social-buttons {
6565
}
6666

6767
/* Mobile devices */
68-
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE(2020) landscape and anything narrower */
68+
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE2/SE3 landscape and anything narrower */
6969
body { border: none; padding: 5px 15px; }
7070
body >header h1 { font-size: 1.7rem; }
7171
}

src/css/reset.less

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
// Core
1111
* { box-sizing: border-box; }
1212
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
1314
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 */
1515
body, h1, h2, h3, h4, h5, h6, p, figure, nav ul, nav ul li { padding: 0px; margin: 0px; }
1616
h1, h2, h3, h4, h5, h6 { letter-spacing: 0.04em; margin-bottom: 0.2em; }
1717
section, header, figure { margin-bottom: 20px; }
1818
p, ul, ol { margin-bottom: 0.9em; }
1919
ul, ol { margin-top: 2px; }
20-
ul li, ol li { font-size: 0.9rem; padding-left: 1.2em; text-indent: -1.3em; }
20+
ul li, ol li { font-size: 0.9em; padding-left: 1.2em; text-indent: -1.3em; }
2121
nav ul { list-style-type: none; }
2222
nav ul li { text-indent: 0px; }
2323
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; }
3131
sup, sub { font-size: 0.7rem; }
3232
iframe { border: none; }
3333

34-
/* Basic styling */
34+
// Basic styling
3535
body { max-width: 900px; color: dimgray; padding: 40px 15px; margin: 0px auto; }
3636
body >header { text-align: center; }
3737
main { min-height: 300px; }
@@ -43,14 +43,14 @@ main section aside.simple { background-color: transparent; border: none; padding
4343
main section aside h2 { font-size: 1.1rem; }
4444
main section aside img { width: 100%; max-width: 100%; }
4545
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
4747
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
4949
body >footer >div:first-child:last-child { width: 100%; }
5050
body >footer >div:first-child:not(:last-child) { text-align: left; }
5151
body >footer >div:last-child:not(:first-child) { text-align: right; }
5252
body >footer a img[alt=logo] { height: 50px; }
53-
h1 { font-size: 2.6rem; font-family: Chango, system-ui, sans-serif; }
53+
h1 { font-size: 2.5rem; font-family: Chango, system-ui, sans-serif; }
5454
h2 { font-size: 1.5rem; }
5555
h3 { font-size: 1.2rem; }
5656
h4 { font-size: 0.9rem; font-weight: normal; text-transform: uppercase; letter-spacing: 0.14em; }
@@ -60,7 +60,7 @@ quoteblock:after { content: close-quote; }
6060
i.font-icon { font-size: 1.5em; }
6161
[title] { cursor: help; }
6262

63-
/* Links */
63+
// Links
6464
a { color: dimgray; text-decoration: none; border-bottom: 1px dotted; outline: 2px solid transparent; transition: all 400ms; }
6565
a:visited { color: darkgray; }
6666
a:hover { color: white; }
@@ -82,12 +82,12 @@ label { display: block; }
8282
label >span:first-child { display: block; }
8383
input, textarea, select, fieldset >aside { width: 100%; max-width: 25em; font-size: 1.1em; }
8484
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
8686
select { font-size: 1.1em; }
8787
input[type=number] { font-family: menlo, consolas, monospace; text-align: right; }
8888
input[type=checkbox], input[type=radio] { width: auto; margin: 0px 0.5em 0.2em 1.5em; }
8989
label:last-of-type input { margin-bottom: 1em; }
90-
textarea { height: 4.1em; } /* 3 lines */
90+
textarea { height: 4.1em; } //3 lines
9191
input, select, textarea { margin: 0px 0px 1em 0px; }
9292
input[type=range] { height: 0.7em; padding: 0px; margin: 0.5em 0px 1em 0px; cursor: grab; }
9393
input[type=range]:active { cursor: grabbing; }
@@ -352,7 +352,7 @@ body >header >#fork-me-container { //dynamically added wrapper element
352352
pointer-events: auto;
353353
}
354354
}
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
356356
body >header >#fork-me-container >a#fork-me { display: none }
357357
body >header >#fork-me-container >i.font-icon { display: block }
358358
}
@@ -413,11 +413,11 @@ img.popup-image + .popup-image-layer img { display: block; width: auto; height:
413413
.info-rollover-msg { display: none; }
414414

415415
// 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
417417
h1 { font-size: 2.0rem; }
418418
h1+h2 { font-size: 1.3rem; }
419419
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; }
421421
main section aside img { width: auto; max-height: 200px }
422422
body { padding: 20px 10px; }
423423
body >footer { flex-direction: column; padding: 20px 2px; }

0 commit comments

Comments
 (0)