add styles

This commit is contained in:
Alexander Popov 2021-12-15 21:19:43 +03:00
parent b771a3eb3d
commit 0d5217727a
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286
5 changed files with 75 additions and 4 deletions

View File

@ -11,3 +11,7 @@ insert_final_newline = true
[nginxconfig]
indent_style = space
indent_size = 4
[*.css]
indent_style = tab
indent_size = 4

View File

@ -1,6 +1,3 @@
## This repo deprecated
New repo URL: https://iiiypuk.me/git/iiiypuk/Gemini
## Using Software
* Server: [agate](https://github.com/mbrubeck/agate)
* HTTP proxy: [kineto](https://git.sr.ht/~sircmpwn/kineto)

View File

@ -1 +1 @@
./binary/kineto -b 127.0.0.1:8080 gemini://iiiypuk.me
./binary/kineto -b 127.0.0.1:8080 -e /assets/styles.css gemini://iiiypuk.me

8
public/assets/font.css Normal file

File diff suppressed because one or more lines are too long

62
public/assets/styles.css Normal file
View File

@ -0,0 +1,62 @@
@import url('font.css');
:root {
--bg-color: #14171a;
--fg-color: #cad1d8;
--fg2-color: #929ba3;
--font-family: 'Iosevka Fixed SS03 Web';
--font-size: 1.06em;
}
body {
background-color: var(--bg-color);
color: var(--fg-color);
font-family: var(--font-family);
font-size: var(--font-size);
}
h1, h2, h3 {
color: #fff;
font-size: var(--font-size);
}
h2, h3 { margin-top: 2em; }
h2:before {
content: " ";
color: var(--fg2-color);
}
h2:before {
content: "## ";
color: var(--fg2-color);
}
h3:before {
content: "### ";
color: var(--fg2-color);
}
a {
color: #fff;
text-decoration: none;
}
a:before {
content: "=> ";
color: var(--fg2-color);
border-size: 0;
}
article {
max-width: 90ch;
margin: 2em auto;
}
details {
display: none;
}
p {
margin: .5em 0;
}
pre {
font-family: var(--font-family);
font-size: .9em;
}