You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
206 lines
4.9 KiB
206 lines
4.9 KiB
/*******************************
|
|
Card
|
|
*******************************/
|
|
|
|
/*-------------------
|
|
View
|
|
--------------------*/
|
|
|
|
/* Shadow */
|
|
@shadowDistance: 1px;
|
|
@shadowBoxShadow: 0px @shadowDistance 3px 0px @solidBorderColor;
|
|
|
|
/* Card */
|
|
@display: flex;
|
|
@background: #FFFFFF;
|
|
@borderRadius: @defaultBorderRadius;
|
|
@margin: 1em 0em;
|
|
@minHeight: 0px;
|
|
@padding: 0em;
|
|
@width: 290px;
|
|
@borderWidth: 1px;
|
|
@borderShadow: 0px 0px 0px @borderWidth @solidBorderColor;
|
|
@boxShadow:
|
|
@shadowBoxShadow,
|
|
@borderShadow
|
|
;
|
|
@border: none;
|
|
@zIndex: '';
|
|
@transition:
|
|
box-shadow @transitionDuration @transitionEasing,
|
|
transform @transitionDuration @transitionEasing
|
|
;
|
|
|
|
/* Card Group */
|
|
@horizontalSpacing: 1em;
|
|
@rowSpacing: 1.75em;
|
|
|
|
@groupMargin: -(@rowSpacing / 2) -(@horizontalSpacing / 2);
|
|
@groupDisplay: flex;
|
|
|
|
@groupCardFloat: none;
|
|
@groupCardDisplay: flex;
|
|
@groupCardMargin: (@rowSpacing / 2) (@horizontalSpacing / 2);
|
|
|
|
/* Consecutive Cards */
|
|
@consecutiveGroupDistance: (@rowSpacing / 2);
|
|
|
|
/*-------------------
|
|
Content
|
|
--------------------*/
|
|
|
|
/* Image */
|
|
@imageBackground: @transparentBlack;
|
|
@imagePadding: 0em;
|
|
@imageBorder: none;
|
|
@imageBorderRadius: @borderRadius @borderRadius 0em 0em;
|
|
@imageBoxShadow: none;
|
|
@imageBorder: none;
|
|
|
|
/* Content */
|
|
@contentMargin: 0em;
|
|
@contentBackground: none;
|
|
@contentPadding: 1em 1em;
|
|
@contentFontSize: 1em;
|
|
@contentBorder: none;
|
|
@contentBorderRadius: 0em;
|
|
@contentBoxShadow: none;
|
|
|
|
/* Header */
|
|
@headerMargin: 0em;
|
|
@headerFontWeight: bold;
|
|
@headerFontSize: @relativeBig;
|
|
@headerLineHeightOffset: -(@lineHeight - 1em) / 2;
|
|
@headerColor: @darkTextColor;
|
|
|
|
/* Metadata */
|
|
@metaFontSize: @relativeSmall;
|
|
@metaSpacing: 0.3em;
|
|
@metaColor: @lightTextColor;
|
|
|
|
/* Icons */
|
|
@actionOpacity: 0.75;
|
|
@actionHoverOpacity: 1;
|
|
@actionTransition: color @transitionDuration @transitionEasing;
|
|
|
|
@starColor: #FFB70A;
|
|
@starActiveColor: #FFE623;
|
|
|
|
@likeColor: #FF2733;
|
|
@likeActiveColor: #FF2733;
|
|
|
|
/* Links */
|
|
@contentLinkColor: '';
|
|
@contentLinkHoverColor: '';
|
|
@contentLinkTransition: color @transitionDuration @transitionEasing;
|
|
|
|
@headerLinkColor: @headerColor;
|
|
@headerLinkHoverColor: @linkHoverColor;
|
|
|
|
@metaLinkColor: @lightTextColor;
|
|
@metaLinkHoverColor: @textColor;
|
|
|
|
/* Description */
|
|
@descriptionDistance: 0.5em;
|
|
@descriptionColor: rgba(0, 0, 0, 0.5);
|
|
|
|
/* Content Image */
|
|
@contentImageWidth: auto;
|
|
@contentImageVerticalAlign: middle;
|
|
|
|
/* Avatar Image */
|
|
@avatarSize: 2.5em;
|
|
@avatarBorderRadius: @circularRadius;
|
|
|
|
/* Paragraph */
|
|
@paragraphDistance: 0.5em;
|
|
|
|
/* Dimmer */
|
|
@dimmerZIndex: 10;
|
|
@dimmerColor: '';
|
|
|
|
/* Additional Content */
|
|
@extraDivider: 1px solid rgba(0, 0, 0, 0.05);
|
|
@extraBackground: none;
|
|
@extraPosition: static;
|
|
@extraWidth: auto;
|
|
@extraTop: 0em;
|
|
@extraLeft: 0em;
|
|
@extraMargin: 0em 0em;
|
|
@extraPadding: 0.75em 1em;
|
|
@extraBoxShadow: none;
|
|
@extraColor: @lightTextColor;
|
|
@extraTransition: color @transitionDuration @transitionEasing;
|
|
|
|
/* Extra Links */
|
|
@extraLinkColor: @unselectedTextColor;
|
|
@extraLinkHoverColor: @linkHoverColor;
|
|
|
|
/* Buttons */
|
|
@buttonMargin: 0em 0em -1px;
|
|
@buttonWidth: 100%;
|
|
|
|
/*-------------------
|
|
Variations
|
|
--------------------*/
|
|
|
|
/* Link */
|
|
@linkHoverBackground: '';
|
|
@linkHoverBorder: none;
|
|
@linkHoverZIndex: 5;
|
|
@linkHoverRaiseDistance: 3px;
|
|
@linkHoverTransform: translateY(-@linkHoverRaiseDistance);
|
|
|
|
@shadowHoverBoxShadow: 0px @shadowDistance @linkHoverRaiseDistance 0px @solidSelectedBorderColor;
|
|
@linkHoverBoxShadow:
|
|
@shadowHoverBoxShadow,
|
|
@borderShadow
|
|
;
|
|
|
|
/* Card Count */
|
|
@wideCardSpacing: 1em;
|
|
@cardSpacing: 0.75em;
|
|
@smallCardSpacing: 0.5em;
|
|
|
|
@oneCardSpacing: 0em;
|
|
@twoCardSpacing: @wideCardSpacing;
|
|
@threeCardSpacing: @wideCardSpacing;
|
|
@fourCardSpacing: @cardSpacing;
|
|
@fiveCardSpacing: @cardSpacing;
|
|
@sixCardSpacing: @cardSpacing;
|
|
@sevenCardSpacing: @smallCardSpacing;
|
|
@eightCardSpacing: @smallCardSpacing;
|
|
@nineCardSpacing: @smallCardSpacing;
|
|
@tenCardSpacing: @smallCardSpacing;
|
|
|
|
@oneCard: @oneColumn;
|
|
@oneCardOffset: 0em;
|
|
@twoCard: ~"calc("@twoColumn~" - "(@twoCardSpacing * 2)~")";
|
|
@twoCardOffset: -@twoCardSpacing;
|
|
@threeCard: ~"calc("@threeColumn~" - "(@threeCardSpacing * 2)~")";
|
|
@threeCardOffset: -@threeCardSpacing;
|
|
@fourCard: ~"calc("@fourColumn~" - "(@fourCardSpacing * 2)~")";
|
|
@fourCardOffset: -@fourCardSpacing;
|
|
@fiveCard: ~"calc("@fiveColumn~" - "(@fiveCardSpacing * 2)~")";
|
|
@fiveCardOffset: -@fiveCardSpacing;
|
|
@sixCard: ~"calc("@sixColumn~" - "(@sixCardSpacing * 2)~")";
|
|
@sixCardOffset: -@sixCardSpacing;
|
|
@sevenCard: ~"calc("@sevenColumn~" - "(@sevenCardSpacing * 2)~")";
|
|
@sevenCardOffset: -@sevenCardSpacing;
|
|
@eightCard: ~"calc("@eightColumn~" - "(@sevenCardSpacing * 2)~")";
|
|
@eightCardOffset: -@sevenCardSpacing;
|
|
@nineCard: ~"calc("@nineColumn~" - "(@nineCardSpacing * 2)~")";
|
|
@nineCardOffset: -@nineCardSpacing;
|
|
@tenCard: ~"calc("@tenColumn~" - "(@tenCardSpacing * 2)~")";
|
|
@tenCardOffset: -@tenCardSpacing;
|
|
|
|
/* Stackable */
|
|
@stackableRowSpacing: 1em;
|
|
@stackableCardSpacing: 1em;
|
|
@stackableMargin: ~"calc("@oneColumn~" - "(@stackableCardSpacing * 2)~")";
|
|
|
|
/* Sizes */
|
|
@medium: 1em;
|
|
|
|
/* Colored */
|
|
@coloredShadowDistance: 2px;
|