From f1b9da3ce1774994a900d50401c2f9f8866bcce8 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 9 Feb 2015 15:56:46 -0500 Subject: [PATCH] #1755 #1744, adds additional variables for loading button, makes pointer events disabled in default theme --- src/definitions/elements/button.less | 5 +++-- src/themes/default/elements/button.variables | 7 ++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/definitions/elements/button.less b/src/definitions/elements/button.less index 3fc88131b..5d3d75a0f 100755 --- a/src/definitions/elements/button.less +++ b/src/definitions/elements/button.less @@ -134,10 +134,11 @@ .ui.loading.loading.loading.loading.loading.loading.button { position: relative; cursor: default; - point-events: none; text-shadow: none !important; color: transparent !important; - transition: all 0s linear; + opacity: @loadingOpacity; + pointer-events: @loadingPointerEvents; + transition: @loadingTransition; } .ui.loading.button:before { position: absolute; diff --git a/src/themes/default/elements/button.variables b/src/themes/default/elements/button.variables index cf29ce59b..3ee2cf2d7 100644 --- a/src/themes/default/elements/button.variables +++ b/src/themes/default/elements/button.variables @@ -123,7 +123,12 @@ @activeHoverBoxShadow: @activeBoxShadow; /* Loading */ -@loadingBackground: @offWhite; +@loadingOpacity: 1; +@loadingPointerEvents: none; +@loadingTransition: + all 0s linear, + opacity @transitionDuration @defaultEasing +; /*------------------- Types