revises code fonts and styles

This commit is contained in:
Huy Tran 2018-04-04 22:04:36 +10:00
parent 5debbbb2e1
commit 82ce92d9c4
3 changed files with 12 additions and 15 deletions

View file

@ -14,7 +14,7 @@
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:title">
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Site.Params.meta.description }}{{ if eq $isHomePage false }} - {{ .Description }}{{ end }}" property="og:description">
{{ "<!-- CSS -->" | safeHTML }}
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i|Roboto+Mono:300,300i,400,400i,700,700i" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i|Roboto+Mono:300,300i,400,400i" rel="stylesheet">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">

View file

@ -4,6 +4,7 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{.}}.min.js"></script>
{{ end }}
<script type="text/javascript">
hljs.configure({languages: []});
hljs.initHighlightingOnLoad();
</script>
{{- end }}

View file

@ -32,7 +32,7 @@ body
.meta
{
font-size: .8rem !important;
font-size: .8rem;
font-weight: 300;
}
@ -50,28 +50,24 @@ pre
overflow-x: auto; /* no line wrapping */
}
pre,
code
pre code, li code, td code, code
{
font-family: 'Roboto Mono', monospace;
border-radius: 4px;
width: 100%;
font-size: .9em;
white-space: pre-wrap;
padding:1px 4px;
background: #eee;
/* color: #444; */
border: 1px solid #d9d9d9;
}
code {
padding:.20em .2em .10em;
background: #272932!important;
color: #ececec!important;
box-sizing: border-box;
margin: 0 .25em;
font-family: 'Roboto Mono', monospace;
font-size: 90%;
}
.copyright,
.poweredby
{
font-size: 13px !important;
font-size: 13px;
font-weight: 300;
}