wahs-the-weather/css/wah.css

212 lines
3.6 KiB
CSS
Raw Permalink Normal View History

2024-12-11 21:20:28 +00:00
:root {
2024-12-11 23:10:01 +00:00
--background: #f2efbd;
--background-dim: #d2d0a4;
--foreground: #2a271c;
--border-color: #f27405;
--border: var(--border-color) 2px solid;
--shadow-color: hsla(11, 96%, 43%, 0.4);
--shadow: drop-shadow(8px 8px var(--shadow-color));
--shadow-small: drop-shadow(3px 3px var(--shadow-color));
--links: hsl(183, 93%, 27%);
--links-hover: hsl(183, 93%, 15%);
--table-header: hsla(11, 96%, 43%, 0.2);
2024-12-11 21:20:28 +00:00
}
html {
2024-12-11 23:10:01 +00:00
height: 100%;
color-scheme: light;
2024-12-11 21:20:28 +00:00
}
body {
2024-12-11 23:10:01 +00:00
color: var(--foreground);
min-height: 100%;
background-color: hsla(0, 0%, 0%, 0);
padding: 10px;
font-family: serif;
2024-12-11 21:20:28 +00:00
}
body::before {
2024-12-11 23:10:01 +00:00
content: "";
position: fixed;
top: 0;
left: 0;
background-image: url("/images/background.jpg");
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.8;
background-size: cover;
background-attachment: fixed;
overflow: hidden;
2024-12-11 21:20:28 +00:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
2024-12-11 23:10:01 +00:00
margin: 0;
2024-12-11 21:20:28 +00:00
}
p,
ul,
ol,
dl,
menu,
dir {
2024-12-11 23:10:01 +00:00
margin: 0;
2024-12-11 21:20:28 +00:00
}
hr {
2024-12-11 23:10:01 +00:00
border: none;
border-top: var(--border);
2024-12-11 21:20:28 +00:00
}
a {
2024-12-11 23:10:01 +00:00
color: var(--links);
text-decoration: underline dotted;
2024-12-11 21:20:28 +00:00
}
a:hover {
2024-12-11 23:10:01 +00:00
color: var(--links-hover);
text-decoration: underline solid;
2024-12-11 21:20:28 +00:00
}
div.page-container {
2024-12-11 23:10:01 +00:00
/* width: 1000px; */
width: 800px;
margin: 5px auto;
2024-12-11 21:20:28 +00:00
}
div.page-container > div {
2024-12-11 23:10:01 +00:00
background-color: var(--background);
filter: var(--shadow);
padding: 10px;
border: var(--border);
margin-bottom: 20px;
2024-12-11 21:20:28 +00:00
}
div.page-container > div:last-child {
2024-12-11 23:10:01 +00:00
margin-bottom: 0;
2024-12-11 21:20:28 +00:00
}
2024-12-11 23:05:59 +00:00
div#header {
2024-12-11 23:10:01 +00:00
display: grid;
grid-template-columns: 66px 1fr;
grid-template-rows: 1fr;
grid-column-gap: 15px;
grid-row-gap: 0px;
align-items: center;
2024-12-11 23:05:59 +00:00
}
div#header img {
2024-12-11 23:10:01 +00:00
filter: drop-shadow(2px 2px hsl(0, 0%, 66%));
margin-right: 10px;
image-rendering: pixelated;
2024-12-11 23:05:59 +00:00
}
2024-12-11 21:20:28 +00:00
div#header h1 {
2024-12-11 23:10:01 +00:00
margin: 0;
font-style: italic;
2024-12-11 21:20:28 +00:00
}
div#header h1,
div#header p {
2024-12-11 23:10:01 +00:00
display: inline;
2024-12-11 21:20:28 +00:00
}
div#content {
2024-12-11 23:10:01 +00:00
position: relative;
2024-12-11 21:20:28 +00:00
}
div#content::after {
2024-12-11 23:10:01 +00:00
display: block;
content: "";
clear: both;
2024-12-11 21:20:28 +00:00
}
div#footer {
2024-12-11 23:10:01 +00:00
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: 1fr;
grid-column-gap: 0;
grid-row-gap: 0;
align-items: center;
2024-12-11 21:20:28 +00:00
}
div#footer div:last-child {
2024-12-11 23:10:01 +00:00
text-align: right;
2024-12-11 21:20:28 +00:00
}
2024-12-11 23:05:59 +00:00
table.mx-datatable {
2024-12-11 23:10:01 +00:00
width: 100%;
border-collapse: collapse;
border: var(--border);
filter: var(--shadow-small);
background-color: var(--background);
2024-12-12 19:18:16 +00:00
margin-bottom: 5px;
2024-12-11 21:20:28 +00:00
}
2024-12-11 23:05:59 +00:00
table.mx-datatable th {
2024-12-11 23:10:01 +00:00
text-align: left;
background-color: var(--background-dim);
border-top: var(--border);
2024-12-11 21:20:28 +00:00
}
2024-12-11 23:05:59 +00:00
table.mx-datatable tr td,
table.mx-datatable tr th {
2024-12-11 23:10:01 +00:00
padding: 5px 10px 5px 5px;
2024-12-11 21:20:28 +00:00
}
2024-12-11 23:05:59 +00:00
table.mx-datatable tr td:nth-child(2) {
2024-12-11 23:10:01 +00:00
padding-right: 40px;
2024-12-11 21:20:28 +00:00
}
/* --------------------------------- Now (/) -------------------------------- */
table.almanac td:nth-child(odd) {
font-weight: bold;
}
table.almanac td {
padding: 0 10px;
}
table.almanac td:nth-child(even) {
padding: 0 15px;
}
table.almanac {
min-width: 100%;
}
2024-12-11 23:05:59 +00:00
table.current-conditions tr td:nth-child(odd) {
2024-12-11 23:10:01 +00:00
font-weight: bold;
2024-12-11 21:20:28 +00:00
}
2024-12-11 23:05:59 +00:00
table.current-conditions tr:last-child td:nth-child(3) {
2024-12-11 23:10:01 +00:00
font-weight: normal;
font-style: italic;
2024-12-11 21:20:28 +00:00
}
2024-12-12 22:39:43 +00:00
/* -------------------------------------------------------------------------- */
div.gauge-grid {
padding: 20px !important;
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
}
div.gauge-header {
display: grid;
grid-template-columns: auto auto 1fr;
grid-template-rows: 1fr;
grid-column-gap: 10px;
grid-row-gap: 0px;
}
canvas#canvas_led {
margin-bottom: -7px;
}