wiki/static/style.css

95 lines
2.1 KiB
CSS

/* This stylesheet was specifically made for the ~vern wiki */
/* And it will only suit the layout of the ~vern wiki */
/* Copyright © Leo Gavilieau, licensed under CC-BY-SA 4.0 International */
:root {
/* Font stacks */
--casualFonts: DejaVu Sans Mono, monospace;
--bgColor: #282c34;
--txtColor: #bbc2cf;
--linkColor: #ff6c6b;
--headerColor: #51afef;
}
/* responsiveness */
@media screen and (min-width: 820px) {
:root { --mainSize: 65vw; }
header {
display:flex;
justify-content:space-between;
align-items:center;
white-space:nowrap;
flex-wrap: wrap;
}
nav {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-end;
gap: 1rem;
}
}
@media screen and (max-width: 820px) { :root { --mainSize: 85vw; } }
@media screen and (max-width: 620px) { :root { --mainSize: 95vw; } }
@media screen and (max-width: 560px) {
:root { --mainSize: 100vw; }
header { display: initial; text-align:center; }
#logo { background-position: center; }
}
body {
font-family: var(--casualFonts);
background: var(--bgColor);
color: var(--txtColor);
line-height: 1.5rem;
word-wrap: break-word;
}
header,main,footer {
margin: auto;
width: var(--mainSize);
}
/* Header styling (logo, nav etc.) */
header {
border-bottom: 4px solid var(--linkColor);
border-radius: 1rem;
padding-bottom:1rem;
}
#logo {
width: 50px;
height: 50px;
background: url(/verntrans.svg);
background-repeat: no-repeat;
background-size: cover;
}
footer {
border-top: 4px solid var(--linkColor);
border-radius: 1rem;
padding-top:1rem;
}
footer p { margin: 0.2em 0 0.2em 0; }
/* text styling */
h1,h2,h3,h4,h5.h6 {
color: var(--headerColor);
line-height: 1.2;
}
h1 { font-size: 1.95rem}
h2 { font-size:1.45rem; }
h3 { font-size:1.3rem; }
h4 { font-size: 1.1rem;}
h5 { font-size: 0.9rem; }
h6 { font-size: 0.7rem; }
pre,code { font-size: 0.85rem; }
/* link styling */
a {
color: var(--linkColor);
text-decoration: none;
}
a:hover { text-decoration: underline; }