Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2017-07-11 22:06:28 +0300
committerYihui Xie <xie@yihui.name>2017-07-11 22:06:28 +0300
commit9c487f6e8f0e90478638d73935caeace243948f3 (patch)
tree392bbcbad4966664fa638de2f83e23a953e44591
parentb72a1b9c3aa975bc6653afdc2dbeba2c72335b09 (diff)
1em top margin for tables
because there won't be any vertical space between two consecutive tables, which looks ugly
-rw-r--r--layouts/partials/header.html2
-rw-r--r--static/css/style.css2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 6efd7d2..ebab038 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -9,7 +9,7 @@
{{ partial "head_custom.html" . }}
</head>
- <body>
+ <body{{if .IsPage}} class="page"{{ end }}>
<nav class="header">
<div class="banner"><a href="{{ relURL .Site.BaseURL }}"{{ if not .Site.Params.banner }} class="text"{{ end }}>
{{ with .Site.Params.banner }}
diff --git a/static/css/style.css b/static/css/style.css
index 1217356..3f96774 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -116,7 +116,7 @@ blockquote {
}
table {
- margin: auto;
+ margin: 1em auto auto;
border-top: 1px solid #666;
border-bottom: 1px solid #666;
}