archetype 0.0.1.pre.13 → 1.0.0.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +97 -24
  3. data/README.md +11 -5
  4. data/VERSION +1 -0
  5. data/lib/archetype.rb +30 -18
  6. data/lib/archetype/actions/migrate.rb +152 -0
  7. data/lib/archetype/actions/theme.rb +6 -7
  8. data/lib/archetype/executor.rb +21 -7
  9. data/lib/archetype/extensions.rb +57 -0
  10. data/lib/archetype/functions.rb +2 -3
  11. data/lib/archetype/functions/css.rb +70 -0
  12. data/lib/archetype/functions/css/constants.rb +247 -0
  13. data/lib/archetype/functions/css/helpers.rb +265 -0
  14. data/lib/archetype/functions/css/routers.rb +28 -0
  15. data/lib/archetype/functions/css/routers/animation.rb +55 -0
  16. data/lib/archetype/functions/css/routers/background.rb +38 -0
  17. data/lib/archetype/functions/css/routers/border.rb +151 -0
  18. data/lib/archetype/functions/css/routers/list.rb +63 -0
  19. data/lib/archetype/functions/css/routers/margin_padding.rb +40 -0
  20. data/lib/archetype/functions/css/routers/outline.rb +56 -0
  21. data/lib/archetype/functions/css/routers/overflow.rb +11 -0
  22. data/lib/archetype/functions/css/routers/target.rb +38 -0
  23. data/lib/archetype/functions/css/routers/transition.rb +48 -0
  24. data/lib/archetype/functions/css/shorthands.rb +43 -0
  25. data/lib/archetype/functions/css/shorthands/animation.rb +18 -0
  26. data/lib/archetype/functions/css/shorthands/background.rb +68 -0
  27. data/lib/archetype/functions/css/shorthands/border.rb +102 -0
  28. data/lib/archetype/functions/hash.rb +3 -149
  29. data/lib/archetype/functions/hash/extend.rb +74 -0
  30. data/lib/archetype/functions/hash/shim.rb +48 -0
  31. data/lib/archetype/functions/helpers.rb +231 -22
  32. data/lib/archetype/functions/styleguide_memoizer.rb +18 -1
  33. data/lib/archetype/sass_extensions.rb +1 -3
  34. data/lib/archetype/sass_extensions/functions.rb +15 -1
  35. data/lib/archetype/sass_extensions/functions/environment.rb +152 -1
  36. data/lib/archetype/sass_extensions/functions/lists.rb +95 -45
  37. data/lib/archetype/sass_extensions/functions/locale.rb +107 -28
  38. data/lib/archetype/sass_extensions/functions/numbers.rb +118 -4
  39. data/lib/archetype/sass_extensions/functions/strings.rb +53 -0
  40. data/lib/archetype/sass_extensions/functions/styleguide.rb +43 -375
  41. data/lib/archetype/sass_extensions/functions/styleguide/components.rb +25 -0
  42. data/lib/archetype/sass_extensions/functions/styleguide/constants.rb +27 -0
  43. data/lib/archetype/sass_extensions/functions/styleguide/grammar.rb +80 -0
  44. data/lib/archetype/sass_extensions/functions/styleguide/helpers.rb +36 -0
  45. data/lib/archetype/sass_extensions/functions/styleguide/resolve.rb +159 -0
  46. data/lib/archetype/sass_extensions/functions/styleguide/styles.rb +146 -0
  47. data/lib/archetype/sass_extensions/functions/styleguide/themes.rb +40 -0
  48. data/lib/archetype/sass_extensions/functions/ui.rb +7 -57
  49. data/lib/archetype/sass_extensions/functions/ui/glyphs.rb +118 -0
  50. data/lib/archetype/sass_extensions/functions/ui/scopes.rb +96 -0
  51. data/lib/archetype/sass_extensions/functions/util.rb +14 -0
  52. data/lib/archetype/sass_extensions/functions/util/debug.rb +22 -0
  53. data/lib/archetype/sass_extensions/functions/util/hacks.rb +44 -0
  54. data/lib/archetype/sass_extensions/functions/util/images.rb +132 -0
  55. data/lib/archetype/sass_extensions/functions/util/misc.rb +220 -0
  56. data/lib/archetype/sass_extensions/functions/util/spacing.rb +83 -0
  57. data/lib/archetype/sass_extensions/functions/version.rb +12 -17
  58. data/lib/archetype/version.rb +1 -1
  59. data/stylesheets/archetype/_config.scss +1 -389
  60. data/stylesheets/archetype/_core.scss +15 -0
  61. data/stylesheets/archetype/_hacks.scss +4 -120
  62. data/stylesheets/archetype/_init.scss +4 -22
  63. data/stylesheets/archetype/_required.scss +3 -0
  64. data/stylesheets/archetype/_reset.scss +3 -0
  65. data/stylesheets/archetype/_styleguide.scss +2 -6
  66. data/stylesheets/archetype/_ui.scss +2 -358
  67. data/stylesheets/archetype/_util.scss +3 -10
  68. data/stylesheets/archetype/config/_core.scss +14 -0
  69. data/stylesheets/archetype/config/_environment.scss +19 -0
  70. data/stylesheets/archetype/config/_formatting.scss +63 -0
  71. data/stylesheets/archetype/config/_glyphs.scss +252 -0
  72. data/stylesheets/archetype/config/_resets.scss +7 -0
  73. data/stylesheets/archetype/config/_resolution.scss +3 -0
  74. data/stylesheets/archetype/config/_spacing.scss +5 -0
  75. data/stylesheets/archetype/config/_targeting.scss +18 -0
  76. data/stylesheets/archetype/config/_theme.scss +3 -0
  77. data/stylesheets/archetype/config/_typography.scss +56 -0
  78. data/stylesheets/archetype/config/_units.scss +2 -0
  79. data/stylesheets/archetype/config/_vars.scss +10 -0
  80. data/stylesheets/archetype/hacks/_core.scss +4 -0
  81. data/stylesheets/archetype/hacks/_hacks.scss +160 -0
  82. data/stylesheets/archetype/hacks/_init.scss +2 -0
  83. data/stylesheets/archetype/styleguide/_core.scss +4 -0
  84. data/stylesheets/archetype/styleguide/_init.scss +1 -0
  85. data/stylesheets/archetype/styleguide/_styleguide.scss +41 -18
  86. data/stylesheets/archetype/ui/_accessibility.scss +41 -0
  87. data/stylesheets/archetype/ui/_breakpoints.scss +19 -0
  88. data/stylesheets/archetype/ui/_core.scss +10 -0
  89. data/stylesheets/archetype/ui/_elements.scss +98 -0
  90. data/stylesheets/archetype/ui/_glyphs.scss +244 -0
  91. data/stylesheets/archetype/ui/_init.scss +5 -0
  92. data/stylesheets/archetype/ui/_layout.scss +37 -0
  93. data/stylesheets/archetype/ui/_locale.scss +12 -0
  94. data/stylesheets/archetype/ui/_scopes.scss +42 -0
  95. data/stylesheets/archetype/util/_core.scss +8 -0
  96. data/stylesheets/archetype/util/_debug.scss +9 -21
  97. data/stylesheets/archetype/util/_init.scss +1 -0
  98. data/stylesheets/archetype/util/_misc.scss +21 -86
  99. data/stylesheets/archetype/util/_spacing.scss +9 -40
  100. data/stylesheets/archetype/util/_styles.scss +189 -178
  101. data/stylesheets/archetype/util/_targeting.scss +51 -68
  102. data/templates/example/manifest.rb +2 -2
  103. data/templates/example/screen.scss +0 -1
  104. data/templates/project/manifest.rb +3 -8
  105. metadata +93 -263
  106. data/bin/archetype +0 -3
  107. data/lib/archetype/sass_extensions/monkey_patches.rb +0 -3
  108. data/lib/archetype/sass_extensions/monkey_patches/handle_include_loop.rb +0 -13
  109. data/stylesheets/archetype/_base.scss +0 -54
  110. data/stylesheets/archetype/_grid.scss +0 -3
  111. data/stylesheets/archetype/base/_h5bp.scss +0 -307
  112. data/stylesheets/archetype/base/_hybrid.scss +0 -25
  113. data/stylesheets/archetype/base/_normalize.scss +0 -634
  114. data/stylesheets/archetype/base/_reset.scss +0 -72
  115. data/stylesheets/archetype/grid/_config.scss +0 -14
  116. data/stylesheets/archetype/grid/_grid.scss +0 -391
  117. data/stylesheets/archetype/styleguide/_components.scss +0 -25
  118. data/stylesheets/archetype/styleguide/_helpers.scss +0 -215
  119. data/stylesheets/archetype/styleguide/_primitives.scss +0 -10
  120. data/stylesheets/archetype/styleguide/components/_alerts.scss +0 -59
  121. data/stylesheets/archetype/styleguide/components/_annotations.scss +0 -27
  122. data/stylesheets/archetype/styleguide/components/_bristol.scss +0 -15
  123. data/stylesheets/archetype/styleguide/components/_button_groups.scss +0 -47
  124. data/stylesheets/archetype/styleguide/components/_button_toolbars.scss +0 -17
  125. data/stylesheets/archetype/styleguide/components/_buttons.scss +0 -339
  126. data/stylesheets/archetype/styleguide/components/_canvas.scss +0 -15
  127. data/stylesheets/archetype/styleguide/components/_carets.scss +0 -336
  128. data/stylesheets/archetype/styleguide/components/_closes.scss +0 -63
  129. data/stylesheets/archetype/styleguide/components/_container.scss +0 -27
  130. data/stylesheets/archetype/styleguide/components/_copy.scss +0 -85
  131. data/stylesheets/archetype/styleguide/components/_flyouts.scss +0 -52
  132. data/stylesheets/archetype/styleguide/components/_headings.scss +0 -33
  133. data/stylesheets/archetype/styleguide/components/_headlines.scss +0 -64
  134. data/stylesheets/archetype/styleguide/components/_hovercards.scss +0 -27
  135. data/stylesheets/archetype/styleguide/components/_icons.scss +0 -17
  136. data/stylesheets/archetype/styleguide/components/_identities.scss +0 -34
  137. data/stylesheets/archetype/styleguide/components/_links.scss +0 -68
  138. data/stylesheets/archetype/styleguide/components/_loaders.scss +0 -154
  139. data/stylesheets/archetype/styleguide/components/_menu_items.scss +0 -31
  140. data/stylesheets/archetype/styleguide/components/_module.scss +0 -15
  141. data/stylesheets/archetype/styleguide/components/_pullquotes.scss +0 -29
  142. data/stylesheets/archetype/styleguide/components/_punchcut.scss +0 -18
  143. data/stylesheets/archetype/styleguide/components/_tooltips.scss +0 -28
  144. data/stylesheets/archetype/styleguide/primitives/_animations.scss +0 -17
  145. data/stylesheets/archetype/styleguide/primitives/_dimensions.scss +0 -50
  146. data/stylesheets/archetype/styleguide/primitives/_glyphs.scss +0 -11
  147. data/stylesheets/archetype/styleguide/primitives/_misc.scss +0 -8
  148. data/stylesheets/archetype/styleguide/primitives/_palettes.scss +0 -94
  149. data/stylesheets/archetype/styleguide/primitives/_shadows.scss +0 -23
  150. data/stylesheets/archetype/styleguide/primitives/_sprites.scss +0 -46
  151. data/stylesheets/archetype/styleguide/primitives/_textures.scss +0 -10
  152. data/stylesheets/archetype/styleguide/primitives/_typography.scss +0 -56
  153. data/stylesheets/archetype/util/_lists.scss +0 -57
  154. data/stylesheets/archetype/util/_rtl.scss +0 -279
  155. data/stylesheets/archetype/util/_units.scss +0 -18
  156. data/templates/project/screen.scss +0 -1
  157. data/templates/project/vendor/archetype/animations/loaders/large/large.png +0 -0
  158. data/templates/project/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
  159. data/templates/project/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
  160. data/templates/project/vendor/archetype/animations/loaders/large/large_static.png +0 -0
  161. data/templates/project/vendor/archetype/animations/loaders/medium/medium.png +0 -0
  162. data/templates/project/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
  163. data/templates/project/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
  164. data/templates/project/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
  165. data/templates/project/vendor/archetype/animations/loaders/small/small.png +0 -0
  166. data/templates/project/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
  167. data/templates/project/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
  168. data/templates/project/vendor/archetype/animations/loaders/small/small_static.png +0 -0
  169. data/templates/project/vendor/archetype/fontawesome-webfont.eot +0 -0
  170. data/templates/project/vendor/archetype/fontawesome-webfont.svg +0 -255
  171. data/templates/project/vendor/archetype/fontawesome-webfont.ttf +0 -0
  172. data/templates/project/vendor/archetype/fontawesome-webfont.woff +0 -0
  173. data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.eot +0 -0
  174. data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.svg +0 -255
  175. data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.ttf +0 -0
  176. data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.woff +0 -0
  177. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png +0 -0
  178. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large.png +0 -0
  179. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
  180. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
  181. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_static.png +0 -0
  182. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium.png +0 -0
  183. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
  184. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
  185. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
  186. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small.png +0 -0
  187. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
  188. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
  189. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_static.png +0 -0
  190. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png +0 -0
  191. data/test/fixtures/stylesheets/archetype/config.rb +0 -21
  192. data/test/fixtures/stylesheets/archetype/source/b.scss +0 -9
  193. data/test/fixtures/stylesheets/archetype/source/base.scss +0 -3
  194. data/test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss +0 -13
  195. data/test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss +0 -5
  196. data/test/fixtures/stylesheets/archetype/source/locale.scss +0 -43
  197. data/test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss +0 -21
  198. data/test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss +0 -18
  199. data/test/fixtures/stylesheets/archetype/source/styleguide/drop.scss +0 -101
  200. data/test/fixtures/stylesheets/archetype/source/styleguide/extend.scss +0 -24
  201. data/test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss +0 -23
  202. data/test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss +0 -85
  203. data/test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss +0 -18
  204. data/test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss +0 -40
  205. data/test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss +0 -22
  206. data/test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss +0 -35
  207. data/test/fixtures/stylesheets/archetype/source/ui/hide_element.scss +0 -5
  208. data/test/fixtures/stylesheets/archetype/source/ui/stroke.scss +0 -13
  209. data/test/fixtures/stylesheets/archetype/source/ui/triangle.scss +0 -13
  210. data/test/fixtures/stylesheets/archetype/source/utilities/associative.scss +0 -24
  211. data/test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss +0 -22
  212. data/test/fixtures/stylesheets/archetype/source/utilities/if-set.scss +0 -16
  213. data/test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss +0 -27
  214. data/test/fixtures/stylesheets/archetype/source/utilities/spacing/vertical-spacing.scss +0 -27
  215. data/test/fixtures/stylesheets/archetype/source/utilities/styles/filter.scss +0 -9
  216. data/test/fixtures/stylesheets/archetype/source/utilities/styles/font-family.scss +0 -9
  217. data/test/fixtures/stylesheets/archetype/source/utilities/styles/z-index.scss +0 -18
  218. data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss +0 -77
  219. data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-os.scss +0 -42
  220. data/test/fixtures/stylesheets/archetype/tmp/b.css +0 -14
  221. data/test/fixtures/stylesheets/archetype/tmp/base.css +0 -349
  222. data/test/fixtures/stylesheets/archetype/tmp/hacks/ie_pseudo.css +0 -11
  223. data/test/fixtures/stylesheets/archetype/tmp/hacks/transparent_focusable.css +0 -4
  224. data/test/fixtures/stylesheets/archetype/tmp/locale.css +0 -23
  225. data/test/fixtures/stylesheets/archetype/tmp/styleguide/alerts.css +0 -711
  226. data/test/fixtures/stylesheets/archetype/tmp/styleguide/buttons.css +0 -2119
  227. data/test/fixtures/stylesheets/archetype/tmp/styleguide/drop.css +0 -63
  228. data/test/fixtures/stylesheets/archetype/tmp/styleguide/extend.css +0 -11
  229. data/test/fixtures/stylesheets/archetype/tmp/styleguide/fallback_styles.css +0 -10
  230. data/test/fixtures/stylesheets/archetype/tmp/styleguide/invalid_structures.css +0 -21
  231. data/test/fixtures/stylesheets/archetype/tmp/styleguide/multi_value.css +0 -13
  232. data/test/fixtures/stylesheets/archetype/tmp/styleguide/nested_styleguides.css +0 -28
  233. data/test/fixtures/stylesheets/archetype/tmp/styleguide/selective_state.css +0 -177
  234. data/test/fixtures/stylesheets/archetype/tmp/ui/glyph_icon.css +0 -127
  235. data/test/fixtures/stylesheets/archetype/tmp/ui/hide_element.css +0 -8
  236. data/test/fixtures/stylesheets/archetype/tmp/ui/stroke.css +0 -17
  237. data/test/fixtures/stylesheets/archetype/tmp/ui/triangle.css +0 -35
  238. data/test/fixtures/stylesheets/archetype/tmp/utilities/associative.css +0 -9
  239. data/test/fixtures/stylesheets/archetype/tmp/utilities/custom_output_styler.css +0 -8
  240. data/test/fixtures/stylesheets/archetype/tmp/utilities/if-set.css +0 -9
  241. data/test/fixtures/stylesheets/archetype/tmp/utilities/spacing/horizontal-spacing.css +0 -29
  242. data/test/fixtures/stylesheets/archetype/tmp/utilities/spacing/vertical-spacing.css +0 -29
  243. data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/filter.css +0 -11
  244. data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/font-family.css +0 -16
  245. data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/z-index.css +0 -15
  246. data/test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-browser.css +0 -105
  247. data/test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-os.css +0 -55
  248. data/test/helpers/diff.rb +0 -49
  249. data/test/helpers/io.rb +0 -36
  250. data/test/helpers/test_case.rb +0 -62
  251. data/test/integrations/archetype_test.rb +0 -126
  252. data/test/test_helper.rb +0 -26
  253. data/test/units/sass_extensions_test.rb +0 -200
