jolzem.com/css/style.css
2025-02-09 15:00:01 +01:00

144 lines
1.9 KiB
CSS

:root {
--bg: #152528;
--dark-bg: #0f1c1e;
--txt: #e6eaea;
--header-txt: #e85c51;
--sec-header-txt: #ff8349;
--link-txt: #5a93aa;
}
body {
background: var(--bg);
color: var(--txt);
font-family: 'Consolas', 'Courier', monospace;
font-size: 130%
}
header {
min-height: 52pt;
display: flex;
align-items: center;
max-width: 95vw;
margin: 0 auto;
}
header a {
display: inline-block;
padding: 4pt 12pt;
}
header img {
height: 24pt;
}
blockquote {
font-style: italic;
padding-bottom: 24pt;
}
main {
max-width: min(800px, 80vw);
margin: 0 auto;
padding-bottom: 24pt;
}
.cowsay-wrapper {
min-width: 100%;
display: flex;
justify-content: center;
}
.cowsay {
font-family: monospace;
text-align: left;
white-space: pre;
max-width: fit-content;
display: inline-block;
}
.cards {
display: flex;
justify-content: space-evenly;
margin-bottom:48pt;
}
.portrait {
max-width: min(220px, 60vw);
}
.skills {
float: left !important;
width: 100%;
margin-bottom: 24pt;
}
/* float right when on desktop */
@media (min-width: 500px) {
.portrait {
float: right;
height: 300px;
margin-left: 2rem;
}
.skills {
width: 50%;
height: 14rem;
}
}
.blog-entry p {
margin: 0;
}
.author {
float: left;
max-width: 400px;
margin-bottom: 2rem;
}
.date {
overflow: hidden;
text-align: right;
margin-bottom: 2rem;
}
.code {
background: var(--dark-bg);
padding: 1rem;
border-radius: 1rem;
}
.cmd::before {
content: '$ ';
}
footer {
width: 100%;
text-align: center;
}
h1 {
color: var(--header-txt);
}
h2, h3, h4, h5, h6 {
color: var(--sec-header-txt);
}
p {
margin: 16pt;
display: block;
text-align: justify;
line-height: 1.25;
}
a {
color: var(--link-txt);
text-decoration-color: rgba(0,0,0,0);
transition: text-decoration .3s;
}
a:hover, a:active {
text-decoration-color: var(--link-txt);
}