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.

175 lines
4.4 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*******************************
  2. Card
  3. *******************************/
  4. /*-------------------
  5. View
  6. --------------------*/
  7. /* Shadow */
  8. @shadowDistance: 0em;
  9. @shadowBoxShadow: 0px @shadowDistance 0px 0px @solidBorderColor;
  10. /* Item */
  11. @background: #FFFFFF;
  12. @borderRadius: 0.325rem;
  13. @display: block;
  14. @margin: 1em 0em;
  15. @minHeight: 0px;
  16. @padding: 0em;
  17. @width: 300px;
  18. @boxShadow:
  19. @shadowBoxShadow,
  20. 0px 0px 0px 1px @solidBorderColor
  21. ;
  22. @border: none;
  23. @zIndex: '';
  24. @transition: box-shadow @transitionDuration @transitionEasing;
  25. /* Item Group */
  26. @groupDisplay: block;
  27. @groupFloat: left;
  28. @horizontalSpacing: 0.5em;
  29. @rowSpacing: 1.5em;
  30. @groupCardsMargin: 1em -@horizontalSpacing 0em;
  31. @groupCardMargin: 0em @horizontalSpacing @rowSpacing;
  32. /*-------------------
  33. Content
  34. --------------------*/
  35. /* Image */
  36. @imageBackground: @transparentBlack;
  37. @imagePadding: 0em;
  38. @imageBorder: none;
  39. @imageBorderRadius: @borderRadius @borderRadius 0em 0em;
  40. @imageBoxShadow: none;
  41. @imageBorder: none;
  42. /* Content */
  43. @contentBackground: none;
  44. @contentMargin: 0em;
  45. @contentPadding: 1em 1em;
  46. @contentFontSize: 1em;
  47. @contentBorder: none;
  48. @contentBorderRadius: 0em;
  49. @contentBoxShadow: none;
  50. /* Header */
  51. @headerMargin: 0em;
  52. @headerFontWeight: bold;
  53. @headerFontSize: 1.2em;
  54. @headerColor: @darkTextColor;
  55. /* Metadata */
  56. @metaFontSize: 0.9em;
  57. @metaSpacing: 0.3em;
  58. @metaColor: @lightTextColor;
  59. /* Icons */
  60. @actionOpacity: 0.75;
  61. @actionHoverOpacity: 1;
  62. @actionTransition: color @transitionDuration @transitionEasing;
  63. @starColor: #AC9400;
  64. @starActiveColor: #E9B539;
  65. @likeColor: #FFADAE;
  66. @likeActiveColor: #EF404A;
  67. /* Links */
  68. @contentLinkColor: @linkColor;
  69. @contentLinkTransition: color @transitionDuration @transitionEasing;
  70. @contentLinkHoverColor: @linkHoverColor;
  71. @headerLinkColor: @headerColor;
  72. @headerLinkHoverColor: @linkHoverColor;
  73. @metaLinkColor: @lightTextColor;
  74. @metaLinkHoverColor: @textColor;
  75. /* Description */
  76. @descriptionDistance: 0.5em;
  77. @descriptionColor: rgba(0, 0, 0, 0.5);
  78. /* Content Image */
  79. @contentImageWidth: 2em;
  80. @contentImageVerticalAlign: middle;
  81. /* Avatar Image */
  82. @avatarSize: @contentImageWidth;
  83. @avatarBorderRadius: @circularRadius;
  84. /* Paragraph */
  85. @paragraphDistance: 0.5em;
  86. /* Additional Content */
  87. @extraDivider: 1px solid rgba(0, 0, 0, 0.05);
  88. @extraBackground: #FAFAFA @subtleGradient;
  89. @extraPosition: static;
  90. @extraTop: 0em;
  91. @extraLeft: 0em;
  92. @extraWidth: 100%;
  93. @extraPadding: 0.75em 1em;
  94. @extraBoxShadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  95. @extraColor: @lightTextColor;
  96. @extraTransition: color @transitionDuration @transitionEasing;
  97. /* Extra Links */
  98. @extraLinkColor: @unselectedTextColor;
  99. @extraLinkHoverColor: @linkHoverColor;
  100. /*-------------------
  101. Variations
  102. --------------------*/
  103. /* Link */
  104. @linkHoverBackground: '';
  105. @linkHoverBorder: none;
  106. @linkHoverZIndex: 5;
  107. @shadowHoverBoxShadow: 0px @shadowDistance 0px 0px @solidSelectedBorderColor;
  108. @linkHoverBoxShadow:
  109. @shadowHoverBoxShadow,
  110. 0px 0px 0px 1px @selectedBorderColor
  111. ;
  112. /* Card Count */
  113. @wideCardSpacing: 1em;
  114. @cardSpacing: 0.75em;
  115. @smallCardSpacing: 0.5em;
  116. @oneCardSpacing: 0em;
  117. @twoCardSpacing: @wideCardSpacing;
  118. @threeCardSpacing: @wideCardSpacing;
  119. @fourCardSpacing: @cardSpacing;
  120. @fiveCardSpacing: @cardSpacing;
  121. @sixCardSpacing: @cardSpacing;
  122. @sevenCardSpacing: @smallCardSpacing;
  123. @eightCardSpacing: @smallCardSpacing;
  124. @nineCardSpacing: @smallCardSpacing;
  125. @tenCardSpacing: @smallCardSpacing;
  126. @oneCard: @oneColumn;
  127. @oneCardOffset: 0em;
  128. @twoCard: ~"calc("@twoColumn~" - "(@twoCardSpacing * 2)~")";
  129. @twoCardOffset: -@twoCardSpacing;
  130. @threeCard: ~"calc("@threeColumn~" - "(@threeCardSpacing * 2)~")";
  131. @threeCardOffset: -@threeCardSpacing;
  132. @fourCard: ~"calc("@fourColumn~" - "(@fourCardSpacing * 2)~")";
  133. @fourCardOffset: -@fourCardSpacing;
  134. @fiveCard: ~"calc("@fiveColumn~" - "(@fiveCardSpacing * 2)~")";
  135. @fiveCardOffset: -@fiveCardSpacing;
  136. @sixCard: ~"calc("@sixColumn~" - "(@sixCardSpacing * 2)~")";
  137. @sixCardOffset: -@sixCardSpacing;
  138. @sevenCard: ~"calc("@sevenColumn~" - "(@sevenCardSpacing * 2)~")";
  139. @sevenCardOffset: -@sevenCardSpacing;
  140. @eightCard: ~"calc("@eightColumn~" - "(@sevenCardSpacing * 2)~")";
  141. @eightCardOffset: -@sevenCardSpacing;
  142. @nineCard: ~"calc("@nineColumn~" - "(@nineCardSpacing * 2)~")";
  143. @nineCardOffset: -@nineCardSpacing;
  144. @tenCard: ~"calc("@tenColumn~" - "(@tenCardSpacing * 2)~")";
  145. @tenCardOffset: -@tenCardSpacing;
  146. /* Stackable */
  147. @stackableRowSpacing: 1em;
  148. @stackableCardSpacing: 1em;
  149. @stackableMargin: ~"calc("@oneColumn~" - "(@stackableCardSpacing * 2)~")";
  150. /* Sizes */
  151. @medium: 1em;