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