archetype 0.0.1.pre.3.6ed259b → 0.0.1.pre.3.55c4182
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.
- data/CHANGELOG.md +0 -15
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/VERSION.yml +1 -1
- data/lib/archetype.rb +0 -4
- data/lib/archetype/functions/hash.rb +12 -28
- data/lib/archetype/functions/helpers.rb +2 -3
- data/lib/archetype/sass_extensions/functions/lists.rb +33 -27
- data/lib/archetype/sass_extensions/functions/locale.rb +16 -32
- data/lib/archetype/sass_extensions/functions/styleguide.rb +11 -12
- data/lib/archetype/sass_extensions/functions/ui.rb +1 -2
- data/lib/archetype/sass_extensions/functions/version.rb +2 -2
- data/lib/archetype/version.rb +2 -2
- data/stylesheets/archetype/_config.scss +5 -18
- data/stylesheets/archetype/_hacks.scss +18 -39
- data/stylesheets/archetype/_ui.scss +8 -23
- data/stylesheets/archetype/styleguide/components/_buttons.scss +0 -1
- data/stylesheets/archetype/util/_styles.scss +2 -25
- data/test/fixtures/stylesheets/archetype/config.rb +0 -2
- data/test/fixtures/stylesheets/archetype/expected/hacks/ie_pseudo.css +3 -3
- data/test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css +0 -28
- data/test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css +0 -3
- data/test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css +5 -52
- data/test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css +0 -5
- data/test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss +0 -12
- data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss +1 -8
- data/test/helpers/test_case.rb +2 -2
- data/test/integrations/archetype_test.rb +1 -3
- data/test/units/sass_extensions_test.rb +25 -18
- metadata +21 -60
- checksums.yaml +0 -7
- data/bin/archetype +0 -3
- data/lib/archetype/actions/help.rb +0 -16
- data/lib/archetype/actions/theme.rb +0 -73
- data/lib/archetype/executor.rb +0 -27
- data/templates/_theme/_components.scss +0 -3
- data/templates/_theme/_config.scss +0 -1
- data/templates/_theme/_core.scss +0 -13
- data/templates/_theme/_helpers.scss +0 -1
- data/templates/_theme/_primitives.scss +0 -3
- data/templates/_theme/components/README +0 -1
- data/templates/_theme/primitives/README +0 -1
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png +0 -0
- data/test/fixtures/stylesheets/archetype/expected/base.css +0 -349
- data/test/fixtures/stylesheets/archetype/expected/hacks/transparent_focusable.css +0 -4
- data/test/fixtures/stylesheets/archetype/expected/locale.css +0 -23
- data/test/fixtures/stylesheets/archetype/expected/styleguide/extend.css +0 -7
- data/test/fixtures/stylesheets/archetype/expected/utilities/custom_output_styler.css +0 -8
- data/test/fixtures/stylesheets/archetype/source/base.scss +0 -3
- data/test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss +0 -5
- data/test/fixtures/stylesheets/archetype/source/locale.scss +0 -43
- data/test/fixtures/stylesheets/archetype/source/styleguide/extend.scss +0 -23
- data/test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss +0 -21
@@ -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,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
|
-
}
|