Updated CSS

This commit is contained in:
jolzem committed 2024-01-21 19:00:15 +01:00
1 parent 6206487bc0
commit 692db759dc
7 files changed
+21 -79

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+21 -79
View File
@@ -1,29 +1,27 @@
@font-face { @font-face {
font-family: 'DM Mono'; font-family: 'Work Sans';
src: url('DMMono-Regular.woff2'); src: url('WorkSans-Regular.woff2');
font-weight: normal; font-weight: normal;
} }
@font-face { @font-face {
font-family: 'DM Mono'; font-family: 'Work Sans';
src: url('DMMono-Medium.woff2'); src: url('WorkSans-Medium.woff2');
font-weight: bold; font-weight: bold;
} }
@font-face { @font-face {
font-family: 'DM Mono'; font-family: 'Work Sans';
src: url('DMMono-Italic.woff2'); src: url('WorkSans-Italic.woff2');
font-style: italic; font-style: italic;
} }
:root { :root {
--txt: #c0ccdb; --txt: #f2f4f8;
--body-bg: #17191c; --body-bg: #161616;
--accent: #e4d294; --accent: #6690d9;
--border: #76818e; --border: #222;
--border-light: #a0a8b1; --font-body: 'Work Sans', sans-serif;
--green: #5da892;
--font-body: 'DM Mono', 'Lucida Console', 'Monaco', 'Courier New', 'Courier', monospace;
} }
body { body {
@@ -42,22 +40,9 @@ header {
font-size: 2rem; font-size: 2rem;
} }
/* Add typewriter animation when text fits without line break */
@media screen and (min-width: 570px) {
header {
display: inline-block;
overflow: hidden;
white-space: nowrap;
border-right: .05em solid var(--accent);
padding-right: 10px;
animation: typing 1s steps(80), blink-cursor 2s infinite;
}
}
header a { header a {
color: var(--accent); color: var(--accent);
text-decoration: none; text-decoration: none;
font-style: italic;
} }
nav, nav,
@@ -66,20 +51,22 @@ footer {
} }
nav a { nav a {
background-color: var(--border);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: .3rem; border-radius: .3rem;
margin: .7rem; margin: .7rem;
padding: .4rem 1.2rem; padding: .4rem 1.2rem;
text-decoration: none; text-decoration: none;
box-shadow: 0px 2px 3px -2px rgba(0,0,0,.3); box-shadow: 0px 2px 3px 2px rgba(0,0,0,.3);
user-select: none; user-select: none;
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
} }
nav a:hover { nav a:hover {
background-color: var(--body-bg);
border: 1px solid var(--border);
color: var(--txt); color: var(--txt);
border: 1px solid var(--border-light);
} }
main { main {
@@ -103,30 +90,6 @@ main ul {
display: block; display: block;
} }
@media screen and (min-width: 900px) {
.quick-fixes {
max-width: 75% !important;
}
}
@media screen and (max-width: 899px) {
.quick-fixes {
max-width: 90% !important;
}
}
.quick-fixes-table {
border-collapse: collapse;
table-layout: fixed;
width: 100%;
}
.quick-fixes-table th,
.quick-fixes-table td {
border: thin solid var(--border);
padding: .5rem;
}
.author { .author {
float: left; float: left;
max-width: 400px; max-width: 400px;
@@ -152,11 +115,11 @@ main ul {
} }
.no-dollar::before { .no-dollar::before {
content: '' !important; content: '';
} }
.cowsay { .cowsay {
font-family: var(--font-body); font-family: monospace;
text-align: left; text-align: left;
white-space: pre; white-space: pre;
max-width: fit-content; max-width: fit-content;
@@ -176,18 +139,15 @@ a {
transition: 300ms; transition: 300ms;
} }
a:hover,
a:active {
color: var(--accent);
}
h1, h1,
h2, h2,
h3, h3,
h4, h4,
h5, h5,
h6 { h6,
color: var(--green); a:hover,
a:active {
color: var(--accent);
} }
code { code {
@@ -197,21 +157,3 @@ code {
margin: .3rem; margin: .3rem;
} }
@keyframes typing {
from {
max-width: 0;
}
to {
max-width: 80%;
}
}
@keyframes blink-cursor {
from,
to {
border-color: transparent;
}
50% {
border-color: var(--accent);
}
}