Files
rezepte/hugo/assets/css/main.css

218 lines
2.7 KiB
CSS
Raw Normal View History

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