diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-06-18 23:20:29 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-06-18 23:20:29 +0200 |
commit | c679f74cff00b419c9c042190ff825c43788d672 (patch) | |
tree | 7d3b75aa8c6e27d24c131974ac82ad11c919ba7d /assets/_shortcodes.scss | |
parent | 12f2af4d34f9e836e40da8990aedef75e9e8f906 (diff) |
Make columns shortcode mobile friendly
Diffstat (limited to 'assets/_shortcodes.scss')
-rw-r--r-- | assets/_shortcodes.scss | 17 |
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; } } |