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

Sign up to get free protection for your applications and to get access to all the features.
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,12 +1,5 @@
1
1
  // utility functions and convenience methods
2
2
  // @category utilities
3
- @import "config";
4
- // import dependencies
5
- @import "util/units";
6
- @import "util/lists";
7
- @import "util/misc";
8
- @import "util/spacing";
9
- @import "util/debug";
10
- @import "util/rtl";
11
- @import "util/styles";
12
- @import "util/targeting";
3
+ @import "required";
4
+
5
+ @import "util/core";
@@ -0,0 +1,14 @@
1
+ // register module
2
+ $a-blackhole: register-archetype-module(archetype/config);
3
+
4
+ @import "theme";
5
+ @import "environment";
6
+ @import "units";
7
+ @import "spacing";
8
+ @import "resets";
9
+ @import "formatting";
10
+ @import "glyphs";
11
+ @import "typography";
12
+ @import "targeting";
13
+ @import "vars";
14
+ @import "resolution";
@@ -0,0 +1,19 @@
1
+ // environment
2
+ $CONFIG_DEBUG_ENVS: (dev development) !default; // environments to allow debug in
3
+ $CONFIG_DEBUG: (index($CONFIG_DEBUG_ENVS, archetype-env()) != false) !default; // global debugging mode (enabled by default in $CONFIG_DEBUG_ENVS)
4
+
5
+ $CONFIG_LOCALE: locale() !default; // the default locale
6
+
7
+ $CONFIG_NAMESPACE: null !default; // the namespace to generate CSS within
8
+
9
+ @mixin unless-archetype-module-initalized($module: null) {
10
+ @if not archetype-init-state() and (not $module or do-once("archetype/init+#{$module}")) {
11
+ @content;
12
+ }
13
+ }
14
+
15
+ @mixin unless-archetype-initalized {
16
+ @if not archetype-init-state() {
17
+ @content;
18
+ }
19
+ }
@@ -0,0 +1,63 @@
1
+ // BEM support
2
+ $CONFIG_BEM_MODIFIER_SEPARATOR: '--' !default; // the separator to denote the BEM modifier (e.g. .my-block--enabled)
3
+ $CONFIG_BEM_ELEMENT_SEPARATOR: '__' !default; // the separator to denote the BEM element (e.g. .my-block__element)
4
+
5
+ // misc
6
+ $CONTENT_PLACEHOLDER: '\0020' !default; // content placeholder (ensures block elements display correctly even if they're empty)
7
+ $CONFIG_DISABLED_CSS: () !default; // a list of CSS3 features to always disable when using output-style()
8
+ $CONFIG_GENERATED_TAG_PREFIX: x-archetype !default; // the prefix for the tag name to create when using ie-pseudo method
9
+ $CONFIG_GENERATED_TAG_CSS: false !default; // styles to apply to the generated tag when using ie-pseudo method (use this as a way to reset styles on these tags)
10
+ $CONFIG_GENERATED_TAG_INLINE: true !default; // if `true` insert the styles inline on the generated tag, otherwise insert the styles in a unique css rule
11
+
12
+ // z-layers
13
+ $CONFIG_Z_INDEX_BASE: 0 !default; // the default starting layer for z-index calculations
14
+ $CONFIG_Z_LAYERS_OFFSET: 100 !default; // the offset between z-layers
15
+ $CONFIG_Z_LAYERS: (default dialog navigation) !default; // the orders for the z-layers
16
+
17
+ // sprites
18
+ $CONFIG_DISABLE_STYLEGUIDE_SPRITES: false !default; // disable all sprite generation in styleguide
19
+
20
+ // smart content
21
+ $CONFIG_USE_SMART_CONTENT: false !default; // use @extend when possible to smartly output content
22
+
23
+ // states used when printing out styles
24
+ $CONFIG_STATE_PREFIX: '' !default; // prefix state classnames @see to-style()
25
+ $CONFIG_STATE_NO_PREFIX: () !default; // states to never apply prefix to
26
+ $CONFIG_STATE_BEM: false !default; // use the BEM syntax for printing states [true|false|only]
27
+ // a mapping for state names to selectors
28
+ $CORE_STATE_MAPPINGS: (
29
+ 'hover' : (
30
+ selector : '&.#{$CONFIG_STATE_PREFIX}hover, &:hover, &.#{$CONFIG_STATE_PREFIX}focus, &:focus',
31
+ states : hover focus
32
+ ),
33
+ 'hover-only' : (
34
+ selector : '&.#{$CONFIG_STATE_PREFIX}hover, &:hover',
35
+ states : hover
36
+ ),
37
+ 'focus' : (
38
+ selector : '&.#{$CONFIG_STATE_PREFIX}focus, &:focus',
39
+ states : focus
40
+ ),
41
+ 'active' : (
42
+ selector : '&.#{$CONFIG_STATE_PREFIX}active, &:active',
43
+ states : active
44
+ ),
45
+ 'visited' : (
46
+ selector : '&.#{$CONFIG_STATE_PREFIX}visited, &:visited',
47
+ states : visited
48
+ ),
49
+ 'disabled' : (
50
+ selector : '&.#{$CONFIG_STATE_PREFIX}disabled, &[disabled]',
51
+ states : disabled
52
+ ),
53
+ 'checked' : (
54
+ selector : '&.#{$CONFIG_STATE_PREFIX}checked, &:checked',
55
+ states : checked
56
+ ),
57
+ 'focus-inner' : (
58
+ selector : '&::-moz-focus-inner',
59
+ states : null
60
+ )
61
+ );
62
+ $CONFIG_STATE_MAPPINGS: () !default;
63
+ $CONFIG_STATE_MAPPINGS: map-merge($CORE_STATE_MAPPINGS, $CONFIG_STATE_MAPPINGS);
@@ -0,0 +1,252 @@
1
+ // glyphs
2
+ $CONFIG_GLYPHS_WEIGHT: normal !default; // font-weight for glyphs (if not set in the library config)
3
+ $CONFIG_GLYPHS_STYLE: normal !default; // font-style for glyphs (if not set in the library config)
4
+ $CONFIG_GLYPHS_OUTPUT_FALLBACK: false !default; // whether or not to output fallback font-family names (this is only needed if you mixed version content, not common)
5
+ $CONFIG_GLYPHS_INLINE_FONTS: false !default; // whether or not to default to using inline fonts (if not set in the library config)
6
+ $CONFIG_GLYPHS_SMOOTHING: true !default; // whether or not to "smooth" the glyph rendering
7
+
8
+ $CORE_GLYPHS_LIBRARIES: (
9
+ default: (
10
+ name: FontAwesome, // name for the font-face
11
+ version: null, // the glyph library version
12
+ svg-id: null, // id to use for the SVG (if null, uses the font-family name)
13
+ grids: null, // list of grid sizes
14
+ weight: null, // font-weight (if null, defaults to $CONFIG_GLYPHS_WEIGHT)
15
+ style: null, // font-style (if null, defaults to $CONFIG_GLYPHS_STYLE)
16
+ path: 'vendor/archetype/fontawesome-webfont', // base path to the font files
17
+ files: ( // font files
18
+ eot: '{path}.eot', // EOT file for old IE
19
+ std: ('{path}.woff', '{path}.ttf', '{path}.svg##{"{svg-id}"}') // other standardized files
20
+ ),
21
+ // FontAwesome icon mappings as of 2012/11/03
22
+ mappings: ( // character code mappings
23
+ glass: '\f000',
24
+ music: '\f001',
25
+ search: '\f002',
26
+ envelope: '\f003',
27
+ heart: '\f004',
28
+ star: '\f005',
29
+ star-empty: '\f006',
30
+ user: '\f007',
31
+ film: '\f008',
32
+ th-large: '\f009',
33
+ th: '\f00a',
34
+ th-list: '\f00b',
35
+ ok: '\f00c',
36
+ remove: '\f00d',
37
+ zoom-in: '\f00e',
38
+ zoom-out: '\f010',
39
+ off: '\f011',
40
+ signal: '\f012',
41
+ cog: '\f013',
42
+ trash: '\f014',
43
+ home: '\f015',
44
+ file: '\f016',
45
+ time: '\f017',
46
+ road: '\f018',
47
+ download-alt: '\f019',
48
+ download: '\f01a',
49
+ upload: '\f01b',
50
+ inbox: '\f01c',
51
+ play-circle: '\f01d',
52
+ repeat: '\f01e',
53
+
54
+ refresh: '\f021',
55
+ list-alt: '\f022',
56
+ lock: '\f023',
57
+ flag: '\f024',
58
+ headphones: '\f025',
59
+ volume-off: '\f026',
60
+ volume-down: '\f027',
61
+ volume-up: '\f028',
62
+ qrcode: '\f029',
63
+ barcode: '\f02a',
64
+ tag: '\f02b',
65
+ tags: '\f02c',
66
+ book: '\f02d',
67
+ bookmark: '\f02e',
68
+ print: '\f02f',
69
+
70
+ camera: '\f030',
71
+ font: '\f031',
72
+ bold: '\f032',
73
+ italic: '\f033',
74
+ text-height: '\f034',
75
+ text-width: '\f035',
76
+ align-left: '\f036',
77
+ align-center: '\f037',
78
+ align-right: '\f038',
79
+ align-justify: '\f039',
80
+ list: '\f03a',
81
+ indent-left: '\f03b',
82
+ indent-right: '\f03c',
83
+ facetime-video: '\f03d',
84
+ picture: '\f03e',
85
+
86
+ pencil: '\f040',
87
+ map-marker: '\f041',
88
+ adjust: '\f042',
89
+ tint: '\f043',
90
+ edit: '\f044',
91
+ share: '\f045',
92
+ check: '\f046',
93
+ move: '\f047',
94
+ step-backward: '\f048',
95
+ fast-backward: '\f049',
96
+ backward: '\f04a',
97
+ play: '\f04b',
98
+ pause: '\f04c',
99
+ stop: '\f04d',
100
+ forward: '\f04e',
101
+
102
+ fast-forward: '\f050',
103
+ step-forward: '\f051',
104
+ eject: '\f052',
105
+ chevron-left: '\f053',
106
+ chevron-right: '\f054',
107
+ plus-sign: '\f055',
108
+ minus-sign: '\f056',
109
+ remove-sign: '\f057',
110
+ ok-sign: '\f058',
111
+ question-sign: '\f059',
112
+ info-sign: '\f05a',
113
+ screenshot: '\f05b',
114
+ remove-circle: '\f05c',
115
+ ok-circle: '\f05d',
116
+ ban-circle: '\f05e',
117
+
118
+ arrow-left: '\f060',
119
+ arrow-right: '\f061',
120
+ arrow-up: '\f062',
121
+ arrow-down: '\f063',
122
+ share-alt: '\f064',
123
+ resize-full: '\f065',
124
+ resize-small: '\f066',
125
+ plus: '\f067',
126
+ minus: '\f068',
127
+ asterisk: '\f069',
128
+ exclamation-sign: '\f06a',
129
+ gift: '\f06b',
130
+ leaf: '\f06c',
131
+ fire: '\f06d',
132
+ eye-open: '\f06e',
133
+
134
+ eye-close: '\f070',
135
+ warning-sign: '\f071',
136
+ plane: '\f072',
137
+ calendar: '\f073',
138
+ random: '\f074',
139
+ comment: '\f075',
140
+ magnet: '\f076',
141
+ chevron-up: '\f077',
142
+ chevron-down: '\f078',
143
+ retweet: '\f079',
144
+ shopping-cart: '\f07a',
145
+ folder-close: '\f07b',
146
+ folder-open: '\f07c',
147
+ resize-vertical: '\f07d',
148
+ resize-horizontal: '\f07e',
149
+
150
+ bar-chart: '\f080',
151
+ twitter-sign: '\f081',
152
+ facebook-sign: '\f082',
153
+ camera-retro: '\f083',
154
+ key: '\f084',
155
+ cogs: '\f085',
156
+ comments: '\f086',
157
+ thumbs-up: '\f087',
158
+ thumbs-down: '\f088',
159
+ star-half: '\f089',
160
+ heart-empty: '\f08a',
161
+ signout: '\f08b',
162
+ linkedin-sign: '\f08c',
163
+ pushpin: '\f08d',
164
+ external-link: '\f08e',
165
+
166
+ signin: '\f090',
167
+ trophy: '\f091',
168
+ github-sign: '\f092',
169
+ upload-alt: '\f093',
170
+ lemon: '\f094',
171
+ phone: '\f095',
172
+ check-empty: '\f096',
173
+ bookmark-empty: '\f097',
174
+ phone-sign: '\f098',
175
+ twitter: '\f099',
176
+ facebook: '\f09a',
177
+ github: '\f09b',
178
+ unlock: '\f09c',
179
+ credit-card: '\f09d',
180
+ rss: '\f09e',
181
+
182
+ hdd: '\f0a0',
183
+ bullhorn: '\f0a1',
184
+ bell: '\f0a2',
185
+ certificate: '\f0a3',
186
+ hand-right: '\f0a4',
187
+ hand-left: '\f0a5',
188
+ hand-up: '\f0a6',
189
+ hand-down: '\f0a7',
190
+ circle-arrow-left: '\f0a8',
191
+ circle-arrow-right: '\f0a9',
192
+ circle-arrow-up: '\f0aa',
193
+ circle-arrow-down: '\f0ab',
194
+ globe: '\f0ac',
195
+ wrench: '\f0ad',
196
+ tasks: '\f0ae',
197
+
198
+ filter: '\f0b0',
199
+ briefcase: '\f0b1',
200
+ fullscreen: '\f0b2',
201
+
202
+ group: '\f0c0',
203
+ link: '\f0c1',
204
+ cloud: '\f0c2',
205
+ beaker: '\f0c3',
206
+ cut: '\f0c4',
207
+ copy: '\f0c5',
208
+ paper-clip: '\f0c6',
209
+ save: '\f0c7',
210
+ sign-blank: '\f0c8',
211
+ reorder: '\f0c9',
212
+ list-ul: '\f0ca',
213
+ list-ol: '\f0cb',
214
+ strikethrough: '\f0cc',
215
+ underline: '\f0cd',
216
+ table: '\f0ce',
217
+
218
+ magic: '\f0d0',
219
+ truck: '\f0d1',
220
+ pinterest: '\f0d2',
221
+ pinterest-sign: '\f0d3',
222
+ google-plus-sign: '\f0d4',
223
+ google-plus: '\f0d5',
224
+ money: '\f0d6',
225
+ caret-down: '\f0d7',
226
+ caret-up: '\f0d8',
227
+ caret-left: '\f0d9',
228
+ caret-right: '\f0da',
229
+ columns: '\f0db',
230
+ sort: '\f0dc',
231
+ sort-down: '\f0dd',
232
+ sort-up: '\f0de',
233
+
234
+ envelope-alt: '\f0e0',
235
+ linkedin: '\f0e1',
236
+ undo: '\f0e2',
237
+ legal: '\f0e3',
238
+ dashboard: '\f0e4',
239
+ comment-alt: '\f0e5',
240
+ comments-alt: '\f0e6',
241
+ bolt: '\f0e7',
242
+ sitemap: '\f0e8',
243
+ umbrella: '\f0e9',
244
+ paste: '\f0ea',
245
+
246
+ user-md: '\f200'
247
+ )
248
+ )
249
+ );
250
+
251
+ $CONFIG_GLYPHS_LIBRARIES: () !default;
252
+ $CONFIG_GLYPHS_LIBRARIES: map-merge($CORE_GLYPHS_LIBRARIES, $CONFIG_GLYPHS_LIBRARIES);
@@ -0,0 +1,7 @@
1
+ // resets
2
+ $CONFIG_RESET_METHOD: hybrid !default; // reset method [reset|normalize|hybrid]
3
+ $CONFIG_RESET_AUTO: false !default; // if true, importing `archetype` will invoke the reset
4
+ $CONFIG_RESET_EXCLUDES: () !default; // list of things to exclude from the reset
5
+
6
+ // keyframe animations
7
+ $CONFIG_KEYFRAME_LOADERS: archetype-loader !default; // loading spinner keyframe name
@@ -0,0 +1,3 @@
1
+ // retina
2
+ $CONFIG_RESOLUTION_HIGH: null !default; // value to switch to using HiDPI
3
+ //$CONFIG_RESOLUTION_HIGH_SUFFIX: '@2x' !default; // the suffix to append to HiDPI assets (TODO - NOT USED YET)
@@ -0,0 +1,5 @@
1
+ // spacing
2
+ $CONFIG_SPACING: 5px !default; // spacing factor
3
+ $CONFIG_HORIZONTAL_SPACING: $CONFIG_SPACING !default; // horizontal spacing
4
+ $CONFIG_VERTICAL_SPACING: $CONFIG_SPACING !default; // veritcal spacing
5
+ $CONFIG_SPACING_METHOD: padding !default; // method for providing spacing [padding|margin]
@@ -0,0 +1,18 @@
1
+ // browser targeting
2
+ $CONFIG_BROWSER_VENDORS_CLASS: (ie) !default; // a list of browsers to support via class targeting
3
+ $CONFIG_BROWSER_ALLOW_HACKS: true !default; // if set to true, allow browser targeting hacks
4
+ $CONFIG_BROWSER_WARN_ON_HACK: false !default; // if hacks are used, throw a warning
5
+ // this is a map list for various hacks
6
+ $CONFIG_BROWSER_VENDORS_HACK: (
7
+ webkit-all: safari webkit chrome,
8
+ gecko-all: firefox gecko mozilla,
9
+ opera-all: opera // NOTE: this may stop working once Opera switches over to using WebKit/Blink
10
+ ) !default;
11
+
12
+ // os targeting
13
+ $CONFIG_OS_VENDORS_CLASS: (
14
+ os-win: windows win winxp win7 win8,
15
+ os-mac: apple mac osx,
16
+ os-linux: linux,
17
+ os-other: other misc unknown
18
+ ) !default;
@@ -0,0 +1,3 @@
1
+ // theme
2
+ $CONFIG_THEME: archetype !default; // the theme name
3
+ $CONFIG_THEME_EXCLUDE: () !default; // components to exclude
@@ -0,0 +1,56 @@
1
+ // os/language safe font stacks
2
+ // these are core font definitions, these will be extended with whatever is in $CONFIG_SAFE_FONTS
3
+ $CORE_SAFE_FONTS: (
4
+ sans-serif: (
5
+ default: (
6
+ default: (sans-serif),
7
+ ko_KR: ('Malgun Gothic', default),
8
+ zh_TW: (SimSun, default),
9
+ zh_CN: (SimSun, default),
10
+ ar_AE: (Tahoma, Arial, 'Times New Roman', default)
11
+ ),
12
+ win: (
13
+ default: (Arial, sans-serif),
14
+ ja_JP: (メイリオ, Meiryo, 'MS Pゴシック', 'MS PGothic', default),
15
+ zh_TW: (default, '微軟正黑體', 'Microsoft JhengHei', PMingLiu, '宋体', SimSun),
16
+ zh_CN: (default, '华文细黑', 'STHeiti Light', '微软雅黑体', 'Microsoft Yahei', '新宋体', NSimSun, '宋体', SimSun),
17
+ ko_KR: null,
18
+ ar_AE: null
19
+ ),
20
+ mac: (
21
+ default: (Helvetica, Arial, sans-serif),
22
+ zh_TW: (default, '黑體-繁', 'Heiti TC', '儷黑Pro', 'LiHei Pro', PMingLiu, '宋体', SimSun),
23
+ zh_CN: (default, '黑体-简', 'Heiti SC', '华文细黑', 'STHeiti Light', '华文黑体', STHeiti),
24
+ ja_JP: ('Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'MS Pゴシック', 'MS PGothic', default),
25
+ ko_KR: null,
26
+ ar_AE: null
27
+ ),
28
+ linux: (
29
+ default: (Helvetica, FreeSans, 'Liberation Sans', Helmet, Arial, sans-serif),
30
+ zh_TW: (default, PMingLiu, '宋体', SimSun),
31
+ zh_CN: (default, '新宋体', NSimSun, '宋体', SimSun),
32
+ ja_JP: null,
33
+ ko_KR: null,
34
+ ar_AE: null
35
+ )
36
+ ),
37
+ serif: (
38
+ default: (
39
+ default: (Georgia, serif),
40
+ CJK: null // dont use any serif fonts in CJK langs
41
+ )
42
+ ),
43
+ monospace: (
44
+ default: (
45
+ default: (Menlo, Monaco, Consolas, 'Courier New', monospace)
46
+ )
47
+ ),
48
+ headline: (
49
+ default: (
50
+ default: null, // by default, dont style headlines differently
51
+ ar_AE: ('Droid Arabic Naskh') // TODO: need to include the webfont
52
+ )
53
+ )
54
+ ); // note that this declaration isn't a `default`, but rather is enforced everytime. this can be modified (via extending $CONFIG_SAFE_FONTS)
55
+ $CONFIG_SAFE_FONTS: () !default;
56
+ $CONFIG_SAFE_FONTS: map-merge($CORE_SAFE_FONTS, $CONFIG_SAFE_FONTS);