@@ -1,25 +0,0 @@
1
- // import components
2
- @import "components/alerts";
3
- @import "components/annotations";
4
- @import "components/bristol";
5
- @import "components/button_groups";
6
- @import "components/button_toolbars";
7
- @import "components/buttons";
8
- @import "components/canvas";
9
- @import "components/carets";
10
- @import "components/closes";
11
- @import "components/container";
12
- @import "components/copy";
13
- @import "components/flyouts";
14
- @import "components/headings";
15
- @import "components/headlines";
16
- @import "components/hovercards";
17
- @import "components/icons";
18
- @import "components/identities";
19
- @import "components/links";
20
- @import "components/loaders";
21
- @import "components/menu_items";
22
- @import "components/module";
23
- @import "components/pullquotes";
24
- @import "components/punchcut";
25
- @import "components/tooltips";
@@ -1,215 +0,0 @@
1
- // @category styleguide
2
-
3
- // helper function to get the height of a button
4
- // @function _styleguideGetButtonHeight
5
- // @private
6
- // @param $size {String} the size of the button to calculate
7
- // @return {Number} the height of the button
8
- @function _styleguideGetButtonHeight($size: medium) {
9
- @if type-of($size) != list {
10
- $sizes: (
11
- (small, $CONFIG_FONT_BUTTON_SMALL),
12
- (medium, $CONFIG_FONT_BUTTON_MEDIUM),
13
- (large, $CONFIG_FONT_BUTTON_LARGE)
14
- );
15
- $size: associative($sizes, $size);
16
- }
17
- // font size + top/bottom padding
18
- @return nth($size, 1) + (2 * nth($size, 2));
19
- }
20
-
21
- // helper function to get the padding of a button
22
- // @function _styleguideGetButtonPadding
23
- // @private
24
- // @param $size {String} the size of the button to calculate
25
- // @param $narrow {Bool} is the button narrow or not
26
- // @return {Number} the padding on the button
27
- @function _styleguideGetButtonPadding($size: medium, $narrow: false) {
28
- @if type-of($size) != list {
29
- $sizes: (
30
- (small, $CONFIG_FONT_BUTTON_SMALL),
31
- (medium, $CONFIG_FONT_BUTTON_MEDIUM),
32
- (large, $CONFIG_FONT_BUTTON_LARGE)
33
- );
34
- $size: nth(associative($sizes, $size), 3);
35
- }
36
- $size: floor(if($narrow, $size * 0.75, $size));
37
- @return (0 $size);
38
- }
39
-
40
- // helper function to get the size of the caret
41
- // @function _styleguideCaretSize
42
- // @private
43
- // @param $size {String} the size of the caret to calculate
44
- // @param $direction {String} the direction the caret is facing [up|down]
45
- // @return {List} the border widths needed to generate the caret
46
- @function _styleguideCaretSize($size: medium, $direction: south) {
47
- @if type-of($size) != number {
48
- $size: associative((
49
- (small $CONFIG_FONT_CARET_SMALL),
50
- (medium $CONFIG_FONT_CARET_MEDIUM),
51
- (large $CONFIG_FONT_CARET_LARGE),
52
- (tooltip $CONFIG_DIM_TOOLTIP_TIP)
53
- ), $size);
54
- }
55
- @return associative((
56
- (default ($size $size 0)),
57
- (north (0 $size $size)),
58
- (east ($size 0 $size $size)),
59
- (west ($size $size $size 0))
60
- ), $direction);
61
- }
62
-
63
- // helper function to get the alert icon offset
64
- // @function _styleguideGetAlertGlyphOffset
65
- // @private
66
- // @param $type {List} the glpyh data
67
- // @return {List} the top and left offsets for the glyph
68
- @function _styleguideGetAlertGlyphOffset($type: $CONFIG_GLYPH_ALERT_NOTIFY) {
69
- $top: (nth-cyclic($CONFIG_DIM_ALERTS_SPACING, 1) + nth-cyclic($CONFIG_DIM_ALERTS_SPACING, 3) + nth-cyclic($CONFIG_FONT_NOTICE, 2) - nth($type, 4)) / 2;
70
- $left: ((nth-cyclic($CONFIG_DIM_ALERTS_SPACING, 4) - nth($type, 4))/2);
71
- @return ($top $left);
72
- }
73
-
74
- // helper function to extract the glyhp styles for an alert icon
75
- // @function _styleguideGetAlertGlyph
76
- // @private
77
- // @param $type {List} the glpyh data
78
- // @return {List} the parameters needed for glyph-icon()
79
- @function _styleguideGetAlertGlyph($type: $CONFIG_GLYPH_ALERT_NOTIFY) {
80
- $offset: _styleguideGetAlertGlyphOffset($type);
81
- $top: nth($offset, 1);
82
- $left: nth($offset, 2);
83
- @return (nth($type, 1), nth($type, 2), nth($type, 3), before, 'position:absolute;line-height:1;top:#{$top};left:#{$left};')
84
- }
85
-
86
-
87
- // helper function to return the list of shadows for the alert
88
- // alerts have two shadows, one thats shared and ones that unique
89
- // @function _styleguideGetAlertShadow
90
- // @private
91
- // @param $type {String} the type of alert [success|notice|yield|error]
92
- // @return {List} the shadows on the alert
93
- @function _styleguideGetAlertShadow($type: notice) {
94
- $color: $type;
95
- @if type-of($type) == string {
96
- $color: associative((
97
- (notice $CONFIG_COLOR_BORDER_ALERT_NOTIFY),
98
- (success $CONFIG_COLOR_BORDER_ALERT_SUCCESS),
99
- (error $CONFIG_COLOR_BORDER_ALERT_ERROR),
100
- (yield $CONFIG_COLOR_BORDER_ALERT_YIELD)
101
- ), $type);
102
- }
103
- @if($color != nil and $CONFIG_DIM_GENERIC_BORDER != nil) {
104
- @return ((0 0 0 $CONFIG_DIM_GENERIC_BORDER $color), $CONFIG_SHADOW_ALERT);
105
- }
106
- @else {
107
- @return $CONFIG_SHADOW_ALERT;
108
- }
109
- }
110
-
111
- // helper function to get the color of a context
112
- // @function _styleguideGetContextColor
113
- // @private
114
- // @param $texture {List|String} a list or string for a background texture
115
- // @return {Color} the color in the list
116
- @function _styleguideGetContextColor($texture: $CONFIG_TEXTURE_CONTAINER) {
117
- $texture: -compass-list(first-value-of($texture)); // cast a string into a list
118
- @return first-value-of($texture); // pull off the first value in the string/list
119
- }
120
-
121
- // helper function to get background position for the tooltip sprite
122
- // @function _styleguideGetTooltipTipBG
123
- // @private
124
- // @param $direction {String} the direction the tip is pointing [north|south|east|west]
125
- // @param $type {String} the type of the tip [hovercard]
126
- // @return {List} the background position offsets
127
- @function _styleguideGetTooltipTipBG($direction: south, $type: hovercard) {
128
- $dim: $type;
129
- @if type-of($type) == string {
130
- $dim: associative((
131
- hovercard $CONFIG_DIM_HOVERCARD_TIP,
132
- nil
133
- ), $type);
134
- }
135
- $a: nth($dim, 1);
136
- $b: nth-cyclic($dim, 2);
137
- // TODO - RTL support
138
- @return associative((
139
- north (-$b 0),
140
- south ((-$b) (-($a+$b))),
141
- east ((-($a+$b)) (-$b)),
142
- west (0 (-$b))
143
- ), $direction);
144
- }
145
-
146
- // helper function to get the position of the loading spinner
147
- // @function _styleguideGetLoaderPosition
148
- // @private
149
- // @param $size {String} the size of the loading spinner e.g. [small|medium|large]
150
- // @param $type {String} the type of the loading spinner e.g. [static|dynamic]
151
- // @param $context {Number} the index for the context type
152
- // @return {List} background position of the image or nil
153
- @function _styleguideGetLoaderPosition($size: medium, $type: static, $context: 1) {
154
- $img: nth-cyclic(associative(associative($CONFIG_LOADERS, $size), $type), $context);
155
- @return styleguide-sprite-position($CONFIG_SPRITE_LOADERS, $img);
156
- }
157
-
158
- // helper function to get the dimensions of the loading spinner
159
- // @function _styleguideGetLoaderDimension
160
- // @private
161
- // @param $size {String} the size of the loading spinner e.g. [small|medium|large]
162
- // @param $type {String} the type of the loading spinner e.g. [static|dynamic]
163
- // @param $dim {String} the dimension to return [width|height]
164
- // @param $context {Number} the index for the context type
165
- // @return {Number} the width/height of the loading spinner
166
- @function _styleguideGetLoaderDimension($size: medium, $type: static, $dim: width, $context: 1) {
167
- $img: nth-cyclic(associative(associative($CONFIG_LOADERS, $size), $type), $context);
168
- $sprite-file: styleguide-sprite-file($CONFIG_SPRITE_LOADERS, $img);
169
- @if $dim == width {
170
- @return styleguide-image-width($sprite-file);
171
- }
172
- @else {
173
- @return styleguide-image-height($sprite-file);
174
- }
175
- @return 0;
176
- }
177
-
178
- // helper function to get the animation routine of the loading spinner
179
- // @function _styleguideGetLoaderAnimation
180
- // @private
181
- // @param $size {String} the size of the loading spinner e.g. [small|medium|large]
182
- // @param $context {Number} the index for the context type
183
- // @return {String} the animation value
184
- @function _styleguideGetLoaderAnimation($size: medium, $context: 1) {
185
- $values: associative($CONFIG_LOADERS, $size);
186
- $anim: ($CONFIG_KEYFRAME_LOADERS);
187
- $duration: nth-cyclic(associative($values, duration, $strict: true), $context);
188
- $delay: nth-cyclic(associative($values, delay, $strict: true), $context);
189
- $steps: nth-cyclic(associative($values, steps, $strict: true), $context);
190
- $iterations: nth-cyclic(associative($values, iterations, $strict: true), $context);
191
- @if $duration != nil { $anim: append($anim, $duration); }
192
- @if $delay != nil { $anim: append($anim, $delay); }
193
- @if $steps != nil { $anim: append($anim, steps($steps, end)); }
194
- @if $iterations != nil { $anim: append($anim, $iterations); }
195
- $position-keyframe-name: #{$CONFIG_KEYFRAME_LOADERS}-position-#{$size}-#{$context};
196
- $anim: unquote("#{$anim}, #{$position-keyframe-name} 0.1ms step-end infinite");
197
- @return $anim;
198
- }
199
-
200
- // helper function to get the CSS expression of the loading spinner (for IE6/7 support)
201
- // @function _styleguideGetLoaderExpression
202
- // @private
203
- // @param $size {String} the size of the loading spinner e.g. [small|medium|large]
204
- // @param $context {Number} the index for the context type
205
- // @return {String} the CSS expression styles
206
- @function _styleguideGetLoaderExpression($size: medium, $context: 1) {
207
- $img: nth-cyclic(associative(associative($CONFIG_LOADERS, $size), static), $context);
208
- $bg: styleguide-sprite($CONFIG_SPRITE_LOADERS, $img) no-repeat;
209
- $bg: if($bg == nil, none, $bg);
210
- $width: _styleguideGetLoaderDimension($size, static, width, $context);
211
- $height: _styleguideGetLoaderDimension($size, static, height, $context);
212
- $margin-top: $height / -2;
213
- $margin-left: $width / -2;
214
- @return ("position:absolute;top:50%;left:50%;background:#{$bg};width:#{$width};height:#{$height};margin-left:#{$margin-left};margin-top:#{$margin-top};", false, loader);
215
- }
@@ -1,10 +0,0 @@
1
- // manifest for primitives
2
- @import "primitives/animations";
3
- @import "primitives/palettes";
4
- @import "primitives/textures";
5
- @import "primitives/typography";
6
- @import "primitives/dimensions";
7
- @import "primitives/sprites";
8
- @import "primitives/glyphs";
9
- @import "primitives/shadows";
10
- @import "primitives/misc";
@@ -1,59 +0,0 @@
1
- // ==========
2
- // ALERTS
3
- // ==========
4
- $STYLEGUIDE_ALERTS_ID: alert !default;
5
- $STYLEGUIDE_ALERTS: () !default;
6
-
7
- @if not styleguide-component-exists($STYLEGUIDE_ALERTS_ID, $CONFIG_THEME) {
8
- $a-blackhole: styleguide-add-component($STYLEGUIDE_ALERTS_ID, $STYLEGUIDE_ALERTS, (
9
- (default, (
10
- // fallback background
11
- background-color $CONFIG_COLOR_BG_ALERT_NOTIFY,
12
- background-repeat no-repeat,
13
- // gradient background
14
- background $CONFIG_GRADIENT_ALERT_NOTIFY,
15
- box-shadow _styleguideGetAlertShadow(notice),
16
- // common
17
- overflow hidden,
18
- display block,
19
- color nth-cyclic($CONFIG_COLOR_COPY, 2),
20
- font-size nth($CONFIG_FONT_NOTICE, 1),
21
- line-height nth-cyclic($CONFIG_FONT_NOTICE, 2),
22
- position relative,
23
- padding $CONFIG_DIM_ALERTS_SPACING,
24
- glyph-icon _styleguideGetAlertGlyph($CONFIG_GLYPH_ALERT_NOTIFY),
25
- (selectors, (
26
- ('&:before', (
27
- position absolute,
28
- top nth(_styleguideGetAlertGlyphOffset($CONFIG_GLYPH_ALERT_NOTIFY), 1),
29
- left nth(_styleguideGetAlertGlyphOffset($CONFIG_GLYPH_ALERT_NOTIFY), 2),
30
- line-height 1
31
- )),
32
- nil
33
- )),
34
- nil
35
- )),
36
- (notice, (
37
- // notice - default
38
- nil
39
- )),
40
- (success, (
41
- background-color $CONFIG_COLOR_BG_ALERT_SUCCESS,
42
- background $CONFIG_GRADIENT_ALERT_SUCCESS,
43
- glyph-icon _styleguideGetAlertGlyph($CONFIG_GLYPH_ALERT_SUCCESS),
44
- box-shadow _styleguideGetAlertShadow(success)
45
- )),
46
- (error, (
47
- background-color $CONFIG_COLOR_BG_ALERT_ERROR,
48
- background $CONFIG_GRADIENT_ALERT_ERROR,
49
- glyph-icon _styleguideGetAlertGlyph($CONFIG_GLYPH_ALERT_ERROR),
50
- box-shadow _styleguideGetAlertShadow(error)
51
- )),
52
- (yield, (
53
- background-color $CONFIG_COLOR_BG_ALERT_YIELD,
54
- background $CONFIG_GRADIENT_ALERT_YIELD,
55
- glyph-icon _styleguideGetAlertGlyph($CONFIG_GLYPH_ALERT_YIELD),
56
- box-shadow _styleguideGetAlertShadow(yield)
57
- ))
58
- ), $CONFIG_THEME);
59
- }
@@ -1,27 +0,0 @@
1
- // ==========
2
- // ANNOTATIONS
3
- // ==========
4
- $STYLEGUIDE_ANNOTATIONS_ID: annotation !default;
5
- $STYLEGUIDE_ANNOTATIONS: () !default;
6
-
7
- @if not styleguide-component-exists($STYLEGUIDE_ANNOTATIONS_ID, $CONFIG_THEME) {
8
- $a-blackhole: styleguide-add-component($STYLEGUIDE_ANNOTATIONS_ID, $STYLEGUIDE_ANNOTATIONS, (
9
- (default, (
10
- font-size nth($CONFIG_FONT_ANNOTATION_MEDIUM, 1),
11
- line-height nth-cyclic($CONFIG_FONT_ANNOTATION_MEDIUM, 2),
12
- color nth($CONFIG_COLOR_ANNOTATION, 1)
13
- )),
14
- (in-dark, (
15
- color nth-cyclic($CONFIG_COLOR_ANNOTATION, 2),
16
- text-shadow (1px 1px 1px rgba(0, 0, 0, .75))
17
- )),
18
- (in-tooltip, (
19
- inherit (in-dark),
20
- nil
21
- )),
22
- (in-punchcut, (
23
- inherit (in-dark),
24
- nil
25
- ))
26
- ), $CONFIG_THEME);
27
- }
@@ -1,15 +0,0 @@
1
- // ==========
2
- // BRISTOL
3
- // ==========
4
- $STYLEGUIDE_BRISTOLS_ID: bristol !default;
5
- $STYLEGUIDE_BRISTOLS: () !default;
6
-
7
- @if not styleguide-component-exists($STYLEGUIDE_BRISTOLS_ID, $CONFIG_THEME) {
8
- $a-blackhole: styleguide-add-component($STYLEGUIDE_BRISTOLS_ID, $STYLEGUIDE_BRISTOLS, (
9
- (default, (
10
- background nth($CONFIG_TEXTURE_BRISTOL, 1),
11
- nil
12
- )),
13
- nil
14
- ), $CONFIG_THEME);
15
- }
@@ -1,47 +0,0 @@
1
- // ==========
2
- // BUTTON GROUPS
3
- // ==========
4
- $STYLEGUIDE_BUTTON_GROUPS_ID: button-group !default;
5
- $STYLEGUIDE_BUTTON_GROUPS: () !default;
6
-
7
- @if not styleguide-component-exists($STYLEGUIDE_BUTTON_GROUPS_ID, $CONFIG_THEME) {
8
- $a-blackhole: styleguide-add-component($STYLEGUIDE_BUTTON_GROUPS_ID, $STYLEGUIDE_BUTTON_GROUPS, (
9
- (default, (
10
- line-height 1,
11
- inline-block true, // this will use the inline-block() mixin
12
- vertical-align middle,
13
- clearfix legacy-pie-clearfix,
14
- position relative,
15
- nil
16
- )),
17
- // BUTTON TOOLBARS
18
- (in-button-toolbar, (
19
- margin-right $CONFIG_DIM_BUTTON_SPACING_OUTER,
20
- float left,
21
- display block,
22
- inline-block nil
23
- )),
24
- (small in-button-toolbar, (
25
- margin-right $CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW,
26
- nil
27
- )),
28
- (last in-button-toolbar, (
29
- margin-right nil,
30
- nil
31
- )),
32
- (right aligned in-button-toolbar, (
33
- float right,
34
- margin-right nil,
35
- margin-left $CONFIG_DIM_BUTTON_SPACING_OUTER
36
- )),
37
- (right aligned small in-button-toolbar, (
38
- margin-left $CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW,
39
- nil
40
- )),
41
- (right aligned last in-button-toolbar, (
42
- margin-left nil,
43
- nil
44
- )),
45
- nil
46
- ), $CONFIG_THEME);
47
- }
@@ -1,17 +0,0 @@
1
- // ==========
2
- // BUTTON TOOLBAR
3
- // ==========
4
- $STYLEGUIDE_BUTTON_TOOLBARS_ID: button-toolbar !default;
5
- $STYLEGUIDE_BUTTON_TOOLBARS: () !default;
6
-
7
- @if not styleguide-component-exists($STYLEGUIDE_BUTTON_TOOLBARS_ID, $CONFIG_THEME) {
8
- $a-blackhole: styleguide-add-component($STYLEGUIDE_BUTTON_TOOLBARS_ID, $STYLEGUIDE_BUTTON_TOOLBARS, (
9
- (default, (
10
- line-height 1,
11
- inline-block true,
12
- vertical-align middle,
13
- clearfix legacy-pie-clearfix
14
- )),
15
- nil
16
- ), $CONFIG_THEME);
17
- }
@@ -1,339 +0,0 @@
1
- // ==========
2
- // BUTTONS
3
- // ==========
4
- $STYLEGUIDE_BUTTONS_ID: button !default;
5
- $STYLEGUIDE_BUTTONS: () !default;
6
-
7
- @if not styleguide-component-exists($STYLEGUIDE_BUTTONS_ID, $CONFIG_THEME) {
8
- $a-blackhole: styleguide-add-component($STYLEGUIDE_BUTTONS_ID, $STYLEGUIDE_BUTTONS, (
9
- (default, (
10
- // these are common between all buttons
11
- font-weight bold,
12
- border-width $CONFIG_DIM_GENERIC_BORDER,
13
- border-style solid,
14
- cursor pointer,
15
- margin 0,
16
- overflow visible,
17
- text-decoration (none !important),
18
- text-align center,
19
- width auto,
20
- text-shadow $CONFIG_SHADOW_BUTTON_TEXT,
21
- // sizing
22
- border-radius $CONFIG_DIM_BUTTON_RADIUS,
23
- padding _styleguideGetButtonPadding(medium),
24
- // we set the size intentionally two pixels large and use box-sizing to adjust it
25
- // this makes IE6/7 behave properly and other browsers adjust correctly
26
- height (_styleguideGetButtonHeight(medium) + (2*$CONFIG_DIM_GENERIC_BORDER)),
27
- line-height _styleguideGetButtonHeight(medium),
28
- box-sizing border-box,
29
- font-size nth($CONFIG_FONT_BUTTON_MEDIUM, 1),
30
- // palette
31
- color $CONFIG_COLOR_BUTTON_PRIMARY,
32
- background-color $CONFIG_COLOR_BG_BUTTON_PRIMARY,
33
- border-color $CONFIG_COLOR_BORDER_BUTTON_PRIMARY,
34
- filter-gradient $CONFIG_GRADIENT_BUTTON_PRIMARY_IE,
35
- background-image $CONFIG_GRADIENT_BUTTON_PRIMARY,
36
- white-space nowrap,
37
- // alignment
38
- inline-block true, // this will use the inline-block() mixin
39
- vertical-align middle,
40
- // states
41
- (states, (
42
- (hover, (
43
- background-color $CONFIG_COLOR_BG_BUTTON_PRIMARY_HOVER,
44
- filter-gradient $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER_IE,
45
- background-image $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER,
46
- box-shadow $CONFIG_SHADOW_BUTTON_HOVER
47
- )),
48
- (active, (
49
- box-shadow $CONFIG_SHADOW_BUTTON_ACTIVE,
50
- nil
51
- )),
52
- (disabled, (
53
- background-color $CONFIG_COLOR_BG_BUTTON_PRIMARY_HOVER,
54
- filter-gradient $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER_IE,
55
- background-image $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER,
56
- box-shadow none,
57
- cursor default,
58
- opacity $CONFIG_OPACITY_BUTTON_DISABLED
59
- ))
60
- ))
61
- )),
62
- // IMPORTANCE
63
- (primary, (
64
- // inherits from default
65
- nil
66
- )),
67
- (secondary, (
68
- text-shadow $CONFIG_SHADOW_BUTTON_TEXT_INVERTED,
69
- color $CONFIG_COLOR_BUTTON_SECONDARY,
70
- background-color $CONFIG_COLOR_BG_BUTTON_SECONDARY,
71
- border-color $CONFIG_COLOR_BORDER_BUTTON_SECONDARY,
72
- filter-gradient $CONFIG_GRADIENT_BUTTON_SECONDARY_IE,
73
- background-image $CONFIG_GRADIENT_BUTTON_SECONDARY,
74
- (states, (
75
- (hover, (
76
- background-color $CONFIG_COLOR_BG_BUTTON_SECONDARY_HOVER,
77
- filter-gradient $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER_IE,
78
- background-image $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER
79
- )),
80
- (disabled, (
81
- background-color $CONFIG_COLOR_BG_BUTTON_SECONDARY_HOVER,
82
- filter-gradient $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER_IE,
83
- background-image $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER
84
- ))
85
- ))
86
- )),
87
- (spotlight, (
88
- text-shadow $CONFIG_SHADOW_BUTTON_TEXT_INVERTED,
89
- background-color $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT,
90
- border-color $CONFIG_COLOR_BORDER_BUTTON_SPOTLIGHT,
91
- color $CONFIG_COLOR_BUTTON_SPOTLIGHT,
92
- filter-gradient $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_IE,
93
- background-image $CONFIG_GRADIENT_BUTTON_SPOTLIGHT,
94
- (states, (
95
- (hover, (
96
- background-color $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_HOVER,
97
- filter-gradient $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER_IE,
98
- background-image $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER
99
- )),
100
- (disabled, (
101
- background-color $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_HOVER,
102
- filter-gradient $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER_IE,
103
- background-image $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER
104
- ))
105
- ))
106
- )),
107
- // CONTEXTS
108
- // in a dark context
109
- (in-dark, (
110
- border-color $CONFIG_COLOR_BORDER_BUTTON_DARK,
111
- nil
112
- )),
113
- // IMPORTANCE in CONTEXTS
114
- ((primary in-dark), (
115
- inherit (in-dark),
116
- (states, (
117
- (hover, (
118
- background-color $CONFIG_COLOR_BG_BUTTON_PRIMARY_DARK_HOVER,
119
- filter-gradient $CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_HOVER_IE,
120
- background-image $CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_HOVER
121
- )),
122
- nil
123
- ))
124
- )),
125
- ((secondary in-dark), (
126
- inherit (in-dark),
127
- (states, (
128
- (hover, (
129
- background-color $CONFIG_COLOR_BG_BUTTON_SECONDARY_DARK_HOVER,
130
- filter-gradient $CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_HOVER_IE,
131
- background-image $CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_HOVER
132
- )),
133
- nil
134
- ))
135
- )),
136
- ((spotlight in-dark), (
137
- inherit (in-dark),
138
- (states, (
139
- (hover, (
140
- background-color $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_DARK_HOVER,
141
- filter-gradient $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_HOVER_IE,
142
- background-image $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_HOVER
143
- )),
144
- nil
145
- ))
146
- )),
147
- // in the punchcut context (inherit from in-dark)
148
- (primary in-punchcut, (
149
- inherit (primary in-dark),
150
- nil
151
- )),
152
- (secondary in-punchcut, (
153
- inherit (secondary in-dark),
154
- nil
155
- )),
156
- (spotlight in-punchcut, (
157
- inherit (spotlight in-dark),
158
- nil
159
- )),
160
- // in the bristol context (inherit from in-dark)
161
- (primary in-bristol, (
162
- inherit (primary in-dark),
163
- nil
164
- )),
165
- (secondary in-bristol, (
166
- inherit (secondary in-dark),
167
- nil
168
- )),
169
- (spotlight in-bristol, (
170
- inherit (spotlight in-dark),
171
- nil
172
- )),
173
- // BUTTON TOOLBARS
174
- (in-button-toolbar, (
175
- margin-right $CONFIG_DIM_BUTTON_SPACING_OUTER,
176
- float left,
177
- display block,
178
- inline-block nil
179
- )),
180
- (small in-button-toolbar, (
181
- margin-right $CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW,
182
- nil
183
- )),
184
- (last in-button-toolbar, (
185
- margin-right nil,
186
- nil
187
- )),
188
- (right aligned in-button-toolbar, (
189
- float right,
190
- margin-right nil,
191
- margin-left $CONFIG_DIM_BUTTON_SPACING_OUTER
192
- )),
193
- (right aligned small in-button-toolbar, (
194
- margin-left $CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW,
195
- nil
196
- )),
197
- (right aligned last in-button-toolbar, (
198
- margin-left nil,
199
- nil
200
- )),
201
- // BUTTON GROUPS
202
- (in-button-group, (
203
- border-radius 0,
204
- float left,
205
- border-left-width 0,
206
- display block,
207
- inline-block nil
208
- )),
209
- (last in-button-group, (
210
- border-radius (0 $CONFIG_DIM_BUTTON_RADIUS $CONFIG_DIM_BUTTON_RADIUS 0),
211
- nil
212
- )),
213
- // fix the inner borders in a button group in a dark context
214
- (in-button-group in-dark, (
215
- border-right-color $CONFIG_COLOR_BORDER_BUTTON_PRIMARY,
216
- nil
217
- )),
218
- (secondary in-button-group in-dark, (
219
- border-right-color $CONFIG_COLOR_BORDER_BUTTON_SECONDARY,
220
- nil
221
- )),
222
- (spotlight in-button-group in-dark, (
223
- border-right-color $CONFIG_COLOR_BORDER_BUTTON_SPOTLIGHT,
224
- nil
225
- )),
226
- // restore the dark border for the last one
227
- (last in-button-group in-dark, (
228
- border-right-color $CONFIG_COLOR_BORDER_BUTTON_DARK,
229
- nil
230
- )),
231
- (in-button-group in-punchcut, (
232
- inherit (in-button-group in-dark),
233
- nil
234
- )),
235
- (secondary in-button-group in-punchcut, (
236
- inherit (secondary in-button-group in-dark),
237
- nil
238
- )),
239
- (spotlight in-button-group in-punchcut, (
240
- inherit (spotlight in-button-group in-dark),
241
- nil
242
- )),
243
- (last in-button-group in-punchcut, (
244
- inherit (last in-button-group in-dark),
245
- nil
246
- )),
247
- (in-button-group in-bristol, (
248
- inherit (in-button-group in-dark),
249
- nil
250
- )),
251
- (secondary in-button-group in-bristol, (
252
- inherit (secondary in-button-group in-dark),
253
- nil
254
- )),
255
- (spotlight in-button-group in-bristol, (
256
- inherit (spotlight in-button-group in-dark),
257
- nil
258
- )),
259
- (last in-button-group in-bristol, (
260
- inherit (last in-button-group in-dark),
261
- nil
262
- )),
263
- // need to add here for inheritance order to preserve the first button appearance
264
- (first in-button-group, (
265
- border-radius ($CONFIG_DIM_BUTTON_RADIUS 0 0 $CONFIG_DIM_BUTTON_RADIUS),
266
- // restore the left-border for the first button
267
- border-left-width nil
268
- )),
269
- // SIZES
270
- (large, (
271
- font-size nth($CONFIG_FONT_BUTTON_LARGE, 1),
272
- padding _styleguideGetButtonPadding(large),
273
- height (_styleguideGetButtonHeight(large) + (2*$CONFIG_DIM_GENERIC_BORDER)),
274
- line-height _styleguideGetButtonHeight(large)
275
- )),
276
- (medium, (
277
- // inherits from default
278
- nil
279
- )),
280
- (small, (
281
- font-size nth($CONFIG_FONT_BUTTON_SMALL, 1),
282
- padding _styleguideGetButtonPadding(small),
283
- height (_styleguideGetButtonHeight(small) + (2*$CONFIG_DIM_GENERIC_BORDER)),
284
- line-height _styleguideGetButtonHeight(small)
285
- )),
286
- // narrow variants
287
- (narrow, (
288
- padding _styleguideGetButtonPadding(medium, narrow),
289
- nil
290
- )),
291
- (narrow large, (
292
- padding _styleguideGetButtonPadding(large, narrow),
293
- nil
294
- )),
295
- (narrow small, (
296
- padding _styleguideGetButtonPadding(small, narrow),
297
- nil
298
- )),
299
- (indicator, (
300
- hide-text true,
301
- border 0,
302
- color $CONFIG_COLOR_BUTTON_INDICATOR, // Added so IE 6/7 hide the text
303
- width nth($CONFIG_DIM_BUTTON_INDICATOR_SMALL, 1),
304
- height nth-cyclic($CONFIG_DIM_BUTTON_INDICATOR_SMALL, 2),
305
- font-size 0,
306
- line-height 0,
307
- overflow hidden,
308
- padding 0, // override browser defaults,
309
- margin (0 horizontal-spacing(0.4, $abuse: true)),
310
- text-shadow nil,
311
- border-radius $CONFIG_DIM_BUTTON_INDICATOR_SMALL_RADIUS,
312
- background-color $CONFIG_COLOR_BUTTON_INDICATOR,
313
- filter-gradient nil,
314
- background-image nil,
315
- (states, (
316
- (hover, (
317
- background-color nil,
318
- filter-gradient nil,
319
- background-image nil,
320
- box-shadow nil
321
- )),
322
- (active, (
323
- inherit (hover),
324
- nil
325
- )),
326
- (disabled, (
327
- color nil,
328
- background-color nil,
329
- filter-gradient nil,
330
- background-image nil
331
- )),
332
- (selected, (
333
- inherit (disabled),
334
- nil
335
- ))
336
- ))
337
- ))
338
- ), $CONFIG_THEME);
339
- }