archetype 0.0.1.pre.1 → 0.0.1.pre.3.00dfd9a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +88 -0
  3. data/LICENSE +16 -0
  4. data/README.md +87 -1
  5. data/VERSION.yml +6 -0
  6. data/lib/README.rdoc +4 -0
  7. data/lib/archetype.rb +45 -0
  8. data/lib/archetype/functions.rb +9 -0
  9. data/lib/archetype/functions/hash.rb +149 -0
  10. data/lib/archetype/functions/helpers.rb +125 -0
  11. data/lib/archetype/functions/styleguide_memoizer.rb +61 -0
  12. data/lib/archetype/sass_extensions.rb +6 -0
  13. data/lib/archetype/sass_extensions/functions.rb +14 -0
  14. data/lib/archetype/sass_extensions/functions/environment.rb +14 -0
  15. data/lib/archetype/sass_extensions/functions/lists.rb +284 -0
  16. data/lib/archetype/sass_extensions/functions/locale.rb +77 -0
  17. data/lib/archetype/sass_extensions/functions/numbers.rb +19 -0
  18. data/lib/archetype/sass_extensions/functions/styleguide.rb +406 -0
  19. data/lib/archetype/sass_extensions/functions/ui.rb +59 -0
  20. data/lib/archetype/sass_extensions/functions/version.rb +95 -0
  21. data/lib/archetype/version.rb +75 -0
  22. data/stylesheets/_archetype.scss +2 -0
  23. data/stylesheets/archetype/_base.scss +46 -0
  24. data/stylesheets/archetype/_config.scss +366 -0
  25. data/stylesheets/archetype/_grid.scss +3 -0
  26. data/stylesheets/archetype/_hacks.scss +72 -0
  27. data/stylesheets/archetype/_init.scss +23 -0
  28. data/stylesheets/archetype/_styleguide.scss +6 -0
  29. data/stylesheets/archetype/_ui.scss +326 -0
  30. data/stylesheets/archetype/_util.scss +12 -0
  31. data/stylesheets/archetype/base/_h5bp.scss +307 -0
  32. data/stylesheets/archetype/base/_hybrid.scss +25 -0
  33. data/stylesheets/archetype/base/_normalize.scss +595 -0
  34. data/stylesheets/archetype/base/_reset.scss +72 -0
  35. data/stylesheets/archetype/grid/_config.scss +14 -0
  36. data/stylesheets/archetype/grid/_grid.scss +391 -0
  37. data/stylesheets/archetype/styleguide/_components.scss +25 -0
  38. data/stylesheets/archetype/styleguide/_helpers.scss +215 -0
  39. data/stylesheets/archetype/styleguide/_primitives.scss +10 -0
  40. data/stylesheets/archetype/styleguide/_styleguide.scss +41 -0
  41. data/stylesheets/archetype/styleguide/components/_alerts.scss +59 -0
  42. data/stylesheets/archetype/styleguide/components/_annotations.scss +27 -0
  43. data/stylesheets/archetype/styleguide/components/_bristol.scss +15 -0
  44. data/stylesheets/archetype/styleguide/components/_button_groups.scss +47 -0
  45. data/stylesheets/archetype/styleguide/components/_button_toolbars.scss +17 -0
  46. data/stylesheets/archetype/styleguide/components/_buttons.scss +338 -0
  47. data/stylesheets/archetype/styleguide/components/_canvas.scss +15 -0
  48. data/stylesheets/archetype/styleguide/components/_carets.scss +336 -0
  49. data/stylesheets/archetype/styleguide/components/_closes.scss +63 -0
  50. data/stylesheets/archetype/styleguide/components/_container.scss +27 -0
  51. data/stylesheets/archetype/styleguide/components/_copy.scss +85 -0
  52. data/stylesheets/archetype/styleguide/components/_flyouts.scss +52 -0
  53. data/stylesheets/archetype/styleguide/components/_headings.scss +33 -0
  54. data/stylesheets/archetype/styleguide/components/_headlines.scss +63 -0
  55. data/stylesheets/archetype/styleguide/components/_hovercards.scss +27 -0
  56. data/stylesheets/archetype/styleguide/components/_icons.scss +17 -0
  57. data/stylesheets/archetype/styleguide/components/_identities.scss +34 -0
  58. data/stylesheets/archetype/styleguide/components/_links.scss +66 -0
  59. data/stylesheets/archetype/styleguide/components/_loaders.scss +154 -0
  60. data/stylesheets/archetype/styleguide/components/_menu_items.scss +31 -0
  61. data/stylesheets/archetype/styleguide/components/_module.scss +15 -0
  62. data/stylesheets/archetype/styleguide/components/_pullquotes.scss +29 -0
  63. data/stylesheets/archetype/styleguide/components/_punchcut.scss +18 -0
  64. data/stylesheets/archetype/styleguide/components/_tooltips.scss +28 -0
  65. data/stylesheets/archetype/styleguide/primitives/_animations.scss +17 -0
  66. data/stylesheets/archetype/styleguide/primitives/_dimensions.scss +50 -0
  67. data/stylesheets/archetype/styleguide/primitives/_glyphs.scss +11 -0
  68. data/stylesheets/archetype/styleguide/primitives/_misc.scss +8 -0
  69. data/stylesheets/archetype/styleguide/primitives/_palettes.scss +94 -0
  70. data/stylesheets/archetype/styleguide/primitives/_shadows.scss +23 -0
  71. data/stylesheets/archetype/styleguide/primitives/_sprites.scss +46 -0
  72. data/stylesheets/archetype/styleguide/primitives/_textures.scss +10 -0
  73. data/stylesheets/archetype/styleguide/primitives/_typography.scss +56 -0
  74. data/stylesheets/archetype/util/_debug.scss +40 -0
  75. data/stylesheets/archetype/util/_lists.scss +57 -0
  76. data/stylesheets/archetype/util/_misc.scss +108 -0
  77. data/stylesheets/archetype/util/_rtl.scss +279 -0
  78. data/stylesheets/archetype/util/_spacing.scss +78 -0
  79. data/stylesheets/archetype/util/_styles.scss +466 -0
  80. data/stylesheets/archetype/util/_targeting.scss +210 -0
  81. data/stylesheets/archetype/util/_units.scss +18 -0
  82. data/templates/example/index.html +40 -0
  83. data/templates/example/manifest.rb +13 -0
  84. data/templates/example/screen.scss +99 -0
  85. data/templates/example/vendor/archetype/animations/loaders/large/large.png +0 -0
  86. data/templates/example/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
  87. data/templates/example/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
  88. data/templates/example/vendor/archetype/animations/loaders/large/large_static.png +0 -0
  89. data/templates/example/vendor/archetype/animations/loaders/medium/medium.png +0 -0
  90. data/templates/example/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
  91. data/templates/example/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
  92. data/templates/example/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
  93. data/templates/example/vendor/archetype/animations/loaders/small/small.png +0 -0
  94. data/templates/example/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
  95. data/templates/example/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
  96. data/templates/example/vendor/archetype/animations/loaders/small/small_static.png +0 -0
  97. data/templates/example/vendor/archetype/fontawesome-webfont.eot +0 -0
  98. data/templates/example/vendor/archetype/fontawesome-webfont.svg +255 -0
  99. data/templates/example/vendor/archetype/fontawesome-webfont.ttf +0 -0
  100. data/templates/example/vendor/archetype/fontawesome-webfont.woff +0 -0
  101. data/templates/project/manifest.rb +9 -0
  102. data/templates/project/screen.scss +1 -0
  103. data/templates/project/vendor/archetype/animations/loaders/large/large.png +0 -0
  104. data/templates/project/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
  105. data/templates/project/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
  106. data/templates/project/vendor/archetype/animations/loaders/large/large_static.png +0 -0
  107. data/templates/project/vendor/archetype/animations/loaders/medium/medium.png +0 -0
  108. data/templates/project/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
  109. data/templates/project/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
  110. data/templates/project/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
  111. data/templates/project/vendor/archetype/animations/loaders/small/small.png +0 -0
  112. data/templates/project/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
  113. data/templates/project/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
  114. data/templates/project/vendor/archetype/animations/loaders/small/small_static.png +0 -0
  115. data/templates/project/vendor/archetype/fontawesome-webfont.eot +0 -0
  116. data/templates/project/vendor/archetype/fontawesome-webfont.svg +255 -0
  117. data/templates/project/vendor/archetype/fontawesome-webfont.ttf +0 -0
  118. data/templates/project/vendor/archetype/fontawesome-webfont.woff +0 -0
  119. data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.eot +0 -0
  120. data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.svg +255 -0
  121. data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.ttf +0 -0
  122. data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.woff +0 -0
  123. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large.png +0 -0
  124. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
  125. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
  126. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_static.png +0 -0
  127. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium.png +0 -0
  128. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
  129. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
  130. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
  131. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small.png +0 -0
  132. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
  133. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
  134. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_static.png +0 -0
  135. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png +0 -0
  136. data/test/fixtures/stylesheets/archetype/config.rb +19 -0
  137. data/test/fixtures/stylesheets/archetype/expected/b.css +14 -0
  138. data/test/fixtures/stylesheets/archetype/expected/base.css +349 -0
  139. data/test/fixtures/stylesheets/archetype/expected/hacks/ie_pseudo.css +11 -0
  140. data/test/fixtures/stylesheets/archetype/expected/locale.css +23 -0
  141. data/test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css +2091 -0
  142. data/test/fixtures/stylesheets/archetype/expected/styleguide/fallback_styles.css +9 -0
  143. data/test/fixtures/stylesheets/archetype/expected/styleguide/nested_styleguides.css +24 -0
  144. data/test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css +174 -0
  145. data/test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css +37 -0
  146. data/test/fixtures/stylesheets/archetype/expected/ui/hide_element.css +8 -0
  147. data/test/fixtures/stylesheets/archetype/expected/ui/stroke.css +17 -0
  148. data/test/fixtures/stylesheets/archetype/expected/ui/triangle.css +35 -0
  149. data/test/fixtures/stylesheets/archetype/expected/utilities/associative.css +9 -0
  150. data/test/fixtures/stylesheets/archetype/expected/utilities/if-set.css +9 -0
  151. data/test/fixtures/stylesheets/archetype/expected/utilities/spacing/horizontal-spacing.css +29 -0
  152. data/test/fixtures/stylesheets/archetype/expected/utilities/spacing/vertical-spacing.css +29 -0
  153. data/test/fixtures/stylesheets/archetype/expected/utilities/styles/filter.css +11 -0
  154. data/test/fixtures/stylesheets/archetype/expected/utilities/styles/font-family.css +16 -0
  155. data/test/fixtures/stylesheets/archetype/expected/utilities/styles/z-index.css +15 -0
  156. data/test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css +100 -0
  157. data/test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-os.css +55 -0
  158. data/test/fixtures/stylesheets/archetype/source/b.scss +9 -0
  159. data/test/fixtures/stylesheets/archetype/source/base.scss +3 -0
  160. data/test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss +13 -0
  161. data/test/fixtures/stylesheets/archetype/source/locale.scss +43 -0
  162. data/test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss +18 -0
  163. data/test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss +22 -0
  164. data/test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss +40 -0
  165. data/test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss +22 -0
  166. data/test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss +13 -0
  167. data/test/fixtures/stylesheets/archetype/source/ui/hide_element.scss +5 -0
  168. data/test/fixtures/stylesheets/archetype/source/ui/stroke.scss +13 -0
  169. data/test/fixtures/stylesheets/archetype/source/ui/triangle.scss +13 -0
  170. data/test/fixtures/stylesheets/archetype/source/utilities/associative.scss +24 -0
  171. data/test/fixtures/stylesheets/archetype/source/utilities/if-set.scss +16 -0
  172. data/test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss +27 -0
  173. data/test/fixtures/stylesheets/archetype/source/utilities/spacing/vertical-spacing.scss +27 -0
  174. data/test/fixtures/stylesheets/archetype/source/utilities/styles/filter.scss +9 -0
  175. data/test/fixtures/stylesheets/archetype/source/utilities/styles/font-family.scss +9 -0
  176. data/test/fixtures/stylesheets/archetype/source/utilities/styles/z-index.scss +18 -0
  177. data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss +70 -0
  178. data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-os.scss +42 -0
  179. data/test/helpers/diff.rb +49 -0
  180. data/test/helpers/io.rb +36 -0
  181. data/test/helpers/test_case.rb +62 -0
  182. data/test/integrations/archetype_test.rb +126 -0
  183. data/test/test_helper.rb +26 -0
  184. data/test/units/sass_extensions_test.rb +207 -0
  185. metadata +303 -15
