diff options
author | Yurizal Susanto <rizalsagi@gmail.com> | 2017-09-13 04:39:50 +0300 |
---|---|---|
committer | Yurizal Susanto <rizalsagi@gmail.com> | 2017-09-13 04:39:50 +0300 |
commit | 8e0248e315421ff178a9bab90e5318dd16d7c7ff (patch) | |
tree | 1f4f3b7cd48fe65815e12d9a70d58908aefd29d4 | |
parent | 38109d62ee9e86af651f99fbe9dc7104cf82bdba (diff) |
Change blockquote style
-rw-r--r-- | layouts/partials/style.html | 4 | ||||
-rw-r--r-- | static/css/ui.css | 16 |
2 files changed, 14 insertions, 6 deletions
diff --git a/layouts/partials/style.html b/layouts/partials/style.html index b27819e..37755da 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -1,6 +1,8 @@ <style> a { color: {{ .Site.Params.ColorTheme }}; } - blockquote { border-left-color: {{ .Site.Params.ColorTheme }}; } + blockquote { + border-left-color: {{ .Site.Params.ColorTheme }}; + border-right-color: {{ .Site.Params.ColorTheme }}; } .bar a:hover { color: {{ .Site.Params.ColorTheme }}; text-decoration: none; } diff --git a/static/css/ui.css b/static/css/ui.css index 6d3e9ae..b110203 100644 --- a/static/css/ui.css +++ b/static/css/ui.css @@ -223,19 +223,25 @@ td:last-child { blockquote { box-sizing: border-box; margin: 1.75em 0 1.75em 0; - padding: 0 0 0 1.25em; - border-left: #1eaedb 0.4em solid; + padding: 0 1em 0 1em; + border-left:0.4em solid; } -blockquote p { margin-bottom: 0; } +@media (min-width: 55rem) { + blockquote { + margin: 1.75em -2em 1.75em -2em; + padding: 0 1.5em 0 1.5em; + border-right:0.4em solid; + } +} -blockquote cite { +blockquote p:last-of-type cite { display: block; text-align: right; margin-right: 1rem; } -blockquote cite:before { content: "― "; } +blockquote p:last-of-type cite:before { content: "― "; } blockquote cite a { font-style: italic; |