diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-05-23 17:48:30 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-05-23 17:48:30 +0200 |
commit | 9f90c40517391901533f25bad48f5efb574b5605 (patch) | |
tree | b45d28b639ffa604e223b5e388d5375c668fe0a9 /assets | |
parent | f3796f43f337798d7bc22b94b93c45333976ea4b (diff) |
#39, Finish tabs shortcode
Diffstat (limited to 'assets')
-rw-r--r-- | assets/_shortcode.scss | 24 |
1 files changed, 15 insertions, 9 deletions
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; |