hpr_generator/public_html/css/hpr.css

303 lines
5.3 KiB
CSS
Raw Normal View History

@charset "utf-8";
/* Website design Copyright Ken Fallon - Released into the public domain/
2023-09-03 15:51:03 +00:00
https://creativecommons.org/publicdomain/
*/
/*
* See the following for the modern CSS responsive design techniques used in this file:
* - MDN web docs: Responsive design
* -- https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Responsive_Design
* - Matthew James Tayler: Responsive Font Size (Optimal Text at Every Breakpoint)
* -- https://matthewjamestaylor.com/responsive-font-size
* - CSS-Tricks: Linearly Scale font-size with CSS clamp() Based on the Viewport
* -- https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport/
*/
html {
margin: 0;
padding: 0;
display: block;
}
body {
display: block;
background: #dfdfdf;
font-size: 1rem; /* fallback for browsers that don't support the clamp function) */
font-size: clamp(1rem, 15px + 0.3vw, 1.07rem);
margin: 0;
padding: 0;
}
div, h1, h2, 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 {
font-size: 1.5rem;
margin: 1.25rem 0 0.75rem 0;
}
h2,
article * h1 {
font-size: 1.45rem;
margin: 1.25rem 0 0.75rem 0;
}
h3,
article * h2 {
font-size: 1.25rem;
margin: 1.25rem 0 0.75rem 0;
}
h4,
article * h3 {
font-size: 1.15rem;
margin: 1.25rem 0 0.75rem 0;
}
img {
max-width: 100%;
height: auto;
}
ul {
padding-left: 1.15rem;
}
li {
line-height: 1.25;
}
a {
text-decoration: none;
}
a:hover {
cursor: pointer;
}
hr {
background: #4D4D4D;
border: 0;
height: 0.25em;
}
audio {
padding: .7em 0em .5em 0em;
clear: both;
position: relative;
z-index:auto;
}
.audcredit {
font-size: 75%;
margin-bottom: 1em;
}
p.meta {
line-height: 1.25;
}
p.meta span label {
font-weight: bold;
}
article > p,
#maincontent > p {
line-height: 1.45;
}
article#previous_five_weeks > * {
line-height: 1.35;
margin: 0;
padding: 0;
}
article#previous_five_weeks > h3 {
margin: 1.5rem 0 0.5rem 0;
}
#container {
max-width: 58rem;
margin: 0.25rem;
padding: 0.75rem; /* fallback for browsers that don't support the clamp function) */
padding: clamp(0.75rem, -0.25rem + 3vw , 2.0rem);
overflow: hidden;
background: white;
border: thin solid #4D4D4D;
}
.shadow {
-moz-box-shadow: 2px 3px 6px 3px #675958;
-webkit-box-shadow: 2px 3px 6px 3px #675958;
box-shadow: 2px 3px 6px 3px #675958;
}
img#hprlogo {
max-width: 20vw;
padding-right: clamp(0.75rem, -0.25rem + 3vw , 1.5rem);
float: left;
margin-top: 1rem;
margin-bottom: clamp(0.75rem, -0.25rem + 2vw , 1.5rem);
}
#hpr_banner {
/* display: inline-block; */
border: 0;
margin: 0 0 0rem 0;
padding: 0;
}
#hpr_banner p {
margin: 0 0 0.5rem 0;
}
#hpr_banner h1#sitename {
font-size: clamp(1.44rem, -1rem + 3vw , 2rem);
letter-spacing: 0.06rem;
margin: 0;
padding: 0;
}
#hpr_banner h2 {
font-size: clamp(0.74rem, -1rem + 2vw , 1rem);
font-weight: 510;
margin: 0 0 1rem 0;
padding: 0;
}
#hpr_banner h3 {
font-size: 1rem;
font-weight: normal;
margin: 0 0 0.5rem 0;
padding: 0;
}
header > hr {
clear: both;
}
#accessible_menu {
font-size: smaller;
}
/* The main navigation menu */
header > nav.menu {
display: block;
background-color: #4D4D4D; /* HPR Grey */
text-align: Left;
clear:both; /* Forces the menu to appear after the HPR Header block */
padding: 0;
margin: 0;
}
header > nav.menu ul {
margin: 0;
padding: 0.5rem;
background-color: inherit;
color: white;
}
header > nav.menu ul li {
display: inline-block;
background-color: inherit;
color: inherit;
line-height: 1.5;
margin: 0;
padding: 0;
padding-right: clamp(0.5rem, -0.25rem + 3vw , 2.5rem);
}
header > nav.menu ul li a {
color: white;
text-decoration: none;
display: block;
padding: 0.25rem 0;
}
header > nav.menu ul li a:hover {
border-bottom: thin solid white;
padding: 0.15rem 0;
-webkit-transition: 0.3s ease-in-out color;
-moz-transition: 0.3s ease-in-out color;
transition: 0.3s ease-in-out color;
}
header > nav.menu ul li a:visited{
color: #EDEDED;
}
a:active,
header > nav.menu ul li a:active {
color: red;
}
pre { /* Add background, border and scrollbar to <pre> */
background: #eee;
border: 1px solid #ddd;
overflow: auto;
clear: both;
padding: 0.5rem
}
pre code {
padding-right: 0.5rem;
font-size: 0.85rem;
line-height: 1;
}
2023-02-25 01:42:01 +00:00
pre.comment {
white-space: pre-wrap;
line-height: 1.2rem;
}
table.hosts {
font-size: clamp(0.82rem, -0.25rem + 3vw , 1.0rem);
width: 100%;
background: white;
margin: 0 auto;
border-collapse: collapse;
display: inline-table;
}
table.hosts tr:nth-child(even) {
background-color:#cccccc;
border-bottom: thick solid white;
}
table.hosts tr:nth-child(odd) {
background-color:white;
border-bottom: thick solid white;
}
table.hosts tr td img {
vertical-align:middle;
max-height: 80px;
}
table.hosts th:first-child,
table.hosts td:first-child {
min-width: 60px;
max-width: 80px;
text-align: left;
}
table.hosts th:nth-child(2),
table.hosts td:nth-child(2) {
text-align: left;
padding-left: clamp(0.15rem, -0.25rem + 3vw, 0.5rem);
}
table.hosts th:nth-child(3),
table.hosts td:nth-child(3),
table.hosts th:nth-child(4),
table.hosts td:nth-child(4) {
width: 10%;
padding-right: clamp(0.10rem, -0.25rem + 3vw, 1rem);
}
}