dairydemon.net/styles/default.css

98 lines
1.4 KiB
CSS
Raw Permalink Normal View History

2024-08-05 01:52:49 +00:00
/* general styling */
2024-03-20 01:33:14 +00:00
html {
font-family: monospace;
font-size: large;
background: linear-gradient(to bottom right, turquoise, teal);
min-height: 100%;
}
2024-05-28 01:31:44 +00:00
header,
footer,
article,
2024-08-16 05:19:53 +00:00
main nav {
2024-05-27 23:35:52 +00:00
border: 3px black solid;
background: turquoise;
2024-05-27 21:56:31 +00:00
margin: 5px;
2024-06-22 20:28:08 +00:00
box-shadow: 2px 2px 2px;
2024-05-28 01:31:44 +00:00
}
2024-08-05 01:52:49 +00:00
/* header and footer */
2024-05-28 01:31:44 +00:00
header {
2024-03-20 01:33:14 +00:00
text-align: center;
}
2024-10-06 00:15:34 +00:00
#homelink {
2024-03-20 01:33:14 +00:00
color: blue;
text-decoration: none;
text-transform: uppercase;
font-size: xx-large;
font-weight: bold;
}
2024-10-06 00:15:34 +00:00
#homelink:hover {
text-decoration: underline;
2024-03-20 01:33:14 +00:00
}
2024-08-05 01:52:49 +00:00
/* main content */
2024-08-16 05:19:53 +00:00
main nav {
2024-03-20 01:33:14 +00:00
padding: 10px;
}
article {
padding: 20px;
2024-03-20 01:33:14 +00:00
text-align: justify;
hyphens: auto;
2024-08-05 02:17:39 +00:00
/* about page is janky without this; see
* https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Floats#clearing_boxes_wrapped_around_a_float */
2024-05-28 01:59:40 +00:00
display: flow-root;
2024-03-20 01:33:14 +00:00
}
2024-03-20 01:33:14 +00:00
h1, h2, h3, h4, h5, h6 {
text-align: left;
}
2024-05-27 14:37:59 +00:00
ul {
padding-left: 2ch;
}
ol {
padding-left: 3ch;
}
ol ol {
list-style: lower-alpha
}
ol ol ol {
list-style: lower-roman
}
2024-03-20 01:33:14 +00:00
@media screen and (min-width: 80ch) {
2024-08-05 02:17:39 +00:00
/* to avoid zoom issues, grid layout is only used when mid-width is
* large enough */
body {
display: grid;
place-content: center;
}
2024-03-20 01:33:14 +00:00
main {
2024-08-05 02:17:39 +00:00
/* min-width is set due to zoom issues */
2024-05-27 22:16:06 +00:00
min-width: 100%;
2024-03-20 01:33:14 +00:00
display: flex;
align-items: start;
}
2024-08-16 05:19:53 +00:00
main nav {
2024-03-20 01:33:14 +00:00
flex: auto;
position: sticky;
top: 10px;
}
article {
2024-08-05 02:17:39 +00:00
/* width is set for the about page */
2024-05-27 22:16:06 +00:00
width: 80ch;
2024-05-28 01:25:00 +00:00
max-width: 80ch;
2024-03-20 01:33:14 +00:00
flex: auto;
}
}