Files
rezepte/hugo/assets/css/main.css
Elias Kohout 68d60a6207
Some checks failed
Build and Push Docker Container / build-and-push (push) Has been cancelled
make sites at least the hight of the screen
2025-03-15 01:19:31 +01:00

219 lines
2.8 KiB
CSS

:root {
--maincolor: red;
--bordercl: rebeccapurple;
--callouctcolor: dodgerblue;
--hovercolor: navy;
--darkMaincolor: #50fa7b;
}
::selection {
background: var(--maincolor);
color: #fff;
}
html {
color: #232333;
font-family: 'Fira Sans', sans-serif;
font-size: 15px;
line-height: 1.6em;
}
body {
display: block;
margin: 8px;
}
main {
max-width: 800px ;
margin: auto ;
min-height: calc(100vh - 16rem);
}
header .main {
font-size: 1.5rem;
}
hr {
border: 0;
border-top: 3px dotted var(--bordercl);
margin: 1em 0;
}
time {
color: grey;
}
/* --- header --- */
header {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 1em 0;
line-height: 2.5em;
}
/* --- footer --- */
footer {
font-family: 'Roboto Mono', monospace;
border-top: 0.2rem dotted var(--bordercl);
padding: 2rem 0rem;
margin-top: 5rem;
text-align: center;
min-height: 5rem;
}
/* --- typography --- */
h1, h2, h3, h4, h5, h6 {
font-family: 'Roboto Mono', monospace;
font-size: 1.2rem;
margin-top: 2em;
}
h1 .title {
margin-bottom: 0;
}
main > header > h1 {
font-size: 1.6rem;
border-bottom: 6px solid var(--maincolor);
}
p {
line-height: 1.5;
}
a {
border-bottom: 3px solid var(--maincolor);
color: inherit;
text-decoration: none;
}
a:hover {
background-color: var(--hovercolor);
color: #fff;
}
/* --- enumerations --- */
ul {
list-style: none;
padding-left: 2ch;
}
ul li {
text-indent: -2ch;
}
ul > li::before {
content: '- ';
font-weight: bold;
}
/* --- tables --- */
table {
border-collapse: collapse;
}
table th {
padding: 6px 26px;
border: 1px solid #dfe2e5;
font-size: small;
}
table td {
padding: 6px 13px;
border: 1px solid #dfe2e5;
font-size: small;
}
/* --- images --- */
img {
border: 3px solid #ececec;
width: 100%;
height: 30vh;
object-fit: cover;
}
/* --- for NEXTPREV.HTML --- */
#nextprev {
/* The container for both the previous and next articles. */
}
#prevart {
float: left;
text-align: left;
}
#nextart {
float: right;
text-align: right;
}
#nextart,#prevart {
max-width: 33%;
}
/* --- tags --- */
.taglist {
text-align: center;
margin-block-start: 3em;
}
.tag::before {
content: "🏷 ";
}
/* --- other classes --- */
.no-before::before {
content: '';
}
.no-underline {
border-bottom: none;
}
article .title {
margin-bottom: 1em;
}
.content {
margin-bottom: 4em;
margin-left: auto;
margin-right: auto;
max-width: 800px;
padding: 0 1ch;
word-wrap: break-word;
}
.meta {
color: #999;
letter-spacing: -0.5px;
}
.toc {
background-color: #ececec;
color: #232333;
padding: 10px;
padding-bottom: 0;
border-radius: 5px;
display: inline-block;
}
.site-description {
display: flex;
justify-content: space-between;
}