archetype 0.0.1.pre.3.6ed259b → 0.0.1.pre.3.55c4182

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/CHANGELOG.md +0 -15
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/VERSION.yml +1 -1
  5. data/lib/archetype.rb +0 -4
  6. data/lib/archetype/functions/hash.rb +12 -28
  7. data/lib/archetype/functions/helpers.rb +2 -3
  8. data/lib/archetype/sass_extensions/functions/lists.rb +33 -27
  9. data/lib/archetype/sass_extensions/functions/locale.rb +16 -32
  10. data/lib/archetype/sass_extensions/functions/styleguide.rb +11 -12
  11. data/lib/archetype/sass_extensions/functions/ui.rb +1 -2
  12. data/lib/archetype/sass_extensions/functions/version.rb +2 -2
  13. data/lib/archetype/version.rb +2 -2
  14. data/stylesheets/archetype/_config.scss +5 -18
  15. data/stylesheets/archetype/_hacks.scss +18 -39
  16. data/stylesheets/archetype/_ui.scss +8 -23
  17. data/stylesheets/archetype/styleguide/components/_buttons.scss +0 -1
  18. data/stylesheets/archetype/util/_styles.scss +2 -25
  19. data/test/fixtures/stylesheets/archetype/config.rb +0 -2
  20. data/test/fixtures/stylesheets/archetype/expected/hacks/ie_pseudo.css +3 -3
  21. data/test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css +0 -28
  22. data/test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css +0 -3
  23. data/test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css +5 -52
  24. data/test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css +0 -5
  25. data/test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss +0 -12
  26. data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss +1 -8
  27. data/test/helpers/test_case.rb +2 -2
  28. data/test/integrations/archetype_test.rb +1 -3
  29. data/test/units/sass_extensions_test.rb +25 -18
  30. metadata +21 -60
  31. checksums.yaml +0 -7
  32. data/bin/archetype +0 -3
  33. data/lib/archetype/actions/help.rb +0 -16
  34. data/lib/archetype/actions/theme.rb +0 -73
  35. data/lib/archetype/executor.rb +0 -27
  36. data/templates/_theme/_components.scss +0 -3
  37. data/templates/_theme/_config.scss +0 -1
  38. data/templates/_theme/_core.scss +0 -13
  39. data/templates/_theme/_helpers.scss +0 -1
  40. data/templates/_theme/_primitives.scss +0 -3
  41. data/templates/_theme/components/README +0 -1
  42. data/templates/_theme/primitives/README +0 -1
  43. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png +0 -0
  44. data/test/fixtures/stylesheets/archetype/expected/base.css +0 -349
  45. data/test/fixtures/stylesheets/archetype/expected/hacks/transparent_focusable.css +0 -4
  46. data/test/fixtures/stylesheets/archetype/expected/locale.css +0 -23
  47. data/test/fixtures/stylesheets/archetype/expected/styleguide/extend.css +0 -7
  48. data/test/fixtures/stylesheets/archetype/expected/utilities/custom_output_styler.css +0 -8
  49. data/test/fixtures/stylesheets/archetype/source/base.scss +0 -3
  50. data/test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss +0 -5
  51. data/test/fixtures/stylesheets/archetype/source/locale.scss +0 -43
  52. data/test/fixtures/stylesheets/archetype/source/styleguide/extend.scss +0 -23
  53. data/test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss +0 -21
@@ -1,4 +0,0 @@
1
- .test {
2
- background: transparent "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
3
- *background: transparent url(https://);
4
- }
@@ -1,23 +0,0 @@
1
- .en_US {
2
- content: "en_US";
3
- }
4
-
5
- .en_wild {
6
- content: "en_*";
7
- }
8
-
9
- .wild_US {
10
- content: "*_US";
11
- }
12
-
13
- .one {
14
- content: "one of de_DE fr_FR pt_ en_US";
15
- }
16
-
17
- .not {
18
- content: "not one of ja_JP pt_BR _GB de_";
19
- }
20
-
21
- .lang {
22
- content: "en_US";
23
- }
@@ -1,7 +0,0 @@
1
- .some-extend-class, .extend-styleguide-test {
2
- color: red;
3
- }
4
-
5
- .extend-styleguide-test {
6
- background: green;
7
- }
@@ -1,8 +0,0 @@
1
- .test {
2
- font-size: 13px;
3
- line-height: 17px;
4
- /* post override */
5
- color: #222222;
6
- /* pre override */
7
- font-weight: normal;
8
- }
@@ -1,3 +0,0 @@
1
- @import "archetype";
2
-
3
- @include generate-loader-keyframes();
@@ -1,5 +0,0 @@
1
- @import "archetype";
2
-
3
- .test {
4
- @include transparent-focusable();
5
- }
@@ -1,43 +0,0 @@
1
- @import "archetype";
2
-
3
- // test for a simple locale
4
- .en_US {
5
- @if(locale(en_US)) {
6
- content: "en_US";
7
- }
8
- }
9
-
10
- // test for a wildcard territory
11
- .en_wild {
12
- @if(locale(en_)) {
13
- content: "en_*";
14
- }
15
- }
16
-
17
- // test for a wildcard language
18
- .wild_US {
19
- @if(locale(_US)) {
20
- content: "*_US";
21
- }
22
- }
23
-
24
- // multiple locales, one valid
25
- .one {
26
- @if(locale(de_DE fr_FR pt_ en_US)) {
27
- content: "one of de_DE fr_FR pt_ en_US";
28
- }
29
- }
30
-
31
- // multiple locales, none valid
32
- .not {
33
- @if(not locale(ja_JP pt_BR _GB de_)) {
34
- content: "not one of ja_JP pt_BR _GB de_";
35
- }
36
- }
37
-
38
- // test that the lang() alias works
39
- .lang {
40
- @if(lang(en_US)) {
41
- content: "en_US";
42
- }
43
- }
@@ -1,23 +0,0 @@
1
- @import "archetype";
2
-
3
- .some-extend-class {
4
- color: red;
5
- }
6
-
7
- %some-extend-placeholder {
8
- background: green;
9
- }
10
-
11
- @if not styleguide-component-exists(extend-styleguide-test, $CONFIG_THEME) {
12
- $a-blackhole: styleguide-add-component(extend-styleguide-test, (), (
13
- (default, (
14
- extend '.some-extend-class',
15
- extend '%some-extend-placeholder'
16
- )),
17
- nil
18
- ), $CONFIG_THEME);
19
- }
20
-
21
- .extend-styleguide-test {
22
- @include styleguide(extend-styleguide-test);
23
- }
@@ -1,21 +0,0 @@
1
- // define the test function
2
- @function has-custom-output-styler($property, $value, $method: pre) {
3
- @if $property == color {
4
- @return true;
5
- }
6
- // only if it's a post processing all values
7
- @else if $property == line-height and $method == post {
8
- @return true;
9
- }
10
- @return false;
11
- }
12
- // define the custom styler
13
- @mixin custom-output-styler($property, $value, $method: pre) {
14
- #{$property}: $value; /* #{$method} override */
15
- }
16
-
17
- @import "archetype";
18
-
19
- .test {
20
- @include styleguide(copy);
21
- }