Browse Source

Tweaking card shadows

pull/2053/head
jlukic 9 years ago
parent
commit
5b4c5c617c
2 changed files with 19 additions and 1 deletions
  1. 18
      src/definitions/views/card.less
  2. 2
      src/themes/default/views/card.variables

18
src/definitions/views/card.less

@ -463,6 +463,7 @@ a.ui.card:hover,
.ui.cards > .black.card, .ui.cards > .black.card,
.ui.black.card { .ui.black.card {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @black, 0px @coloredShadowDistance 0px 0px @black,
@shadowBoxShadow @shadowBoxShadow
; ;
@ -471,6 +472,7 @@ a.ui.card:hover,
.ui.cards > .blue.card, .ui.cards > .blue.card,
.ui.blue.card { .ui.blue.card {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @blue, 0px @coloredShadowDistance 0px 0px @blue,
@shadowBoxShadow @shadowBoxShadow
; ;
@ -479,6 +481,7 @@ a.ui.card:hover,
.ui.cards > .green.card, .ui.cards > .green.card,
.ui.green.card { .ui.green.card {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @green, 0px @coloredShadowDistance 0px 0px @green,
@shadowBoxShadow @shadowBoxShadow
; ;
@ -487,6 +490,7 @@ a.ui.card:hover,
.ui.cards > .orange.card, .ui.cards > .orange.card,
.ui.orange.card { .ui.orange.card {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @orange, 0px @coloredShadowDistance 0px 0px @orange,
@shadowBoxShadow @shadowBoxShadow
; ;
@ -495,6 +499,7 @@ a.ui.card:hover,
.ui.cards > .pink.card, .ui.cards > .pink.card,
.ui.pink.card { .ui.pink.card {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @pink, 0px @coloredShadowDistance 0px 0px @pink,
@shadowBoxShadow @shadowBoxShadow
; ;
@ -503,6 +508,7 @@ a.ui.card:hover,
.ui.cards > .purple.card, .ui.cards > .purple.card,
.ui.purple.card { .ui.purple.card {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @purple, 0px @coloredShadowDistance 0px 0px @purple,
@shadowBoxShadow @shadowBoxShadow
; ;
@ -511,6 +517,7 @@ a.ui.card:hover,
.ui.cards > .red.card, .ui.cards > .red.card,
.ui.red.card { .ui.red.card {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @red, 0px @coloredShadowDistance 0px 0px @red,
@shadowBoxShadow @shadowBoxShadow
; ;
@ -519,6 +526,7 @@ a.ui.card:hover,
.ui.cards > .teal.card, .ui.cards > .teal.card,
.ui.teal.card { .ui.teal.card {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @teal, 0px @coloredShadowDistance 0px 0px @teal,
@shadowBoxShadow @shadowBoxShadow
; ;
@ -527,6 +535,7 @@ a.ui.card:hover,
.ui.cards > .yellow.card, .ui.cards > .yellow.card,
.ui.yellow.card { .ui.yellow.card {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @yellow, 0px @coloredShadowDistance 0px 0px @yellow,
@shadowBoxShadow @shadowBoxShadow
; ;
@ -537,6 +546,7 @@ a.ui.card:hover,
.ui.cards > .black.card:hover, .ui.cards > .black.card:hover,
.ui.black.card:hover { .ui.black.card:hover {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @blackHover, 0px @coloredShadowDistance 0px 0px @blackHover,
@shadowHoverBoxShadow @shadowHoverBoxShadow
; ;
@ -545,6 +555,7 @@ a.ui.card:hover,
.ui.cards > .blue.card:hover, .ui.cards > .blue.card:hover,
.ui.blue.card:hover { .ui.blue.card:hover {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @blueHover, 0px @coloredShadowDistance 0px 0px @blueHover,
@shadowHoverBoxShadow @shadowHoverBoxShadow
; ;
@ -553,6 +564,7 @@ a.ui.card:hover,
.ui.cards > .green.card:hover, .ui.cards > .green.card:hover,
.ui.green.card:hover { .ui.green.card:hover {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @greenHover, 0px @coloredShadowDistance 0px 0px @greenHover,
@shadowHoverBoxShadow @shadowHoverBoxShadow
; ;
@ -561,6 +573,7 @@ a.ui.card:hover,
.ui.cards > .orange.card:hover, .ui.cards > .orange.card:hover,
.ui.orange.card:hover { .ui.orange.card:hover {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @orangeHover, 0px @coloredShadowDistance 0px 0px @orangeHover,
@shadowHoverBoxShadow @shadowHoverBoxShadow
; ;
@ -569,6 +582,7 @@ a.ui.card:hover,
.ui.cards > .pink.card:hover, .ui.cards > .pink.card:hover,
.ui.pink.card:hover { .ui.pink.card:hover {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @pinkHover, 0px @coloredShadowDistance 0px 0px @pinkHover,
@shadowHoverBoxShadow @shadowHoverBoxShadow
; ;
@ -577,6 +591,7 @@ a.ui.card:hover,
.ui.cards > .purple.card:hover, .ui.cards > .purple.card:hover,
.ui.purple.card:hover { .ui.purple.card:hover {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @purpleHover, 0px @coloredShadowDistance 0px 0px @purpleHover,
@shadowHoverBoxShadow @shadowHoverBoxShadow
; ;
@ -585,6 +600,7 @@ a.ui.card:hover,
.ui.cards > .red.card:hover, .ui.cards > .red.card:hover,
.ui.red.card:hover { .ui.red.card:hover {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @redHover, 0px @coloredShadowDistance 0px 0px @redHover,
@shadowHoverBoxShadow @shadowHoverBoxShadow
; ;
@ -593,6 +609,7 @@ a.ui.card:hover,
.ui.cards > .teal.card:hover, .ui.cards > .teal.card:hover,
.ui.teal.card:hover { .ui.teal.card:hover {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @tealHover, 0px @coloredShadowDistance 0px 0px @tealHover,
@shadowHoverBoxShadow @shadowHoverBoxShadow
; ;
@ -601,6 +618,7 @@ a.ui.card:hover,
.ui.cards > .yellow.card:hover, .ui.cards > .yellow.card:hover,
.ui.yellow.card:hover { .ui.yellow.card:hover {
box-shadow: box-shadow:
@borderShadow,
0px @coloredShadowDistance 0px 0px @yellowHover, 0px @coloredShadowDistance 0px 0px @yellowHover,
@shadowHoverBoxShadow @shadowHoverBoxShadow
; ;

2
src/themes/default/views/card.variables

@ -154,7 +154,7 @@
@shadowHoverBoxShadow: 0px @shadowDistance @linkHoverRaiseDistance 0px @solidSelectedBorderColor; @shadowHoverBoxShadow: 0px @shadowDistance @linkHoverRaiseDistance 0px @solidSelectedBorderColor;
@linkHoverBoxShadow: @linkHoverBoxShadow:
@shadowHoverBoxShadow, @shadowHoverBoxShadow,
0px 0px 0px @borderWidth @borderColor
@borderShadow
; ;
/* Card Count */ /* Card Count */

Loading…
Cancel
Save