chore: add assets

This commit is contained in:
Wiktor Zykubek 2024-12-28 01:28:35 +01:00
parent fa2d060602
commit 1e765ba3c6
Signed by: wzykubek
GPG Key ID: 2221881F957D89B9
3 changed files with 201 additions and 0 deletions

183
assets/css/main.css Normal file
View File

@ -0,0 +1,183 @@
@import url("https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");
body {
background-color: var(--base);
color: var(--text);
font-family: "Funnel Display", sans-serif;
line-height: 1.5;
margin: auto;
max-width: 768px;
}
@media only screen and (max-width: 810px) {
body {
max-width: 90vw;
}
.hidden-on-mobile {
display: none;
}
}
header {
border-bottom: 1px solid var(--highlightLow);
margin-bottom: 1rem;
}
nav > ul {
margin: 0;
padding: 0;
}
nav > ul > li {
display: inline;
list-style: none;
margin-right: 10px;
}
ul {
padding-left: 15px;
}
.flex-space-between {
display: flex;
justify-content: space-between;
}
time {
font-size: 14px;
color: var(--muted);
}
footer {
border-top: 1px solid var(--highlightLow);
margin-top: 1rem;
color: var(--muted);
}
p {
text-align: justify;
font-size: 15px;
}
/* */
:is(h1, h2, h3, h4, h5) {
color: var(--gold);
}
:is(h1, h2, h3, h4, h5) > a {
color: var(--pine);
}
h1 > a {
color: var(--love);
}
a {
color: var(--love);
text-decoration: none;
font-weight: bold;
}
a:hover {
color: var(--rose);
text-decoration: underline;
transition: 0.3s;
}
:is(h1, h2, h3, h4, h5, h6)::before {
content: "#";
color: var(--muted);
margin-right: 10px;
}
header > h1::after {
content: "_";
color: var(--muted);
animation: blink-animation 1.5s steps(5, start) infinite;
-webkit-animation: blink-animation 1.5s steps(5, start) infinite;
}
@keyframes blink-animation {
to {
visibility: hidden;
}
}
@-webkit-keyframes blink-animation {
to {
visibility: hidden;
}
}
.inline-heading {
display: inline;
margin-left: 10px;
}
blockquote {
border-left: 5px solid var(--rose);
border-radius: 3px;
margin: 0px;
background-color: var(--surface);
}
blockquote > p {
margin-left: 10px;
padding: 3px;
}
pre,
code {
background-color: var(--overlay) !important;
font-family: "Roboto Mono", monospace;
font-size: 14px;
border-radius: 3px;
}
pre {
padding: 10px 16px;
overflow: auto;
}
code {
color: var(--gold);
padding: 0px 3px;
}
pre > code {
padding: 0;
}
code > span {
color: var(--iris);
}
table {
margin: auto;
width: 100%;
}
th,
td {
padding: 5px 10px;
}
th {
/*min-width: 180px;*/
background-color: var(--overlay);
text-align: center !important;
}
tr {
max-width: 500px;
}
tr:nth-child(odd) {
background-color: var(--highlightHigh);
}
tr:nth-child(even) {
background-color: var(--highlightMed);
}

View File

@ -0,0 +1,17 @@
* {
--base: #191724;
--surface: #1f1d2e;
--overlay: #26233a;
--muted: #6e6a86;
--subtle: #908caa;
--text: #e0def4;
--love: #eb6f92;
--gold: #f6c177;
--rose: #ebbcba;
--pine: #31748f;
--foam: #9ccfd8;
--iris: #c4a7e7;
--highlightLow: #21202e;
--highlightMed: #403d52;
--highlightHigh: #524f67;
}

1
assets/js/main.js Normal file
View File

@ -0,0 +1 @@
console.log('This site was generated by Hugo.');