From 7939aad2aa9b183da1aa2c46b911529fd0c159ea Mon Sep 17 00:00:00 2001 From: Rafal Leszczynski Date: Wed, 9 Mar 2016 15:31:59 +0100 Subject: [PATCH] DAT-3855, add new class labelless hirizontal group to make it easier for users to overwrite styles --- styles/PortableInfoboxEuropaTheme.scss | 11 +++++++---- .../PortableInfoboxHorizontalGroupContent.mustache | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/styles/PortableInfoboxEuropaTheme.scss b/styles/PortableInfoboxEuropaTheme.scss index f94264e..90bafe8 100644 --- a/styles/PortableInfoboxEuropaTheme.scss +++ b/styles/PortableInfoboxEuropaTheme.scss @@ -142,18 +142,21 @@ $tabber-background-color: mix($black, $color-buttons, $background-color-mix * 4) } .pi-data-label { - padding: $infobox-side-spacing $infobox-side-spacing $horizontal-group-label-spacing; + padding: $infobox-data-spacing $infobox-side-spacing $horizontal-group-label-spacing; } .pi-data-value { padding-left: $infobox-side-spacing; - } - - thead + tbody .pi-data-value { padding-top: 0; } } + .pi-horizontal-group-no-labels { + .pi-data-value { + padding-top: $infobox-data-spacing; + } + } + .pi-horizontal-group-item { &:nth-child(even) { background-color: $horizontal-group-stripe-background; diff --git a/templates/PortableInfoboxHorizontalGroupContent.mustache b/templates/PortableInfoboxHorizontalGroupContent.mustache index a52d6f9..d9271cc 100644 --- a/templates/PortableInfoboxHorizontalGroupContent.mustache +++ b/templates/PortableInfoboxHorizontalGroupContent.mustache @@ -1,4 +1,4 @@ - +
{{#header}}{{/header}} {{#renderLabels}}
{{{header}}}