@@ -0,0 +1,154 @@
1
+ // ==========
2
+ // LOADERS
3
+ // ==========
4
+ $STYLEGUIDE_LOADERS_ID: loader !default;
5
+ $STYLEGUIDE_LOADERS: () !default;
6
+
7
+ @if not styleguide-component-exists($STYLEGUIDE_LOADERS_ID, $CONFIG_THEME) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_LOADERS_ID, $STYLEGUIDE_LOADERS, (
9
+ (default, (
10
+ display block,
11
+ content $CONTENT_PLACEHOLDER,
12
+ stretch true,
13
+ opacity 0.7,
14
+ overflow hidden,
15
+ hide-text true,
16
+ background-color _styleguideGetContextColor(nth($CONFIG_TEXTURE_CONTAINER, 1)),
17
+ ie-pseudo-after _styleguideGetLoaderExpression(medium),
18
+ (selectors, (
19
+ ("&:after", (
20
+ position absolute,
21
+ top 50%,
22
+ left 50%,
23
+ content $CONTENT_PLACEHOLDER,
24
+ background-image styleguide-sprite-url($CONFIG_SPRITE_LOADERS),
25
+ background-repeat no-repeat,
26
+ background-position _styleguideGetLoaderPosition(medium, static),
27
+ width _styleguideGetLoaderDimension(medium, static, width),
28
+ height _styleguideGetLoaderDimension(medium, static, height),
29
+ margin-top _styleguideGetLoaderDimension(medium, static, height) / -2,
30
+ margin-left _styleguideGetLoaderDimension(medium, static, width) / -2,
31
+ animation _styleguideGetLoaderAnimation(medium)
32
+ )),
33
+ nil
34
+ ))
35
+ )),
36
+ // sizes
37
+ (large, (
38
+ ie-pseudo-after _styleguideGetLoaderExpression(large),
39
+ (selectors, (
40
+ ("&:after", (
41
+ background-position _styleguideGetLoaderPosition(large, static),
42
+ width _styleguideGetLoaderDimension(large, static, width),
43
+ height _styleguideGetLoaderDimension(large, static, height),
44
+ margin-top _styleguideGetLoaderDimension(large, static, height) / -2,
45
+ margin-left _styleguideGetLoaderDimension(large, static, width) / -2,
46
+ animation _styleguideGetLoaderAnimation(large)
47
+ )),
48
+ nil
49
+ ))
50
+ // expression hack
51
+ )),
52
+ (small, (
53
+ ie-pseudo-after _styleguideGetLoaderExpression(small),
54
+ (selectors, (
55
+ ("&:after", (
56
+ background-position _styleguideGetLoaderPosition(small, static),
57
+ width _styleguideGetLoaderDimension(small, static, width),
58
+ height _styleguideGetLoaderDimension(small, static, height),
59
+ margin-top _styleguideGetLoaderDimension(small, static, height) / -2,
60
+ margin-left _styleguideGetLoaderDimension(small, static, width) / -2,
61
+ animation _styleguideGetLoaderAnimation(small)
62
+ )),
63
+ nil
64
+ ))
65
+ // expression hack
66
+ )),
67
+ // contexts
68
+ (in-dark, (
69
+ ie-pseudo-after _styleguideGetLoaderExpression(medium, 2),
70
+ (selectors, (
71
+ ("&:after", (
72
+ background-position _styleguideGetLoaderPosition(medium, static, 2),
73
+ width _styleguideGetLoaderDimension(medium, static, width, 2),
74
+ height _styleguideGetLoaderDimension(medium, static, height, 2),
75
+ margin-top _styleguideGetLoaderDimension(medium, static, height, 2) / -2,
76
+ margin-left _styleguideGetLoaderDimension(medium, static, width, 2) / -2,
77
+ animation _styleguideGetLoaderAnimation(medium, 2)
78
+ )),
79
+ nil
80
+ ))
81
+ )),
82
+ (large in-dark, (
83
+ ie-pseudo-after _styleguideGetLoaderExpression(large, 2),
84
+ (selectors, (
85
+ ("&:after", (
86
+ background-position _styleguideGetLoaderPosition(large, static, 2),
87
+ width _styleguideGetLoaderDimension(large, static, width, 2),
88
+ height _styleguideGetLoaderDimension(large, static, height, 2),
89
+ margin-top _styleguideGetLoaderDimension(large, static, height, 2) / -2,
90
+ margin-left _styleguideGetLoaderDimension(large, static, width, 2) / -2,
91
+ animation _styleguideGetLoaderAnimation(large, 2)
92
+ )),
93
+ nil
94
+ ))
95
+ )),
96
+ (small in-dark, (
97
+ ie-pseudo-after _styleguideGetLoaderExpression(small, 2),
98
+ (selectors, (
99
+ ("&:after", (
100
+ background-position _styleguideGetLoaderPosition(small, static, 2),
101
+ width _styleguideGetLoaderDimension(small, static, width, 2),
102
+ height _styleguideGetLoaderDimension(small, static, height, 2),
103
+ margin-top _styleguideGetLoaderDimension(small, static, height, 2) / -2,
104
+ margin-left _styleguideGetLoaderDimension(small, static, width, 2) / -2,
105
+ animation _styleguideGetLoaderAnimation(small, 2)
106
+ )),
107
+ nil
108
+ ))
109
+ )),
110
+ (in-canvas, (
111
+ background-color _styleguideGetContextColor($CONFIG_TEXTURE_CANVAS),
112
+ nil
113
+ )),
114
+ (in-module, (
115
+ background-color _styleguideGetContextColor($CONFIG_TEXTURE_MODULE),
116
+ nil
117
+ )),
118
+ (in-heading, (
119
+ background-color _styleguideGetContextColor($CONFIG_TEXTURE_HEADING),
120
+ nil
121
+ )),
122
+ (in-bristol, (
123
+ inherit (in-dark),
124
+ background-color _styleguideGetContextColor($CONFIG_TEXTURE_BRISTOL),
125
+ nil
126
+ )),
127
+ (in-punchcut, (
128
+ inherit (in-dark),
129
+ background-color _styleguideGetContextColor($CONFIG_TEXTURE_PUNCHCUT),
130
+ nil
131
+ )),
132
+ (small in-bristol, (
133
+ inherit (small in-dark),
134
+ nil
135
+ )),
136
+ (large in-bristol, (
137
+ inherit (large in-dark),
138
+ nil
139
+ )),
140
+ (small in-punchcut, (
141
+ inherit (small in-dark),
142
+ nil
143
+ )),
144
+ (large in-punchcut, (
145
+ inherit (large in-dark),
146
+ nil
147
+ )),
148
+ (without-mask, (
149
+ background-color nil,
150
+ opacity nil,
151
+ nil
152
+ ))
153
+ ), $CONFIG_THEME);
154
+ }
@@ -0,0 +1,31 @@
1
+ // ==========
2
+ // MENU ITEMS
3
+ // ==========
4
+ $STYLEGUIDE_MENU_ITEMS_ID: menu-item !default;
5
+ $STYLEGUIDE_MENU_ITEMS: () !default;
6
+
7
+ @if not styleguide-component-exists($STYLEGUIDE_MENU_ITEMS_ID, $CONFIG_THEME) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_MENU_ITEMS_ID, $STYLEGUIDE_MENU_ITEMS, (
9
+ (default, (
10
+ nil
11
+ )),
12
+ (in-flyout, (
13
+ padding $CONFIG_DIM_MENU_ITEM_SPACING,
14
+ text-decoration none,
15
+ display block,
16
+ (states, (
17
+ (hover, (
18
+ color nth-cyclic($CONFIG_COLOR_COPY, 2),
19
+ background-color $CONFIG_COLOR_BG_BUTTON_PRIMARY,
20
+ filter-gradient $CONFIG_GRADIENT_BUTTON_PRIMARY_IE,
21
+ background-image $CONFIG_GRADIENT_BUTTON_PRIMARY,
22
+ nil
23
+ )),
24
+ (active, (
25
+ inherit (hover),
26
+ nil
27
+ ))
28
+ ))
29
+ ))
30
+ ), $CONFIG_THEME);
31
+ }
@@ -0,0 +1,15 @@
1
+ // ==========
2
+ // MODULE
3
+ // ==========
4
+ $STYLEGUIDE_MODULES_ID: module !default;
5
+ $STYLEGUIDE_MODULES: () !default;
6
+
7
+ @if not styleguide-component-exists($STYLEGUIDE_MODULES_ID, $CONFIG_THEME) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_MODULES_ID, $STYLEGUIDE_MODULES, (
9
+ (default, (
10
+ background nth($CONFIG_TEXTURE_MODULE, 1),
11
+ nil
12
+ )),
13
+ nil
14
+ ), $CONFIG_THEME);
15
+ }
@@ -0,0 +1,29 @@
1
+ // ==========
2
+ // PULLQUOTES
3
+ // ==========
4
+ $STYLEGUIDE_PULLQUOTES_ID: pullquote !default;
5
+ $STYLEGUIDE_PULLQUOTES: () !default;
6
+
7
+ @if not styleguide-component-exists($STYLEGUIDE_PULLQUOTES_ID, $CONFIG_THEME) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_PULLQUOTES_ID, $STYLEGUIDE_PULLQUOTES, (
9
+ (default, (
10
+ font-size nth($CONFIG_FONT_PULLQUOTE_MEDIUM, 1),
11
+ line-height nth-cyclic($CONFIG_FONT_PULLQUOTE_MEDIUM, 2),
12
+ color nth($CONFIG_COLOR_STRONG, 1),
13
+ font-family serif,
14
+ font-style italic
15
+ )),
16
+ (in-dark, (
17
+ color nth-cyclic($CONFIG_COLOR_STRONG, 2),
18
+ text-shadow nth-cyclic($CONFIG_SHADOW_COPY, 2)
19
+ )),
20
+ (in-bristol, (
21
+ inherit (in-dark),
22
+ nil
23
+ )),
24
+ (in-punchcut, (
25
+ inherit (in-dark),
26
+ nil
27
+ ))
28
+ ), $CONFIG_THEME);
29
+ }
@@ -0,0 +1,18 @@
1
+ // ==========
2
+ // PUNCHCUT
3
+ // ==========
4
+ $STYLEGUIDE_PUNCHCUTS_ID: punchcut !default;
5
+ $STYLEGUIDE_PUNCHCUTS: () !default;
6
+
7
+ @if not styleguide-component-exists($STYLEGUIDE_PUNCHCUTS_ID, $CONFIG_THEME) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_PUNCHCUTS_ID, $STYLEGUIDE_PUNCHCUTS, (
9
+ (default, (
10
+ background nth($CONFIG_TEXTURE_PUNCHCUT, 1),
11
+ box-shadow $CONFIG_SHADOW_PUNCHCUT_INSET
12
+ )),
13
+ (without-inner-shadow, (
14
+ box-shadow nil,
15
+ nil
16
+ ))
17
+ ), $CONFIG_THEME);
18
+ }
@@ -0,0 +1,28 @@
1
+ // ==========
2
+ // TOOLTIPS
3
+ // ==========
4
+ $STYLEGUIDE_TOOLTIPS_ID: tooltip !default;
5
+ $STYLEGUIDE_TOOLTIPS: () !default;
6
+
7
+ @if not styleguide-component-exists($STYLEGUIDE_TOOLTIPS_ID, $CONFIG_THEME) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_TOOLTIPS_ID, $STYLEGUIDE_TOOLTIPS, (
9
+ (default, (
10
+ color nth-cyclic($CONFIG_COLOR_COPY, 2),
11
+ border-radius $CONFIG_DIM_TOOLTIP_RADIUS,
12
+ background nth($CONFIG_TEXTURE_BRISTOL, 1),
13
+ border-color nth($CONFIG_COLOR_BORDER_TOOLTIP, 1),
14
+ border-style solid,
15
+ border-width $CONFIG_DIM_GENERIC_BORDER,
16
+ box-shadow $CONFIG_SHADOW_TOOLTIP,
17
+ max-width $CONFIG_DIM_TOOLTIP_MAX_WIDTH,
18
+ padding $CONFIG_DIM_TOOLTIP_SPACING,
19
+ // structure
20
+ outline 0, // for accessibility purposes, we don't want to outline the tooltip if it has focus
21
+ display block,
22
+ position absolute,
23
+ visibility visible,
24
+ z-index 1
25
+ )),
26
+ nil
27
+ ), $CONFIG_THEME);
28
+ }
@@ -0,0 +1,17 @@
1
+ // ==========
2
+ // ANIMATIONS
3
+ // ==========
4
+
5
+ // loaders
6
+ $CONFIG_ANIM_LOADERS_MEDIUM_STEP: 12 !default;
7
+ $CONFIG_ANIM_LOADERS_MEDIUM_DELAY: 0s !default;
8
+ $CONFIG_ANIM_LOADERS_MEDIUM_ITERATIONS: infinite !default;
9
+ $CONFIG_ANIM_LOADERS_MEDIUM_DURATION: 1s !default;
10
+ $CONFIG_ANIM_LOADERS_LARGE_STEP: $CONFIG_ANIM_LOADERS_MEDIUM_STEP !default;
11
+ $CONFIG_ANIM_LOADERS_LARGE_DELAY: $CONFIG_ANIM_LOADERS_MEDIUM_DELAY !default;
12
+ $CONFIG_ANIM_LOADERS_LARGE_ITERATIONS: $CONFIG_ANIM_LOADERS_MEDIUM_ITERATIONS !default;
13
+ $CONFIG_ANIM_LOADERS_LARGE_DURATION: $CONFIG_ANIM_LOADERS_MEDIUM_DURATION !default;
14
+ $CONFIG_ANIM_LOADERS_SMALL_STEP: $CONFIG_ANIM_LOADERS_MEDIUM_STEP !default;
15
+ $CONFIG_ANIM_LOADERS_SMALL_DELAY: $CONFIG_ANIM_LOADERS_MEDIUM_DELAY !default;
16
+ $CONFIG_ANIM_LOADERS_SMALL_ITERATIONS: $CONFIG_ANIM_LOADERS_MEDIUM_ITERATIONS !default;
17
+ $CONFIG_ANIM_LOADERS_SMALL_DURATION: $CONFIG_ANIM_LOADERS_MEDIUM_DURATION !default;
@@ -0,0 +1,50 @@
1
+ // ==========
2
+ // DIMENSIONS
3
+ // ==========
4
+
5
+ // buttons
6
+ $CONFIG_DIM_BUTTON_RADIUS: 3px !default;
7
+ $CONFIG_DIM_BUTTON_INDICATOR_SMALL: (8px) !default;
8
+ $CONFIG_DIM_BUTTON_INDICATOR_SMALL_RADIUS: 5px !default;
9
+ $CONFIG_DIM_BUTTON_SPACING_OUTER: 10px !default;
10
+ $CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW: 7px !default;
11
+
12
+ // tooltips
13
+ $CONFIG_DIM_TOOLTIP_RADIUS: 5px !default;
14
+ $CONFIG_DIM_TOOLTIP_MAX_WIDTH: 300px !default;
15
+ $CONFIG_DIM_TOOLTIP_SPACING: (vertical-spacing(1) horizontal-spacing(1)) !default;
16
+ $CONFIG_DIM_TOOLTIP_TIP: 7px !default;
17
+ $CONFIG_DIM_TOOLTIP_TIP_OFFSET: 5px !default;
18
+
19
+ // hovercards
20
+ $CONFIG_DIM_HOVERCARD_RADIUS: $CONFIG_DIM_TOOLTIP_RADIUS !default;
21
+ $CONFIG_DIM_HOVERCARD_MAX_WIDTH: $CONFIG_DIM_TOOLTIP_MAX_WIDTH !default;
22
+ $CONFIG_DIM_HOVERCARD_SPACING: (vertical-spacing(4) horizontal-spacing(4)) !default;
23
+ $CONFIG_DIM_HOVERCARD_TIP: (24px 15px) !default;
24
+ $CONFIG_DIM_HOVERCARD_TIP_OFFSET: (10px) !default;
25
+
26
+ // generic dimensions
27
+ $CONFIG_DIM_GENERIC_BORDER: 1px !default;
28
+ $CONFIG_DIM_GENERIC_BORDER_THICK: 3px !default;
29
+
30
+ // menu items
31
+ $CONFIG_DIM_MENU_ITEM_SPACING: (vertical-spacing(1.2) horizontal-spacing(4) vertical-spacing(1.2, $abuse: true) horizontal-spacing(6)) !default;
32
+
33
+ // flyouts
34
+ $CONFIG_DIM_FLYOUT_SPACING: (0 0 vertical-spacing(1.4, $abuse: true)) !default;
35
+ $CONFIG_DIM_FLYOUT_MIN_WIDTH: _getGridWidth(4) !default;
36
+ $CONFIG_DIM_FLYOUT_RADIUS: 1px !default;
37
+
38
+ // headings
39
+ $CONFIG_DIM_HEADING_SPACING_OUTER: (vertical-spacing(1.4, $abuse: true) 0) !default;
40
+ $CONFIG_DIM_HEADING_SPACING: (vertical-spacing(2.4, $abuse: true) horizontal-spacing(6)) !default;
41
+
42
+ // breadcrumbs
43
+ $CONFIG_DIM_BREADCRUMB_SPACING_OUTER: (0 0 vertical-spacing(3) horizontal-spacing(1)) !default;
44
+ $CONFIG_DIM_BREADCRUMB_SPACING: (0 0 0 horizontal-spacing(1.4, $abuse: true)) !default;
45
+
46
+ // alerts
47
+ $CONFIG_DIM_ALERTS_SPACING: (vertical-spacing(2) horizontal-spacing(4) vertical-spacing(2) horizontal-spacing(10)) !default;
48
+
49
+ // closes
50
+ $CONFIG_DIM_CLOSES: (11px) !default;
@@ -0,0 +1,11 @@
1
+ // ==========
2
+ // GLYPHS
3
+ // ==========
4
+ $CONFIG_IMG_HOVERCARD_TIP: ("vendor/archetype/sprites/hovercard_tip.png") !default;
5
+
6
+ $CONFIG_GLYPH_ALERT_NOTIFY: (info-sign 36px inherit 28px) !default;
7
+ $CONFIG_GLYPH_ALERT_ERROR: (remove-sign 36px inherit 28px) !default;
8
+ $CONFIG_GLYPH_ALERT_SUCCESS: (ok-sign 36px inherit 28px) !default;
9
+ $CONFIG_GLYPH_ALERT_YIELD: (warning-sign 36px inherit 28px) !default;
10
+
11
+ $CONFIG_GLYPH_CLOSE: (remove 11px inherit 11px) !default;
@@ -0,0 +1,8 @@
1
+ // ==========
2
+ // MISC PRIMITIVES
3
+ // ==========
4
+
5
+ $CONFIG_OPACITY_LOADER: 0.7 !default;
6
+ $CONFIG_OPACITY_BUTTON_DISABLED: 0.6 !default;
7
+ $CONFIG_DECORATION_LINK: (none underline) !default;
8
+ $CONFIG_DECORATION_IDENTITY: (none underline) !default;
@@ -0,0 +1,94 @@
1
+ // ==========
2
+ // COLOR PALETTE
3
+ // ==========
4
+
5
+ // fonts
6
+ // defined as tuples (pairs) for light/dark background contexts
7
+ $CONFIG_COLOR_BRAND: (#0088CC #34C1ED) !default;
8
+ $CONFIG_COLOR_COPY: (#222222 #FFFFFF) !default;
9
+ $CONFIG_COLOR_COPY_MUTED: (#555555 #AAAAAA) !default;
10
+ $CONFIG_COLOR_STRONG: (#000000 #FFFFFF) !default;
11
+ $CONFIG_COLOR_ANNOTATION: (#888888 #999999) !default;
12
+ $CONFIG_COLOR_BREADCRUMB: (#666666 ) !default;
13
+ $CONFIG_COLOR_BREADCRUMB_ACTIVE: (#999999 ) !default;
14
+
15
+ // buttons
16
+ $CONFIG_COLOR_BUTTON_PRIMARY: #FFFFFF !default;
17
+ $CONFIG_COLOR_BG_BUTTON_PRIMARY: #0074CC !default;
18
+ $CONFIG_COLOR_BORDER_BUTTON_PRIMARY: #1B5480 !default;
19
+ $CONFIG_GRADIENT_BUTTON_PRIMARY: linear-gradient(top, #0088CC, #0055CC) !default;
20
+ $CONFIG_GRADIENT_BUTTON_PRIMARY_IE: (#0088CC, #0055CC, vertical) !default;
21
+ $CONFIG_COLOR_BG_BUTTON_PRIMARY_HOVER: #0055CC !default;
22
+ $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER: linear-gradient(top, #0066CC, #0033CC) !default;
23
+ $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER_IE: (#0066CC, #0033CC, vertical) !default;
24
+
25
+ $CONFIG_COLOR_BUTTON_SECONDARY: #333333 !default;
26
+ $CONFIG_COLOR_BG_BUTTON_SECONDARY: #F5F5F5 !default;
27
+ $CONFIG_COLOR_BORDER_BUTTON_SECONDARY: #AAAAAA !default;
28
+ $CONFIG_GRADIENT_BUTTON_SECONDARY: linear-gradient(top, #FFFFFF, #E6E6E6) !default;
29
+ $CONFIG_GRADIENT_BUTTON_SECONDARY_IE: (#FFFFFF, #E6E6E6, vertical) !default;
30
+ $CONFIG_COLOR_BG_BUTTON_SECONDARY_HOVER: #E6E6E6 !default;
31
+ $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER: linear-gradient(top, #F5F5F5, #E4E4E4) !default;
32
+ $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER_IE: (#F5F5F5, #E4E4E4, vertical) !default;
33
+
34
+ $CONFIG_COLOR_BUTTON_SPOTLIGHT: #FFFFFF !default;
35
+ $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT: #414141 !default;
36
+ $CONFIG_COLOR_BORDER_BUTTON_SPOTLIGHT: #111111 !default;
37
+ $CONFIG_GRADIENT_BUTTON_SPOTLIGHT: linear-gradient(top, #555555, #222222) !default;
38
+ $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_IE: (#555555, #222222, vertical) !default;
39
+ $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_HOVER: #343434 !default;
40
+ $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER: linear-gradient(top, #444444, #111111) !default;
41
+ $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER_IE: (#444444, #111111, vertical) !default;
42
+
43
+ $CONFIG_COLOR_BORDER_BUTTON_DARK: #434343 !default;
44
+
45
+ $CONFIG_COLOR_BG_BUTTON_PRIMARY_DARK: $CONFIG_COLOR_BG_BUTTON_PRIMARY !default;
46
+ $CONFIG_GRADIENT_BUTTON_PRIMARY_DARK: $CONFIG_GRADIENT_BUTTON_PRIMARY !default;
47
+ $CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_IE: $CONFIG_GRADIENT_BUTTON_PRIMARY_IE !default;
48
+ $CONFIG_COLOR_BG_BUTTON_PRIMARY_DARK_HOVER: $CONFIG_COLOR_BG_BUTTON_PRIMARY_HOVER !default;
49
+ $CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_HOVER: $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER !default;
50
+ $CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_HOVER_IE: $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER_IE !default;
51
+
52
+ $CONFIG_COLOR_BG_BUTTON_SECONDARY_DARK: $CONFIG_COLOR_BG_BUTTON_SECONDARY !default;
53
+ $CONFIG_GRADIENT_BUTTON_SECONDARY_DARK: $CONFIG_GRADIENT_BUTTON_SECONDARY !default;
54
+ $CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_IE: $CONFIG_GRADIENT_BUTTON_SECONDARY_IE !default;
55
+ $CONFIG_COLOR_BG_BUTTON_SECONDARY_DARK_HOVER: $CONFIG_COLOR_BG_BUTTON_SECONDARY_HOVER !default;
56
+ $CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_HOVER: $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER !default;
57
+ $CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_HOVER_IE: $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER_IE !default;
58
+
59
+ $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_DARK: $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT !default;
60
+ $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT !default;
61
+ $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_IE: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_IE !default;
62
+ $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_DARK_HOVER: $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_HOVER !default;
63
+ $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_HOVER: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER !default;
64
+ $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_HOVER_IE: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER_IE !default;
65
+
66
+ $CONFIG_COLOR_BUTTON_INDICATOR: #BBBBBB !default;
67
+ $CONFIG_COLOR_BUTTON_INDICATOR_INVERSE: #FFFFFF !default;
68
+
69
+ // alerts
70
+ $CONFIG_COLOR_BG_ALERT_NOTIFY: #49AFCD !default;
71
+ $CONFIG_GRADIENT_ALERT_NOTIFY: linear-gradient(top, #5BC0DE, #2F96B4) !default;
72
+ $CONFIG_GRADIENT_ALERT_NOTIFY_IE: (#5BC0DE, #2F96B4, vertical) !default;
73
+ $CONFIG_COLOR_BORDER_ALERT_NOTIFY: #2F96B4 !default;
74
+
75
+ $CONFIG_COLOR_BG_ALERT_YIELD: #FAA732 !default;
76
+ $CONFIG_GRADIENT_ALERT_YIELD: linear-gradient(top, #FBB450, #F89406) !default;
77
+ $CONFIG_GRADIENT_ALERT_YIELD_IE: (#FBB450, #F89406, vertical) !default;
78
+ $CONFIG_COLOR_BORDER_ALERT_YIELD: #F89406 !default;
79
+
80
+ $CONFIG_COLOR_BG_ALERT_SUCCESS: #5BB75B !default;
81
+ $CONFIG_GRADIENT_ALERT_SUCCESS: linear-gradient(top, #62C462, #51A351) !default;
82
+ $CONFIG_GRADIENT_ALERT_SUCCESS_IE: (#62C462, #51A351, vertical) !default;
83
+ $CONFIG_COLOR_BORDER_ALERT_SUCCESS: #51A351 !default;
84
+
85
+ $CONFIG_COLOR_BG_ALERT_ERROR: #DA4F49 !default;
86
+ $CONFIG_GRADIENT_ALERT_ERROR: linear-gradient(top, #EE5F5B, #BD362F) !default;
87
+ $CONFIG_GRADIENT_ALERT_ERROR_IE: (#EE5F5B, #BD362F, vertical) !default;
88
+ $CONFIG_COLOR_BORDER_ALERT_ERROR: #BD362F !default;
89
+
90
+ // borders
91
+ $CONFIG_COLOR_BORDER_FLYOUT: (#CCCCCC #3E3E3E) !default;
92
+ $CONFIG_COLOR_BORDER_SECTION: (#DDDDDD #555555) !default;
93
+ $CONFIG_COLOR_BORDER_TOOLTIP: (#2C2C2C ) !default;
94
+ $CONFIG_COLOR_BORDER_HOVERCARD: (#C9C9C9 ) !default;