summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-01-21 13:29:12 +0100
committerJonas Smedegaard <dr@jones.dk>2014-01-21 13:29:12 +0100
commitca5da59e35e411a831e6dbb15db02b62134b18bc (patch)
treea002f3dfbf35b6ceeeba5e02cb547cd52990ddcf
parent737c3c3140a4cb03b370eb09cc65caac899a2f9d (diff)
Merge img directive styling: avoid img.img altogether and extend captions styling.
-rw-r--r--style.scss22
1 files changed, 8 insertions, 14 deletions
diff --git a/style.scss b/style.scss
index ea1c755..3737c45 100644
--- a/style.scss
+++ b/style.scss
@@ -16,11 +16,17 @@
@include ikiwiki-debug;
@include ikiwiki-plugin-highlight;
@include ikiwiki-plugin-color;
-// from excluded ikiwiki-plugin-img
+// based on ikiwiki-plugin-img
+// - img.img styling
+// + left-aligned
+// + vertical margin
+// + line-height
.img caption {
+ margin: -1em 0 1.5em;
+ line-height: 175%;
font-size: 80%;
caption-side: bottom;
- text-align: center;
+ text-align: left;
}
// shell
// layout
@@ -213,18 +219,6 @@ img {
height: auto;
}
-// Override _ikiwiki.style.css
-img.img {
- margin: 0 1em 1em 0;
-}
-
-.img caption {
- text-align: left;
- line-height: 175%;
- margin-bottom: 1.5em;
- margin-top: -1em;
-}
-
#content img.deco {
display: block;
clear: both;