Browse Source

Add more variables for button colors #1591

pull/1615/head
jlukic 10 years ago
parent
commit
fbae3603d3
2 changed files with 78 additions and 55 deletions
  1. 109
      src/definitions/elements/button.less
  2. 24
      src/themes/default/elements/button.variables

109
src/definitions/elements/button.less

@ -1158,8 +1158,8 @@
.ui.black.buttons .button, .ui.black.buttons .button,
.ui.black.button { .ui.black.button {
background-color: @black; background-color: @black;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @blackTextColor;
text-shadow: @blackTextShadow;
background-image: @coloredBackgroundImage; background-image: @coloredBackgroundImage;
} }
.ui.black.button { .ui.black.button {
@ -1174,16 +1174,16 @@
.ui.black.buttons .button:active, .ui.black.buttons .button:active,
.ui.black.button:active { .ui.black.button:active {
background-color: @blackDown; background-color: @blackDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @blackTextColor;
text-shadow: @blackTextShadow;
} }
.ui.black.buttons .active.button, .ui.black.buttons .active.button,
.ui.black.buttons .active.button:active, .ui.black.buttons .active.button:active,
.ui.black.active.button, .ui.black.active.button,
.ui.black.button .active.button:active { .ui.black.button .active.button:active {
background-color: @blackActive; background-color: @blackActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @blackTextColor;
text-shadow: @blackTextShadow;
} }
/* Basic */ /* Basic */
@ -1272,8 +1272,8 @@
.ui.blue.buttons .button, .ui.blue.buttons .button,
.ui.blue.button { .ui.blue.button {
background-color: @blue; background-color: @blue;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @blueTextColor;
text-shadow: @blueTextShadow;
background-image: @coloredBackgroundImage; background-image: @coloredBackgroundImage;
} }
.ui.blue.button { .ui.blue.button {
@ -1288,19 +1288,18 @@
.ui.blue.buttons .button:active, .ui.blue.buttons .button:active,
.ui.blue.button:active { .ui.blue.button:active {
background-color: @blueDown; background-color: @blueDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @blueTextColor;
text-shadow: @blueTextShadow;
} }
.ui.blue.buttons .active.button, .ui.blue.buttons .active.button,
.ui.blue.buttons .active.button:active, .ui.blue.buttons .active.button:active,
.ui.blue.active.button, .ui.blue.active.button,
.ui.blue.button .active.button:active { .ui.blue.button .active.button:active {
background-color: @blueActive; background-color: @blueActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @blueTextColor;
text-shadow: @blueTextShadow;
} }
/* Basic */ /* Basic */
.ui.basic.blue.buttons .button, .ui.basic.blue.buttons .button,
.ui.basic.blue.button { .ui.basic.blue.button {
@ -1385,8 +1384,8 @@
.ui.green.buttons .button, .ui.green.buttons .button,
.ui.green.button { .ui.green.button {
background-color: @green; background-color: @green;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @greenTextColor;
text-shadow: @greenTextShadow;
background-image: @coloredBackgroundImage; background-image: @coloredBackgroundImage;
} }
.ui.green.button { .ui.green.button {
@ -1401,16 +1400,16 @@
.ui.green.buttons .button:active, .ui.green.buttons .button:active,
.ui.green.button:active { .ui.green.button:active {
background-color: @greenDown; background-color: @greenDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @greenTextColor;
text-shadow: @greenTextShadow;
} }
.ui.green.buttons .active.button, .ui.green.buttons .active.button,
.ui.green.buttons .active.button:active, .ui.green.buttons .active.button:active,
.ui.green.active.button, .ui.green.active.button,
.ui.green.button .active.button:active { .ui.green.button .active.button:active {
background-color: @greenActive; background-color: @greenActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @greenTextColor;
text-shadow: @greenTextShadow;
} }
@ -1498,8 +1497,8 @@
.ui.orange.buttons .button, .ui.orange.buttons .button,
.ui.orange.button { .ui.orange.button {
background-color: @orange; background-color: @orange;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @orangeTextColor;
text-shadow: @orangeTextShadow;
background-image: @coloredBackgroundImage; background-image: @coloredBackgroundImage;
} }
.ui.orange.button { .ui.orange.button {
@ -1514,16 +1513,16 @@
.ui.orange.buttons .button:active, .ui.orange.buttons .button:active,
.ui.orange.button:active { .ui.orange.button:active {
background-color: @orangeDown; background-color: @orangeDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @orangeTextColor;
text-shadow: @orangeTextShadow;
} }
.ui.orange.buttons .active.button, .ui.orange.buttons .active.button,
.ui.orange.buttons .active.button:active, .ui.orange.buttons .active.button:active,
.ui.orange.active.button, .ui.orange.active.button,
.ui.orange.button .active.button:active { .ui.orange.button .active.button:active {
background-color: @orangeActive; background-color: @orangeActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @orangeTextColor;
text-shadow: @orangeTextShadow;
} }
/* Basic */ /* Basic */
@ -1610,8 +1609,8 @@
.ui.pink.buttons .button, .ui.pink.buttons .button,
.ui.pink.button { .ui.pink.button {
background-color: @pink; background-color: @pink;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @pinkTextColor;
text-shadow: @pinkTextShadow;
background-image: @coloredBackgroundImage; background-image: @coloredBackgroundImage;
} }
.ui.pink.button { .ui.pink.button {
@ -1626,16 +1625,16 @@
.ui.pink.buttons .button:active, .ui.pink.buttons .button:active,
.ui.pink.button:active { .ui.pink.button:active {
background-color: @pinkDown; background-color: @pinkDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @pinkTextColor;
text-shadow: @pinkTextShadow;
} }
.ui.pink.buttons .active.button, .ui.pink.buttons .active.button,
.ui.pink.buttons .active.button:active, .ui.pink.buttons .active.button:active,
.ui.pink.active.button, .ui.pink.active.button,
.ui.pink.button .active.button:active { .ui.pink.button .active.button:active {
background-color: @pinkActive; background-color: @pinkActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @pinkTextColor;
text-shadow: @pinkTextShadow;
} }
/* Basic */ /* Basic */
@ -1722,8 +1721,8 @@
.ui.purple.buttons .button, .ui.purple.buttons .button,
.ui.purple.button { .ui.purple.button {
background-color: @purple; background-color: @purple;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @purpleTextColor;
text-shadow: @purpleTextShadow;
background-image: @coloredBackgroundImage; background-image: @coloredBackgroundImage;
} }
.ui.purple.button { .ui.purple.button {
@ -1738,16 +1737,16 @@
.ui.purple.buttons .button:active, .ui.purple.buttons .button:active,
.ui.purple.button:active { .ui.purple.button:active {
background-color: @purpleDown; background-color: @purpleDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @purpleTextColor;
text-shadow: @purpleTextShadow;
} }
.ui.purple.buttons .active.button, .ui.purple.buttons .active.button,
.ui.purple.buttons .active.button:active, .ui.purple.buttons .active.button:active,
.ui.purple.active.button, .ui.purple.active.button,
.ui.purple.button .active.button:active { .ui.purple.button .active.button:active {
background-color: @purpleActive; background-color: @purpleActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @purpleTextColor;
text-shadow: @purpleTextShadow;
} }
/* Basic */ /* Basic */
@ -1834,8 +1833,8 @@
.ui.red.buttons .button, .ui.red.buttons .button,
.ui.red.button { .ui.red.button {
background-color: @red; background-color: @red;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @redTextColor;
text-shadow: @redTextShadow;
background-image: @coloredBackgroundImage; background-image: @coloredBackgroundImage;
} }
.ui.red.button { .ui.red.button {
@ -1850,16 +1849,16 @@
.ui.red.buttons .button:active, .ui.red.buttons .button:active,
.ui.red.button:active { .ui.red.button:active {
background-color: @redDown; background-color: @redDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @redTextColor;
text-shadow: @redTextShadow;
} }
.ui.red.buttons .active.button, .ui.red.buttons .active.button,
.ui.red.buttons .active.button:active, .ui.red.buttons .active.button:active,
.ui.red.active.button, .ui.red.active.button,
.ui.red.button .active.button:active { .ui.red.button .active.button:active {
background-color: @redActive; background-color: @redActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @redTextColor;
text-shadow: @redTextShadow;
} }
/* Basic */ /* Basic */
@ -1947,8 +1946,8 @@
.ui.teal.buttons .button, .ui.teal.buttons .button,
.ui.teal.button { .ui.teal.button {
background-color: @teal; background-color: @teal;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @tealTextColor;
text-shadow: @tealTextShadow;
background-image: @coloredBackgroundImage; background-image: @coloredBackgroundImage;
} }
.ui.teal.button { .ui.teal.button {
@ -1963,16 +1962,16 @@
.ui.teal.buttons .button:active, .ui.teal.buttons .button:active,
.ui.teal.button:active { .ui.teal.button:active {
background-color: @tealDown; background-color: @tealDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @tealTextColor;
text-shadow: @tealTextShadow;
} }
.ui.teal.buttons .active.button, .ui.teal.buttons .active.button,
.ui.teal.buttons .active.button:active, .ui.teal.buttons .active.button:active,
.ui.teal.active.button, .ui.teal.active.button,
.ui.teal.button .active.button:active { .ui.teal.button .active.button:active {
background-color: @tealActive; background-color: @tealActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @tealTextColor;
text-shadow: @tealTextShadow;
} }
/* Basic */ /* Basic */
@ -2060,8 +2059,8 @@
.ui.yellow.buttons .button, .ui.yellow.buttons .button,
.ui.yellow.button { .ui.yellow.button {
background-color: @yellow; background-color: @yellow;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @yellowTextColor;
text-shadow: @yellowTextShadow;
background-image: @coloredBackgroundImage; background-image: @coloredBackgroundImage;
} }
.ui.yellow.button { .ui.yellow.button {
@ -2076,16 +2075,16 @@
.ui.yellow.buttons .button:active, .ui.yellow.buttons .button:active,
.ui.yellow.button:active { .ui.yellow.button:active {
background-color: @yellowDown; background-color: @yellowDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @yellowTextColor;
text-shadow: @yellowTextShadow;
} }
.ui.yellow.buttons .active.button, .ui.yellow.buttons .active.button,
.ui.yellow.buttons .active.button:active, .ui.yellow.buttons .active.button:active,
.ui.yellow.active.button, .ui.yellow.active.button,
.ui.yellow.button .active.button:active { .ui.yellow.button .active.button:active {
background-color: @yellowActive; background-color: @yellowActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
color: @yellowTextColor;
text-shadow: @yellowTextShadow;
} }
/* Basic */ /* Basic */

24
src/themes/default/elements/button.variables

@ -234,6 +234,30 @@
@coloredBackgroundImage: none; @coloredBackgroundImage: none;
@coloredBoxShadow: @shadowBoxShadow; @coloredBoxShadow: @shadowBoxShadow;
/* Inverted by default for solids */
@blueTextColor: @invertedTextColor;
@blueTextShadow: @invertedTextShadow;
@greenTextColor: @invertedTextColor;
@greenTextShadow: @invertedTextShadow;
@greyTextColor: @invertedTextColor;
@greyTextShadow: @invertedTextShadow;
@orangeTextColor: @invertedTextColor;
@orangeTextShadow: @invertedTextShadow;
@pinkTextColor: @invertedTextColor;
@pinkTextShadow: @invertedTextShadow;
@purpleTextColor: @invertedTextColor;
@purpleTextShadow: @invertedTextShadow;
@redTextColor: @invertedTextColor;
@redTextShadow: @invertedTextShadow;
@tealTextColor: @invertedTextColor;
@tealTextShadow: @invertedTextShadow;
@yellowTextColor: @invertedTextColor;
@yellowTextShadow: @invertedTextShadow;
@blackTextColor: @invertedTextColor;
@blackTextShadow: @invertedTextShadow;
/* Ordinality */ /* Ordinality */
@primaryBackgroundImage: @coloredBackgroundImage; @primaryBackgroundImage: @coloredBackgroundImage;
@primaryTextColor: @invertedTextColor; @primaryTextColor: @invertedTextColor;

Loading…
Cancel
Save