jolzem.com/css/style.css

144 lines
1.9 KiB
CSS
Raw Normal View History

2023-01-20 19:09:49 +01:00
:root {
2025-02-09 15:00:01 +01:00
--bg: #152528;
--dark-bg: #0f1c1e;
--txt: #e6eaea;
--header-txt: #e85c51;
--sec-header-txt: #ff8349;
--link-txt: #5a93aa;
2023-01-20 19:09:49 +01:00
}
body {
2025-02-09 15:00:01 +01:00
background: var(--bg);
2023-01-20 19:09:49 +01:00
color: var(--txt);
2025-02-09 15:00:01 +01:00
font-family: 'Consolas', 'Courier', monospace;
font-size: 130%
2023-01-20 19:09:49 +01:00
}
header {
2025-02-09 15:00:01 +01:00
min-height: 52pt;
2024-05-15 12:08:00 +02:00
display: flex;
align-items: center;
2025-02-09 15:00:01 +01:00
max-width: 95vw;
margin: 0 auto;
}
header a {
display: inline-block;
2025-02-09 15:00:01 +01:00
padding: 4pt 12pt;
2023-01-20 19:09:49 +01:00
}
2025-02-09 15:00:01 +01:00
header img {
height: 24pt;
2023-01-20 19:09:49 +01:00
}
2025-02-09 15:00:01 +01:00
blockquote {
font-style: italic;
padding-bottom: 24pt;
2023-01-20 19:09:49 +01:00
}
2025-02-09 15:00:01 +01:00
main {
max-width: min(800px, 80vw);
2023-01-20 19:09:49 +01:00
margin: 0 auto;
2025-02-09 15:00:01 +01:00
padding-bottom: 24pt;
2024-05-15 12:08:00 +02:00
}
2025-02-09 15:00:01 +01:00
.cowsay-wrapper {
min-width: 100%;
2024-05-15 12:08:00 +02:00
display: flex;
justify-content: center;
}
2025-02-09 15:00:01 +01:00
.cowsay {
font-family: monospace;
text-align: left;
white-space: pre;
max-width: fit-content;
display: inline-block;
2024-05-15 12:08:00 +02:00
}
2025-02-09 15:00:01 +01:00
.cards {
display: flex;
justify-content: space-evenly;
margin-bottom:48pt;
2024-05-15 12:08:00 +02:00
}
2025-02-09 15:00:01 +01:00
.portrait {
max-width: min(220px, 60vw);
2023-01-20 19:09:49 +01:00
}
2025-02-09 15:00:01 +01:00
.skills {
float: left !important;
width: 100%;
margin-bottom: 24pt;
}
2025-02-09 15:00:01 +01:00
/* 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;
2023-01-20 19:09:49 +01:00
}
2023-05-15 14:36:38 +02:00
.author {
float: left;
max-width: 400px;
2025-02-09 15:00:01 +01:00
margin-bottom: 2rem;
2023-05-15 14:36:38 +02:00
}
.date {
overflow: hidden;
text-align: right;
margin-bottom: 2rem;
}
.code {
2025-02-09 15:00:01 +01:00
background: var(--dark-bg);
padding: 1rem;
border-radius: 1rem;
}
2025-02-09 15:00:01 +01:00
.cmd::before {
content: '$ ';
}
2025-02-09 15:00:01 +01:00
footer {
width: 100%;
text-align: center;
}
2025-02-09 15:00:01 +01:00
h1 {
color: var(--header-txt);
2023-01-20 19:09:49 +01:00
}
2025-02-09 15:00:01 +01:00
h2, h3, h4, h5, h6 {
color: var(--sec-header-txt);
2024-05-15 12:08:00 +02:00
}
2023-01-20 19:09:49 +01:00
p {
2025-02-09 15:00:01 +01:00
margin: 16pt;
display: block;
text-align: justify;
line-height: 1.25;
2023-01-20 19:09:49 +01:00
}
a {
2025-02-09 15:00:01 +01:00
color: var(--link-txt);
text-decoration-color: rgba(0,0,0,0);
transition: text-decoration .3s;
}
2025-02-09 15:00:01 +01:00
a:hover, a:active {
text-decoration-color: var(--link-txt);
2023-01-22 12:15:53 +01:00
}