mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-17 05:28:31 -04:00
Move CSS to external stylesheet
This commit is contained in:
parent
7af665757d
commit
229986d1fc
|
@ -142,6 +142,51 @@ main#content header#post-header time {
|
||||||
color: #767676;
|
color: #767676;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main#content #toc {
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
border-radius: 1px;
|
||||||
|
line-height: 26px;
|
||||||
|
margin: 16px 0;
|
||||||
|
padding: 9px 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main#content #toc h4 {
|
||||||
|
font-size: 1.06em;
|
||||||
|
color: #3d3d3d;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
main#content #toc nav#TableOfContents {
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main#content #toc nav#TableOfContents > ul, main#content #toc nav#TableOfContents > ol {
|
||||||
|
margin-left: -40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main#content #toc ul, main#content #toc ol {
|
||||||
|
font-size: 0.98em;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 0 0 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main#content #toc ul {
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
main#content #toc ol {
|
||||||
|
counter-reset: item;
|
||||||
|
}
|
||||||
|
|
||||||
|
main#content #toc ol li {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
main#content #toc ol li:before {
|
||||||
|
content: counters(item, ".") ". ";
|
||||||
|
counter-increment: item;
|
||||||
|
}
|
||||||
|
|
||||||
main#content img {
|
main#content img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
|
@ -9,25 +9,23 @@
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
<style type="text/css" media="screen">
|
{{ $resources := slice -}}
|
||||||
{{ partial "css/main.css" . | safeCSS }}
|
|
||||||
</style>
|
{{ $resources = $resources | append (resources.Get "css/main.css") -}}
|
||||||
|
|
||||||
|
{{ $resources = $resources | append (resources.Get "css/min770px.css") -}}
|
||||||
|
|
||||||
{{ $dark := .Site.Params.dark | default "auto" -}}
|
{{ $dark := .Site.Params.dark | default "auto" -}}
|
||||||
{{ if not (eq $dark "off") -}}
|
{{ if not (eq $dark "off") -}}
|
||||||
<style type="text/css" media="screen">
|
{{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}}
|
||||||
{{ partial "css/dark.css" . | safeCSS }}
|
|
||||||
</style>
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
<style type="text/css" media="(min-width: 770px)">
|
|
||||||
{{ partial "css/min770px.css" . | safeCSS }}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
{{ if .Site.Params.highlight -}}
|
{{ if .Site.Params.highlight -}}
|
||||||
{{ $syntax := resources.Get "css/syntax.css" | minify -}}
|
{{ $resources = $resources | append (resources.Get "css/syntax.css") -}}
|
||||||
{{ printf `<link rel="stylesheet" href="%s">` $syntax.Permalink | safeHTML }}
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ $css := $resources | resources.Concat "css/style.css" | minify }}
|
||||||
|
{{ printf `<link rel="stylesheet" href="%s">` $css.RelPermalink | safeHTML }}
|
||||||
|
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue