archetype 0.0.1.pre.3.90263a7 → 0.0.1.pre.3.811928f
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +1 -24
- 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 +13 -56
- data/lib/archetype/functions/styleguide_memoizer.rb +1 -9
- data/lib/archetype/sass_extensions.rb +0 -1
- data/lib/archetype/sass_extensions/functions/lists.rb +40 -34
- data/lib/archetype/sass_extensions/functions/locale.rb +16 -32
- data/lib/archetype/sass_extensions/functions/styleguide.rb +37 -115
- data/lib/archetype/sass_extensions/functions/ui.rb +2 -3
- data/lib/archetype/sass_extensions/functions/version.rb +6 -11
- data/lib/archetype/version.rb +12 -19
- data/stylesheets/archetype/_base.scss +0 -3
- data/stylesheets/archetype/_config.scss +5 -22
- data/stylesheets/archetype/_hacks.scss +21 -62
- data/stylesheets/archetype/_ui.scss +11 -56
- data/stylesheets/archetype/base/_h5bp.scss +12 -12
- data/stylesheets/archetype/base/_normalize.scss +139 -178
- data/stylesheets/archetype/styleguide/_helpers.scss +4 -1
- data/stylesheets/archetype/styleguide/components/_alerts.scss +1 -1
- data/stylesheets/archetype/styleguide/components/_buttons.scss +6 -7
- data/stylesheets/archetype/styleguide/components/_closes.scss +2 -2
- data/stylesheets/archetype/util/_styles.scss +7 -45
- data/stylesheets/archetype/util/_targeting.scss +0 -2
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png +0 -0
- 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 +18 -110
- data/test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css +0 -3
- data/test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css +2 -116
- data/test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css +0 -5
- data/test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss +1 -5
- data/test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss +1 -1
- data/test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss +1 -1
- data/test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss +1 -1
- data/test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss +0 -30
- 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 +23 -80
- 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/lib/archetype/sass_extensions/monkey_patches.rb +0 -3
- data/lib/archetype/sass_extensions/monkey_patches/handle_include_loop.rb +0 -41
- 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/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/alerts.css +0 -675
- data/test/fixtures/stylesheets/archetype/expected/styleguide/drop.css +0 -63
- data/test/fixtures/stylesheets/archetype/expected/styleguide/extend.css +0 -7
- data/test/fixtures/stylesheets/archetype/expected/styleguide/invalid_structures.css +0 -21
- data/test/fixtures/stylesheets/archetype/expected/styleguide/multi_value.css +0 -13
- data/test/fixtures/stylesheets/archetype/expected/utilities/associative.css +0 -9
- 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/alerts.scss +0 -21
- data/test/fixtures/stylesheets/archetype/source/styleguide/drop.scss +0 -101
- data/test/fixtures/stylesheets/archetype/source/styleguide/extend.scss +0 -23
- data/test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss +0 -85
- data/test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss +0 -18
- data/test/fixtures/stylesheets/archetype/source/utilities/associative.scss +0 -24
- data/test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss +0 -21
@@ -6,7 +6,6 @@
|
|
6
6
|
margin: 0;
|
7
7
|
overflow: visible;
|
8
8
|
text-decoration: none !important;
|
9
|
-
text-align: center;
|
10
9
|
width: auto;
|
11
10
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
12
11
|
-webkit-border-radius: 3px;
|
@@ -53,7 +52,6 @@
|
|
53
52
|
margin: 0;
|
54
53
|
overflow: visible;
|
55
54
|
text-decoration: none !important;
|
56
|
-
text-align: center;
|
57
55
|
width: auto;
|
58
56
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
59
57
|
-webkit-border-radius: 3px;
|
@@ -98,7 +96,6 @@
|
|
98
96
|
margin: 0;
|
99
97
|
overflow: visible;
|
100
98
|
text-decoration: none !important;
|
101
|
-
text-align: center;
|
102
99
|
width: auto;
|
103
100
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
104
101
|
-webkit-border-radius: 3px;
|
@@ -1,109 +1,8 @@
|
|
1
|
-
@font-face {
|
2
|
-
font-family: "FontAwesome";
|
3
|
-
src: url('/assets/fonts/vendor/archetype/fontawesome-webfont.eot');
|
4
|
-
src: url('/assets/fonts/vendor/archetype/fontawesome-webfont.eot?#iefix') format('eot'), url('/assets/fonts/vendor/archetype/fontawesome-webfont.woff') format('woff'), url('/assets/fonts/vendor/archetype/fontawesome-webfont.ttf') format('truetype'), url('/assets/fonts/vendor/archetype/fontawesome-webfont.svg#FontAwesome') format('svg');
|
5
|
-
font-weight: normal;
|
6
|
-
font-style: normal;
|
7
|
-
}
|
8
|
-
|
9
|
-
@font-face {
|
10
|
-
font-family: "FontAwesome-0.0.1";
|
11
|
-
src: url('/assets/fonts/vendor/archetype/fontawesome-webfont.eot');
|
12
|
-
src: url('/assets/fonts/vendor/archetype/fontawesome-webfont.eot?#iefix') format('eot'), url('/assets/fonts/vendor/archetype/fontawesome-webfont.woff') format('woff'), url('/assets/fonts/vendor/archetype/fontawesome-webfont.ttf') format('truetype'), url('/assets/fonts/vendor/archetype/fontawesome-webfont.svg#FontAwesome') format('svg');
|
13
|
-
font-weight: normal;
|
14
|
-
font-style: normal;
|
15
|
-
}
|
16
|
-
|
17
1
|
.simple {
|
18
|
-
*zoom: expression(this.runtimeStyle.zoom="1", this.el=document.createElement("x-archetype-glyph"),this.el.
|
2
|
+
*zoom: expression(this.runtimeStyle.zoom="1", this.el=document.createElement("x-archetype-glyph"),this.el.innerHTML="",this.el.style.cssText="font-family:'FontAwesome';font-weight:normal;font-style:normal;text-decoration:inherit;font-size:100%;color:inherit;",this.insertBefore(this.el));
|
19
3
|
}
|
20
4
|
.simple:before {
|
21
|
-
font-family:
|
22
|
-
font-weight: normal;
|
23
|
-
font-style: normal;
|
24
|
-
text-decoration: inherit;
|
25
|
-
speak: none;
|
26
|
-
font-size: 100%;
|
27
|
-
color: inherit;
|
28
|
-
content: "\f0d7";
|
29
|
-
}
|
30
|
-
|
31
|
-
.false {
|
32
|
-
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
33
|
-
font-weight: normal;
|
34
|
-
font-style: normal;
|
35
|
-
text-decoration: inherit;
|
36
|
-
speak: none;
|
37
|
-
font-size: 100%;
|
38
|
-
color: inherit;
|
39
|
-
}
|
40
|
-
|
41
|
-
.size {
|
42
|
-
*zoom: expression(this.runtimeStyle.zoom="1", this.el=document.createElement("x-archetype-glyph"),this.el.id="ie-pseudo-archetype-uid-RANDOM_UID",this.el.innerHTML="",this.el.style.cssText="font-family:'FontAwesome-0.0.1', 'FontAwesome';font-weight:normal;font-style:normal;text-decoration:inherit;font-size:20px;color:inherit;",this.insertBefore(this.el));
|
43
|
-
}
|
44
|
-
.size:before {
|
45
|
-
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
46
|
-
font-weight: normal;
|
47
|
-
font-style: normal;
|
48
|
-
text-decoration: inherit;
|
49
|
-
speak: none;
|
50
|
-
font-size: 20px;
|
51
|
-
color: inherit;
|
52
|
-
content: "\f0d7";
|
53
|
-
}
|
54
|
-
|
55
|
-
.not-inline {
|
56
|
-
*zoom: expression(this.runtimeStyle.zoom="1", this.el=document.createElement("x-archetype-glyph"),this.el.id="ie-pseudo-archetype-uid-RANDOM_UID",this.el.innerHTML="",this.insertBefore(this.el));
|
57
|
-
}
|
58
|
-
.not-inline:before {
|
59
|
-
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
60
|
-
font-weight: normal;
|
61
|
-
font-style: normal;
|
62
|
-
text-decoration: inherit;
|
63
|
-
speak: none;
|
64
|
-
font-size: 100%;
|
65
|
-
color: inherit;
|
66
|
-
content: "\f0d7";
|
67
|
-
}
|
68
|
-
.not-inline #ie-pseudo-archetype-uid-RANDOM_UID {
|
69
|
-
font-family: 'FontAwesome-0.0.1', 'FontAwesome';
|
70
|
-
font-weight: normal;
|
71
|
-
font-style: normal;
|
72
|
-
text-decoration: inherit;
|
73
|
-
font-size: 100%;
|
74
|
-
color: inherit;
|
75
|
-
}
|
76
|
-
|
77
|
-
.ie-uid {
|
78
|
-
*zoom: expression(this.runtimeStyle.zoom="1", this.el=document.createElement("x-archetype-glyph"),this.el.id="my-custom-id",this.el.innerHTML="",this.insertBefore(this.el));
|
79
|
-
}
|
80
|
-
.ie-uid:before {
|
81
|
-
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
82
|
-
font-weight: normal;
|
83
|
-
font-style: normal;
|
84
|
-
text-decoration: inherit;
|
85
|
-
speak: none;
|
86
|
-
font-size: 100%;
|
87
|
-
color: inherit;
|
88
|
-
content: "\f0d7";
|
89
|
-
}
|
90
|
-
.ie-uid #my-custom-id {
|
91
|
-
font-family: 'FontAwesome-0.0.1', 'FontAwesome';
|
92
|
-
font-weight: normal;
|
93
|
-
font-style: normal;
|
94
|
-
text-decoration: inherit;
|
95
|
-
font-size: 100%;
|
96
|
-
color: inherit;
|
97
|
-
}
|
98
|
-
.ie-uid:before, .ie-uid #my-custom-id {
|
99
|
-
color: pink;
|
100
|
-
}
|
101
|
-
|
102
|
-
.content-block {
|
103
|
-
*zoom: expression(this.runtimeStyle.zoom="1", this.el=document.createElement("x-archetype-glyph"),this.el.id="ie-pseudo-archetype-uid-RANDOM_UID",this.el.innerHTML="",this.insertBefore(this.el));
|
104
|
-
}
|
105
|
-
.content-block:before {
|
106
|
-
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
5
|
+
font-family: FontAwesome;
|
107
6
|
font-weight: normal;
|
108
7
|
font-style: normal;
|
109
8
|
text-decoration: inherit;
|
@@ -112,16 +11,3 @@
|
|
112
11
|
color: inherit;
|
113
12
|
content: "\f0d7";
|
114
13
|
}
|
115
|
-
.content-block #ie-pseudo-archetype-uid-RANDOM_UID {
|
116
|
-
font-family: 'FontAwesome-0.0.1', 'FontAwesome';
|
117
|
-
font-weight: normal;
|
118
|
-
font-style: normal;
|
119
|
-
text-decoration: inherit;
|
120
|
-
font-size: 100%;
|
121
|
-
color: inherit;
|
122
|
-
}
|
123
|
-
.content-block:before, .content-block #ie-pseudo-archetype-uid-RANDOM_UID {
|
124
|
-
position: absolute;
|
125
|
-
top: 10px;
|
126
|
-
left: 10px;
|
127
|
-
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
@import "archetype";
|
1
|
+
@import "archetype";
|
2
2
|
|
3
3
|
@each $context in container, bristol, punchcut {
|
4
4
|
.#{$context} {
|
@@ -12,7 +12,3 @@
|
|
12
12
|
}
|
13
13
|
}
|
14
14
|
}
|
15
|
-
|
16
|
-
.test-exclude {
|
17
|
-
@include styleguide(small secondary button in a container, $exclude: width height border-radius padding font-size line-height cursor);
|
18
|
-
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// this case verifies that you can define `fallback` css properties
|
2
2
|
|
3
|
-
@import "archetype";
|
3
|
+
@import "archetype";
|
4
4
|
|
5
5
|
@if not styleguide-component-exists(fallback-styleguide-test, $CONFIG_THEME) {
|
6
6
|
$a-blackhole: styleguide-add-component(fallback-styleguide-test, (), (
|
@@ -3,7 +3,7 @@
|
|
3
3
|
// - nested selectors
|
4
4
|
// - nested `styleguide` calls in nested selectors
|
5
5
|
|
6
|
-
@import "archetype";
|
6
|
+
@import "archetype";
|
7
7
|
|
8
8
|
@if not styleguide-component-exists(nested-styleguide-test, $CONFIG_THEME) {
|
9
9
|
$a-blackhole: styleguide-add-component(nested-styleguide-test, (), (
|
@@ -1,35 +1,5 @@
|
|
1
1
|
@import "archetype";
|
2
2
|
|
3
|
-
@include base-glyph();
|
4
|
-
|
5
3
|
.simple {
|
6
4
|
@include glyph-icon(caret-down);
|
7
5
|
}
|
8
|
-
|
9
|
-
.false {
|
10
|
-
@include glyph-icon(false, $placement: inline);
|
11
|
-
}
|
12
|
-
|
13
|
-
.size {
|
14
|
-
@include glyph-icon(caret-down, $size: 20px);
|
15
|
-
}
|
16
|
-
|
17
|
-
$CONFIG_GENERATED_TAG_INLINE: false;
|
18
|
-
.not-inline {
|
19
|
-
@include glyph-icon(caret-down);
|
20
|
-
}
|
21
|
-
|
22
|
-
.ie-uid {
|
23
|
-
@include glyph-icon(caret-down, $ie-uid: my-custom-id);
|
24
|
-
#{$archetype-glyph-selector} {
|
25
|
-
color: pink;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
.content-block {
|
30
|
-
@include glyph-icon(caret-down) {
|
31
|
-
position: absolute;
|
32
|
-
top: 10px;
|
33
|
-
left: 10px;
|
34
|
-
}
|
35
|
-
}
|
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
.target-ie-lte-9 {
|
45
45
|
@include target-browser(ie lte 9, border-color, #111);
|
46
|
-
@include target-browser(ie lte 9, background, #2c2c2b);
|
46
|
+
@include target-browser(ie lte 9, background, #2c2c2b);
|
47
47
|
}
|
48
48
|
|
49
49
|
.target-ie-7-8-9 {
|
@@ -68,10 +68,3 @@
|
|
68
68
|
.target-opera {
|
69
69
|
@include target-browser(opera, width, 82%);
|
70
70
|
}
|
71
|
-
|
72
|
-
.target-with-content-block {
|
73
|
-
@include target-browser(ie lte 8) {
|
74
|
-
/* testing content block */
|
75
|
-
color: red;
|
76
|
-
};
|
77
|
-
}
|
data/test/helpers/test_case.rb
CHANGED
@@ -24,7 +24,7 @@ module Compass
|
|
24
24
|
assert false, diff_as_string(before.inspect, after.inspect)
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
module ClassMethods
|
29
29
|
|
30
30
|
def let(method, &block)
|
@@ -51,7 +51,7 @@ module Compass
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
private
|
54
|
+
private
|
55
55
|
|
56
56
|
def underscore(string)
|
57
57
|
string.gsub(' ', '_')
|
@@ -1,11 +1,9 @@
|
|
1
1
|
# this is all take from Compass because they already did the awesome testing framework
|
2
2
|
require 'test_helper'
|
3
|
+
require 'fileutils'
|
3
4
|
require 'compass'
|
4
5
|
require 'compass/logger'
|
5
6
|
require 'sass/plugin'
|
6
|
-
unless ENV['CI']
|
7
|
-
require 'fileutils'
|
8
|
-
end
|
9
7
|
|
10
8
|
class ArchetypeTest < Test::Unit::TestCase
|
11
9
|
|
@@ -4,7 +4,6 @@ require 'archetype'
|
|
4
4
|
class SassExtensionsTest < Test::Unit::TestCase
|
5
5
|
setup do
|
6
6
|
Compass.reset_configuration!
|
7
|
-
Compass.configuration.testing = true
|
8
7
|
end
|
9
8
|
|
10
9
|
## VERSION
|
@@ -17,20 +16,20 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
17
16
|
assert_equal "true", evaluate("archetype-version('Compass >= 0.12')")
|
18
17
|
assert_equal "false", evaluate("archetype-version('Sass >= 99.0.0')")
|
19
18
|
assert_equal "true", evaluate("archetype-version('Sass gt 3.0')")
|
20
|
-
assert_equal "
|
19
|
+
assert_equal "false", evaluate("archetype-version(Archetype ne 99)")
|
21
20
|
end
|
22
21
|
|
23
22
|
|
24
23
|
## ENVIRONMENT
|
25
24
|
# test that archetype-env() is working correctly
|
26
25
|
def test_env
|
27
|
-
|
26
|
+
Compass.reset_configuration!
|
28
27
|
assert_equal "development", evaluate("archetype-env()")
|
29
28
|
Compass.configuration.environment = :production
|
30
29
|
assert_equal "production", evaluate("archetype-env()")
|
31
30
|
Compass.configuration.environment = :staging
|
32
31
|
assert_equal "staging", evaluate("archetype-env()")
|
33
|
-
|
32
|
+
Compass.reset_configuration!
|
34
33
|
end
|
35
34
|
|
36
35
|
|
@@ -50,6 +49,19 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
50
49
|
# TODO
|
51
50
|
end
|
52
51
|
|
52
|
+
# list-sort
|
53
|
+
#def test_list_sort
|
54
|
+
# assert_equal "1 2 3 4", evaluate("list-sort(2 4 3 1)")
|
55
|
+
# assert_equal "4 3 2 1", evaluate("list-sort(2 4 3 1, true)")
|
56
|
+
# assert_equal "a b c d", evaluate("list-sort(d a b c)")
|
57
|
+
#end
|
58
|
+
|
59
|
+
# list-reverse
|
60
|
+
#def test_list_reverse
|
61
|
+
# assert_equal "4 3 2 1", evaluate("list-reverse(1 2 3 4)")
|
62
|
+
# assert_equal "d c b a", evaluate("list-reverse(a b c d)")
|
63
|
+
#end
|
64
|
+
|
53
65
|
# list-add
|
54
66
|
def test_list_add
|
55
67
|
assert_equal "2 3 4", evaluate("list-add(1 2 3, 1)")
|
@@ -115,16 +127,16 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
115
127
|
## LOCALE
|
116
128
|
# locale
|
117
129
|
def test_locale
|
118
|
-
|
130
|
+
Compass.reset_configuration!
|
119
131
|
assert_equal "en_US", evaluate("locale()")
|
120
132
|
Compass.configuration.locale = "ja_JP"
|
121
133
|
assert_equal "ja_JP", evaluate("locale()")
|
122
|
-
|
134
|
+
Compass.reset_configuration!
|
123
135
|
end
|
124
136
|
|
125
137
|
# lang
|
126
138
|
def test_lang
|
127
|
-
|
139
|
+
Compass.reset_configuration!
|
128
140
|
assert_equal "true", evaluate("lang(en_US)")
|
129
141
|
assert_equal "true", evaluate("lang(fr_FR en_US)")
|
130
142
|
assert_equal "false", evaluate("lang(fr_FR)")
|
@@ -133,7 +145,7 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
133
145
|
assert_equal "true", evaluate("lang(ja_JP)")
|
134
146
|
assert_equal "true", evaluate("lang(CJK)")
|
135
147
|
assert_equal "true", evaluate("lang(CJK en_US)")
|
136
|
-
|
148
|
+
Compass.reset_configuration!
|
137
149
|
end
|
138
150
|
|
139
151
|
|
@@ -171,11 +183,11 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
171
183
|
## UI
|
172
184
|
# test generating unique tokens
|
173
185
|
def test_unique
|
174
|
-
assert_equal ".archetype-uid-
|
175
|
-
assert_equal ".archetype-uid-
|
176
|
-
assert_equal "\#archetype-uid-
|
177
|
-
assert_equal "my-prefix-archetype-uid-
|
178
|
-
assert_equal ".testing-archetype-uid-
|
186
|
+
assert_equal ".archetype-uid-1", evaluate("unique(class)")
|
187
|
+
assert_equal ".archetype-uid-2", evaluate("unique(class)")
|
188
|
+
assert_equal "\#archetype-uid-3", evaluate("unique(id)")
|
189
|
+
assert_equal "my-prefix-archetype-uid-4", evaluate("unique(my-prefix-)")
|
190
|
+
assert_equal ".testing-archetype-uid-5", evaluate("unique('.testing-')")
|
179
191
|
end
|
180
192
|
|
181
193
|
# test pseudo content escaping and formatting for innerHTML
|
@@ -192,9 +204,4 @@ protected
|
|
192
204
|
def evaluate(value)
|
193
205
|
Sass::Script::Parser.parse(value, 0, 0).perform(Sass::Environment.new).to_s
|
194
206
|
end
|
195
|
-
|
196
|
-
def reset
|
197
|
-
Compass.reset_configuration!
|
198
|
-
Compass.configuration.testing = true
|
199
|
-
end
|
200
207
|
end
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: archetype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.pre.3.
|
4
|
+
version: 0.0.1.pre.3.811928f
|
5
|
+
prerelease: 6
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Eugene ONeill
|
@@ -9,55 +10,44 @@ authors:
|
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2013-
|
13
|
+
date: 2013-02-03 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: compass
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
|
-
- - '>='
|
20
|
+
- - ! '>='
|
19
21
|
- !ruby/object:Gem::Version
|
20
22
|
version: '0'
|
21
23
|
type: :runtime
|
22
24
|
prerelease: false
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
24
27
|
requirements:
|
25
|
-
- - '>='
|
28
|
+
- - ! '>='
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '0'
|
28
31
|
- !ruby/object:Gem::Dependency
|
29
32
|
name: sass
|
30
33
|
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
31
35
|
requirements:
|
32
|
-
- - '>='
|
36
|
+
- - ! '>='
|
33
37
|
- !ruby/object:Gem::Version
|
34
38
|
version: '0'
|
35
39
|
type: :runtime
|
36
40
|
prerelease: false
|
37
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
38
43
|
requirements:
|
39
|
-
- - '>='
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: hashery
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - '>='
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
49
|
-
type: :runtime
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - '>='
|
44
|
+
- - ! '>='
|
54
45
|
- !ruby/object:Gem::Version
|
55
46
|
version: '0'
|
56
47
|
description: UI Pattern and component library for quickly iterating on and maintaining
|
57
48
|
scalable web interfaces
|
58
49
|
email: oneill.eugene@gmail.com
|
59
|
-
executables:
|
60
|
-
- archetype
|
50
|
+
executables: []
|
61
51
|
extensions: []
|
62
52
|
extra_rdoc_files: []
|
63
53
|
files:
|
@@ -65,10 +55,6 @@ files:
|
|
65
55
|
- README.md
|
66
56
|
- CHANGELOG.md
|
67
57
|
- VERSION.yml
|
68
|
-
- bin/archetype
|
69
|
-
- lib/archetype/actions/help.rb
|
70
|
-
- lib/archetype/actions/theme.rb
|
71
|
-
- lib/archetype/executor.rb
|
72
58
|
- lib/archetype/functions/hash.rb
|
73
59
|
- lib/archetype/functions/helpers.rb
|
74
60
|
- lib/archetype/functions/styleguide_memoizer.rb
|
@@ -81,8 +67,6 @@ files:
|
|
81
67
|
- lib/archetype/sass_extensions/functions/ui.rb
|
82
68
|
- lib/archetype/sass_extensions/functions/version.rb
|
83
69
|
- lib/archetype/sass_extensions/functions.rb
|
84
|
-
- lib/archetype/sass_extensions/monkey_patches/handle_include_loop.rb
|
85
|
-
- lib/archetype/sass_extensions/monkey_patches.rb
|
86
70
|
- lib/archetype/sass_extensions.rb
|
87
71
|
- lib/archetype/version.rb
|
88
72
|
- lib/archetype.rb
|
@@ -147,13 +131,6 @@ files:
|
|
147
131
|
- stylesheets/archetype/util/_styles.scss
|
148
132
|
- stylesheets/archetype/util/_targeting.scss
|
149
133
|
- stylesheets/archetype/util/_units.scss
|
150
|
-
- templates/_theme/_components.scss
|
151
|
-
- templates/_theme/_config.scss
|
152
|
-
- templates/_theme/_core.scss
|
153
|
-
- templates/_theme/_helpers.scss
|
154
|
-
- templates/_theme/_primitives.scss
|
155
|
-
- templates/_theme/components/README
|
156
|
-
- templates/_theme/primitives/README
|
157
134
|
- templates/example/index.html
|
158
135
|
- templates/example/manifest.rb
|
159
136
|
- templates/example/screen.scss
|
@@ -207,28 +184,19 @@ files:
|
|
207
184
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark.png
|
208
185
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark_static.png
|
209
186
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_static.png
|
187
|
+
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png
|
210
188
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png
|
211
189
|
- test/fixtures/stylesheets/archetype/config.rb
|
212
190
|
- test/fixtures/stylesheets/archetype/expected/b.css
|
213
|
-
- test/fixtures/stylesheets/archetype/expected/base.css
|
214
191
|
- test/fixtures/stylesheets/archetype/expected/hacks/ie_pseudo.css
|
215
|
-
- test/fixtures/stylesheets/archetype/expected/hacks/transparent_focusable.css
|
216
|
-
- test/fixtures/stylesheets/archetype/expected/locale.css
|
217
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/alerts.css
|
218
192
|
- test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css
|
219
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/drop.css
|
220
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/extend.css
|
221
193
|
- test/fixtures/stylesheets/archetype/expected/styleguide/fallback_styles.css
|
222
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/invalid_structures.css
|
223
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/multi_value.css
|
224
194
|
- test/fixtures/stylesheets/archetype/expected/styleguide/nested_styleguides.css
|
225
195
|
- test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css
|
226
196
|
- test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css
|
227
197
|
- test/fixtures/stylesheets/archetype/expected/ui/hide_element.css
|
228
198
|
- test/fixtures/stylesheets/archetype/expected/ui/stroke.css
|
229
199
|
- test/fixtures/stylesheets/archetype/expected/ui/triangle.css
|
230
|
-
- test/fixtures/stylesheets/archetype/expected/utilities/associative.css
|
231
|
-
- test/fixtures/stylesheets/archetype/expected/utilities/custom_output_styler.css
|
232
200
|
- test/fixtures/stylesheets/archetype/expected/utilities/if-set.css
|
233
201
|
- test/fixtures/stylesheets/archetype/expected/utilities/spacing/horizontal-spacing.css
|
234
202
|
- test/fixtures/stylesheets/archetype/expected/utilities/spacing/vertical-spacing.css
|
@@ -238,25 +206,15 @@ files:
|
|
238
206
|
- test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css
|
239
207
|
- test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-os.css
|
240
208
|
- test/fixtures/stylesheets/archetype/source/b.scss
|
241
|
-
- test/fixtures/stylesheets/archetype/source/base.scss
|
242
209
|
- test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss
|
243
|
-
- test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss
|
244
|
-
- test/fixtures/stylesheets/archetype/source/locale.scss
|
245
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss
|
246
210
|
- test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss
|
247
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/drop.scss
|
248
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/extend.scss
|
249
211
|
- test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss
|
250
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss
|
251
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss
|
252
212
|
- test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss
|
253
213
|
- test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss
|
254
214
|
- test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss
|
255
215
|
- test/fixtures/stylesheets/archetype/source/ui/hide_element.scss
|
256
216
|
- test/fixtures/stylesheets/archetype/source/ui/stroke.scss
|
257
217
|
- test/fixtures/stylesheets/archetype/source/ui/triangle.scss
|
258
|
-
- test/fixtures/stylesheets/archetype/source/utilities/associative.scss
|
259
|
-
- test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss
|
260
218
|
- test/fixtures/stylesheets/archetype/source/utilities/if-set.scss
|
261
219
|
- test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss
|
262
220
|
- test/fixtures/stylesheets/archetype/source/utilities/spacing/vertical-spacing.scss
|
@@ -274,26 +232,30 @@ files:
|
|
274
232
|
homepage: http://www.archetypecss.com/
|
275
233
|
licenses:
|
276
234
|
- Apache License (2.0)
|
277
|
-
metadata: {}
|
278
235
|
post_install_message:
|
279
236
|
rdoc_options: []
|
280
237
|
require_paths:
|
281
238
|
- lib
|
282
239
|
required_ruby_version: !ruby/object:Gem::Requirement
|
240
|
+
none: false
|
283
241
|
requirements:
|
284
|
-
- - '>='
|
242
|
+
- - ! '>='
|
285
243
|
- !ruby/object:Gem::Version
|
286
244
|
version: '0'
|
245
|
+
segments:
|
246
|
+
- 0
|
247
|
+
hash: -3789854701990109920
|
287
248
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
288
250
|
requirements:
|
289
|
-
- - '>'
|
251
|
+
- - ! '>'
|
290
252
|
- !ruby/object:Gem::Version
|
291
253
|
version: 1.3.1
|
292
254
|
requirements: []
|
293
255
|
rubyforge_project:
|
294
|
-
rubygems_version:
|
256
|
+
rubygems_version: 1.8.24
|
295
257
|
signing_key:
|
296
|
-
specification_version:
|
258
|
+
specification_version: 3
|
297
259
|
summary: a UI pattern and component library for Compass
|
298
260
|
test_files:
|
299
261
|
- test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.eot
|
@@ -312,28 +274,19 @@ test_files:
|
|
312
274
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark.png
|
313
275
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark_static.png
|
314
276
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_static.png
|
277
|
+
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png
|
315
278
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png
|
316
279
|
- test/fixtures/stylesheets/archetype/config.rb
|
317
280
|
- test/fixtures/stylesheets/archetype/expected/b.css
|
318
|
-
- test/fixtures/stylesheets/archetype/expected/base.css
|
319
281
|
- test/fixtures/stylesheets/archetype/expected/hacks/ie_pseudo.css
|
320
|
-
- test/fixtures/stylesheets/archetype/expected/hacks/transparent_focusable.css
|
321
|
-
- test/fixtures/stylesheets/archetype/expected/locale.css
|
322
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/alerts.css
|
323
282
|
- test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css
|
324
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/drop.css
|
325
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/extend.css
|
326
283
|
- test/fixtures/stylesheets/archetype/expected/styleguide/fallback_styles.css
|
327
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/invalid_structures.css
|
328
|
-
- test/fixtures/stylesheets/archetype/expected/styleguide/multi_value.css
|
329
284
|
- test/fixtures/stylesheets/archetype/expected/styleguide/nested_styleguides.css
|
330
285
|
- test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css
|
331
286
|
- test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css
|
332
287
|
- test/fixtures/stylesheets/archetype/expected/ui/hide_element.css
|
333
288
|
- test/fixtures/stylesheets/archetype/expected/ui/stroke.css
|
334
289
|
- test/fixtures/stylesheets/archetype/expected/ui/triangle.css
|
335
|
-
- test/fixtures/stylesheets/archetype/expected/utilities/associative.css
|
336
|
-
- test/fixtures/stylesheets/archetype/expected/utilities/custom_output_styler.css
|
337
290
|
- test/fixtures/stylesheets/archetype/expected/utilities/if-set.css
|
338
291
|
- test/fixtures/stylesheets/archetype/expected/utilities/spacing/horizontal-spacing.css
|
339
292
|
- test/fixtures/stylesheets/archetype/expected/utilities/spacing/vertical-spacing.css
|
@@ -343,25 +296,15 @@ test_files:
|
|
343
296
|
- test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css
|
344
297
|
- test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-os.css
|
345
298
|
- test/fixtures/stylesheets/archetype/source/b.scss
|
346
|
-
- test/fixtures/stylesheets/archetype/source/base.scss
|
347
299
|
- test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss
|
348
|
-
- test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss
|
349
|
-
- test/fixtures/stylesheets/archetype/source/locale.scss
|
350
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss
|
351
300
|
- test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss
|
352
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/drop.scss
|
353
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/extend.scss
|
354
301
|
- test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss
|
355
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss
|
356
|
-
- test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss
|
357
302
|
- test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss
|
358
303
|
- test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss
|
359
304
|
- test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss
|
360
305
|
- test/fixtures/stylesheets/archetype/source/ui/hide_element.scss
|
361
306
|
- test/fixtures/stylesheets/archetype/source/ui/stroke.scss
|
362
307
|
- test/fixtures/stylesheets/archetype/source/ui/triangle.scss
|
363
|
-
- test/fixtures/stylesheets/archetype/source/utilities/associative.scss
|
364
|
-
- test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss
|
365
308
|
- test/fixtures/stylesheets/archetype/source/utilities/if-set.scss
|
366
309
|
- test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss
|
367
310
|
- test/fixtures/stylesheets/archetype/source/utilities/spacing/vertical-spacing.scss
|