archetype 0.0.1.pre.1 → 0.0.1.pre.3.00dfd9a
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +88 -0
- data/LICENSE +16 -0
- data/README.md +87 -1
- data/VERSION.yml +6 -0
- data/lib/README.rdoc +4 -0
- data/lib/archetype.rb +45 -0
- data/lib/archetype/functions.rb +9 -0
- data/lib/archetype/functions/hash.rb +149 -0
- data/lib/archetype/functions/helpers.rb +125 -0
- data/lib/archetype/functions/styleguide_memoizer.rb +61 -0
- data/lib/archetype/sass_extensions.rb +6 -0
- data/lib/archetype/sass_extensions/functions.rb +14 -0
- data/lib/archetype/sass_extensions/functions/environment.rb +14 -0
- data/lib/archetype/sass_extensions/functions/lists.rb +284 -0
- data/lib/archetype/sass_extensions/functions/locale.rb +77 -0
- data/lib/archetype/sass_extensions/functions/numbers.rb +19 -0
- data/lib/archetype/sass_extensions/functions/styleguide.rb +406 -0
- data/lib/archetype/sass_extensions/functions/ui.rb +59 -0
- data/lib/archetype/sass_extensions/functions/version.rb +95 -0
- data/lib/archetype/version.rb +75 -0
- data/stylesheets/_archetype.scss +2 -0
- data/stylesheets/archetype/_base.scss +46 -0
- data/stylesheets/archetype/_config.scss +366 -0
- data/stylesheets/archetype/_grid.scss +3 -0
- data/stylesheets/archetype/_hacks.scss +72 -0
- data/stylesheets/archetype/_init.scss +23 -0
- data/stylesheets/archetype/_styleguide.scss +6 -0
- data/stylesheets/archetype/_ui.scss +326 -0
- data/stylesheets/archetype/_util.scss +12 -0
- data/stylesheets/archetype/base/_h5bp.scss +307 -0
- data/stylesheets/archetype/base/_hybrid.scss +25 -0
- data/stylesheets/archetype/base/_normalize.scss +595 -0
- data/stylesheets/archetype/base/_reset.scss +72 -0
- data/stylesheets/archetype/grid/_config.scss +14 -0
- data/stylesheets/archetype/grid/_grid.scss +391 -0
- data/stylesheets/archetype/styleguide/_components.scss +25 -0
- data/stylesheets/archetype/styleguide/_helpers.scss +215 -0
- data/stylesheets/archetype/styleguide/_primitives.scss +10 -0
- data/stylesheets/archetype/styleguide/_styleguide.scss +41 -0
- data/stylesheets/archetype/styleguide/components/_alerts.scss +59 -0
- data/stylesheets/archetype/styleguide/components/_annotations.scss +27 -0
- data/stylesheets/archetype/styleguide/components/_bristol.scss +15 -0
- data/stylesheets/archetype/styleguide/components/_button_groups.scss +47 -0
- data/stylesheets/archetype/styleguide/components/_button_toolbars.scss +17 -0
- data/stylesheets/archetype/styleguide/components/_buttons.scss +338 -0
- data/stylesheets/archetype/styleguide/components/_canvas.scss +15 -0
- data/stylesheets/archetype/styleguide/components/_carets.scss +336 -0
- data/stylesheets/archetype/styleguide/components/_closes.scss +63 -0
- data/stylesheets/archetype/styleguide/components/_container.scss +27 -0
- data/stylesheets/archetype/styleguide/components/_copy.scss +85 -0
- data/stylesheets/archetype/styleguide/components/_flyouts.scss +52 -0
- data/stylesheets/archetype/styleguide/components/_headings.scss +33 -0
- data/stylesheets/archetype/styleguide/components/_headlines.scss +63 -0
- data/stylesheets/archetype/styleguide/components/_hovercards.scss +27 -0
- data/stylesheets/archetype/styleguide/components/_icons.scss +17 -0
- data/stylesheets/archetype/styleguide/components/_identities.scss +34 -0
- data/stylesheets/archetype/styleguide/components/_links.scss +66 -0
- data/stylesheets/archetype/styleguide/components/_loaders.scss +154 -0
- data/stylesheets/archetype/styleguide/components/_menu_items.scss +31 -0
- data/stylesheets/archetype/styleguide/components/_module.scss +15 -0
- data/stylesheets/archetype/styleguide/components/_pullquotes.scss +29 -0
- data/stylesheets/archetype/styleguide/components/_punchcut.scss +18 -0
- data/stylesheets/archetype/styleguide/components/_tooltips.scss +28 -0
- data/stylesheets/archetype/styleguide/primitives/_animations.scss +17 -0
- data/stylesheets/archetype/styleguide/primitives/_dimensions.scss +50 -0
- data/stylesheets/archetype/styleguide/primitives/_glyphs.scss +11 -0
- data/stylesheets/archetype/styleguide/primitives/_misc.scss +8 -0
- data/stylesheets/archetype/styleguide/primitives/_palettes.scss +94 -0
- data/stylesheets/archetype/styleguide/primitives/_shadows.scss +23 -0
- data/stylesheets/archetype/styleguide/primitives/_sprites.scss +46 -0
- data/stylesheets/archetype/styleguide/primitives/_textures.scss +10 -0
- data/stylesheets/archetype/styleguide/primitives/_typography.scss +56 -0
- data/stylesheets/archetype/util/_debug.scss +40 -0
- data/stylesheets/archetype/util/_lists.scss +57 -0
- data/stylesheets/archetype/util/_misc.scss +108 -0
- data/stylesheets/archetype/util/_rtl.scss +279 -0
- data/stylesheets/archetype/util/_spacing.scss +78 -0
- data/stylesheets/archetype/util/_styles.scss +466 -0
- data/stylesheets/archetype/util/_targeting.scss +210 -0
- data/stylesheets/archetype/util/_units.scss +18 -0
- data/templates/example/index.html +40 -0
- data/templates/example/manifest.rb +13 -0
- data/templates/example/screen.scss +99 -0
- data/templates/example/vendor/archetype/animations/loaders/large/large.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/large/large_static.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/medium/medium.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/small/small.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
- data/templates/example/vendor/archetype/animations/loaders/small/small_static.png +0 -0
- data/templates/example/vendor/archetype/fontawesome-webfont.eot +0 -0
- data/templates/example/vendor/archetype/fontawesome-webfont.svg +255 -0
- data/templates/example/vendor/archetype/fontawesome-webfont.ttf +0 -0
- data/templates/example/vendor/archetype/fontawesome-webfont.woff +0 -0
- data/templates/project/manifest.rb +9 -0
- data/templates/project/screen.scss +1 -0
- data/templates/project/vendor/archetype/animations/loaders/large/large.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/large/large_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/medium/medium.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/small/small.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/small/small_static.png +0 -0
- data/templates/project/vendor/archetype/fontawesome-webfont.eot +0 -0
- data/templates/project/vendor/archetype/fontawesome-webfont.svg +255 -0
- data/templates/project/vendor/archetype/fontawesome-webfont.ttf +0 -0
- data/templates/project/vendor/archetype/fontawesome-webfont.woff +0 -0
- data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.eot +0 -0
- data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.svg +255 -0
- data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.woff +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png +0 -0
- data/test/fixtures/stylesheets/archetype/config.rb +19 -0
- data/test/fixtures/stylesheets/archetype/expected/b.css +14 -0
- data/test/fixtures/stylesheets/archetype/expected/base.css +349 -0
- data/test/fixtures/stylesheets/archetype/expected/hacks/ie_pseudo.css +11 -0
- data/test/fixtures/stylesheets/archetype/expected/locale.css +23 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css +2091 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/fallback_styles.css +9 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/nested_styleguides.css +24 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css +174 -0
- data/test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css +37 -0
- data/test/fixtures/stylesheets/archetype/expected/ui/hide_element.css +8 -0
- data/test/fixtures/stylesheets/archetype/expected/ui/stroke.css +17 -0
- data/test/fixtures/stylesheets/archetype/expected/ui/triangle.css +35 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/associative.css +9 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/if-set.css +9 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/spacing/horizontal-spacing.css +29 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/spacing/vertical-spacing.css +29 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/styles/filter.css +11 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/styles/font-family.css +16 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/styles/z-index.css +15 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css +100 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-os.css +55 -0
- data/test/fixtures/stylesheets/archetype/source/b.scss +9 -0
- data/test/fixtures/stylesheets/archetype/source/base.scss +3 -0
- data/test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss +13 -0
- data/test/fixtures/stylesheets/archetype/source/locale.scss +43 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss +18 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss +22 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss +40 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss +22 -0
- data/test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss +13 -0
- data/test/fixtures/stylesheets/archetype/source/ui/hide_element.scss +5 -0
- data/test/fixtures/stylesheets/archetype/source/ui/stroke.scss +13 -0
- data/test/fixtures/stylesheets/archetype/source/ui/triangle.scss +13 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/associative.scss +24 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/if-set.scss +16 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss +27 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/spacing/vertical-spacing.scss +27 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/styles/filter.scss +9 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/styles/font-family.scss +9 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/styles/z-index.scss +18 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss +70 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-os.scss +42 -0
- data/test/helpers/diff.rb +49 -0
- data/test/helpers/io.rb +36 -0
- data/test/helpers/test_case.rb +62 -0
- data/test/integrations/archetype_test.rb +126 -0
- data/test/test_helper.rb +26 -0
- data/test/units/sass_extensions_test.rb +207 -0
- metadata +303 -15
@@ -0,0 +1,154 @@
|
|
1
|
+
// ==========
|
2
|
+
// LOADERS
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_LOADERS_ID: loader !default;
|
5
|
+
$STYLEGUIDE_LOADERS: () !default;
|
6
|
+
|
7
|
+
@if not styleguide-component-exists($STYLEGUIDE_LOADERS_ID, $CONFIG_THEME) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_LOADERS_ID, $STYLEGUIDE_LOADERS, (
|
9
|
+
(default, (
|
10
|
+
display block,
|
11
|
+
content $CONTENT_PLACEHOLDER,
|
12
|
+
stretch true,
|
13
|
+
opacity 0.7,
|
14
|
+
overflow hidden,
|
15
|
+
hide-text true,
|
16
|
+
background-color _styleguideGetContextColor(nth($CONFIG_TEXTURE_CONTAINER, 1)),
|
17
|
+
ie-pseudo-after _styleguideGetLoaderExpression(medium),
|
18
|
+
(selectors, (
|
19
|
+
("&:after", (
|
20
|
+
position absolute,
|
21
|
+
top 50%,
|
22
|
+
left 50%,
|
23
|
+
content $CONTENT_PLACEHOLDER,
|
24
|
+
background-image styleguide-sprite-url($CONFIG_SPRITE_LOADERS),
|
25
|
+
background-repeat no-repeat,
|
26
|
+
background-position _styleguideGetLoaderPosition(medium, static),
|
27
|
+
width _styleguideGetLoaderDimension(medium, static, width),
|
28
|
+
height _styleguideGetLoaderDimension(medium, static, height),
|
29
|
+
margin-top _styleguideGetLoaderDimension(medium, static, height) / -2,
|
30
|
+
margin-left _styleguideGetLoaderDimension(medium, static, width) / -2,
|
31
|
+
animation _styleguideGetLoaderAnimation(medium)
|
32
|
+
)),
|
33
|
+
nil
|
34
|
+
))
|
35
|
+
)),
|
36
|
+
// sizes
|
37
|
+
(large, (
|
38
|
+
ie-pseudo-after _styleguideGetLoaderExpression(large),
|
39
|
+
(selectors, (
|
40
|
+
("&:after", (
|
41
|
+
background-position _styleguideGetLoaderPosition(large, static),
|
42
|
+
width _styleguideGetLoaderDimension(large, static, width),
|
43
|
+
height _styleguideGetLoaderDimension(large, static, height),
|
44
|
+
margin-top _styleguideGetLoaderDimension(large, static, height) / -2,
|
45
|
+
margin-left _styleguideGetLoaderDimension(large, static, width) / -2,
|
46
|
+
animation _styleguideGetLoaderAnimation(large)
|
47
|
+
)),
|
48
|
+
nil
|
49
|
+
))
|
50
|
+
// expression hack
|
51
|
+
)),
|
52
|
+
(small, (
|
53
|
+
ie-pseudo-after _styleguideGetLoaderExpression(small),
|
54
|
+
(selectors, (
|
55
|
+
("&:after", (
|
56
|
+
background-position _styleguideGetLoaderPosition(small, static),
|
57
|
+
width _styleguideGetLoaderDimension(small, static, width),
|
58
|
+
height _styleguideGetLoaderDimension(small, static, height),
|
59
|
+
margin-top _styleguideGetLoaderDimension(small, static, height) / -2,
|
60
|
+
margin-left _styleguideGetLoaderDimension(small, static, width) / -2,
|
61
|
+
animation _styleguideGetLoaderAnimation(small)
|
62
|
+
)),
|
63
|
+
nil
|
64
|
+
))
|
65
|
+
// expression hack
|
66
|
+
)),
|
67
|
+
// contexts
|
68
|
+
(in-dark, (
|
69
|
+
ie-pseudo-after _styleguideGetLoaderExpression(medium, 2),
|
70
|
+
(selectors, (
|
71
|
+
("&:after", (
|
72
|
+
background-position _styleguideGetLoaderPosition(medium, static, 2),
|
73
|
+
width _styleguideGetLoaderDimension(medium, static, width, 2),
|
74
|
+
height _styleguideGetLoaderDimension(medium, static, height, 2),
|
75
|
+
margin-top _styleguideGetLoaderDimension(medium, static, height, 2) / -2,
|
76
|
+
margin-left _styleguideGetLoaderDimension(medium, static, width, 2) / -2,
|
77
|
+
animation _styleguideGetLoaderAnimation(medium, 2)
|
78
|
+
)),
|
79
|
+
nil
|
80
|
+
))
|
81
|
+
)),
|
82
|
+
(large in-dark, (
|
83
|
+
ie-pseudo-after _styleguideGetLoaderExpression(large, 2),
|
84
|
+
(selectors, (
|
85
|
+
("&:after", (
|
86
|
+
background-position _styleguideGetLoaderPosition(large, static, 2),
|
87
|
+
width _styleguideGetLoaderDimension(large, static, width, 2),
|
88
|
+
height _styleguideGetLoaderDimension(large, static, height, 2),
|
89
|
+
margin-top _styleguideGetLoaderDimension(large, static, height, 2) / -2,
|
90
|
+
margin-left _styleguideGetLoaderDimension(large, static, width, 2) / -2,
|
91
|
+
animation _styleguideGetLoaderAnimation(large, 2)
|
92
|
+
)),
|
93
|
+
nil
|
94
|
+
))
|
95
|
+
)),
|
96
|
+
(small in-dark, (
|
97
|
+
ie-pseudo-after _styleguideGetLoaderExpression(small, 2),
|
98
|
+
(selectors, (
|
99
|
+
("&:after", (
|
100
|
+
background-position _styleguideGetLoaderPosition(small, static, 2),
|
101
|
+
width _styleguideGetLoaderDimension(small, static, width, 2),
|
102
|
+
height _styleguideGetLoaderDimension(small, static, height, 2),
|
103
|
+
margin-top _styleguideGetLoaderDimension(small, static, height, 2) / -2,
|
104
|
+
margin-left _styleguideGetLoaderDimension(small, static, width, 2) / -2,
|
105
|
+
animation _styleguideGetLoaderAnimation(small, 2)
|
106
|
+
)),
|
107
|
+
nil
|
108
|
+
))
|
109
|
+
)),
|
110
|
+
(in-canvas, (
|
111
|
+
background-color _styleguideGetContextColor($CONFIG_TEXTURE_CANVAS),
|
112
|
+
nil
|
113
|
+
)),
|
114
|
+
(in-module, (
|
115
|
+
background-color _styleguideGetContextColor($CONFIG_TEXTURE_MODULE),
|
116
|
+
nil
|
117
|
+
)),
|
118
|
+
(in-heading, (
|
119
|
+
background-color _styleguideGetContextColor($CONFIG_TEXTURE_HEADING),
|
120
|
+
nil
|
121
|
+
)),
|
122
|
+
(in-bristol, (
|
123
|
+
inherit (in-dark),
|
124
|
+
background-color _styleguideGetContextColor($CONFIG_TEXTURE_BRISTOL),
|
125
|
+
nil
|
126
|
+
)),
|
127
|
+
(in-punchcut, (
|
128
|
+
inherit (in-dark),
|
129
|
+
background-color _styleguideGetContextColor($CONFIG_TEXTURE_PUNCHCUT),
|
130
|
+
nil
|
131
|
+
)),
|
132
|
+
(small in-bristol, (
|
133
|
+
inherit (small in-dark),
|
134
|
+
nil
|
135
|
+
)),
|
136
|
+
(large in-bristol, (
|
137
|
+
inherit (large in-dark),
|
138
|
+
nil
|
139
|
+
)),
|
140
|
+
(small in-punchcut, (
|
141
|
+
inherit (small in-dark),
|
142
|
+
nil
|
143
|
+
)),
|
144
|
+
(large in-punchcut, (
|
145
|
+
inherit (large in-dark),
|
146
|
+
nil
|
147
|
+
)),
|
148
|
+
(without-mask, (
|
149
|
+
background-color nil,
|
150
|
+
opacity nil,
|
151
|
+
nil
|
152
|
+
))
|
153
|
+
), $CONFIG_THEME);
|
154
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
// ==========
|
2
|
+
// MENU ITEMS
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_MENU_ITEMS_ID: menu-item !default;
|
5
|
+
$STYLEGUIDE_MENU_ITEMS: () !default;
|
6
|
+
|
7
|
+
@if not styleguide-component-exists($STYLEGUIDE_MENU_ITEMS_ID, $CONFIG_THEME) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_MENU_ITEMS_ID, $STYLEGUIDE_MENU_ITEMS, (
|
9
|
+
(default, (
|
10
|
+
nil
|
11
|
+
)),
|
12
|
+
(in-flyout, (
|
13
|
+
padding $CONFIG_DIM_MENU_ITEM_SPACING,
|
14
|
+
text-decoration none,
|
15
|
+
display block,
|
16
|
+
(states, (
|
17
|
+
(hover, (
|
18
|
+
color nth-cyclic($CONFIG_COLOR_COPY, 2),
|
19
|
+
background-color $CONFIG_COLOR_BG_BUTTON_PRIMARY,
|
20
|
+
filter-gradient $CONFIG_GRADIENT_BUTTON_PRIMARY_IE,
|
21
|
+
background-image $CONFIG_GRADIENT_BUTTON_PRIMARY,
|
22
|
+
nil
|
23
|
+
)),
|
24
|
+
(active, (
|
25
|
+
inherit (hover),
|
26
|
+
nil
|
27
|
+
))
|
28
|
+
))
|
29
|
+
))
|
30
|
+
), $CONFIG_THEME);
|
31
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// ==========
|
2
|
+
// MODULE
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_MODULES_ID: module !default;
|
5
|
+
$STYLEGUIDE_MODULES: () !default;
|
6
|
+
|
7
|
+
@if not styleguide-component-exists($STYLEGUIDE_MODULES_ID, $CONFIG_THEME) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_MODULES_ID, $STYLEGUIDE_MODULES, (
|
9
|
+
(default, (
|
10
|
+
background nth($CONFIG_TEXTURE_MODULE, 1),
|
11
|
+
nil
|
12
|
+
)),
|
13
|
+
nil
|
14
|
+
), $CONFIG_THEME);
|
15
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// ==========
|
2
|
+
// PULLQUOTES
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_PULLQUOTES_ID: pullquote !default;
|
5
|
+
$STYLEGUIDE_PULLQUOTES: () !default;
|
6
|
+
|
7
|
+
@if not styleguide-component-exists($STYLEGUIDE_PULLQUOTES_ID, $CONFIG_THEME) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_PULLQUOTES_ID, $STYLEGUIDE_PULLQUOTES, (
|
9
|
+
(default, (
|
10
|
+
font-size nth($CONFIG_FONT_PULLQUOTE_MEDIUM, 1),
|
11
|
+
line-height nth-cyclic($CONFIG_FONT_PULLQUOTE_MEDIUM, 2),
|
12
|
+
color nth($CONFIG_COLOR_STRONG, 1),
|
13
|
+
font-family serif,
|
14
|
+
font-style italic
|
15
|
+
)),
|
16
|
+
(in-dark, (
|
17
|
+
color nth-cyclic($CONFIG_COLOR_STRONG, 2),
|
18
|
+
text-shadow nth-cyclic($CONFIG_SHADOW_COPY, 2)
|
19
|
+
)),
|
20
|
+
(in-bristol, (
|
21
|
+
inherit (in-dark),
|
22
|
+
nil
|
23
|
+
)),
|
24
|
+
(in-punchcut, (
|
25
|
+
inherit (in-dark),
|
26
|
+
nil
|
27
|
+
))
|
28
|
+
), $CONFIG_THEME);
|
29
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// ==========
|
2
|
+
// PUNCHCUT
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_PUNCHCUTS_ID: punchcut !default;
|
5
|
+
$STYLEGUIDE_PUNCHCUTS: () !default;
|
6
|
+
|
7
|
+
@if not styleguide-component-exists($STYLEGUIDE_PUNCHCUTS_ID, $CONFIG_THEME) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_PUNCHCUTS_ID, $STYLEGUIDE_PUNCHCUTS, (
|
9
|
+
(default, (
|
10
|
+
background nth($CONFIG_TEXTURE_PUNCHCUT, 1),
|
11
|
+
box-shadow $CONFIG_SHADOW_PUNCHCUT_INSET
|
12
|
+
)),
|
13
|
+
(without-inner-shadow, (
|
14
|
+
box-shadow nil,
|
15
|
+
nil
|
16
|
+
))
|
17
|
+
), $CONFIG_THEME);
|
18
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
// ==========
|
2
|
+
// TOOLTIPS
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_TOOLTIPS_ID: tooltip !default;
|
5
|
+
$STYLEGUIDE_TOOLTIPS: () !default;
|
6
|
+
|
7
|
+
@if not styleguide-component-exists($STYLEGUIDE_TOOLTIPS_ID, $CONFIG_THEME) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_TOOLTIPS_ID, $STYLEGUIDE_TOOLTIPS, (
|
9
|
+
(default, (
|
10
|
+
color nth-cyclic($CONFIG_COLOR_COPY, 2),
|
11
|
+
border-radius $CONFIG_DIM_TOOLTIP_RADIUS,
|
12
|
+
background nth($CONFIG_TEXTURE_BRISTOL, 1),
|
13
|
+
border-color nth($CONFIG_COLOR_BORDER_TOOLTIP, 1),
|
14
|
+
border-style solid,
|
15
|
+
border-width $CONFIG_DIM_GENERIC_BORDER,
|
16
|
+
box-shadow $CONFIG_SHADOW_TOOLTIP,
|
17
|
+
max-width $CONFIG_DIM_TOOLTIP_MAX_WIDTH,
|
18
|
+
padding $CONFIG_DIM_TOOLTIP_SPACING,
|
19
|
+
// structure
|
20
|
+
outline 0, // for accessibility purposes, we don't want to outline the tooltip if it has focus
|
21
|
+
display block,
|
22
|
+
position absolute,
|
23
|
+
visibility visible,
|
24
|
+
z-index 1
|
25
|
+
)),
|
26
|
+
nil
|
27
|
+
), $CONFIG_THEME);
|
28
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// ==========
|
2
|
+
// ANIMATIONS
|
3
|
+
// ==========
|
4
|
+
|
5
|
+
// loaders
|
6
|
+
$CONFIG_ANIM_LOADERS_MEDIUM_STEP: 12 !default;
|
7
|
+
$CONFIG_ANIM_LOADERS_MEDIUM_DELAY: 0s !default;
|
8
|
+
$CONFIG_ANIM_LOADERS_MEDIUM_ITERATIONS: infinite !default;
|
9
|
+
$CONFIG_ANIM_LOADERS_MEDIUM_DURATION: 1s !default;
|
10
|
+
$CONFIG_ANIM_LOADERS_LARGE_STEP: $CONFIG_ANIM_LOADERS_MEDIUM_STEP !default;
|
11
|
+
$CONFIG_ANIM_LOADERS_LARGE_DELAY: $CONFIG_ANIM_LOADERS_MEDIUM_DELAY !default;
|
12
|
+
$CONFIG_ANIM_LOADERS_LARGE_ITERATIONS: $CONFIG_ANIM_LOADERS_MEDIUM_ITERATIONS !default;
|
13
|
+
$CONFIG_ANIM_LOADERS_LARGE_DURATION: $CONFIG_ANIM_LOADERS_MEDIUM_DURATION !default;
|
14
|
+
$CONFIG_ANIM_LOADERS_SMALL_STEP: $CONFIG_ANIM_LOADERS_MEDIUM_STEP !default;
|
15
|
+
$CONFIG_ANIM_LOADERS_SMALL_DELAY: $CONFIG_ANIM_LOADERS_MEDIUM_DELAY !default;
|
16
|
+
$CONFIG_ANIM_LOADERS_SMALL_ITERATIONS: $CONFIG_ANIM_LOADERS_MEDIUM_ITERATIONS !default;
|
17
|
+
$CONFIG_ANIM_LOADERS_SMALL_DURATION: $CONFIG_ANIM_LOADERS_MEDIUM_DURATION !default;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// ==========
|
2
|
+
// DIMENSIONS
|
3
|
+
// ==========
|
4
|
+
|
5
|
+
// buttons
|
6
|
+
$CONFIG_DIM_BUTTON_RADIUS: 3px !default;
|
7
|
+
$CONFIG_DIM_BUTTON_INDICATOR_SMALL: (8px) !default;
|
8
|
+
$CONFIG_DIM_BUTTON_INDICATOR_SMALL_RADIUS: 5px !default;
|
9
|
+
$CONFIG_DIM_BUTTON_SPACING_OUTER: 10px !default;
|
10
|
+
$CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW: 7px !default;
|
11
|
+
|
12
|
+
// tooltips
|
13
|
+
$CONFIG_DIM_TOOLTIP_RADIUS: 5px !default;
|
14
|
+
$CONFIG_DIM_TOOLTIP_MAX_WIDTH: 300px !default;
|
15
|
+
$CONFIG_DIM_TOOLTIP_SPACING: (vertical-spacing(1) horizontal-spacing(1)) !default;
|
16
|
+
$CONFIG_DIM_TOOLTIP_TIP: 7px !default;
|
17
|
+
$CONFIG_DIM_TOOLTIP_TIP_OFFSET: 5px !default;
|
18
|
+
|
19
|
+
// hovercards
|
20
|
+
$CONFIG_DIM_HOVERCARD_RADIUS: $CONFIG_DIM_TOOLTIP_RADIUS !default;
|
21
|
+
$CONFIG_DIM_HOVERCARD_MAX_WIDTH: $CONFIG_DIM_TOOLTIP_MAX_WIDTH !default;
|
22
|
+
$CONFIG_DIM_HOVERCARD_SPACING: (vertical-spacing(4) horizontal-spacing(4)) !default;
|
23
|
+
$CONFIG_DIM_HOVERCARD_TIP: (24px 15px) !default;
|
24
|
+
$CONFIG_DIM_HOVERCARD_TIP_OFFSET: (10px) !default;
|
25
|
+
|
26
|
+
// generic dimensions
|
27
|
+
$CONFIG_DIM_GENERIC_BORDER: 1px !default;
|
28
|
+
$CONFIG_DIM_GENERIC_BORDER_THICK: 3px !default;
|
29
|
+
|
30
|
+
// menu items
|
31
|
+
$CONFIG_DIM_MENU_ITEM_SPACING: (vertical-spacing(1.2) horizontal-spacing(4) vertical-spacing(1.2, $abuse: true) horizontal-spacing(6)) !default;
|
32
|
+
|
33
|
+
// flyouts
|
34
|
+
$CONFIG_DIM_FLYOUT_SPACING: (0 0 vertical-spacing(1.4, $abuse: true)) !default;
|
35
|
+
$CONFIG_DIM_FLYOUT_MIN_WIDTH: _getGridWidth(4) !default;
|
36
|
+
$CONFIG_DIM_FLYOUT_RADIUS: 1px !default;
|
37
|
+
|
38
|
+
// headings
|
39
|
+
$CONFIG_DIM_HEADING_SPACING_OUTER: (vertical-spacing(1.4, $abuse: true) 0) !default;
|
40
|
+
$CONFIG_DIM_HEADING_SPACING: (vertical-spacing(2.4, $abuse: true) horizontal-spacing(6)) !default;
|
41
|
+
|
42
|
+
// breadcrumbs
|
43
|
+
$CONFIG_DIM_BREADCRUMB_SPACING_OUTER: (0 0 vertical-spacing(3) horizontal-spacing(1)) !default;
|
44
|
+
$CONFIG_DIM_BREADCRUMB_SPACING: (0 0 0 horizontal-spacing(1.4, $abuse: true)) !default;
|
45
|
+
|
46
|
+
// alerts
|
47
|
+
$CONFIG_DIM_ALERTS_SPACING: (vertical-spacing(2) horizontal-spacing(4) vertical-spacing(2) horizontal-spacing(10)) !default;
|
48
|
+
|
49
|
+
// closes
|
50
|
+
$CONFIG_DIM_CLOSES: (11px) !default;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// ==========
|
2
|
+
// GLYPHS
|
3
|
+
// ==========
|
4
|
+
$CONFIG_IMG_HOVERCARD_TIP: ("vendor/archetype/sprites/hovercard_tip.png") !default;
|
5
|
+
|
6
|
+
$CONFIG_GLYPH_ALERT_NOTIFY: (info-sign 36px inherit 28px) !default;
|
7
|
+
$CONFIG_GLYPH_ALERT_ERROR: (remove-sign 36px inherit 28px) !default;
|
8
|
+
$CONFIG_GLYPH_ALERT_SUCCESS: (ok-sign 36px inherit 28px) !default;
|
9
|
+
$CONFIG_GLYPH_ALERT_YIELD: (warning-sign 36px inherit 28px) !default;
|
10
|
+
|
11
|
+
$CONFIG_GLYPH_CLOSE: (remove 11px inherit 11px) !default;
|
@@ -0,0 +1,94 @@
|
|
1
|
+
// ==========
|
2
|
+
// COLOR PALETTE
|
3
|
+
// ==========
|
4
|
+
|
5
|
+
// fonts
|
6
|
+
// defined as tuples (pairs) for light/dark background contexts
|
7
|
+
$CONFIG_COLOR_BRAND: (#0088CC #34C1ED) !default;
|
8
|
+
$CONFIG_COLOR_COPY: (#222222 #FFFFFF) !default;
|
9
|
+
$CONFIG_COLOR_COPY_MUTED: (#555555 #AAAAAA) !default;
|
10
|
+
$CONFIG_COLOR_STRONG: (#000000 #FFFFFF) !default;
|
11
|
+
$CONFIG_COLOR_ANNOTATION: (#888888 #999999) !default;
|
12
|
+
$CONFIG_COLOR_BREADCRUMB: (#666666 ) !default;
|
13
|
+
$CONFIG_COLOR_BREADCRUMB_ACTIVE: (#999999 ) !default;
|
14
|
+
|
15
|
+
// buttons
|
16
|
+
$CONFIG_COLOR_BUTTON_PRIMARY: #FFFFFF !default;
|
17
|
+
$CONFIG_COLOR_BG_BUTTON_PRIMARY: #0074CC !default;
|
18
|
+
$CONFIG_COLOR_BORDER_BUTTON_PRIMARY: #1B5480 !default;
|
19
|
+
$CONFIG_GRADIENT_BUTTON_PRIMARY: linear-gradient(top, #0088CC, #0055CC) !default;
|
20
|
+
$CONFIG_GRADIENT_BUTTON_PRIMARY_IE: (#0088CC, #0055CC, vertical) !default;
|
21
|
+
$CONFIG_COLOR_BG_BUTTON_PRIMARY_HOVER: #0055CC !default;
|
22
|
+
$CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER: linear-gradient(top, #0066CC, #0033CC) !default;
|
23
|
+
$CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER_IE: (#0066CC, #0033CC, vertical) !default;
|
24
|
+
|
25
|
+
$CONFIG_COLOR_BUTTON_SECONDARY: #333333 !default;
|
26
|
+
$CONFIG_COLOR_BG_BUTTON_SECONDARY: #F5F5F5 !default;
|
27
|
+
$CONFIG_COLOR_BORDER_BUTTON_SECONDARY: #AAAAAA !default;
|
28
|
+
$CONFIG_GRADIENT_BUTTON_SECONDARY: linear-gradient(top, #FFFFFF, #E6E6E6) !default;
|
29
|
+
$CONFIG_GRADIENT_BUTTON_SECONDARY_IE: (#FFFFFF, #E6E6E6, vertical) !default;
|
30
|
+
$CONFIG_COLOR_BG_BUTTON_SECONDARY_HOVER: #E6E6E6 !default;
|
31
|
+
$CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER: linear-gradient(top, #F5F5F5, #E4E4E4) !default;
|
32
|
+
$CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER_IE: (#F5F5F5, #E4E4E4, vertical) !default;
|
33
|
+
|
34
|
+
$CONFIG_COLOR_BUTTON_SPOTLIGHT: #FFFFFF !default;
|
35
|
+
$CONFIG_COLOR_BG_BUTTON_SPOTLIGHT: #414141 !default;
|
36
|
+
$CONFIG_COLOR_BORDER_BUTTON_SPOTLIGHT: #111111 !default;
|
37
|
+
$CONFIG_GRADIENT_BUTTON_SPOTLIGHT: linear-gradient(top, #555555, #222222) !default;
|
38
|
+
$CONFIG_GRADIENT_BUTTON_SPOTLIGHT_IE: (#555555, #222222, vertical) !default;
|
39
|
+
$CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_HOVER: #343434 !default;
|
40
|
+
$CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER: linear-gradient(top, #444444, #111111) !default;
|
41
|
+
$CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER_IE: (#444444, #111111, vertical) !default;
|
42
|
+
|
43
|
+
$CONFIG_COLOR_BORDER_BUTTON_DARK: #434343 !default;
|
44
|
+
|
45
|
+
$CONFIG_COLOR_BG_BUTTON_PRIMARY_DARK: $CONFIG_COLOR_BG_BUTTON_PRIMARY !default;
|
46
|
+
$CONFIG_GRADIENT_BUTTON_PRIMARY_DARK: $CONFIG_GRADIENT_BUTTON_PRIMARY !default;
|
47
|
+
$CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_IE: $CONFIG_GRADIENT_BUTTON_PRIMARY_IE !default;
|
48
|
+
$CONFIG_COLOR_BG_BUTTON_PRIMARY_DARK_HOVER: $CONFIG_COLOR_BG_BUTTON_PRIMARY_HOVER !default;
|
49
|
+
$CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_HOVER: $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER !default;
|
50
|
+
$CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_HOVER_IE: $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER_IE !default;
|
51
|
+
|
52
|
+
$CONFIG_COLOR_BG_BUTTON_SECONDARY_DARK: $CONFIG_COLOR_BG_BUTTON_SECONDARY !default;
|
53
|
+
$CONFIG_GRADIENT_BUTTON_SECONDARY_DARK: $CONFIG_GRADIENT_BUTTON_SECONDARY !default;
|
54
|
+
$CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_IE: $CONFIG_GRADIENT_BUTTON_SECONDARY_IE !default;
|
55
|
+
$CONFIG_COLOR_BG_BUTTON_SECONDARY_DARK_HOVER: $CONFIG_COLOR_BG_BUTTON_SECONDARY_HOVER !default;
|
56
|
+
$CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_HOVER: $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER !default;
|
57
|
+
$CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_HOVER_IE: $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER_IE !default;
|
58
|
+
|
59
|
+
$CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_DARK: $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT !default;
|
60
|
+
$CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT !default;
|
61
|
+
$CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_IE: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_IE !default;
|
62
|
+
$CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_DARK_HOVER: $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_HOVER !default;
|
63
|
+
$CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_HOVER: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER !default;
|
64
|
+
$CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_HOVER_IE: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER_IE !default;
|
65
|
+
|
66
|
+
$CONFIG_COLOR_BUTTON_INDICATOR: #BBBBBB !default;
|
67
|
+
$CONFIG_COLOR_BUTTON_INDICATOR_INVERSE: #FFFFFF !default;
|
68
|
+
|
69
|
+
// alerts
|
70
|
+
$CONFIG_COLOR_BG_ALERT_NOTIFY: #49AFCD !default;
|
71
|
+
$CONFIG_GRADIENT_ALERT_NOTIFY: linear-gradient(top, #5BC0DE, #2F96B4) !default;
|
72
|
+
$CONFIG_GRADIENT_ALERT_NOTIFY_IE: (#5BC0DE, #2F96B4, vertical) !default;
|
73
|
+
$CONFIG_COLOR_BORDER_ALERT_NOTIFY: #2F96B4 !default;
|
74
|
+
|
75
|
+
$CONFIG_COLOR_BG_ALERT_YIELD: #FAA732 !default;
|
76
|
+
$CONFIG_GRADIENT_ALERT_YIELD: linear-gradient(top, #FBB450, #F89406) !default;
|
77
|
+
$CONFIG_GRADIENT_ALERT_YIELD_IE: (#FBB450, #F89406, vertical) !default;
|
78
|
+
$CONFIG_COLOR_BORDER_ALERT_YIELD: #F89406 !default;
|
79
|
+
|
80
|
+
$CONFIG_COLOR_BG_ALERT_SUCCESS: #5BB75B !default;
|
81
|
+
$CONFIG_GRADIENT_ALERT_SUCCESS: linear-gradient(top, #62C462, #51A351) !default;
|
82
|
+
$CONFIG_GRADIENT_ALERT_SUCCESS_IE: (#62C462, #51A351, vertical) !default;
|
83
|
+
$CONFIG_COLOR_BORDER_ALERT_SUCCESS: #51A351 !default;
|
84
|
+
|
85
|
+
$CONFIG_COLOR_BG_ALERT_ERROR: #DA4F49 !default;
|
86
|
+
$CONFIG_GRADIENT_ALERT_ERROR: linear-gradient(top, #EE5F5B, #BD362F) !default;
|
87
|
+
$CONFIG_GRADIENT_ALERT_ERROR_IE: (#EE5F5B, #BD362F, vertical) !default;
|
88
|
+
$CONFIG_COLOR_BORDER_ALERT_ERROR: #BD362F !default;
|
89
|
+
|
90
|
+
// borders
|
91
|
+
$CONFIG_COLOR_BORDER_FLYOUT: (#CCCCCC #3E3E3E) !default;
|
92
|
+
$CONFIG_COLOR_BORDER_SECTION: (#DDDDDD #555555) !default;
|
93
|
+
$CONFIG_COLOR_BORDER_TOOLTIP: (#2C2C2C ) !default;
|
94
|
+
$CONFIG_COLOR_BORDER_HOVERCARD: (#C9C9C9 ) !default;
|