From f0be8ec7ec63d056346179c357e18fffa8b56d64 Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 2 Oct 2014 19:24:37 -0400 Subject: [PATCH] Fixes right labeled to be word order dependent --- src/definitions/elements/button.less | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/definitions/elements/button.less b/src/definitions/elements/button.less index 13f1cd825..89c3f6530 100755 --- a/src/definitions/elements/button.less +++ b/src/definitions/elements/button.less @@ -704,6 +704,19 @@ padding-right: @horizontalPadding !important; } +/* Right Labeled */ +.ui[class*="right labeled"].icon.button { + padding-right: @labeledIconPadding !important; + padding-left: @horizontalPadding !important; +} +.ui[class*="right labeled"].icon.button > .icon { + left: auto; + right: 0em; + border-radius: 0em @borderRadius @borderRadius 0em; + box-shadow: @labeledIconRightShadow; +} + + .ui.labeled.icon.buttons > .button > .icon, .ui.labeled.icon.button > .icon { position: absolute; @@ -754,22 +767,13 @@ border-bottom-left-radius: @borderRadius; } -.ui.right.labeled.icon.button { - padding-right: @labeledIconPadding !important; - padding-left: @horizontalPadding !important; -} -.ui.left.fluid.labeled.icon.button, -.ui.right.fluid.labeled.icon.button { +/* Fluid Labeled */ +.ui.fluid[class*="left labeled"].icon.button, +.ui.fluid[class*="right labeled"].icon.button { padding-left: @horizontalPadding !important; padding-right: @horizontalPadding !important; } -.ui.right.labeled.icon.button > .icon { - left: auto; - right: 0em; - border-radius: 0em @borderRadius @borderRadius 0em; - box-shadow: @labeledIconRightShadow; -}