aboutsummaryrefslogtreecommitdiff
path: root/assets/_shortcodes.scss
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-06-18 23:20:29 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-06-18 23:20:29 +0200
commitc679f74cff00b419c9c042190ff825c43788d672 (patch)
tree7d3b75aa8c6e27d24c131974ac82ad11c919ba7d /assets/_shortcodes.scss
parent12f2af4d34f9e836e40da8990aedef75e9e8f906 (diff)
Make columns shortcode mobile friendly
Diffstat (limited to 'assets/_shortcodes.scss')
-rw-r--r--assets/_shortcodes.scss17
1 files changed, 8 insertions, 9 deletions
diff --git a/assets/_shortcodes.scss b/assets/_shortcodes.scss
index 2ec5712..485f0f2 100644
--- a/assets/_shortcodes.scss
+++ b/assets/_shortcodes.scss
@@ -62,15 +62,14 @@
// {{< columns >}}
.book-columns {
- margin-top: $padding-16;
- margin-bottom: $padding-16;
-}
-.book-columns > {
- div {
- max-width: 50%;
- }
- div + div {
- margin-left: $padding-16 * 2;
+ margin-left: -$padding-16;
+ margin-right: -$padding-16;
+
+ > div {
+ margin: $padding-16 0;
+ // max-width: 50%;
+ min-width: $body-min-width * 0.66;
+ padding: 0 $padding-16;
}
}