diff options
author | Linlin Yan <yanlinlin82@gmail.com> | 2022-04-04 21:07:56 +0300 |
---|---|---|
committer | Linlin Yan <yanlinlin82@gmail.com> | 2022-04-04 21:07:56 +0300 |
commit | 935bfaaa53e43135103de922ba9ee875f033ab02 (patch) | |
tree | d8896f6a5b241dd0dffd8157b97bdf7e0d87fe98 | |
parent | d99321e01fb0a900efd64034376ee9c320e19710 (diff) |
Update CSS.
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/section.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | static/css/main.css | 55 |
4 files changed, 37 insertions, 24 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a1bb075..9e2a0df 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,7 @@ <div> <h1>{{ .Title }}</h1> </div> -<ul> +<ul class="article-list"> {{ range .Paginator.Pages -}} <li>{{ .Date.Format (.Site.Params.dateFormat | default "2006-01-02 15:04") }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> {{ end -}} diff --git a/layouts/_default/section.html b/layouts/_default/section.html index c7faf14..19302e9 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -5,7 +5,7 @@ <div> {{ .Content -}} </div> -<ul> +<ul class="article-list"> {{ range .Paginator.Pages -}} <li>{{ with .Date }}{{ .Format "2006-01-02 15:04" }} - {{ end }}<a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ with .Description }}: {{ . }}{{ end }}</li> {{ end -}} diff --git a/layouts/index.html b/layouts/index.html index 5537f06..1f8affa 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,7 +2,7 @@ <div> {{ .Content -}} </div> -<ul> +<ul class="article-list"> {{ range (.Paginate ( where .Site.RegularPages "Type" "in" site.Params.mainSections )).Pages -}} <li>{{ .Date.Format (.Site.Params.dateFormat | default "2006-01-02 15:04") }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> {{ end -}} diff --git a/static/css/main.css b/static/css/main.css index 2c1dd88..1088d5f 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -5,24 +5,6 @@ body { color: #333; } -h1 { - line-height: 2; - font-size: 160% -} - -h2 { - line-height: 1.6; - font-size: 120% -} - -h3, -h4, -h5, -h6 { - line-height: 1.2; - font-size: 100% -} - header { margin: 0; padding: 0; @@ -30,6 +12,15 @@ header { line-height: 1 } +header h1 { + font-size: 160%; +} + +header h2 { + font-size: 120%; +} + + footer { margin: 0; padding: 10px 0; @@ -38,6 +29,24 @@ footer { text-align: center } +article h1 { + line-height: 2; + font-size: 160% +} + +article h2 { + line-height: 1.6; + font-size: 120% +} + +article h3, +article h4, +article h5, +article h6 { + line-height: 1.2; + font-size: 100% +} + p, div, ul, @@ -104,16 +113,16 @@ h4 a:hover, h5 a:hover, h6 a:hover { text-decoration: none; - color: #f00 + color: #f80; } header nav { padding: 10px 0; - text-align: right + text-align: right; } header nav a { - padding-left: 15px + padding-left: 15px; } table { @@ -275,4 +284,8 @@ nav#TableOfContents ul { top: 1px; width: 300px; bottom: 100px +} + +.article-list li { + line-height: 1.5em; }
\ No newline at end of file |