Added fonts and changed css a bit

This commit is contained in:
Suguivy 2021-02-28 23:59:06 +01:00
parent 559fd628eb
commit e1102d887f
3 changed files with 21 additions and 6 deletions

View File

@ -1,14 +1,24 @@
@font-face {
font-family: FiraSans;
src: url('../fonts/FiraSans-Regular.ttf');
}
@font-face {
font-family: Iosevka;
src: url('../fonts/iosevka-regular.ttf');
}
html {
font-size: 62.5%;
font-size: 75.5%;
}
body {
font-family: FiraSans, sans;
font-size: 1.6rem;
color: #000;
}
header {
border-bottom: 0.2rem solid #000;
}
nav {
@ -116,6 +126,7 @@ article .header {
padding: 0;
}
header {
width: 60rem;
margin: 0 0 3rem;
padding: 1.2rem 0;
}

View File

@ -1,10 +1,10 @@
a.sourceLine { display: inline-block; line-height: 1.25; }
a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
a.sourceLine:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
.sourceCode { overflow: visible; border-radius: 8px; font-family: Iosevka; font-variant-ligatures: none;}
code.sourceCode { white-space: pre; position: relative; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
div.sourceCode { margin: 1em 0; border-style: solid; border-width: 3px; }
pre.sourceCode { margin: 15px; }
@media screen {
div.sourceCode { overflow: auto; }
}

View File

@ -6,7 +6,7 @@ import Hakyll
--------------------------------------------------------------------------------
config :: Configuration
config = defaultConfiguration
{ deployCommand = "scp -r _site/* mononobe:/var/www/nei.su"
{ deployCommand = "rsync -a _site/ mononobe:/var/www/nei.su"
}
@ -17,6 +17,10 @@ main = hakyllWith config $ do
route idRoute
compile copyFileCompiler
match "fonts/*" $ do
route idRoute
compile copyFileCompiler
match "css/*" $ do
route idRoute
compile compressCssCompiler