dairydemon.net/styles.css

137 lines
1.6 KiB
CSS

html {
font-family: monospace;
font-size: large;
background: linear-gradient(to bottom right, turquoise, teal);
min-height: 100%;
}
body {
display: flex;
flex-direction: column;
align-items: center;
}
dd-header {
margin: 5px;
width: 80ch;
max-width: 100%;
box-shadow: 5px 5px 5px;
}
header {
height: 110px;
flex: auto;
display: flex;
align-items: center;
}
#headerimg {
border: 3px black solid;
border-right: 0;
max-height: 100%;
object-fit: cover;
flex: 1;
}
#headermain {
background: turquoise;
border: 3px black solid;
text-align: center;
height: 100%;
flex: 4;
}
#headermain a {
color: blue;
text-decoration: none;
text-transform: uppercase;
text-align: center;
}
#headermain a:hover {
text-decoration: underline;
}
#homelink {
font-size: xx-large;
font-weight: bold;
text-decoration: none;
}
nav {
font-size: x-large;
}
nav ul {
padding: 0;
}
nav ul li {
display: inline;
}
nav ul li + li::before {
content: " | ";
}
main {
flex: auto;
}
aside {
background: turquoise;
border: 3px black solid;
margin: 5px;
padding: 10px;
box-shadow: 5px 5px 5px;
}
article {
background: turquoise;
border: 3px black solid;
margin: 5px;
padding: 20px;
text-align: justify;
hyphens: auto;
box-shadow: 5px 5px 5px;
}
h1, h2, h3, h4, h5, h6 {
text-align: left;
}
ul {
padding-left: 2ch;
}
ol {
padding-left: 3ch;
}
ol ol {
list-style: lower-alpha
}
ol ol ol {
list-style: lower-roman
}
@media screen and (min-width: 80ch) {
main {
display: flex;
align-items: start;
}
aside {
width: 30ch;
flex: auto;
position: sticky;
top: 10px;
}
article {
max-width: 80ch;
flex: auto;
}
}