Skip to content

Commit

Permalink
Adds raised card varaition, darkens floating shadow slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed May 15, 2016
1 parent a514d0a commit fc518a3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
- **Project** - NPM depenendencies have all been updated to latest stable releases
- **Button** - Added variables for configuring `disabled` background image and box shadow.
- **Site** - Added colored box shadow defaults. `ui message` now includes individual colored border shadows based on new site defaults.
- **Card** - Added `raised` card variation **Thanks @yoris** #2955
- **Dropdown** - Adds new setting `minCharacters` which sets the minimum number of characters required to start filtering results #3886
- **Dropdown** - Added `1px` offset for current text so that the text position cursor does not overlap first pixel of text.
- **Dropdown** - Dropdown will now automatically focus on `search` inside of a menu after it is opened.
Expand Down
10 changes: 10 additions & 0 deletions src/definitions/views/card.less
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,17 @@
.ui.raised.card {
box-shadow: @raisedShadow;
}
.ui.raised.cards a.card:hover,
.ui.link.cards .raised.card:hover,
a.ui.raised.card:hover,
.ui.link.raised.card:hover {
box-shadow: @raisedShadowHover;
}

.ui.raised.cards > .card,
.ui.raised.card {
box-shadow: @raisedShadow;
}
/*-------------------
Centered
--------------------*/
Expand Down
8 changes: 7 additions & 1 deletion src/themes/default/globals/site.variables
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
;
@floatingShadow:
0px 2px 4px 0px rgba(34, 36, 38, 0.12),
0px 2px 10px 0px rgba(34, 36, 38, 0.08)
0px 2px 10px 0px rgba(34, 36, 38, 0.15)
;

/*******************************
Expand Down Expand Up @@ -699,6 +699,12 @@
Hover
--------------------*/

/*--- Shadows ---*/
@floatingShadowHover:
0px 2px 4px 0px rgba(34, 36, 38, 0.15),
0px 2px 10px 0px rgba(34, 36, 38, 0.25)
;

/*--- Colors ---*/
@primaryColorHover : saturate(darken(@primaryColor, 5), 10, relative);
@secondaryColorHover : saturate(lighten(@secondaryColor, 5), 10, relative);
Expand Down
14 changes: 11 additions & 3 deletions src/themes/default/views/card.variables
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
@shadowDistance: 1px;
@shadowBoxShadow: 0px @shadowDistance 3px 0px @solidBorderColor;

/* Raised Shadow */
@raisedShadow: @floatingShadow;

/* Card */
@fontFamily: @pageFont;
@display: flex;
Expand Down Expand Up @@ -163,6 +160,17 @@
@borderShadow
;


/* Raised */
@raisedShadow:
@borderShadow,
@floatingShadow
;
@raisedShadowHover:
@borderShadow,
@floatingShadowHover
;

/* Card Count */
@wideCardSpacing: 1em;
@cardSpacing: 0.75em;
Expand Down

2 comments on commit fc518a3

@yordis
Copy link
Contributor

@yordis yordis commented on fc518a3 May 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jlukic Misspelling in the username is @yordis no @yoris 😆

@jlukic
Copy link
Member Author

@jlukic jlukic commented on fc518a3 May 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry :* 0b11360

Please sign in to comment.