Format CSS for consistency

This commit is contained in:
Roan Horning 2024-10-12 11:02:06 -04:00
parent 87b7f7bde6
commit 9655c56ee6
Signed by: rho_n
GPG Key ID: 234AEF20B72D5769

View File

@ -29,10 +29,29 @@ body {
padding: 0; padding: 0;
} }
div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, form, fieldset, input, textarea, blockquote { div,
font-family: Verdana, Arial, Helvetica, sans-serif;/* 1em/1.5 OpenDyslexic, */ h1,
color: #4D4D4D; /* HPR Grey */ h2,
background: white; h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
dl,
dt,
dd,
img,
form,
fieldset,
input,
textarea,
blockquote {
font-family: Verdana, Arial, Helvetica, sans-serif; /* 1em/1.5 OpenDyslexic, */
color: #4D4D4D; /* HPR Grey */
background: white;
} }
h1 { h1 {
@ -89,7 +108,7 @@ audio {
padding: .7em 0em .5em 0em; padding: .7em 0em .5em 0em;
clear: both; clear: both;
position: relative; position: relative;
z-index:auto; z-index: auto;
} }
.audcredit { .audcredit {
@ -105,18 +124,18 @@ p.meta span label {
font-weight: bold; font-weight: bold;
} }
article > p, article>p,
#maincontent > p { #maincontent>p {
line-height: 1.45; line-height: 1.45;
} }
article#previous_five_weeks > * { article#previous_five_weeks>* {
line-height: 1.35; line-height: 1.35;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
article#previous_five_weeks > h3 { article#previous_five_weeks>h3 {
margin: 1.5rem 0 0.5rem 0; margin: 1.5rem 0 0.5rem 0;
} }
@ -124,16 +143,16 @@ article#previous_five_weeks > h3 {
max-width: 58rem; max-width: 58rem;
margin: 0.25rem; margin: 0.25rem;
padding: 0.75rem; /* fallback for browsers that don't support the clamp function) */ padding: 0.75rem; /* fallback for browsers that don't support the clamp function) */
padding: clamp(0.75rem, -0.25rem + 3vw , 2.0rem); padding: clamp(0.75rem, -0.25rem + 3vw, 2.0rem);
overflow: hidden; overflow: hidden;
background: white; background: white;
border: thin solid #4D4D4D; border: thin solid #4D4D4D;
} }
.shadow { .shadow {
-moz-box-shadow: 2px 3px 6px 3px #675958; -moz-box-shadow: 2px 3px 6px 3px #675958;
-webkit-box-shadow: 2px 3px 6px 3px #675958; -webkit-box-shadow: 2px 3px 6px 3px #675958;
box-shadow: 2px 3px 6px 3px #675958; box-shadow: 2px 3px 6px 3px #675958;
} }
.thick_bar { .thick_bar {
@ -145,17 +164,17 @@ article#previous_five_weeks > h3 {
img#hprlogo { img#hprlogo {
max-width: 20vw; max-width: 20vw;
padding-right: clamp(0.75rem, -0.25rem + 3vw , 1.5rem); padding-right: clamp(0.75rem, -0.25rem + 3vw, 1.5rem);
float: left; float: left;
margin-top: 1rem; margin-top: 1rem;
margin-bottom: clamp(0.75rem, -0.25rem + 2vw , 1.5rem); margin-bottom: clamp(0.75rem, -0.25rem + 2vw, 1.5rem);
} }
#hpr_banner { #hpr_banner {
/* display: inline-block; */ /* display: inline-block; */
border: 0; border: 0;
margin: 0 0 0rem 0; margin: 0 0 0rem 0;
padding: 0; padding: 0;
} }
#hpr_banner p { #hpr_banner p {
@ -163,14 +182,14 @@ img#hprlogo {
} }
#hpr_banner h1#sitename { #hpr_banner h1#sitename {
font-size: clamp(1.44rem, -1rem + 3vw , 2rem); font-size: clamp(1.44rem, -1rem + 3vw, 2rem);
letter-spacing: 0.06rem; letter-spacing: 0.06rem;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
#hpr_banner h2 { #hpr_banner h2 {
font-size: clamp(0.74rem, -1rem + 2vw , 1rem); font-size: clamp(0.74rem, -1rem + 2vw, 1rem);
font-weight: 510; font-weight: 510;
margin: 0 0 1rem 0; margin: 0 0 1rem 0;
padding: 0; padding: 0;
@ -183,7 +202,7 @@ img#hprlogo {
padding: 0; padding: 0;
} }
header > hr { header>hr {
clear: both; clear: both;
} }
@ -192,40 +211,40 @@ header > hr {
} }
/* The main navigation menu */ /* The main navigation menu */
header > nav.menu { header>nav.menu {
display: block; display: block;
background-color: #4D4D4D; /* HPR Grey */ background-color: #4D4D4D; /* HPR Grey */
text-align: Left; text-align: Left;
clear:both; /* Forces the menu to appear after the HPR Header block */ clear: both; /* Forces the menu to appear after the HPR Header block */
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
header > nav.menu ul { header>nav.menu ul {
margin: 0; margin: 0;
padding: 0.5rem; padding: 0.5rem;
background-color: inherit; background-color: inherit;
color: white; color: white;
} }
header > nav.menu ul li { header>nav.menu ul li {
display: inline-block; display: inline-block;
background-color: inherit; background-color: inherit;
color: inherit; color: inherit;
line-height: 1.5; line-height: 1.5;
margin: 0; margin: 0;
padding: 0; padding: 0;
padding-right: clamp(0.5rem, -0.25rem + 3vw , 2.5rem); padding-right: clamp(0.5rem, -0.25rem + 3vw, 2.5rem);
} }
header > nav.menu ul li a { header>nav.menu ul li a {
color: white; color: white;
text-decoration: none; text-decoration: none;
display: block; display: block;
padding: 0.25rem 0; padding: 0.25rem 0;
} }
header > nav.menu ul li a:hover { header>nav.menu ul li a:hover {
border-bottom: thin solid white; border-bottom: thin solid white;
padding: 0.15rem 0; padding: 0.15rem 0;
-webkit-transition: 0.3s ease-in-out color; -webkit-transition: 0.3s ease-in-out color;
@ -233,20 +252,21 @@ header > nav.menu ul li a:hover {
transition: 0.3s ease-in-out color; transition: 0.3s ease-in-out color;
} }
header > nav.menu ul li a:visited{ header>nav.menu ul li a:visited {
color: #EDEDED; color: #EDEDED;
} }
a:active, a:active,
header > nav.menu ul li a:active { header>nav.menu ul li a:active {
color: red; color: red;
} }
pre { /* Add background, border and scrollbar to <pre> */ pre {
background: #eee; /* Add background, border and scrollbar to <pre> */
border: 1px solid #ddd; background: #eee;
overflow: auto; border: 1px solid #ddd;
clear: both; overflow: auto;
clear: both;
padding: 0.5rem padding: 0.5rem
} }
@ -255,13 +275,14 @@ pre code {
font-size: 0.85rem; font-size: 0.85rem;
line-height: 1; line-height: 1;
} }
pre.comment { pre.comment {
white-space: pre-wrap; white-space: pre-wrap;
line-height: 1.2rem; line-height: 1.2rem;
} }
table.hosts { table.hosts {
font-size: clamp(0.82rem, -0.25rem + 3vw , 1.0rem); font-size: clamp(0.82rem, -0.25rem + 3vw, 1.0rem);
width: 100%; width: 100%;
background: white; background: white;
margin: 0 auto; margin: 0 auto;
@ -271,17 +292,17 @@ table.hosts {
} }
table.hosts tr:nth-child(even) { table.hosts tr:nth-child(even) {
background-color:#cccccc; background-color: #cccccc;
border-bottom: thick solid white; border-bottom: thick solid white;
} }
table.hosts tr:nth-child(odd) { table.hosts tr:nth-child(odd) {
background-color:white; background-color: white;
border-bottom: thick solid white; border-bottom: thick solid white;
} }
table.hosts tr td img { table.hosts tr td img {
vertical-align:middle; vertical-align: middle;
max-height: 80px; max-height: 80px;
} }
@ -306,7 +327,7 @@ table.hosts td:nth-child(4) {
padding-right: clamp(0.10rem, -0.25rem + 3vw, 1rem); padding-right: clamp(0.10rem, -0.25rem + 3vw, 1rem);
} }
body > div > footer { body>div>footer {
margin-top: 2rem; margin-top: 2rem;
} }
@ -338,25 +359,25 @@ footer #copyright {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
fieldset > table, fieldset>table,
fieldset > table thead, fieldset>table thead,
fieldset > table tbody, fieldset>table tbody,
fieldset > table tr, fieldset>table tr,
fieldset > table th, fieldset>table th,
fieldset > table td, fieldset>table td,
fieldset > table td input, fieldset>table td input,
fieldset > table td textarea { fieldset>table td textarea {
display: block; display: block;
font-size: 1rem; font-size: 1rem;
} }
fieldset > table { fieldset>table {
width: calc(100vw + -16vw + -1rem); width: calc(100vw + -16vw + -1rem);
max-width: 100%; max-width: 100%;
} }
fieldset > table td input, fieldset>table td input,
fieldset > table td textarea { fieldset>table td textarea {
width: calc(100vw + -16vw + -1.5rem); width: calc(100vw + -16vw + -1.5rem);
max-width: 100%; max-width: 100%;
border: thin solid #DFDFDF; border: thin solid #DFDFDF;
@ -364,18 +385,18 @@ fieldset > table td textarea {
padding: 0.5rem; padding: 0.5rem;
} }
fieldset > table td select { fieldset>table td select {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
padding: 0.25rem; padding: 0.25rem;
} }
fieldset > table td input[type="radio"] { fieldset>table td input[type="radio"] {
display: initial; display: initial;
width: initial; width: initial;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
fieldset > input { fieldset>input {
background: #4D4D4D; background: #4D4D4D;
color: white; color: white;
font-weight: 600; font-weight: 600;
@ -390,9 +411,9 @@ fieldset > input {
} }
.shadow { .shadow {
-moz-box-shadow: 1px 2px 5px 2px #675958; -moz-box-shadow: 1px 2px 5px 2px #675958;
-webkit-box-shadow: 1px 2px 5px 2px #675958; -webkit-box-shadow: 1px 2px 5px 2px #675958;
box-shadow: 1px 2px 5px 2px #675958; box-shadow: 1px 2px 5px 2px #675958;
} }
img#hprlogo { img#hprlogo {
@ -411,7 +432,7 @@ fieldset > input {
font-size: 1rem; font-size: 1rem;
} }
header > hr { header>hr {
clear: right; clear: right;
} }
@ -431,42 +452,43 @@ fieldset > input {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
fieldset > table, fieldset>table,
fieldset > table thead, fieldset>table thead,
fieldset > table tbody, fieldset>table tbody,
fieldset > table tr, fieldset>table tr,
fieldset > table th, fieldset>table th,
fieldset > table td, fieldset>table td,
fieldset > table td input, fieldset>table td input,
fieldset > table td textarea { fieldset>table td textarea {
display: revert; display: revert;
width: revert; width: revert;
} }
fieldset > table tr { fieldset>table tr {
vertical-align: baseline; vertical-align: baseline;
} }
fieldset > table tr:nth-child(3) { fieldset>table tr:nth-child(3) {
vertical-align: top; vertical-align: top;
} }
fieldset > table tr:nth-child(3) td:first-child { fieldset>table tr:nth-child(3) td:first-child {
padding-top: 0.5rem; padding-top: 0.5rem;
} }
fieldset > table tr:nth-last-child(3) td:first-child { fieldset>table tr:nth-last-child(3) td:first-child {
padding-top: 1rem; padding-top: 1rem;
} }
fieldset > table tr:nth-last-child(2) { fieldset>table tr:nth-last-child(2) {
vertical-align: top; vertical-align: top;
} }
fieldset > table tr:nth-last-child(2) td:first-child {
fieldset>table tr:nth-last-child(2) td:first-child {
padding-top: 0.75rem; padding-top: 0.75rem;
} }
fieldset > table td input[type="radio"] { fieldset>table td input[type="radio"] {
margin-top: 1.5rem; margin-top: 1.5rem;
} }
} }