From c679f74cff00b419c9c042190ff825c43788d672 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 18 Jun 2019 23:20:29 +0200 Subject: Make columns shortcode mobile friendly --- assets/_shortcodes.scss | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'assets/_shortcodes.scss') 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; } } -- cgit v1.2.3