archetype 0.0.1.pre.3.f9dde24 → 0.0.1.pre.3.90263a7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/archetype +3 -0
- data/lib/archetype/actions/help.rb +16 -0
- data/lib/archetype/actions/theme.rb +73 -0
- data/lib/archetype/executor.rb +27 -0
- data/lib/archetype/functions/helpers.rb +49 -9
- data/lib/archetype/functions/styleguide_memoizer.rb +9 -1
- data/lib/archetype/sass_extensions.rb +1 -0
- data/lib/archetype/sass_extensions/functions/styleguide.rb +104 -27
- data/lib/archetype/sass_extensions/monkey_patches.rb +3 -0
- data/lib/archetype/sass_extensions/monkey_patches/handle_include_loop.rb +41 -0
- data/stylesheets/archetype/_base.scss +3 -0
- data/stylesheets/archetype/_config.scss +5 -1
- data/stylesheets/archetype/_hacks.scss +24 -4
- data/stylesheets/archetype/_ui.scss +23 -2
- data/stylesheets/archetype/base/_h5bp.scss +12 -12
- data/stylesheets/archetype/base/_normalize.scss +178 -139
- data/stylesheets/archetype/styleguide/_helpers.scss +1 -4
- data/stylesheets/archetype/styleguide/components/_alerts.scss +1 -1
- data/stylesheets/archetype/styleguide/components/_buttons.scss +6 -6
- data/stylesheets/archetype/styleguide/components/_closes.scss +2 -2
- data/stylesheets/archetype/util/_styles.scss +18 -3
- data/stylesheets/archetype/util/_targeting.scss +2 -0
- data/templates/_theme/_components.scss +3 -0
- data/templates/_theme/_config.scss +1 -0
- data/templates/_theme/_core.scss +13 -0
- data/templates/_theme/_helpers.scss +1 -0
- data/templates/_theme/_primitives.scss +3 -0
- data/templates/_theme/components/README +1 -0
- data/templates/_theme/primitives/README +1 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/alerts.css +675 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css +18 -18
- data/test/fixtures/stylesheets/archetype/expected/styleguide/drop.css +63 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/invalid_structures.css +21 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/multi_value.css +13 -0
- data/test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css +52 -9
- data/test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css +5 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss +21 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss +1 -1
- data/test/fixtures/stylesheets/archetype/source/styleguide/drop.scss +101 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss +1 -1
- data/test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss +85 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss +18 -0
- 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 +10 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss +8 -1
- metadata +33 -5
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png +0 -0
@@ -708,7 +708,7 @@
|
|
708
708
|
font-size: 16px;
|
709
709
|
color: white;
|
710
710
|
background-color: #0074cc;
|
711
|
-
border-color: #
|
711
|
+
border-color: #434343;
|
712
712
|
*zoom: 1;
|
713
713
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF0088CC', endColorstr='#FF0055CC');
|
714
714
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0088cc), color-stop(100%, #0055cc));
|
@@ -784,7 +784,7 @@
|
|
784
784
|
font-size: 16px;
|
785
785
|
color: #333333;
|
786
786
|
background-color: whitesmoke;
|
787
|
-
border-color: #
|
787
|
+
border-color: #434343;
|
788
788
|
*zoom: 1;
|
789
789
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFFFFFFF', endColorstr='#FFE6E6E6');
|
790
790
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #e6e6e6));
|
@@ -860,7 +860,7 @@
|
|
860
860
|
font-size: 16px;
|
861
861
|
color: white;
|
862
862
|
background-color: #414141;
|
863
|
-
border-color: #
|
863
|
+
border-color: #434343;
|
864
864
|
*zoom: 1;
|
865
865
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF555555', endColorstr='#FF222222');
|
866
866
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #555555), color-stop(100%, #222222));
|
@@ -936,7 +936,7 @@
|
|
936
936
|
font-size: 13px;
|
937
937
|
color: white;
|
938
938
|
background-color: #0074cc;
|
939
|
-
border-color: #
|
939
|
+
border-color: #434343;
|
940
940
|
*zoom: 1;
|
941
941
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF0088CC', endColorstr='#FF0055CC');
|
942
942
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0088cc), color-stop(100%, #0055cc));
|
@@ -1012,7 +1012,7 @@
|
|
1012
1012
|
font-size: 13px;
|
1013
1013
|
color: #333333;
|
1014
1014
|
background-color: whitesmoke;
|
1015
|
-
border-color: #
|
1015
|
+
border-color: #434343;
|
1016
1016
|
*zoom: 1;
|
1017
1017
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFFFFFFF', endColorstr='#FFE6E6E6');
|
1018
1018
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #e6e6e6));
|
@@ -1088,7 +1088,7 @@
|
|
1088
1088
|
font-size: 13px;
|
1089
1089
|
color: white;
|
1090
1090
|
background-color: #414141;
|
1091
|
-
border-color: #
|
1091
|
+
border-color: #434343;
|
1092
1092
|
*zoom: 1;
|
1093
1093
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF555555', endColorstr='#FF222222');
|
1094
1094
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #555555), color-stop(100%, #222222));
|
@@ -1164,7 +1164,7 @@
|
|
1164
1164
|
font-size: 12px;
|
1165
1165
|
color: white;
|
1166
1166
|
background-color: #0074cc;
|
1167
|
-
border-color: #
|
1167
|
+
border-color: #434343;
|
1168
1168
|
*zoom: 1;
|
1169
1169
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF0088CC', endColorstr='#FF0055CC');
|
1170
1170
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0088cc), color-stop(100%, #0055cc));
|
@@ -1240,7 +1240,7 @@
|
|
1240
1240
|
font-size: 12px;
|
1241
1241
|
color: #333333;
|
1242
1242
|
background-color: whitesmoke;
|
1243
|
-
border-color: #
|
1243
|
+
border-color: #434343;
|
1244
1244
|
*zoom: 1;
|
1245
1245
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFFFFFFF', endColorstr='#FFE6E6E6');
|
1246
1246
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #e6e6e6));
|
@@ -1316,7 +1316,7 @@
|
|
1316
1316
|
font-size: 12px;
|
1317
1317
|
color: white;
|
1318
1318
|
background-color: #414141;
|
1319
|
-
border-color: #
|
1319
|
+
border-color: #434343;
|
1320
1320
|
*zoom: 1;
|
1321
1321
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF555555', endColorstr='#FF222222');
|
1322
1322
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #555555), color-stop(100%, #222222));
|
@@ -1393,7 +1393,7 @@
|
|
1393
1393
|
font-size: 16px;
|
1394
1394
|
color: white;
|
1395
1395
|
background-color: #0074cc;
|
1396
|
-
border-color: #
|
1396
|
+
border-color: #434343;
|
1397
1397
|
*zoom: 1;
|
1398
1398
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF0088CC', endColorstr='#FF0055CC');
|
1399
1399
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0088cc), color-stop(100%, #0055cc));
|
@@ -1469,7 +1469,7 @@
|
|
1469
1469
|
font-size: 16px;
|
1470
1470
|
color: #333333;
|
1471
1471
|
background-color: whitesmoke;
|
1472
|
-
border-color: #
|
1472
|
+
border-color: #434343;
|
1473
1473
|
*zoom: 1;
|
1474
1474
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFFFFFFF', endColorstr='#FFE6E6E6');
|
1475
1475
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #e6e6e6));
|
@@ -1545,7 +1545,7 @@
|
|
1545
1545
|
font-size: 16px;
|
1546
1546
|
color: white;
|
1547
1547
|
background-color: #414141;
|
1548
|
-
border-color: #
|
1548
|
+
border-color: #434343;
|
1549
1549
|
*zoom: 1;
|
1550
1550
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF555555', endColorstr='#FF222222');
|
1551
1551
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #555555), color-stop(100%, #222222));
|
@@ -1621,7 +1621,7 @@
|
|
1621
1621
|
font-size: 13px;
|
1622
1622
|
color: white;
|
1623
1623
|
background-color: #0074cc;
|
1624
|
-
border-color: #
|
1624
|
+
border-color: #434343;
|
1625
1625
|
*zoom: 1;
|
1626
1626
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF0088CC', endColorstr='#FF0055CC');
|
1627
1627
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0088cc), color-stop(100%, #0055cc));
|
@@ -1697,7 +1697,7 @@
|
|
1697
1697
|
font-size: 13px;
|
1698
1698
|
color: #333333;
|
1699
1699
|
background-color: whitesmoke;
|
1700
|
-
border-color: #
|
1700
|
+
border-color: #434343;
|
1701
1701
|
*zoom: 1;
|
1702
1702
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFFFFFFF', endColorstr='#FFE6E6E6');
|
1703
1703
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #e6e6e6));
|
@@ -1773,7 +1773,7 @@
|
|
1773
1773
|
font-size: 13px;
|
1774
1774
|
color: white;
|
1775
1775
|
background-color: #414141;
|
1776
|
-
border-color: #
|
1776
|
+
border-color: #434343;
|
1777
1777
|
*zoom: 1;
|
1778
1778
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF555555', endColorstr='#FF222222');
|
1779
1779
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #555555), color-stop(100%, #222222));
|
@@ -1849,7 +1849,7 @@
|
|
1849
1849
|
font-size: 12px;
|
1850
1850
|
color: white;
|
1851
1851
|
background-color: #0074cc;
|
1852
|
-
border-color: #
|
1852
|
+
border-color: #434343;
|
1853
1853
|
*zoom: 1;
|
1854
1854
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF0088CC', endColorstr='#FF0055CC');
|
1855
1855
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0088cc), color-stop(100%, #0055cc));
|
@@ -1925,7 +1925,7 @@
|
|
1925
1925
|
font-size: 12px;
|
1926
1926
|
color: #333333;
|
1927
1927
|
background-color: whitesmoke;
|
1928
|
-
border-color: #
|
1928
|
+
border-color: #434343;
|
1929
1929
|
*zoom: 1;
|
1930
1930
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFFFFFFF', endColorstr='#FFE6E6E6');
|
1931
1931
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #e6e6e6));
|
@@ -2001,7 +2001,7 @@
|
|
2001
2001
|
font-size: 12px;
|
2002
2002
|
color: white;
|
2003
2003
|
background-color: #414141;
|
2004
|
-
border-color: #
|
2004
|
+
border-color: #434343;
|
2005
2005
|
*zoom: 1;
|
2006
2006
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF555555', endColorstr='#FF222222');
|
2007
2007
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #555555), color-stop(100%, #222222));
|
@@ -0,0 +1,63 @@
|
|
1
|
+
.dropping-styles-test {
|
2
|
+
/* should contain hover state and .test selector */
|
3
|
+
display: block;
|
4
|
+
color: red;
|
5
|
+
background: green;
|
6
|
+
}
|
7
|
+
.dropping-styles-test.hover, .dropping-styles-test:hover, .dropping-styles-test.focus, .dropping-styles-test:focus {
|
8
|
+
background: #eeeeee;
|
9
|
+
border: 2px solid red;
|
10
|
+
}
|
11
|
+
.dropping-styles-test.hover .test, .dropping-styles-test:hover .test, .dropping-styles-test.focus .test, .dropping-styles-test:focus .test {
|
12
|
+
padding: 100px;
|
13
|
+
margin: 20px;
|
14
|
+
}
|
15
|
+
.dropping-styles-test.parent {
|
16
|
+
/* should contain hover state and .test selector */
|
17
|
+
display: none;
|
18
|
+
color: black;
|
19
|
+
background: green;
|
20
|
+
}
|
21
|
+
.dropping-styles-test.parent.hover, .dropping-styles-test.parent:hover, .dropping-styles-test.parent.focus, .dropping-styles-test.parent:focus {
|
22
|
+
background: #eeeeee;
|
23
|
+
border: 2px solid red;
|
24
|
+
}
|
25
|
+
.dropping-styles-test.parent.hover .test, .dropping-styles-test.parent:hover .test, .dropping-styles-test.parent.focus .test, .dropping-styles-test.parent:focus .test {
|
26
|
+
padding: 100px;
|
27
|
+
margin: 20px;
|
28
|
+
}
|
29
|
+
.dropping-styles-test.heir {
|
30
|
+
/* should contain hover state and .test selector */
|
31
|
+
display: none;
|
32
|
+
color: black;
|
33
|
+
background: green;
|
34
|
+
}
|
35
|
+
.dropping-styles-test.heir.hover, .dropping-styles-test.heir:hover, .dropping-styles-test.heir.focus, .dropping-styles-test.heir:focus {
|
36
|
+
background: #eeeeee;
|
37
|
+
border: 2px solid red;
|
38
|
+
}
|
39
|
+
.dropping-styles-test.heir.hover .test, .dropping-styles-test.heir:hover .test, .dropping-styles-test.heir.focus .test, .dropping-styles-test.heir:focus .test {
|
40
|
+
padding: 100px;
|
41
|
+
margin: 20px;
|
42
|
+
}
|
43
|
+
.dropping-styles-test.dropped {
|
44
|
+
/* should only contain color:yellow */
|
45
|
+
color: yellow;
|
46
|
+
}
|
47
|
+
.dropping-styles-test.dropped2 {
|
48
|
+
/* should contain color:yellow, custom :hover, :active */
|
49
|
+
color: yellow;
|
50
|
+
}
|
51
|
+
.dropping-styles-test.dropped2.hover, .dropping-styles-test.dropped2:hover, .dropping-styles-test.dropped2.focus, .dropping-styles-test.dropped2:focus {
|
52
|
+
color: blue;
|
53
|
+
}
|
54
|
+
.dropping-styles-test.dropped2.active, .dropping-styles-test.dropped2:active {
|
55
|
+
color: green;
|
56
|
+
width: 100%;
|
57
|
+
}
|
58
|
+
.dropping-styles-test.dropped3 {
|
59
|
+
/* should only contain color:purple */
|
60
|
+
display: block;
|
61
|
+
color: purple;
|
62
|
+
background: green;
|
63
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.test-missing-nil {
|
2
|
+
color: red;
|
3
|
+
}
|
4
|
+
|
5
|
+
.test-missing-nil-2 {
|
6
|
+
color: yellow;
|
7
|
+
}
|
8
|
+
|
9
|
+
.test-missing-nil-3 {
|
10
|
+
color: blue;
|
11
|
+
}
|
12
|
+
.test-missing-nil-3.hover, .test-missing-nil-3:hover, .test-missing-nil-3.focus, .test-missing-nil-3:focus {
|
13
|
+
color: black;
|
14
|
+
background: green;
|
15
|
+
font-weight: bold;
|
16
|
+
}
|
17
|
+
|
18
|
+
.test-missing-comma {
|
19
|
+
color: white;
|
20
|
+
background: green;
|
21
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
.multi-value-styleguide-test {
|
2
|
+
color: gray;
|
3
|
+
color: rgba(0, 0, 0, 0.7);
|
4
|
+
background: white;
|
5
|
+
background: transparent;
|
6
|
+
*color: blue;
|
7
|
+
}
|
8
|
+
.ie.ie8 .multi-value-styleguide-test {
|
9
|
+
color: red;
|
10
|
+
}
|
11
|
+
.multi-value-styleguide-test, .multi-value-styleguide-test x:-moz-any-link {
|
12
|
+
color: pink;
|
13
|
+
}
|
@@ -1,8 +1,24 @@
|
|
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
|
+
|
1
17
|
.simple {
|
2
|
-
*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';font-weight:normal;font-style:normal;text-decoration:inherit;font-size:100%;color:inherit;",this.insertBefore(this.el));
|
18
|
+
*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:100%;color:inherit;",this.insertBefore(this.el));
|
3
19
|
}
|
4
20
|
.simple:before {
|
5
|
-
font-family: "FontAwesome";
|
21
|
+
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
6
22
|
font-weight: normal;
|
7
23
|
font-style: normal;
|
8
24
|
text-decoration: inherit;
|
@@ -13,7 +29,7 @@
|
|
13
29
|
}
|
14
30
|
|
15
31
|
.false {
|
16
|
-
font-family: "FontAwesome";
|
32
|
+
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
17
33
|
font-weight: normal;
|
18
34
|
font-style: normal;
|
19
35
|
text-decoration: inherit;
|
@@ -23,10 +39,10 @@
|
|
23
39
|
}
|
24
40
|
|
25
41
|
.size {
|
26
|
-
*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';font-weight:normal;font-style:normal;text-decoration:inherit;font-size:20px;color:inherit;",this.insertBefore(this.el));
|
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));
|
27
43
|
}
|
28
44
|
.size:before {
|
29
|
-
font-family: "FontAwesome";
|
45
|
+
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
30
46
|
font-weight: normal;
|
31
47
|
font-style: normal;
|
32
48
|
text-decoration: inherit;
|
@@ -40,7 +56,7 @@
|
|
40
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));
|
41
57
|
}
|
42
58
|
.not-inline:before {
|
43
|
-
font-family: "FontAwesome";
|
59
|
+
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
44
60
|
font-weight: normal;
|
45
61
|
font-style: normal;
|
46
62
|
text-decoration: inherit;
|
@@ -50,7 +66,7 @@
|
|
50
66
|
content: "\f0d7";
|
51
67
|
}
|
52
68
|
.not-inline #ie-pseudo-archetype-uid-RANDOM_UID {
|
53
|
-
|
69
|
+
font-family: 'FontAwesome-0.0.1', 'FontAwesome';
|
54
70
|
font-weight: normal;
|
55
71
|
font-style: normal;
|
56
72
|
text-decoration: inherit;
|
@@ -62,7 +78,7 @@
|
|
62
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));
|
63
79
|
}
|
64
80
|
.ie-uid:before {
|
65
|
-
font-family: "FontAwesome";
|
81
|
+
font-family: "FontAwesome-0.0.1", "FontAwesome";
|
66
82
|
font-weight: normal;
|
67
83
|
font-style: normal;
|
68
84
|
text-decoration: inherit;
|
@@ -72,7 +88,7 @@
|
|
72
88
|
content: "\f0d7";
|
73
89
|
}
|
74
90
|
.ie-uid #my-custom-id {
|
75
|
-
|
91
|
+
font-family: 'FontAwesome-0.0.1', 'FontAwesome';
|
76
92
|
font-weight: normal;
|
77
93
|
font-style: normal;
|
78
94
|
text-decoration: inherit;
|
@@ -82,3 +98,30 @@
|
|
82
98
|
.ie-uid:before, .ie-uid #my-custom-id {
|
83
99
|
color: pink;
|
84
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";
|
107
|
+
font-weight: normal;
|
108
|
+
font-style: normal;
|
109
|
+
text-decoration: inherit;
|
110
|
+
speak: none;
|
111
|
+
font-size: 100%;
|
112
|
+
color: inherit;
|
113
|
+
content: "\f0d7";
|
114
|
+
}
|
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
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@import "archetype";
|
2
|
+
|
3
|
+
@each $type in (error success notice yield) {
|
4
|
+
.alert.#{$type} {
|
5
|
+
@include styleguide($type alert);
|
6
|
+
.dismiss {
|
7
|
+
@include styleguide(close in a $type alert);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
$CONFIG_GENERATED_TAG_INLINE: false;
|
13
|
+
|
14
|
+
@each $type in (error success notice yield) {
|
15
|
+
.alert.#{$type} {
|
16
|
+
@include styleguide($type alert);
|
17
|
+
.dismiss {
|
18
|
+
@include styleguide(close in a $type alert);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
@import "archetype";
|
2
|
+
|
3
|
+
@if not styleguide-component-exists(dropping-styles-test, $CONFIG_THEME) {
|
4
|
+
$a-blackhole: styleguide-add-component(dropping-styles-test, (), (
|
5
|
+
(default, (
|
6
|
+
display block,
|
7
|
+
color red,
|
8
|
+
background green,
|
9
|
+
(states, (
|
10
|
+
(hover, (
|
11
|
+
styleguide module,
|
12
|
+
border (2px solid red),
|
13
|
+
(selectors, (
|
14
|
+
('.test', (
|
15
|
+
padding 100px,
|
16
|
+
margin 20px
|
17
|
+
)),
|
18
|
+
nil
|
19
|
+
))
|
20
|
+
)),
|
21
|
+
nil
|
22
|
+
))
|
23
|
+
)),
|
24
|
+
(parent, (
|
25
|
+
display none,
|
26
|
+
color black
|
27
|
+
)),
|
28
|
+
(heir, (
|
29
|
+
inherit (parent),
|
30
|
+
nil
|
31
|
+
)),
|
32
|
+
(dropped, (
|
33
|
+
drop true,
|
34
|
+
color yellow
|
35
|
+
)),
|
36
|
+
(dropped2, (
|
37
|
+
drop true,
|
38
|
+
color yellow,
|
39
|
+
(states, (
|
40
|
+
(hover, (
|
41
|
+
color blue,
|
42
|
+
nil
|
43
|
+
)),
|
44
|
+
(active, (
|
45
|
+
color green,
|
46
|
+
width 100%
|
47
|
+
)),
|
48
|
+
nil
|
49
|
+
))
|
50
|
+
)),
|
51
|
+
(dropped3, (
|
52
|
+
color purple,
|
53
|
+
(states, (
|
54
|
+
drop hover, // TODO: this is currently throwing an ambiguous warning, need to investigate
|
55
|
+
nil
|
56
|
+
)),
|
57
|
+
nil
|
58
|
+
)),
|
59
|
+
(dropped4, (
|
60
|
+
color purple,
|
61
|
+
(states, (
|
62
|
+
(hover, (
|
63
|
+
drop selectors,
|
64
|
+
nil
|
65
|
+
)),
|
66
|
+
nil
|
67
|
+
))
|
68
|
+
)),
|
69
|
+
nil
|
70
|
+
), $CONFIG_THEME);
|
71
|
+
}
|
72
|
+
|
73
|
+
.dropping-styles-test {
|
74
|
+
/* should contain hover state and .test selector */
|
75
|
+
@include styleguide(dropping-styles-test);
|
76
|
+
&.parent {
|
77
|
+
/* should contain hover state and .test selector */
|
78
|
+
@include styleguide(parent dropping-styles-test);
|
79
|
+
}
|
80
|
+
&.heir {
|
81
|
+
/* should contain hover state and .test selector */
|
82
|
+
@include styleguide(heir dropping-styles-test);
|
83
|
+
}
|
84
|
+
&.dropped {
|
85
|
+
/* should only contain color:yellow */
|
86
|
+
@include styleguide(dropped dropping-styles-test);
|
87
|
+
}
|
88
|
+
&.dropped2 {
|
89
|
+
/* should contain color:yellow, custom :hover, :active */
|
90
|
+
@include styleguide(dropped2 dropping-styles-test);
|
91
|
+
}
|
92
|
+
&.dropped3 {
|
93
|
+
/* should only contain color:purple */
|
94
|
+
@include styleguide(dropped3 dropping-styles-test);
|
95
|
+
}
|
96
|
+
// TODO fix this guy: drops nested multiple levels deep don't resolve yet :(
|
97
|
+
//&.dropped4 {
|
98
|
+
// /* should contain color:purple, :hover, but no `.test` selector */
|
99
|
+
// @include styleguide(dropped4 dropping-styles-test);
|
100
|
+
//}
|
101
|
+
}
|