blog.nek0.eu/site/css/default.css
2023-04-10 09:54:53 +02:00

379 lines
7.9 KiB
CSS

:root {
--link-color: greenyellow;
--link-visited-color: lightsteelblue;
}
body {
color: antiquewhite;
font-size: 12pt;
font-family: 'Tippa';
font-weight: normal;
font-style: normal;
margin: 0;
display: grid;
grid-template-columns: [leftcol] 1fr [maincol] auto [rightcol] 1fr;
grid-template-rows: [headerrow] auto [mainrow] 1fr [footerrow] auto;
grid-template-areas:
"inlinks logo outlinks"
"main main main"
"plugs plugs extras";
justify-content: stretch;
align-content: stretch;
min-height: 100vh;
background-color: darkslategrey;
}
body::after {
content: "";
opacity: 0.1;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-image: url(/images/brain.svg);
background-size: contain;
background-repeat: no-repeat;
background-attachment: fixed;
background-origin: padding-box;
background-clip: content-box;
background-position: center;
z-index: -1;
}
a {
text-decoration: none;
}
a:link {
color: var(--link-color);
}
a:visited {
color: var(--link-visited-color);
}
img, video {
margin: 10px;
width: 66%;
max-width: 500px;
}
hr {
color: black;
border: 0;
background-color: black;
height: 2px;
margin: 5px 0 5px;
}
header {
padding: 20px;
}
header a {
color: var(--link-color);
font-size: 18pt;
font-weight: bold;
}
header a:visited {
color: var(--link-color);
}
header > hr {
margin-top: 0px;
}
article {
text-align: left;
margin: 0 auto 0;
padding: 0 20px 0;
overflow: auto;
grid-area: main;
max-width: 80em;
}
article a:hover{
text-decoration: underline;
}
article ul{
list-style: none;
}
article li:before {
display: inline-block;
background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xMzYzIDg3N2wtNzQyIDc0MnEtMTkgMTktNDUgMTl0LTQ1LTE5bC0xNjYtMTY2cS0xOS0xOS0xOS00NXQxOS00NWw1MzEtNTMxLTUzMS01MzFxLTE5LTE5LTE5LTQ1dDE5LTQ1bDE2Ni0xNjZxMTktMTkgNDUtMTl0NDUgMTlsNzQyIDc0MnExOSAxOSAxOSA0NXQtMTkgNDV6Ii8+PC9zdmc+);
background-repeat: no-repeat;
background-size: contain;
content: "";
width: 1.5ex;
height: 1.5ex;
}
article li {
text-indent: -2ex;
margin-left: 1.5ex;
}
.liberapay {
height: 45px;
display: inline-block;
vertical-align: middle;
}
.inlinks {
grid-area: inlinks;
justify-content: flex-end;
}
.logo {
grid-area: logo;
text-align: center;
}
.outlinks {
grid-area: outlinks;
justify-content: flex-start;
}
.plugs {
grid-area: plugs;
}
.extras {
grid-area: extras;
}
.inlinks, .outlinks, .tags, .plugs {
padding: 20px 20px 20px 20px;
}
.logo img {
width: 200px;
}
.tags p, .plugs p {
text-align: left;
margin: 0;
}
.inlinks, .outlinks, .plugs ul {
list-style: none;
margin: 0;
display: inline-block;
}
.inlinks li a:link, .outlinks li a:link {
color: var(--link-color);
font-size: 16pt;
font-weight: bold;
margin: 0;
text-decoration: none;
text-transform: uppercase;
}
.inlinks li a:visited, .outlinks li a:visited {
color: var(--link-color);
}
.inlinks, .outlinks, .plugs ul {
display: flex;
flex-direction: row;
align-items: center;
}
.inlinks li, .outlinks li, .plugs li {
display: inline-block;
margin: 20px;
}
.plugs li a {
display: inline-block;
height: 40px;
}
.plugs svg {
width: 40px;
height: 40px;
}
.plugs ul, .extras ul {
list-style: none;
padding: 0;
margin: 0;
}
.plugs li, .extras li {
display: inline-block;
text-align: center;
width: auto;
padding: 0;
margin: 0;
}
pre {
border: dashed 1px #000000;
border-radius: 5px;
background-color: rgba(0, 0, 0, 0.05);
background: rgba(0, 0, 0, 0.05);
padding: 10px;
}
pre code {
border: none;
font-size: 14pt;
background: transparent;
background-color: transparent;
}
pre code:before {
content: attr(class);
position: relative;
float: right;
display: block;
color: white;
font-weight: bolder;
text-shadow: 0px 0px 3px black;
}
code {
font-size: 14pt;
background: rgba(0, 0, 0, 0.05);
background-color: rgba(0, 0, 0, 0.05);
border: dashed 1px #000000;
border-radius: 5px;
}
h1 {
font-size: 42pt;
}
h2 {
font-size: 20pt;
}
.pagination {
display: inline-block;
width: 100%;
}
.left, .right {
float: left;
margin-left: 25%;
display: inline-block;
fill: currentColor;
}
.left svg, .right svg {
margin-bottom: -3px;
margin-left: 0.8ex;
margin-right: 0.8ex;
}
.info {
color: #555;
font-size: 14pt;
font-style: italic;
}
.tags a:before {
display: inline-block;
width: 2ex;
height: 2ex;
content: "";
margin-right: 0.5ex;
background-repeat: no-repeat;
background-size: contain;
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgaGVpZ2h0PSIxMDAlIgogICB3aWR0aD0iMTAwJSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnNDMwMyIKICAgdmlld0JveD0iMCAtMjU2IDE5NTAgMTk1MCI+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNDMxMyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJod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tMzgsMzggLTEwMiw2NC41IC02NCwyNi41IC0xMTcsMjYuNSBoIDIyNCBxIDUzLDAgMTE3LC0yNi41IDY0LC0yNi41IDEwMiwtNjQuNSBsIDcxNSwtNzE0IHEgMzcsLTM5IDM3LC05MSB6IiAvPgogIDwvZz4KPC9zdmc+Cg==);
}
.feed{
display: inline-block;
margin-bottom: -2px;
fill: currentColor;
}
.scripture {
/* change font */
font-family: 'Inknut Antiqua';
color: black;
font-size: 12pt;
font-weight: normal;
font-style: normal;
/* box shadow */
box-shadow: 5px 5px 10px #a1a1a1;
/* bg-colour */
background-color: #faf5eb;
/* adjust line height */
line-height: 200%;
/* margin */
margin: 30px;
/* padding */
padding: 50px;
}
.scripture p {
margin-top: 25px;
}
.with-initial > p:first-child::first-letter {
font-family: 'Maximilian Antiqua Initialen';
color: black;
font-size: 65pt;
font-weight: normal;
font-style: normal;
float: left;
margin-top: 0.1ex;
margin-right: 5px;
}
.postlist {
columns: 2;
}
@media screen and (max-width: 1100px){
body {
display: block;
}
.sidebar{
position: relative;
width: auto;
height: auto;
text-align: center;
}
.inlinks{
border-radius: 5px;
columns: auto;
}
.postlist {
columns: 1;
}
.plugs, .tags{
display: none;
}
nav ul{
text-align: center;
padding-left: 0;
}
nav li{
display: inline-block;
}
article {
margin: 0;
}
img {
float: right;
margin: 10px;
padding-left: 100%;
width: 230px;
}
}