Browse Source

Adds additional button variables, basic styling for google buttons

pull/1177/head
jlukic 10 years ago
parent
commit
a7be087104
3 changed files with 13 additions and 2 deletions
  1. 1
      src/definitions/elements/button.less
  2. 1
      src/themes/packages/default/elements/button.variables
  3. 13
      src/themes/packages/google/elements/button.variables

1
src/definitions/elements/button.less

@ -626,6 +626,7 @@
.ui.basic.buttons .button.active, .ui.basic.buttons .button.active,
.ui.basic.button.active { .ui.basic.button.active {
background: @basicActiveBackground !important; background: @basicActiveBackground !important;
box-shadow: @basicActiveBoxShadow !important;
color: @basicActiveColor; color: @basicActiveColor;
box-shadow: @selectedBorderColor; box-shadow: @selectedBorderColor;
} }

1
src/themes/packages/default/elements/button.variables

@ -188,6 +188,7 @@
; ;
/* Basic Active */ /* Basic Active */
@basicActiveBackground: @transparentBlack; @basicActiveBackground: @transparentBlack;
@basicActiveBoxShadow: '';
@basicActiveColor: @selectedTextColor; @basicActiveColor: @selectedTextColor;
/* Basic Inverted */ /* Basic Inverted */

13
src/themes/packages/google/elements/button.variables

@ -32,7 +32,6 @@
box-shadow 0.3s @transitionEasing, box-shadow 0.3s @transitionEasing,
background 0.3s @transitionEasing background 0.3s @transitionEasing
; ;
/*------------------- /*-------------------
State State
--------------------*/ --------------------*/
@ -51,11 +50,21 @@
@activeBackgroundColor: #F0F0F0; @activeBackgroundColor: #F0F0F0;
@activeBoxShadow: 0px 0px 0px 1px #DDDDDD; @activeBoxShadow: 0px 0px 0px 1px #DDDDDD;
/*------------------- /*-------------------
Variations Variations
--------------------*/ --------------------*/
@basicBorderSize: 0px;
@basicBorderRadius: 4px;
@basicColoredBorderSize: 1px;
@basicHoverBackground: @white;
@basicHoverBoxShadow: @hoverBoxShadow;
@basicDownBackground: @white;
@basicDownBoxShadow: @downBoxShadow;
@basicActiveBackground: #FFFFFF;
@basicActiveBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2);
@labeledIconBackgroundColor: transparent; @labeledIconBackgroundColor: transparent;
@labeledIconWidth: 2em; @labeledIconWidth: 2em;

Loading…
Cancel
Save