archetype-theme 1.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +16 -0
  3. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/CHANGELOG.md +0 -0
  4. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/README.md +0 -0
  5. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/VERSION +0 -0
  6. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/lib/archetype-theme.rb +9 -0
  7. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/lib/archetype-theme/version.rb +3 -0
  8. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/_theme.scss +2 -0
  9. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_components.scss +28 -0
  10. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_core.scss +10 -0
  11. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_helpers.scss +209 -0
  12. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_identifiers.scss +25 -0
  13. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_init.scss +5 -0
  14. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_keyframes.scss +64 -0
  15. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_primitives.scss +10 -0
  16. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_alerts.scss +54 -0
  17. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_annotations.scss +25 -0
  18. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_bristol.scss +13 -0
  19. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_button_groups.scss +40 -0
  20. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_button_toolbars.scss +15 -0
  21. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_buttons.scss +299 -0
  22. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_canvas.scss +13 -0
  23. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_carets.scss +292 -0
  24. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_closes.scss +56 -0
  25. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_container.scss +23 -0
  26. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_copy.scss +72 -0
  27. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_flyouts.scss +50 -0
  28. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_headings.scss +29 -0
  29. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_headlines.scss +57 -0
  30. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_hovercards.scss +26 -0
  31. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_icons.scss +16 -0
  32. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_identities.scss +29 -0
  33. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_links.scss +54 -0
  34. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_loaders.scss +138 -0
  35. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_menu_items.scss +27 -0
  36. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_module.scss +13 -0
  37. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_pullquotes.scss +27 -0
  38. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_punchcut.scss +17 -0
  39. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_tooltips.scss +27 -0
  40. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_animations.scss +17 -0
  41. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_dimensions.scss +50 -0
  42. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_glyphs.scss +11 -0
  43. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_misc.scss +8 -0
  44. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_palettes.scss +94 -0
  45. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_shadows.scss +23 -0
  46. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_sprites.scss +41 -0
  47. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_textures.scss +10 -0
  48. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_typography.scss +56 -0
  49. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/manifest.rb +6 -0
  50. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/large/large.png +0 -0
  51. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
  52. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
  53. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/large/large_static.png +0 -0
  54. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/medium/medium.png +0 -0
  55. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
  56. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
  57. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
  58. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/small/small.png +0 -0
  59. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
  60. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
  61. data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/small/small_static.png +0 -0
  62. metadata +119 -0
