From 728191ca0794601ba64dc2faec524bbfc1626d10 Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Tue, 9 Jun 2020 16:31:51 -0700 Subject: [PATCH] Fold styles tab styles up into where they're used --- src/Nri/Ui/Tabs/V5.elm | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/src/Nri/Ui/Tabs/V5.elm b/src/Nri/Ui/Tabs/V5.elm index 75d6869b..defc84e9 100644 --- a/src/Nri/Ui/Tabs/V5.elm +++ b/src/Nri/Ui/Tabs/V5.elm @@ -441,24 +441,22 @@ stylesTabSelectable isSelected = (Css.stop2 (Nri.Ui.Colors.Extra.withAlpha 0 Colors.azure) (Css.pct 25)) [ Css.stop2 (Nri.Ui.Colors.Extra.withAlpha 0 Colors.azure) (Css.pct 100) ] ] + + stylesTab = + [ Css.display Css.inlineBlock + , Css.borderTopLeftRadius (Css.px 10) + , Css.borderTopRightRadius (Css.px 10) + , Css.border3 (Css.px 1) Css.solid Colors.navy + , Css.marginBottom (Css.px -1) + , Css.marginLeft (Css.px 10) + , Css.cursor Css.pointer + , Css.firstChild + [ Css.marginLeft Css.zero + ] + , property "transition" "background-color 0.2s" + , hover + [ backgroundColor Colors.white + ] + ] in stylesTab ++ stylesDynamic - - -stylesTab : List Style -stylesTab = - [ Css.display Css.inlineBlock - , Css.borderTopLeftRadius (Css.px 10) - , Css.borderTopRightRadius (Css.px 10) - , Css.border3 (Css.px 1) Css.solid Colors.navy - , Css.marginBottom (Css.px -1) - , Css.marginLeft (Css.px 10) - , Css.cursor Css.pointer - , Css.firstChild - [ Css.marginLeft Css.zero - ] - , property "transition" "background-color 0.2s" - , hover - [ backgroundColor Colors.white - ] - ]