theme-blog-ewen/static/css/style.css
2020-04-12 10:16:04 +02:00

354 lines
5.3 KiB
CSS

/***********
* CSS style for the Simple-Goeland Hugo theme
* Author: eorn (https://forge.goe.land/eorn/simple-goeland)
***********/
/* CSS reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* Sections, containers... */
main {
display: block;
}
.flex {
display: flex;
}
.container {
max-width: 80rem;
margin: 0 auto;
}
.sidebar {
flex: 0 0 250px;
font-size: 0.9em;
}
.page-content {
font-size: 1em;
min-width: 320px;
flex-grow: 1;
padding-left: 12px;
}
main.container {
margin-top : 12px;
margin-bottom: 25px;
padding-top: 20px;
border-top: 1px solid #53bcdf;
}
/* Navbar */
#navbar {
height: 40px;
font-family: "Source Code Pro", monospace;
}
.nav-left {
float: left;
}
.nav-right {
float: right;
margin-top: 8px;
}
.nav-left a, .nav-left h1 {
text-decoration: none;
color: #53bcdf;
font-size: 30px;
font-weight: bold;
vertical-align: middle;
}
.nav-right a {
text-decoration: none;
color: white;
}
.nav-right img, .nav-right svg {
margin: 0px;
padding: 0px;
vertical-align: bottom;
}
.pleroma svg {
fill: #f39f54;
}
.pleroma svg:hover {
fill: #ffc992;
}
.pixelfed svg {
fill: #c02fa8;
}
.pixelfed svg:hover {
fill: #ff61f2;
}
.gitea svg {
fill: #5f9825;
}
.gitea svg:hover {
fill: #8dcc4a;
}
.rss svg {
fill: #f76300;
}
.rss svg:hover {
fill: #ffac46;
}
/* Sidebar */
.sidebar {
font-family: "Source Code Pro", monospace;
line-height: 1.5;
}
.sidebar hr {
border 0;
}
.sidebar h2 {
border-top: 1px solid #53bcdf;
font-size: 20px;
font-weight: bold;
text-align: center;
margin-bottom: 10px;
padding-top: 5px;
}
.sidebar a {
color: #53bcdf;
text-decoration: underline;
}
.sidebar a:hover {
text-decoration: none;
color: #9de2ff;
}
.sidebar ul, .sidebar li, .sidebar ul li {
margin: 0px;
padding: 0px;
list-style: none;
}
.sidebar li ul {
margin-left: 20px;
}
a.active {
font-weight: bold;
color: #9de2ff;
}
.pagination {
font-family: "Source Code Pro", monospace;
padding-top: 15px;
text-align: center;
}
.pagination ul, .pagination li {
display: inline;
margin: 0;
padding: 0;
list-style: none;
}
.page-content li.page-item::before {
content: "";
width: 0em;
margin-left: 0em;
margin: 0px;
padding: 0px;
}
.pagination a {
background-color: #2f3335;
padding: 4px;
}
/* Footer */
.footer {
font-family: "Source Code Pro", monospace;
border-top: 1px solid #53bcdf;
padding-top: 15px;
}
/* Content defaults */
body {
font-family: "Source Sans Pro", sans-serif;
color: white;
background-color: #232627;
text-rendering: optimizeLegibility;
line-height: 1.15;
margin: 0 auto;
max-width: 1280px;
padding: 15px;
}
.has-text-centered {
text-align: center;
}
.page-content p {
margin-top: 10px;
margin-bottom: 10px;
}
a {
color: #53bcdf;
text-decoration: underline;
font-family: "Source Code Pro", monospace;
}
a:hover {
text-decoration: none;
color: #9de2ff;
}
.tag a {
background-color: #2f3335;
padding: 2px;
color: #76e09d;
}
.tag a:hover {
color: #b4ffd2;
}
.tag.active a {
font-weight: bold;
color: #b4ffd2;
}
.button a {
background-color: #2f3335;
padding: 2px;
margin: 2px;
}
.page-content article {
margin-bottom: 25px;
border-top: 1px dashed #bbb677;
}
.page-content h1, .page-content h1 a {
font-size: 30px;
margin-bottom: 10px;
font-weight: bold;
color: #bbb677;
}
.page-content h1 a:hover {
color: #f0eca9;
}
.page-content h2 {
font-size: 25px;
font-weight: bold;
color: #bbb677;
}
.page-content h3 {
font-size: 20px;
font-weight: bold;
color: #bbb677;
}
.page-content h4 {
font-size: 15px;
font-weight: bold;
color: #bbb677;
}
.page-content h5 {
font-size: 15px;
color: #bbb677;
}
.page-content .article-date {
font-family: "Source Code Pro", monospace;
font-size: 0.8em;
margin: 0px;
}
.page-content .tags-list {
float: right;
}
article .post-content {
margin-top: 20px;
}
.page-content ul {
padding: 0px;
list-style: none;
}
.page-content ul li{
margin-left: 10px;
}
.page-content ul li::before {
content: "\2022";
color: #53bcdf;
font-weight: bold;
display: inline-block;
width: 0.75em;
margin-left: -0.5em;
}
.related {
margin-top: 25px;
border-top: 1px dashed #bbb677;
padding-top: 10px;
}
/* Responsive */
@media only screen and (max-width: 800px) {
.flex {
display: table;
}
.sidebar {
display: table-footer-group;
}
.page-content {
display: table-header-group;
padding: 0px;
}
#navbar .nav-left, #navbar .nav-right {
float: none;
text-align: center;
}
#navbar {
min-height: 75px;
}
}