aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans-Nikolai Viessmann2020-07-24 12:15:03 +0200
committerHans-Nikolai Viessmann2020-07-24 12:15:03 +0200
commit472c3968d5d177f9de3a9f1a058238eb13b38fe9 (patch)
tree8ccce02afc82dcab75408a8f9b7b6cfb4bddb462
parent7d1a7134b52676ca1de92ab15e2968fcc6a2240f (diff)
downloadpelican-theme-edream-472c3968d5d177f9de3a9f1a058238eb13b38fe9.tar.gz
pelican-theme-edream-472c3968d5d177f9de3a9f1a058238eb13b38fe9.zip
better support for figures/images
-rw-r--r--static/css/main.css30
1 files changed, 28 insertions, 2 deletions
diff --git a/static/css/main.css b/static/css/main.css
index 27bf5a5..f381f83 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -14,12 +14,37 @@
margin-bottom: 2rem;
}
-/* override section class */
+/* Override Bulma section class spec, which for some reason adds
+ * space on the left and right.
+ */
div .section {
padding: 1rem 0rem;
}
-/* special size */
+/* RST figure class, copied from Bulma figure#tag */
+.content .figure {
+ margin-left: 2em;
+ margin-right: 2em;
+ text-align: center;
+}
+
+.content .figure:not(:first-child) {
+ margin-top: 2em;
+}
+
+.content .figure:not(:last-child) {
+ margin-bottom: 2em;
+}
+
+.content .figure img {
+ display: inline-block;
+}
+
+.content .figure .caption {
+ font-style: italic;
+}
+
+/* Special handling for aside-menu */
.aside-column {
width: 185px;
text-align: right;
@@ -33,6 +58,7 @@ header {
margin-top: 2rem;
}
+/* Some responsive changes to style */
@media screen and (min-width: 769px), print {
#menu-top {
display: none;