nixos-webzine/style.html

150 lines
2.5 KiB
HTML

<style>
#title {
text-align: center;
font-size:3em;
font-weight:bold;
margin: 0.75em auto;
text-shadow: 2px 2px 2px grey;
}
#title a span img {
border: none;
width: 60px;
padding: 0;
margin-right: 10px;
}
#title a {
text-decoration: none;
}
#banner {
border-top: .2em double black;
border-bottom: .2em double black;
padding: .5em;
margin-bottom: 2em;
text-align:center;
display: flex;
justify-content: space-between;
}
.snowflakes {
margin: auto;
text-align: center;
}
.permalink {
color: blue;
text-decoration: underline;
}
a {
color: black;
text-decoration: underline;
}
.permalink::after { content: " ↩"; }
.permalink:hover { color: darkblue; }
h1 {
font-size: 1.5em;
line-height: 0.9em;
}
p {
text-align: justify;
text-justify: auto;
}
figure {
text-align: center;
}
pre {
overflow: scroll;
}
html, body {
font-size: 1.1em;
font-family:serif;
background-color: #fff;
}
body {
margin: 1em auto;
padding-left: 30px;
padding-right: 30px;
padding-bottom: 30px;
max-width: 900px;
border: 1px solid #111;
background-color: #eee;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
line-height: 1.5;
}
img {
max-width: 100%;
height: auto;
margin: auto;
border: 3px solid black;
padding: .25em;
}
ul {
padding-left: .5em;
}
blockquote {
position: relative;
padding-top: 1rem;
padding-bottom: 2.2rem;
}
blockquote:before,
blockquote:after {
position: absolute;
font-size: 4rem;
color: rgba(128,128,128,0.5);
}
blockquote:before {
content: open-quote;
left: -1rem;
top: -1.5rem;
}
blockquote:after {
content: close-quote;
text-align: right;
width: 100%;
}
cite {
font-size: smaller;
text-align: right;
width: 100%;
display: block;
}
code {
background-color: #8DF;
padding-left: 3px;
padding-right: 3px;
}
@media print {
body { background-color:white; max-width:100%;}
}
@media (prefers-color-scheme: dark) {
body { color: #ccc; background-color: #222; }
html { background-color: black; }
.permalink { color: deepskyblue; }
img { border-color: #ccc; }
#banner { border-color:#ccc; }
a { color: #ccc; }
code { background-color: black; color: lightgreen; }
.permalink:hover { color: plum; }
}
</style>