From 9f90c40517391901533f25bad48f5efb574b5605 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 23 May 2019 17:48:30 +0200 Subject: #39, Finish tabs shortcode --- assets/_shortcode.scss | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'assets/_shortcode.scss') diff --git a/assets/_shortcode.scss b/assets/_shortcode.scss index db62617..e36d86c 100644 --- a/assets/_shortcode.scss +++ b/assets/_shortcode.scss @@ -9,6 +9,7 @@ } } +// {{< expand "Label" "icon" >}} .book-expand { border: 1px solid $gray-200; @@ -28,29 +29,34 @@ } } +// {{< tabs >}} .book-tabs { border: 1px solid $gray-200; + display: flex; + flex-wrap: wrap; - .book-tabs-head { - border-bottom: $padding-1 solid $gray-100; - - label { - display: inline-block; - padding: $padding-8 $padding-16; - cursor: pointer; - } + label { + display: inline-block; + padding: $padding-8 $padding-16; + cursor: pointer; } .book-tabs-content { + order: 999; //Move content blocks to the end + border-top: $padding-1 solid $gray-100; padding: $padding-16; display: none; } - input[type="radio"]:checked + .book-tabs-content { + input[type="radio"]:checked + label { + border-bottom: $padding-1 solid $color-link; + } + input[type="radio"]:checked + label + .book-tabs-content { display: block; } } +// {{< columns >}} .book-columns > { div + div { margin-left: $padding-16 * 2; -- cgit v1.2.3