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.

201 lines
4.9 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*******************************
  2. List
  3. *******************************/
  4. /*-------------------
  5. View
  6. --------------------*/
  7. /* List */
  8. @listStyleType: none;
  9. @listStylePosition: outside;
  10. @margin: 0em;
  11. @verticalPadding: 0em;
  12. @horizontalPadding: 0em;
  13. /* Sub List */
  14. @childListDistance: 0.5em;
  15. @childListPadding: @childListDistance 0em 0em 0em;
  16. @childListIndent: 1em;
  17. /* List Item */
  18. @itemVerticalPadding: 0.3em;
  19. @itemHorizontalPadding: 0em;
  20. @itemLineHeight: 1.2;
  21. /*-------------------
  22. Elements
  23. --------------------*/
  24. /* Icon */
  25. @iconDistance: 0.3em;
  26. @iconOffset: ((@itemLineHeight - 1rem) / 2);
  27. @iconTransition: color 0.2s ease;
  28. @iconVerticalAlign: top;
  29. @iconContentVerticalAlign: middle;
  30. /* Image */
  31. @imageDistance: 0.5em;
  32. @imageAlign: middle;
  33. /* Content */
  34. @contentDistance: 0.5em;
  35. @contentLineHeight: 1.2em;
  36. @contentVerticalAlign: middle;
  37. /* Link */
  38. @itemLinkColor: @textColor;
  39. @itemLinkHoverColor: @linkHoverColor;
  40. /* Linked Icon */
  41. @itemLinkIconColor: @lightTextColor;
  42. @itemLinkIconHoverColor: @textColor;
  43. @invertedIconLinkColor: @invertedLightTextColor;
  44. /* Header */
  45. @itemHeaderFontFamily: @headerFont;
  46. @itemHeaderFontWeight: bold;
  47. @itemHeaderColor: @textColor;
  48. /* Description */
  49. @itemDescriptionColor: @textColor;
  50. /*-------------------
  51. Variations
  52. --------------------*/
  53. /* Float */
  54. @floatMargin: 1em;
  55. /* Horizontal */
  56. @horizontalSpacing: 1em;
  57. @horizontalIconDistance: 0.25em;
  58. /* Inverted */
  59. @invertedListIconColor: @invertedLightTextColor;
  60. @invertedHeaderColor: @invertedTextColor;
  61. @invertedDescriptionColor: @invertedLightTextColor;
  62. /* Link List */
  63. @linkListItemColor: @unselectedTextColor;
  64. @linkListItemHoverColor: @selectedTextColor;
  65. @linkListItemDownColor: @selectedTextColor;
  66. @linkListItemActiveColor: @selectedTextColor;
  67. /* Inverted Link List */
  68. @invertedLinkListItemColor: @invertedUnselectedTextColor;
  69. @invertedLinkListItemHoverColor: @invertedUnselectedTextColor;
  70. @invertedLinkListItemDownColor: @invertedTextColor;
  71. @invertedLinkListItemActiveColor: @invertedSelectedTextColor;
  72. /* Selection List */
  73. @selectionListItemVerticalPadding: 0.5em;
  74. @selectionListItemHorizontalPadding: 0.5em;
  75. @selectionListTransition:
  76. 0.2s color ease,
  77. 0.2s padding-left ease,
  78. 0.2s background-color ease
  79. ;
  80. /* Selection List States */
  81. @selectionListBackground: transparent;
  82. @selectionListColor: @unselectedTextColor;
  83. @selectionListHoverBackground: @subtleTransparentBlack;
  84. @selectionListHoverColor: @selectedTextColor;
  85. @selectionListDownBackground: @transparentBlack;
  86. @selectionListDownColor: @selectedTextColor;
  87. @selectionListActiveBackground: @transparentBlack;
  88. @selectionListActiveColor: @selectedTextColor;
  89. /* Inverted Selection List */
  90. @invertedSelectionListBackground: transparent;
  91. @invertedSelectionListColor: @invertedUnselectedTextColor;
  92. @invertedSelectionListHoverBackground: @subtleTransparentWhite;
  93. @invertedSelectionListHoverColor: @invertedSelectedTextColor;
  94. @invertedSelectionListDownBackground: @transparentWhite;
  95. @invertedSelectionListDownColor: @invertedSelectedTextColor;
  96. @invertedSelectionListActiveBackground: @transparentWhite;
  97. @invertedSelectionListActiveColor: @invertedSelectedTextColor;
  98. /* Animated List */
  99. @animatedListTransition:
  100. 0.2s color ease,
  101. 0.2s padding-left ease,
  102. 0.2s background-color ease
  103. ;
  104. @animatedListIndent: 1em;
  105. @animatedListChildIndent: 0.5em;
  106. /* Bulleted */
  107. @bulletDistance: 1rem;
  108. @bulletOffset: -1rem;
  109. @bulletOpacity: 1;
  110. @bulletCharacter: '•';
  111. @bulletVerticalAlign: top;
  112. @bulletChildDistance: @bulletDistance;
  113. /* Horizontal Bullets */
  114. @horizontalBulletSpacing: 1.5rem;
  115. @horizontalBulletOffset: -1.1rem;
  116. /* Ordered List */
  117. @orderedCountName: ordered;
  118. @orderedCountContent: counters(ordered, ".") " ";
  119. @orderedCountDistance: 1.25rem;
  120. @orderedCountOpacity: 0.6;
  121. @orderedCountTextAlign: right;
  122. @orderedCountVerticalAlign: top;
  123. @orderedChildCountDistance: 2em;
  124. @orderedChildCountOffset: -2em;
  125. /* Horizontal Ordereded */
  126. @horizontalOrderedCountDistance: 0.5em;
  127. /* Divided */
  128. @dividedBorderWidth: 1px;
  129. @dividedBorder: @dividedBorderWidth solid @borderColor;
  130. @dividedInvertedBorderColor: @whiteBorderColor;
  131. @dividedChildListBorder: none;
  132. @dividedChildItemBorder: none;
  133. /* Divided Horizontal */
  134. @horizontalDividedSpacing: (@horizontalSpacing / 2);
  135. @horizontalDividedLineHeight: 0.6;
  136. /* Divided */
  137. @celledBorderWidth: 1px;
  138. @celledBorder: @celledBorderWidth solid @borderColor;
  139. @celledInvertedBorder: @dividedBorderWidth solid @whiteBorderColor;
  140. @celledHorizontalPadding: 0.5em;
  141. @celledChildListBorder: none;
  142. @celledChildItemBorder: none;
  143. /* Divided Horizontal */
  144. @horizontalCelledSpacing: (@horizontalSpacing / 2);
  145. @horizontalCelledLineHeight: 0.6;
  146. /* Relaxed */
  147. @relaxedVerticalPadding: 0.5rem;
  148. @relaxedHeaderMargin: 0.25rem;
  149. @relaxedHorizontalPadding: 1.25rem;
  150. /* Very Relaxed */
  151. @veryRelaxedVerticalPadding: 1rem;
  152. @veryRelaxedHeaderMargin: 0.5rem;
  153. @veryRelaxedHorizontalPadding: 2rem;
  154. /* Sizes */
  155. @mini: 0.7rem;
  156. @tiny: 0.8rem;
  157. @small: 0.9rem;
  158. @medium: 1rem;
  159. @large: 1.1rem;
  160. @big: 1.2rem;
  161. @huge: 1.3rem;
  162. @massive: 1.5rem;