@@ -0,0 +1,25 @@
1
+ // ==========
2
+ // ANNOTATIONS
3
+ // ==========
4
+ $STYLEGUIDE_ANNOTATIONS_ID: annotation !default;
5
+ $STYLEGUIDE_ANNOTATIONS: () !default;
6
+
7
+ @if should-register-component($STYLEGUIDE_ANNOTATIONS_ID) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_ANNOTATIONS_ID, $STYLEGUIDE_ANNOTATIONS, (
9
+ default: (
10
+ font-size: nth($CONFIG_FONT_ANNOTATION_MEDIUM, 1),
11
+ line-height: nth-cyclic($CONFIG_FONT_ANNOTATION_MEDIUM, 2),
12
+ color: nth($CONFIG_COLOR_ANNOTATION, 1)
13
+ ),
14
+ in dark: (
15
+ color: nth-cyclic($CONFIG_COLOR_ANNOTATION, 2),
16
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, .75)
17
+ ),
18
+ in a $STYLEGUIDE_TOOLTIPS_ID: (
19
+ inherit: in dark,
20
+ ),
21
+ in a $STYLEGUIDE_PUNCHCUTS_ID: (
22
+ inherit: in dark,
23
+ )
24
+ )) !global;
25
+ }
@@ -0,0 +1,13 @@
1
+ // ==========
2
+ // BRISTOL
3
+ // ==========
4
+ $STYLEGUIDE_BRISTOLS_ID: bristol !default;
5
+ $STYLEGUIDE_BRISTOLS: () !default;
6
+
7
+ @if should-register-component($STYLEGUIDE_BRISTOLS_ID) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_BRISTOLS_ID, $STYLEGUIDE_BRISTOLS, (
9
+ default: (
10
+ background: nth($CONFIG_TEXTURE_BRISTOL, 1)
11
+ )
12
+ )) !global;
13
+ }
@@ -0,0 +1,40 @@
1
+ // ==========
2
+ // BUTTON GROUPS
3
+ // ==========
4
+ $STYLEGUIDE_BUTTON_GROUPS_ID: button-group !default;
5
+ $STYLEGUIDE_BUTTON_GROUPS: () !default;
6
+
7
+ @if should-register-component($STYLEGUIDE_BUTTON_GROUPS_ID) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_BUTTON_GROUPS_ID, $STYLEGUIDE_BUTTON_GROUPS, (
9
+ default: (
10
+ line-height: 1,
11
+ inline-block: (middle, middle), // this will use the inline-block() mixin
12
+ clearfix: legacy-pie-clearfix,
13
+ position: relative
14
+ ),
15
+ // BUTTON TOOLBARS
16
+ in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
17
+ margin-right: $CONFIG_DIM_BUTTON_SPACING_OUTER,
18
+ float: left,
19
+ display: block,
20
+ inline-block: null
21
+ ),
22
+ small in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
23
+ margin-right $CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW
24
+ ),
25
+ last in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
26
+ margin-right null
27
+ ),
28
+ right aligned in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
29
+ float right,
30
+ margin-right null,
31
+ margin-left $CONFIG_DIM_BUTTON_SPACING_OUTER
32
+ ),
33
+ right aligned small in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
34
+ margin-left $CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW
35
+ ),
36
+ right aligned last in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
37
+ margin-left null
38
+ )
39
+ )) !global;
40
+ }
@@ -0,0 +1,15 @@
1
+ // ==========
2
+ // BUTTON TOOLBAR
3
+ // ==========
4
+ $STYLEGUIDE_BUTTON_TOOLBARS_ID: button-toolbar !default;
5
+ $STYLEGUIDE_BUTTON_TOOLBARS: () !default;
6
+
7
+ @if should-register-component($STYLEGUIDE_BUTTON_TOOLBARS_ID) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_BUTTON_TOOLBARS_ID, $STYLEGUIDE_BUTTON_TOOLBARS, (
9
+ default: (
10
+ line-height: 1,
11
+ inline-block: (middle, middle),
12
+ clearfix: legacy-pie-clearfix
13
+ )
14
+ )) !global;
15
+ }
@@ -0,0 +1,299 @@
1
+ // ==========
2
+ // BUTTONS
3
+ // ==========
4
+ $STYLEGUIDE_BUTTONS_ID: button !default;
5
+ $STYLEGUIDE_BUTTONS: () !default;
6
+
7
+ @if should-register-component($STYLEGUIDE_BUTTONS_ID) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_BUTTONS_ID, $STYLEGUIDE_BUTTONS, (
9
+ default: (
10
+ // these are common between all buttons
11
+ font-weight: bold,
12
+ border-width: $CONFIG_DIM_GENERIC_BORDER,
13
+ border-style: solid,
14
+ cursor: pointer,
15
+ margin: 0,
16
+ overflow: visible,
17
+ text-decoration: none !important,
18
+ text-align: center,
19
+ width: auto,
20
+ text-shadow: $CONFIG_SHADOW_BUTTON_TEXT,
21
+ // sizing
22
+ border-radius: $CONFIG_DIM_BUTTON_RADIUS,
23
+ padding: _styleguideGetButtonPadding(medium),
24
+ // we set the size intentionally two pixels large and use box-sizing to adjust it
25
+ // this makes IE6/7 behave properly and other browsers adjust correctly
26
+ height: _styleguideGetButtonHeight(medium) + (2*$CONFIG_DIM_GENERIC_BORDER),
27
+ line-height: _styleguideGetButtonHeight(medium),
28
+ box-sizing: border-box,
29
+ font-size: nth($CONFIG_FONT_BUTTON_MEDIUM, 1),
30
+ // palette
31
+ color: $CONFIG_COLOR_BUTTON_PRIMARY,
32
+ background-color: $CONFIG_COLOR_BG_BUTTON_PRIMARY,
33
+ border-color: $CONFIG_COLOR_BORDER_BUTTON_PRIMARY,
34
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_PRIMARY_IE,
35
+ background-image: $CONFIG_GRADIENT_BUTTON_PRIMARY,
36
+ white-space: nowrap,
37
+ // alignment
38
+ inline-block: (middle, middle), // this will use the inline-block() mixin
39
+ // states
40
+ states: (
41
+ hover: (
42
+ background-color: $CONFIG_COLOR_BG_BUTTON_PRIMARY_HOVER,
43
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER_IE,
44
+ background-image: $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER,
45
+ box-shadow: $CONFIG_SHADOW_BUTTON_HOVER
46
+ ),
47
+ active: (
48
+ box-shadow: $CONFIG_SHADOW_BUTTON_ACTIVE
49
+ ),
50
+ disabled: (
51
+ background-color: $CONFIG_COLOR_BG_BUTTON_PRIMARY_HOVER,
52
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER_IE,
53
+ background-image: $CONFIG_GRADIENT_BUTTON_PRIMARY_HOVER,
54
+ box-shadow: none,
55
+ cursor: default,
56
+ opacity: $CONFIG_OPACITY_BUTTON_DISABLED
57
+ )
58
+ )
59
+ ),
60
+ // IMPORTANCE
61
+ primary: (), // inherits from default
62
+ secondary: (
63
+ text-shadow: $CONFIG_SHADOW_BUTTON_TEXT_INVERTED,
64
+ color: $CONFIG_COLOR_BUTTON_SECONDARY,
65
+ background-color: $CONFIG_COLOR_BG_BUTTON_SECONDARY,
66
+ border-color: $CONFIG_COLOR_BORDER_BUTTON_SECONDARY,
67
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_SECONDARY_IE,
68
+ background-image: $CONFIG_GRADIENT_BUTTON_SECONDARY,
69
+ states: (
70
+ hover: (
71
+ background-color: $CONFIG_COLOR_BG_BUTTON_SECONDARY_HOVER,
72
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER_IE,
73
+ background-image: $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER
74
+ ),
75
+ disabled: (
76
+ background-color: $CONFIG_COLOR_BG_BUTTON_SECONDARY_HOVER,
77
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER_IE,
78
+ background-image: $CONFIG_GRADIENT_BUTTON_SECONDARY_HOVER
79
+ )
80
+ )
81
+ ),
82
+ spotlight: (
83
+ text-shadow: $CONFIG_SHADOW_BUTTON_TEXT_INVERTED,
84
+ background-color: $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT,
85
+ border-color: $CONFIG_COLOR_BORDER_BUTTON_SPOTLIGHT,
86
+ color: $CONFIG_COLOR_BUTTON_SPOTLIGHT,
87
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_IE,
88
+ background-image: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT,
89
+ states: (
90
+ hover: (
91
+ background-color: $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_HOVER,
92
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER_IE,
93
+ background-image: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER
94
+ ),
95
+ disabled: (
96
+ background-color: $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_HOVER,
97
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER_IE,
98
+ background-image: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_HOVER
99
+ )
100
+ )
101
+ ),
102
+ // CONTEXTS
103
+ // in a dark context
104
+ in dark: (
105
+ border-color: $CONFIG_COLOR_BORDER_BUTTON_DARK
106
+ ),
107
+ // IMPORTANCE in CONTEXTS
108
+ primary in dark: (
109
+ inherit: in dark,
110
+ states: (
111
+ hover: (
112
+ background-color: $CONFIG_COLOR_BG_BUTTON_PRIMARY_DARK_HOVER,
113
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_HOVER_IE,
114
+ background-image: $CONFIG_GRADIENT_BUTTON_PRIMARY_DARK_HOVER
115
+ )
116
+ )
117
+ ),
118
+ secondary in dark: (
119
+ inherit: in dark,
120
+ states: (
121
+ hover: (
122
+ background-color: $CONFIG_COLOR_BG_BUTTON_SECONDARY_DARK_HOVER,
123
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_HOVER_IE,
124
+ background-image: $CONFIG_GRADIENT_BUTTON_SECONDARY_DARK_HOVER
125
+ )
126
+ )
127
+ ),
128
+ spotlight in dark: (
129
+ inherit: in dark,
130
+ states: (
131
+ hover: (
132
+ background-color: $CONFIG_COLOR_BG_BUTTON_SPOTLIGHT_DARK_HOVER,
133
+ filter-gradient: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_HOVER_IE,
134
+ background-image: $CONFIG_GRADIENT_BUTTON_SPOTLIGHT_DARK_HOVER
135
+ )
136
+ )
137
+ ),
138
+ // in the punchcut context (inherit from in dark)
139
+ primary in $STYLEGUIDE_PUNCHCUTS_ID: (
140
+ inherit: primary in dark
141
+ ),
142
+ secondary in $STYLEGUIDE_PUNCHCUTS_ID: (
143
+ inherit: secondary in dark
144
+ ),
145
+ spotlight in $STYLEGUIDE_PUNCHCUTS_ID: (
146
+ inherit: spotlight in dark
147
+ ),
148
+ // in the bristol context (inherit from in dark)
149
+ primary in $STYLEGUIDE_BRISTOLS_ID: (
150
+ inherit: primary in dark
151
+ ),
152
+ secondary in $STYLEGUIDE_BRISTOLS_ID: (
153
+ inherit: secondary in dark
154
+ ),
155
+ spotlight in $STYLEGUIDE_BRISTOLS_ID: (
156
+ inherit: spotlight in dark
157
+ ),
158
+ // BUTTON TOOLBARS
159
+ in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
160
+ margin-right: $CONFIG_DIM_BUTTON_SPACING_OUTER,
161
+ float: left,
162
+ display: block,
163
+ inline-block: null
164
+ ),
165
+ small in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
166
+ margin-right: $CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW
167
+ ),
168
+ last in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
169
+ margin-right: null
170
+ ),
171
+ right aligned in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
172
+ float: right,
173
+ margin-right: null,
174
+ margin-left: $CONFIG_DIM_BUTTON_SPACING_OUTER
175
+ ),
176
+ right aligned small in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
177
+ margin-left: $CONFIG_DIM_BUTTON_SPACING_OUTER_NARROW
178
+ ),
179
+ right aligned last in $STYLEGUIDE_BUTTON_TOOLBARS_ID: (
180
+ margin-left: null,
181
+ ),
182
+ // BUTTON GROUPS
183
+ in $STYLEGUIDE_BUTTON_GROUPS_ID: (
184
+ border-radius: 0,
185
+ float: left,
186
+ border-left-width: 0,
187
+ display: block,
188
+ inline-block: null
189
+ ),
190
+ last in $STYLEGUIDE_BUTTON_GROUPS_ID: (
191
+ border-radius: 0 $CONFIG_DIM_BUTTON_RADIUS $CONFIG_DIM_BUTTON_RADIUS 0
192
+ ),
193
+ // fix the inner borders in a button group in a dark context
194
+ in $STYLEGUIDE_BUTTON_GROUPS_ID in dark: (
195
+ border-right-color: $CONFIG_COLOR_BORDER_BUTTON_PRIMARY
196
+ ),
197
+ secondary in $STYLEGUIDE_BUTTON_GROUPS_ID in dark: (
198
+ border-right-color: $CONFIG_COLOR_BORDER_BUTTON_SECONDARY,
199
+ ),
200
+ spotlight in $STYLEGUIDE_BUTTON_GROUPS_ID in dark: (
201
+ border-right-color: $CONFIG_COLOR_BORDER_BUTTON_SPOTLIGHT
202
+ ),
203
+ // restore the dark border for the last one
204
+ last in $STYLEGUIDE_BUTTON_GROUPS_ID in dark: (
205
+ border-right-color: $CONFIG_COLOR_BORDER_BUTTON_DARK
206
+ ),
207
+ in $STYLEGUIDE_BUTTON_GROUPS_ID in $STYLEGUIDE_PUNCHCUTS_ID: (
208
+ inherit: in $STYLEGUIDE_BUTTON_GROUPS_ID in dark
209
+ ),
210
+ secondary in $STYLEGUIDE_BUTTON_GROUPS_ID in $STYLEGUIDE_PUNCHCUTS_ID: (
211
+ inherit: secondary in $STYLEGUIDE_BUTTON_GROUPS_ID in dark
212
+ ),
213
+ spotlight in $STYLEGUIDE_BUTTON_GROUPS_ID in $STYLEGUIDE_PUNCHCUTS_ID: (
214
+ inherit: spotlight in $STYLEGUIDE_BUTTON_GROUPS_ID in dark
215
+ ),
216
+ last in $STYLEGUIDE_BUTTON_GROUPS_ID in $STYLEGUIDE_PUNCHCUTS_ID: (
217
+ inherit: last in $STYLEGUIDE_BUTTON_GROUPS_ID in dark
218
+ ),
219
+ in $STYLEGUIDE_BUTTON_GROUPS_ID in $STYLEGUIDE_BRISTOLS_ID: (
220
+ inherit: in $STYLEGUIDE_BUTTON_GROUPS_ID in dark
221
+ ),
222
+ secondary in $STYLEGUIDE_BUTTON_GROUPS_ID in $STYLEGUIDE_BRISTOLS_ID: (
223
+ inherit: secondary in $STYLEGUIDE_BUTTON_GROUPS_ID in dark
224
+ ),
225
+ spotlight in $STYLEGUIDE_BUTTON_GROUPS_ID in $STYLEGUIDE_BRISTOLS_ID: (
226
+ inherit: spotlight in $STYLEGUIDE_BUTTON_GROUPS_ID in dark
227
+ ),
228
+ last in $STYLEGUIDE_BUTTON_GROUPS_ID in $STYLEGUIDE_BRISTOLS_ID: (
229
+ inherit: last in $STYLEGUIDE_BUTTON_GROUPS_ID in dark
230
+ ),
231
+ // need to add here for inheritance order to preserve the first button appearance
232
+ first in $STYLEGUIDE_BUTTON_GROUPS_ID: (
233
+ border-radius: ($CONFIG_DIM_BUTTON_RADIUS 0 0 $CONFIG_DIM_BUTTON_RADIUS),
234
+ // restore the left-border for the first button
235
+ border-left-width: null
236
+ ),
237
+ // SIZES
238
+ large: (
239
+ font-size: nth($CONFIG_FONT_BUTTON_LARGE, 1),
240
+ padding: _styleguideGetButtonPadding(large),
241
+ height: _styleguideGetButtonHeight(large) + (2*$CONFIG_DIM_GENERIC_BORDER),
242
+ line-height: _styleguideGetButtonHeight(large)
243
+ ),
244
+ medium: null, // inherits from default
245
+ small: (
246
+ font-size: nth($CONFIG_FONT_BUTTON_SMALL, 1),
247
+ padding: _styleguideGetButtonPadding(small),
248
+ height: _styleguideGetButtonHeight(small) + (2*$CONFIG_DIM_GENERIC_BORDER),
249
+ line-height: _styleguideGetButtonHeight(small)
250
+ ),
251
+ // narrow variants
252
+ narrow: (
253
+ padding: _styleguideGetButtonPadding(medium, narrow)
254
+ ),
255
+ narrow large: (
256
+ padding: _styleguideGetButtonPadding(large, narrow)
257
+ ),
258
+ narrow small: (
259
+ padding: _styleguideGetButtonPadding(small, narrow)
260
+ ),
261
+ indicator: (
262
+ hide-text: true,
263
+ border: 0,
264
+ color: $CONFIG_COLOR_BUTTON_INDICATOR, // Added so IE 6/7 hide the text
265
+ width: nth($CONFIG_DIM_BUTTON_INDICATOR_SMALL, 1),
266
+ height: nth-cyclic($CONFIG_DIM_BUTTON_INDICATOR_SMALL, 2),
267
+ font-size: 0,
268
+ line-height: 0,
269
+ overflow: hidden,
270
+ padding: 0, // override browser defaults,
271
+ margin: 0 horizontal-spacing(0.4, $abuse: true),
272
+ text-shadow: null,
273
+ border-radius: $CONFIG_DIM_BUTTON_INDICATOR_SMALL_RADIUS,
274
+ background-color: $CONFIG_COLOR_BUTTON_INDICATOR,
275
+ filter-gradient: null,
276
+ background-image: null,
277
+ states: (
278
+ hover: (
279
+ background-color: null,
280
+ filter-gradient: null,
281
+ background-image: null,
282
+ box-shadow: null
283
+ ),
284
+ active: (
285
+ inherit: hover
286
+ ),
287
+ disabled: (
288
+ color: null,
289
+ background-color: null,
290
+ filter-gradient: null,
291
+ background-image: null
292
+ ),
293
+ selected: (
294
+ inherit: disabled
295
+ )
296
+ )
297
+ )
298
+ )) !global;
299
+ }
@@ -0,0 +1,13 @@
1
+ // ==========
2
+ // CANVAS
3
+ // ==========
4
+ $STYLEGUIDE_CANVAS_ID: canvas !default;
5
+ $STYLEGUIDE_CANVAS: () !default;
6
+
7
+ @if should-register-component($STYLEGUIDE_CANVAS_ID) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_CANVAS_ID, $STYLEGUIDE_CANVAS, (
9
+ default: (
10
+ background: nth($CONFIG_TEXTURE_CANVAS, 1)
11
+ )
12
+ )) !global;
13
+ }
@@ -0,0 +1,292 @@
1
+ // ==========
2
+ // CARETS
3
+ // ==========
4
+ $STYLEGUIDE_CARETS_ID: caret !default;
5
+ $STYLEGUIDE_CARETS: () !default;
6
+
7
+ @if should-register-component($STYLEGUIDE_CARETS_ID) {
8
+ $a-blackhole: styleguide-add-component($STYLEGUIDE_CARETS_ID, $STYLEGUIDE_CARETS, (
9
+ default: (
10
+ inline-block: (middle, middle),
11
+ // triangle... @see triangle() mixin
12
+ height: 0,
13
+ width: 0,
14
+ font-size: 0,
15
+ line-height: 0,
16
+ border-style: dashed,
17
+ border-color: transparent,
18
+ border-top-style: solid,
19
+ border-width: _styleguideCaretSize(medium),
20
+ border-top-color: nth($CONFIG_COLOR_COPY, 1),
21
+ overflow: hidden,
22
+ content: $CONTENT_PLACEHOLDER
23
+ ),
24
+ in dark: (
25
+ border-top-color: nth-cyclic($CONFIG_COLOR_COPY, 2)
26
+ ),
27
+ in a $STYLEGUIDE_PUNCHCUTS_ID: (
28
+ inherit: in dark
29
+ ),
30
+ in a $STYLEGUIDE_BRISTOLS_ID: (
31
+ inherit: in dark
32
+ ),
33
+ in a $STYLEGUIDE_TOOLTIPS_ID: (
34
+ inherit: in dark
35
+ ),
36
+ in a $STYLEGUIDE_BUTTONS_ID: (
37
+ border-top-color: $CONFIG_COLOR_BUTTON_PRIMARY
38
+ ),
39
+ in a secondary $STYLEGUIDE_BUTTONS_ID: (
40
+ border-top-color: $CONFIG_COLOR_BUTTON_SECONDARY
41
+ ),
42
+ in a spotlight $STYLEGUIDE_BUTTONS_ID: (
43
+ border-top-color: $CONFIG_COLOR_BUTTON_SPOTLIGHT
44
+ ),
45
+ // SIZES
46
+ large: (
47
+ border-width: _styleguideCaretSize(large)
48
+ ),
49
+ small: (
50
+ border-width: _styleguideCaretSize(small)
51
+ ),
52
+ in a large $STYLEGUIDE_BUTTONS_ID: (
53
+ inherit: large
54
+ ),
55
+ in a small $STYLEGUIDE_BUTTONS_ID: (
56
+ inherit: small
57
+ ),
58
+ // upward caret
59
+ north: (
60
+ border-top-color: null,
61
+ border-top-style: null,
62
+ border-bottom-style: solid,
63
+ border-bottom-color: nth($CONFIG_COLOR_COPY, 1),
64
+ border-width: _styleguideCaretSize(medium, north)
65
+ ),
66
+ north in a $STYLEGUIDE_BUTTONS_ID: (
67
+ border-bottom-color: $CONFIG_COLOR_BUTTON_PRIMARY
68
+ ),
69
+ north in a secondary $STYLEGUIDE_BUTTONS_ID: (
70
+ border-bottom-color: $CONFIG_COLOR_BUTTON_SECONDARY
71
+ ),
72
+ north in a spotlight $STYLEGUIDE_BUTTONS_ID: (
73
+ border-bottom-color: $CONFIG_COLOR_BUTTON_SPOTLIGHT
74
+ ),
75
+ // rightward caret
76
+ east: (
77
+ border-top-color: null,
78
+ border-top-style: null,
79
+ border-left-style: solid,
80
+ border-left-color: nth($CONFIG_COLOR_COPY, 1),
81
+ border-width: _styleguideCaretSize(medium, east)
82
+ ),
83
+ east in a $STYLEGUIDE_BUTTONS_ID: (
84
+ border-left-color: $CONFIG_COLOR_BUTTON_PRIMARY
85
+ ),
86
+ east in a secondary $STYLEGUIDE_BUTTONS_ID: (
87
+ border-left-color: $CONFIG_COLOR_BUTTON_SECONDARY
88
+ ),
89
+ east in a spotlight $STYLEGUIDE_BUTTONS_ID: (
90
+ border-left-color: $CONFIG_COLOR_BUTTON_SPOTLIGHT
91
+ ),
92
+ // leftward caret
93
+ west: (
94
+ border-top-color: null,
95
+ border-top-style: null,
96
+ border-right-style: solid,
97
+ border-right-color: nth($CONFIG_COLOR_COPY, 1),
98
+ border-width: _styleguideCaretSize(medium, east)
99
+ ),
100
+ west in a $STYLEGUIDE_BUTTONS_ID: (
101
+ border-left-color: $CONFIG_COLOR_BUTTON_PRIMARY
102
+ ),
103
+ west in a secondary $STYLEGUIDE_BUTTONS_ID: (
104
+ border-left-color: $CONFIG_COLOR_BUTTON_SECONDARY
105
+ ),
106
+ west in a spotlight$STYLEGUIDE_BUTTONS_ID: (
107
+ border-left-color: $CONFIG_COLOR_BUTTON_SPOTLIGHT
108
+ ),
109
+ // SIZES
110
+ north in a large $STYLEGUIDE_BUTTONS_ID: (
111
+ border-width: _styleguideCaretSize(large, north)
112
+ ),
113
+ north in a small $STYLEGUIDE_BUTTONS_ID: (
114
+ border-width: _styleguideCaretSize(small, north)
115
+ ),
116
+ west in a large $STYLEGUIDE_BUTTONS_ID: (
117
+ border-width: _styleguideCaretSize(large, west)
118
+ ),
119
+ west in a small $STYLEGUIDE_BUTTONS_ID: (
120
+ border-width: _styleguideCaretSize(small, west)
121
+ ),
122
+ east in a large $STYLEGUIDE_BUTTONS_ID: (
123
+ border-width: _styleguideCaretSize(large, east)
124
+ ),
125
+ east in a small $STYLEGUIDE_BUTTONS_ID: (
126
+ border-width: _styleguideCaretSize(small, east)
127
+ ),
128
+ // on hovercards
129
+ on a $STYLEGUIDE_HOVERCARDS_ID: (
130
+ // remove unneeded styles
131
+ drop: all,
132
+ // real styles
133
+ position: absolute,
134
+ display: block,
135
+ width: nth($CONFIG_DIM_HOVERCARD_TIP, 1),
136
+ height: nth-cyclic($CONFIG_DIM_HOVERCARD_TIP, 2),
137
+ margin-left: -1/2*nth($CONFIG_DIM_HOVERCARD_TIP, 1),
138
+ background: (transparent image-url($CONFIG_IMG_HOVERCARD_TIP) _styleguideGetTooltipTipBG(south) no-repeat),
139
+ top: 100%,
140
+ left: 50%
141
+ ),
142
+ south-west on a $STYLEGUIDE_HOVERCARDS_ID: (
143
+ left: $CONFIG_DIM_HOVERCARD_TIP_OFFSET,
144
+ margin-left: null
145
+ ),
146
+ south-east on a $STYLEGUIDE_HOVERCARDS_ID: (
147
+ left: null,
148
+ right: $CONFIG_DIM_HOVERCARD_TIP_OFFSET,
149
+ margin-left: null
150
+ ),
151
+ north on a $STYLEGUIDE_HOVERCARDS_ID: (
152
+ background-position: _styleguideGetTooltipTipBG(north),
153
+ top: null,
154
+ bottom: 100%
155
+ ),
156
+ north-west on a $STYLEGUIDE_HOVERCARDS_ID: (
157
+ inherit: north on $STYLEGUIDE_HOVERCARDS_ID,
158
+ left: $CONFIG_DIM_HOVERCARD_TIP_OFFSET,
159
+ margin-left: null
160
+ ),
161
+ north-east on a $STYLEGUIDE_HOVERCARDS_ID: (
162
+ inherit: north on $STYLEGUIDE_HOVERCARDS_ID,
163
+ left: null,
164
+ right: $CONFIG_DIM_HOVERCARD_TIP_OFFSET,
165
+ margin-left: null
166
+ ),
167
+ east on a $STYLEGUIDE_HOVERCARDS_ID: (
168
+ width: nth-cyclic($CONFIG_DIM_HOVERCARD_TIP, 2),
169
+ height: nth($CONFIG_DIM_HOVERCARD_TIP, 1),
170
+ margin-top: -1/2*nth($CONFIG_DIM_HOVERCARD_TIP, 1),
171
+ margin-left: null,
172
+ background-position: _styleguideGetTooltipTipBG(east),
173
+ top: 50%,
174
+ left: 100%
175
+ ),
176
+ east-north on a $STYLEGUIDE_HOVERCARDS_ID: (
177
+ inherit: east on $STYLEGUIDE_HOVERCARDS_ID,
178
+ top: $CONFIG_DIM_HOVERCARD_TIP_OFFSET,
179
+ margin-top: null
180
+ ),
181
+ east-south on a $STYLEGUIDE_HOVERCARDS_ID: (
182
+ inherit: east on $STYLEGUIDE_HOVERCARDS_ID,
183
+ top: null,
184
+ bottom: $CONFIG_DIM_HOVERCARD_TIP_OFFSET,
185
+ margin-top: null
186
+ ),
187
+ west on a $STYLEGUIDE_HOVERCARDS_ID: (
188
+ width: nth-cyclic($CONFIG_DIM_HOVERCARD_TIP, 2),
189
+ height: nth($CONFIG_DIM_HOVERCARD_TIP, 1),
190
+ margin-top: -1/2*nth($CONFIG_DIM_HOVERCARD_TIP, 1),
191
+ margin-left: null,
192
+ background-position: _styleguideGetTooltipTipBG(west),
193
+ top: 50%,
194
+ right: 100%,
195
+ left: null
196
+ ),
197
+ west-north on a $STYLEGUIDE_HOVERCARDS_ID: (
198
+ inherit: west on $STYLEGUIDE_HOVERCARDS_ID,
199
+ top: $CONFIG_DIM_HOVERCARD_TIP_OFFSET,
200
+ margin-top: null
201
+ ),
202
+ west-south on $STYLEGUIDE_HOVERCARDS_ID: (
203
+ inherit: west on $STYLEGUIDE_HOVERCARDS_ID,
204
+ top: null,
205
+ bottom: $CONFIG_DIM_HOVERCARD_TIP_OFFSET,
206
+ margin-top: null
207
+ ),
208
+ // on tooltips
209
+ on a $STYLEGUIDE_TOOLTIPS_ID: (
210
+ position: absolute,
211
+ margin-left: -1*$CONFIG_DIM_TOOLTIP_TIP,
212
+ top: 100%,
213
+ left: 50%,
214
+ border-width: _styleguideCaretSize(tooltip),
215
+ border-top-color: nth($CONFIG_COLOR_BORDER_TOOLTIP, 1)
216
+ ),
217
+ south-west on a $STYLEGUIDE_TOOLTIPS_ID: (
218
+ left: $CONFIG_DIM_TOOLTIP_TIP_OFFSET,
219
+ margin-left: null
220
+ ),
221
+ south-east on a $STYLEGUIDE_TOOLTIPS_ID: (
222
+ left: null,
223
+ right: $CONFIG_DIM_TOOLTIP_TIP_OFFSET,
224
+ margin-left: null
225
+ ),
226
+ north on a $STYLEGUIDE_TOOLTIPS_ID: (
227
+ border-width: _styleguideCaretSize(tooltip, north),
228
+ border-top-color: null,
229
+ border-top-style: null,
230
+ border-bottom-style: solid,
231
+ border-bottom-color: nth($CONFIG_COLOR_BORDER_TOOLTIP, 1),
232
+ top: null,
233
+ bottom: 100%
234
+ ),
235
+ north-west on a $STYLEGUIDE_TOOLTIPS_ID: (
236
+ inherit: north on a $STYLEGUIDE_TOOLTIPS_ID,
237
+ left: $CONFIG_DIM_TOOLTIP_TIP_OFFSET,
238
+ margin-left: null
239
+ ),
240
+ north-east on a $STYLEGUIDE_TOOLTIPS_ID: (
241
+ inherit: north on a $STYLEGUIDE_TOOLTIPS_ID,
242
+ right: $CONFIG_DIM_TOOLTIP_TIP_OFFSET,
243
+ left: null,
244
+ margin-left: null
245
+ ),
246
+ east on a $STYLEGUIDE_TOOLTIPS_ID: (
247
+ border-width: _styleguideCaretSize(tooltip, east),
248
+ border-top-color: null,
249
+ border-top-style: null,
250
+ border-left-style: solid,
251
+ border-left-color: nth($CONFIG_COLOR_BORDER_TOOLTIP, 1),
252
+ margin-left: null,
253
+ margin-top: -1*$CONFIG_DIM_TOOLTIP_TIP,
254
+ top: 50%,
255
+ left: 100%
256
+ ),
257
+ east-north on a $STYLEGUIDE_TOOLTIPS_ID: (
258
+ inherit: east on a $STYLEGUIDE_TOOLTIPS_ID,
259
+ top: $CONFIG_DIM_TOOLTIP_TIP_OFFSET,
260
+ margin-top: null
261
+ ),
262
+ east-south on a $STYLEGUIDE_TOOLTIPS_ID: (
263
+ inherit: east on a $STYLEGUIDE_TOOLTIPS_ID,
264
+ top: null,
265
+ bottom: $CONFIG_DIM_TOOLTIP_TIP_OFFSET,
266
+ margin-top: null
267
+ ),
268
+ west on a $STYLEGUIDE_TOOLTIPS_ID: (
269
+ border-width: _styleguideCaretSize(tooltip, west),
270
+ border-top-color: null,
271
+ border-top-style: null,
272
+ border-right-style: solid,
273
+ border-right-color: nth($CONFIG_COLOR_BORDER_TOOLTIP, 1),
274
+ margin-left: null,
275
+ margin-top: -1*$CONFIG_DIM_TOOLTIP_TIP,
276
+ top: 50%,
277
+ right: 100%,
278
+ left: null
279
+ ),
280
+ west-north on a $STYLEGUIDE_TOOLTIPS_ID: (
281
+ inherit: west on a $STYLEGUIDE_TOOLTIPS_ID,
282
+ top: $CONFIG_DIM_TOOLTIP_TIP_OFFSET,
283
+ margin-top: null
284
+ ),
285
+ west-south on a $STYLEGUIDE_TOOLTIPS_ID: (
286
+ inherit: west on a $STYLEGUIDE_TOOLTIPS_ID,
287
+ top: null,
288
+ bottom: $CONFIG_DIM_TOOLTIP_TIP_OFFSET,
289
+ margin-top: null
290
+ )
291
+ )) !global;
292
+ }