🎨 Use rem units and one footer text size 🎨

Replace every px length with rem (em in media queries) at the 16px root so rendering is unchanged but scales with user font size. Where the footer used fs-4 or fs-5 (oversized and inconsistent) it now uses one .footer-custom size of 0.875rem.

- wwwroot/css/bs.plain.css: convert px lengths to rem/em
- wwwroot/css/cookieconsent.css: convert px lengths to rem/em
- wwwroot/css/errorpages.css: convert px lengths to rem/em
- wwwroot/css/index.css: convert px lengths to rem/em
- wwwroot/index.php: convert inline px to rem/em and drop the fs-4/fs-5 footer size class

- README.md: N/A — no user-facing change
This commit is contained in:
casjay committed 2026-11-22 14:42:44 -05:00
1 parent b8f3280f7a
commit ab308b2a98
5 files changed
+295 -295

No files matched your search

+221 -221
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -283,7 +283,7 @@
right: 0;
box-sizing: border-box;
}
@media screen and (min-width: 415px) {
@media screen and (min-width: 25.9375em) {
.cc-window.cc-floating {
bottom: 0;
flex-direction: row;
+53 -53
View File
@@ -1,8 +1,8 @@
@import url('https://fonts.googleapis.com/css?family=Fira+Sans&display=swap');
body {
padding: 50px;
font: 14px/1.5 Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 3.125rem;
font: 0.875rem/1.5 Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #777;
font-weight: 300;
padding: 1.5em 0;
@@ -12,7 +12,7 @@ body {
.jumbotron {
line-height: 2.1428571435;
color: inherit;
padding: 10px 0px;
padding: 0.625rem 0;
}
/* Main marketing message and sign up button */
@@ -22,14 +22,14 @@ body {
}
.jumbotron .btn {
font-size: 21px;
font-size: 1.3125rem;
padding: 1.5em 2em;
}
/* Everything but the jumbotron gets side spacing for mobile-first views */
.masthead,
.body-content {
padding: 0 15px;
padding: 0 0.9375rem;
}
/* Colors */
@@ -59,7 +59,7 @@ h4,
h5,
h6 {
color: #222;
margin: 0 0 40px;
margin: 0 0 2.5rem;
}
p,
@@ -68,7 +68,7 @@ ol,
table,
pre,
dl {
margin: 0 0 20px;
margin: 0 0 1.25rem;
}
h2,
@@ -80,9 +80,9 @@ h1 {
line-height: 1.1;
text-align: center;
font: Lato;
font-size: 80px;
font-size: 5rem;
color: #222;
margin: 0 0 40px;
margin: 0 0 2.5rem;
}
h2 {
@@ -103,21 +103,21 @@ a {
}
a small {
font-size: 11px;
font-size: 0.6875rem;
color: #777;
margin-top: -0.6em;
display: block;
}
.wrapper {
width: 860px;
width: 53.75rem;
margin: 0 auto;
}
blockquote {
border-left: 1px solid #e5e5e5;
border-left: 0.0625rem solid #e5e5e5;
margin: 0;
padding: 0 0 0 20px;
padding: 0 0 0 1.25rem;
font-style: italic;
}
@@ -132,14 +132,14 @@ code,
pre {
font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
color: #333;
font-size: 12px;
font-size: 0.75rem;
}
pre {
padding: 8px 15px;
padding: 0.5rem 0.9375rem;
background: #f8f8f8;
border-radius: 5px;
border: 1px solid #e5e5e5;
border-radius: 0.3125rem;
border: 0.0625rem solid #e5e5e5;
overflow-x: auto;
}
@@ -151,8 +151,8 @@ table {
th,
td {
text-align: left;
padding: 5px 10px;
border-bottom: 1px solid #e5e5e5;
padding: 0.3125rem 0.625rem;
border-bottom: 0.0625rem solid #e5e5e5;
}
dt {
@@ -169,14 +169,14 @@ img {
}
header {
width: 270px;
width: 16.875rem;
float: left;
position: fixed;
}
header ul {
list-style: none;
height: 40px;
height: 2.5rem;
padding: 0;
@@ -194,27 +194,27 @@ header ul {
background: -ms-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
background: linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
border-radius: 5px;
border: 1px solid #d2d2d2;
box-shadow: inset #fff 0 1px 0, inset rgba(0, 0, 0, 0.03) 0 -1px 0;
width: 270px;
border-radius: 0.3125rem;
border: 0.0625rem solid #d2d2d2;
box-shadow: inset #fff 0 0.0625rem 0, inset rgba(0, 0, 0, 0.03) 0 -0.0625rem 0;
width: 16.875rem;
}
header li {
width: 89px;
width: 5.5625rem;
float: left;
border-right: 1px solid #d2d2d2;
height: 40px;
border-right: 0.0625rem solid #d2d2d2;
height: 2.5rem;
}
header ul a {
line-height: 1;
font-size: 11px;
font-size: 0.6875rem;
color: #999;
display: block;
text-align: center;
padding-top: 6px;
height: 40px;
padding-top: 0.375rem;
height: 2.5rem;
}
strong {
@@ -223,46 +223,46 @@ strong {
}
header ul li + li {
width: 88px;
border-left: 1px solid #fff;
width: 5.5rem;
border-left: 0.0625rem solid #fff;
}
header ul li + li + li {
border-right: none;
width: 89px;
width: 5.5625rem;
}
header ul a strong {
font-size: 14px;
font-size: 0.875rem;
display: block;
color: #222;
}
section {
width: 500px;
width: 31.25rem;
float: right;
padding-bottom: 50px;
padding-bottom: 3.125rem;
}
small {
font-size: 11px;
font-size: 0.6875rem;
}
hr {
border: 0;
background: #e5e5e5;
height: 1px;
margin: 0 0 20px;
height: 0.0625rem;
margin: 0 0 1.25rem;
}
footer {
width: 270px;
width: 16.875rem;
float: left;
position: fixed;
bottom: 50px;
bottom: 3.125rem;
}
@media print, screen and (max-width: 960px) {
@media print, screen and (max-width: 60em) {
div.wrapper {
width: auto;
margin: 0;
@@ -277,14 +277,14 @@ footer {
}
header {
padding-right: 320px;
padding-right: 20rem;
}
section {
border: 1px solid #e5e5e5;
border-width: 1px 0;
padding: 20px 0;
margin: 0 0 20px;
border: 0.0625rem solid #e5e5e5;
border-width: 0.0625rem 0;
padding: 1.25rem 0;
margin: 0 0 1.25rem;
}
header a small {
@@ -293,12 +293,12 @@ footer {
header ul {
position: absolute;
right: 50px;
top: 52px;
right: 3.125rem;
top: 3.25rem;
}
}
@media print, screen and (max-width: 720px) {
@media print, screen and (max-width: 45em) {
body {
word-wrap: break-word;
}
@@ -318,9 +318,9 @@ footer {
}
}
@media print, screen and (max-width: 480px) {
@media print, screen and (max-width: 30em) {
body {
padding: 15px;
padding: 0.9375rem;
}
header ul {
+19 -19
View File
@@ -4,7 +4,7 @@ td,
th,
body {
font-family: 'Fira Sans', Verdana, Helvetica, sans-serif;
font-size: 14px;
font-size: 0.875rem;
font-weight: normal;
font-variant: normal;
text-transform: none;
@@ -19,30 +19,30 @@ body {
th {
background-color: #333;
color: #ffffff;
border-top: 1px solid #678ca0;
border-top: 0.0625rem solid #678ca0;
vertical-align: middle;
height: 50px;
height: 3.125rem;
}
td {
background-color: 333;
border-top: 1px solid #678ca0;
border-top: 0.0625rem solid #678ca0;
}
.box {
border: 1px solid #678ca0;
padding: 0px;
border: 0.0625rem solid #678ca0;
padding: 0;
width: 100%;
background-color: #333;
margin-bottom: 10px;
width: 600px;
margin-bottom: 0.625rem;
width: 37.5rem;
}
h5,
h3 {
padding: 3px;
margin-top: 0px;
margin-bottom: 0px;
padding: 0.1875rem;
margin-top: 0;
margin-bottom: 0;
background-color: #333;
color: white;
font-family: Verdana, Helvetica, sans-serif;
@@ -57,25 +57,25 @@ div {
}
h3 {
font-size: 13px;
font-size: 0.8125rem;
}
h5 {
font-size: 10px;
font-size: 0.625rem;
text-align: right;
background-color: #333;
color: #678ca0;
}
.spacer {
margin: 0px;
margin: 0;
width: 100%;
background-color: #333;
}
.leftspacer {
margin: 0px;
padding: 5px;
margin: 0;
padding: 0.3125rem;
width: 100%;
text-align: left;
background-color: #333;
@@ -90,10 +90,10 @@ h5 {
}
p.main {
margin-top: 5px;
margin-bottom: 5px;
margin-top: 0.3125rem;
margin-bottom: 0.3125rem;
text-align: center;
font-size: 10px;
font-size: 0.625rem;
}
a {
+1 -1
View File
@@ -52,7 +52,7 @@
right: 0;
box-sizing: border-box;
}
@media screen and (min-width: 415px) {
@media screen and (min-width: 25.9375em) {
.cc-window.cc-floating {
bottom: 0;
flex-direction: row;