titon-toolkit 1.5.3 → 2.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/changelog.md +180 -61
  3. data/license.md +1 -1
  4. data/readme.md +7 -7
  5. data/roadmap.md +4 -20
  6. data/scss/toolkit/_common.scss +426 -73
  7. data/scss/toolkit/{layout/base.scss → base.scss} +13 -25
  8. data/scss/toolkit/components/accordion.scss +6 -6
  9. data/scss/toolkit/components/blackout.scss +13 -11
  10. data/scss/toolkit/components/breadcrumb.scss +2 -2
  11. data/scss/toolkit/components/button-group.scss +130 -51
  12. data/scss/toolkit/components/button.scss +110 -9
  13. data/scss/toolkit/components/carousel.scss +20 -46
  14. data/scss/toolkit/{layout → components}/code.scss +1 -1
  15. data/scss/toolkit/components/divider.scss +24 -23
  16. data/scss/toolkit/components/drop.scss +35 -26
  17. data/scss/toolkit/components/flyout.scss +5 -10
  18. data/scss/toolkit/{layout → components}/form.scss +72 -65
  19. data/scss/toolkit/components/grid.scss +21 -116
  20. data/scss/toolkit/components/icon.scss +27 -13
  21. data/scss/toolkit/components/input-group.scss +4 -6
  22. data/scss/toolkit/components/input.scss +21 -21
  23. data/scss/toolkit/components/label.scss +76 -66
  24. data/scss/toolkit/components/lazy-load.scss +2 -2
  25. data/scss/toolkit/components/loader.scss +8 -8
  26. data/scss/toolkit/components/mask.scss +5 -9
  27. data/scss/toolkit/components/matrix.scss +4 -4
  28. data/scss/toolkit/components/modal.scss +33 -40
  29. data/scss/toolkit/components/notice.scss +5 -9
  30. data/scss/toolkit/components/off-canvas.scss +80 -60
  31. data/scss/toolkit/components/pagination.scss +75 -34
  32. data/scss/toolkit/components/pin.scss +7 -3
  33. data/scss/toolkit/components/popover.scss +14 -14
  34. data/scss/toolkit/components/progress.scss +25 -14
  35. data/scss/toolkit/{layout → components}/responsive.scss +31 -37
  36. data/scss/toolkit/components/showcase.scss +10 -36
  37. data/scss/toolkit/components/step.scss +7 -7
  38. data/scss/toolkit/components/switch.scss +47 -33
  39. data/scss/toolkit/components/tab.scss +42 -0
  40. data/scss/toolkit/components/table.scss +27 -25
  41. data/scss/toolkit/components/toast.scss +13 -9
  42. data/scss/toolkit/components/tooltip.scss +15 -16
  43. data/scss/toolkit/components/type-ahead.scss +6 -6
  44. data/scss/toolkit/{layout → components}/typography.scss +2 -2
  45. data/scss/toolkit/mixins/_components.scss +12 -6
  46. data/scss/toolkit/mixins/_grid.scss +5 -1
  47. data/scss/toolkit/mixins/_helper.scss +42 -3
  48. data/scss/toolkit/mixins/_layout.scss +22 -13
  49. data/scss/toolkit/mixins/_responsive.scss +39 -39
  50. data/scss/toolkit.scss +12 -18
  51. data/version.md +1 -1
  52. metadata +16 -22
  53. data/scss/toolkit/components/tabs.scss +0 -43
  54. data/scss/toolkit/effects/oval.scss +0 -37
  55. data/scss/toolkit/effects/pill.scss +0 -94
  56. data/scss/toolkit/effects/skew.scss +0 -85
  57. data/scss/toolkit/effects/visual.scss +0 -64
  58. data/scss/toolkit/mixins/_state.scss +0 -36
  59. data/scss/toolkit/themes/demo.scss +0 -569
@@ -1,13 +1,20 @@
1
+ @import "mixins/helper";
1
2
 
2
3
  //-------------------- Toolkit --------------------//
3
4
 
4
5
  $vendor-prefix: "" !default;
5
- $size-small-class: "small" !default;
6
- $size-large-class: "large" !default;
7
- $shape-round-class: "round" !default;
8
- $shape-oval-class: "oval" !default;
9
- $shape-pill-class: "pill" !default;
10
- $shape-skew-class: "skew" !default;
6
+ $size-small-class: ".small" !default;
7
+ $size-large-class: ".large" !default;
8
+ $shape-round-class: ".round" !default;
9
+ $shape-oval-class: ".oval" !default;
10
+ $shape-pill-class: ".pill" !default;
11
+ $shape-skew-class: ".skew" !default;
12
+
13
+ $enable-small-size: true !default;
14
+ $enable-large-size: true !default;
15
+ $enable-all-effects: true !default;
16
+ $enable-all-modifiers: true !default;
17
+ $enable-all-animations: true !default;
11
18
 
12
19
  //-------------------- Colors --------------------//
13
20
 
@@ -20,17 +27,17 @@ $gray-darkest: #c2c2c2 !default;
20
27
  $background-color: #fff !default;
21
28
  $foreground-color: #2d2d2d !default;
22
29
 
23
- //-------------------- Sizes --------------------//
30
+ //-------------------- Settings --------------------//
24
31
 
25
32
  $base-size: 14px !default;
26
33
  $base-line-height: 1.25em !default;
27
34
 
28
- $h1-size: 3rem !default;
29
- $h2-size: 2.5rem !default;
30
- $h3-size: 2.1rem !default;
31
- $h4-size: 1.8rem !default;
32
- $h5-size: 1.5rem !default;
33
- $h6-size: 1.2rem !default;
35
+ $default-opacity: .5 !default;
36
+ $disabled-opacity: $default-opacity !default;
37
+ $default-transition: .3s !default;
38
+
39
+ $bem-element-separator: "-" !default;
40
+ $bem-modifier-separator: "--" !default;
34
41
 
35
42
  //-------------------- Spacing --------------------//
36
43
 
@@ -82,36 +89,6 @@ $skew-y: 3rem !default;
82
89
  $skew: $skew-x $skew-y;
83
90
  $skew-reverse: $skew-y $skew-x;
84
91
 
85
- //-------------------- Opacity --------------------//
86
-
87
- $default-opacity: .5 !default;
88
- $disabled-opacity: $default-opacity !default;
89
- $blackout-opacity: .85 !default;
90
- $carousel-opacity: $default-opacity !default;
91
- $mask-opacity: .85 !default;
92
- $showcase-opacity: $default-opacity !default;
93
-
94
- //-------------------- Transitions --------------------//
95
-
96
- $default-transition: .3s !default;
97
- $accordion-transition: $default-transition !default;
98
- $blackout-transition: $default-transition !default;
99
- $carousel-transition: 1s !default;
100
- $drop-transition: $default-transition !default;
101
- $flyout-transition: $default-transition !default;
102
- $lazyLoad-transition: $default-transition !default;
103
- $mask-transition: $default-transition !default;
104
- $matrix-transition: $default-transition !default;
105
- $modal-transition: $default-transition !default;
106
- $offCanvas-transition: .5s !default;
107
- $pin-transition: .2s !default;
108
- $progress-transition: .5s !default;
109
- $showcase-transition: $default-transition !default;
110
- $switch-transition: $default-transition !default;
111
- $toast-transition: $default-transition !default;
112
- $tooltip-transition: .15s !default;
113
- $typeAhead-transition: $default-transition !default;
114
-
115
92
  //-------------------- Z Index --------------------//
116
93
 
117
94
  // 1) Modal and Showcase should be higher than Blackout
@@ -130,38 +107,225 @@ $toast-zindex: 500 !default;
130
107
  $tooltip-zindex: 700 !default;
131
108
  $typeAhead-zindex: 500 !default;
132
109
 
133
- //-------------------- Responsive --------------------//
110
+ //-------------------- Breakpoints --------------------//
134
111
 
135
- $responsive-design: "mobile" !default; // mobile, desktop
136
- $responsive-size: "both" !default; // device, size, both
112
+ $breakpoint-range-xsmall: (null, 640px) !default;
113
+ $breakpoint-range-small: (641px, 960px) !default;
114
+ $breakpoint-range-medium: (961px, 1280px) !default;
115
+ $breakpoint-range-large: (1281px, 1680px) !default;
116
+ $breakpoint-range-xlarge: (1681px, null) !default;
117
+
118
+ //-------------------- Accordion --------------------//
119
+
120
+ $accordion-class: class-name("accordion") !default;
121
+ $accordion-class-header: bem($accordion-class, "header") !default;
122
+ $accordion-class-section: bem($accordion-class, "section") !default;
123
+ $accordion-class-body: bem($accordion-class, "body") !default;
124
+
125
+ $accordion-transition: $default-transition !default;
126
+
127
+ //-------------------- Blackout --------------------//
128
+
129
+ $blackout-class: class-name("blackout") !default;
130
+
131
+ $blackout-transition: $default-transition !default;
132
+ $blackout-opacity: .85 !default;
133
+
134
+ //-------------------- Breadcrumb --------------------//
135
+
136
+ $breadcrumb-class: class-name("breadcrumb") !default;
137
+
138
+ //-------------------- Button --------------------//
139
+
140
+ $button-class: class-name("button") !default;
141
+ $button-class-modifier-gloss: bem($button-class, "", "gloss") !default;
142
+ $button-class-modifier-reflect: bem($button-class, "", "reflect") !default;
143
+ $button-class-modifier-glare: bem($button-class, "", "glare") !default;
144
+ $button-class-modifier-popout: bem($button-class, "", "popout") !default;
145
+
146
+ $button-modifiers: () !default; // Nothing by default
147
+
148
+ @if ($enable-all-modifiers) {
149
+ $button-modifiers: ("glare", "reflect", "gloss", "popout") !global;
150
+ }
151
+
152
+ $button-effects: () !default; // Nothing by default
153
+
154
+ @if ($enable-all-effects) {
155
+ $button-effects: ("oval", "pill", "skew") !global;
156
+ }
157
+
158
+ //-------------------- Button Group --------------------//
159
+
160
+ $buttonGroup-class: class-name("button-group") !default;
161
+ $buttonGroup-class-modifier-vertical: bem($buttonGroup-class, "", "vertical") !default;
162
+ $buttonGroup-class-modifier-justified: bem($buttonGroup-class, "", "justified") !default;
163
+
164
+ $buttonGroup-modifiers: ("vertical", "justified") !default;
165
+
166
+ @if ($enable-all-modifiers) {
167
+ $buttonGroup-modifiers: ("vertical", "justified") !global;
168
+ }
169
+
170
+ $buttonGroup-effects: () !default; // Nothing by default
171
+
172
+ @if ($enable-all-effects) {
173
+ $buttonGroup-effects: ("pill", "skew") !global;
174
+ }
175
+
176
+ //-------------------- Carousel --------------------//
177
+
178
+ $carousel-class: class-name("carousel") !default;
179
+ $carousel-class-items: bem($carousel-class, "items") !default;
180
+ $carousel-class-tabs: bem($carousel-class, "tabs") !default;
181
+ $carousel-class-next: bem($carousel-class, "next") !default;
182
+ $carousel-class-prev: bem($carousel-class, "prev") !default;
183
+ $carousel-class-modifier-wide: bem($carousel-class, "", "wide") !default;
184
+ $carousel-class-modifier-square: bem($carousel-class, "", "square") !default;
185
+
186
+ $carousel-modifiers: ("wide", "square") !default;
187
+
188
+ @if ($enable-all-modifiers) {
189
+ $carousel-modifiers: ("wide", "square") !global;
190
+ }
191
+
192
+ $carousel-opacity: $default-opacity !default;
193
+ $carousel-transition: 1s !default;
194
+
195
+ //-------------------- Divider --------------------//
196
+
197
+ $divider-class: class-name("divider") !default;
198
+
199
+ //-------------------- Drop --------------------//
137
200
 
138
- $breakpoint-desktop: 1440px !default;
139
- $breakpoint-laptop: 1280px !default;
140
- $breakpoint-tablet-landscape: 1024px !default;
141
- $breakpoint-tablet-portrait: 768px !default;
142
- $breakpoint-mobile-landscape: 480px !default;
143
- $breakpoint-mobile-portrait: 320px !default;
201
+ $drop-class: class-name("drop") !default;
202
+ $drop-class-divider: bem($drop-class, "divider") !default;
203
+ $drop-class-heading: bem($drop-class, "heading") !default;
204
+ $drop-class-modifier-down: bem($drop-class, "", "down") !default;
205
+ $drop-class-modifier-up: bem($drop-class, "", "up") !default;
206
+ $drop-class-modifier-left: bem($drop-class, "", "left") !default;
207
+ $drop-class-modifier-right: bem($drop-class, "", "right") !default;
144
208
 
145
- $breakpoint-small: 768px !default;
146
- $breakpoint-medium: 1280px !default;
147
- $breakpoint-large: 1440px !default;
209
+ $drop-modifiers: ("down", "up", "left", "right") !default;
210
+
211
+ @if ($enable-all-modifiers) {
212
+ $drop-modifiers: ("down", "up", "left", "right") !global;
213
+ }
214
+
215
+ $drop-transition: $default-transition !default;
216
+
217
+ //-------------------- Flyout --------------------//
218
+
219
+ $flyout-class: class-name("flyout") !default;
220
+ $flyout-class-heading: bem($flyout-class, "heading") !default;
221
+
222
+ $flyout-transition: $default-transition !default;
223
+
224
+ //-------------------- Form --------------------//
225
+
226
+ $form-class: class-name("form") !default;
227
+ $form-class-actions: bem($form-class, "actions") !default;
228
+ $form-class-input: class-name("input") !default;
229
+ $form-class-input-static: bem($form-class-input, "static") !default;
230
+ $form-class-input-radio: bem($form-class-input, "radio") !default;
231
+ $form-class-input-checkbox: bem($form-class-input, "checkbox") !default;
232
+ $form-class-fields: class-name("fields") !default;
233
+ $form-class-field: class-name("field") !default;
234
+ $form-class-field-help: bem($form-class-field, "help") !default;
235
+ $form-class-field-label: bem($form-class-field, "label") !default;
236
+ $form-class-field-column: bem($form-class-field, "col") !default;
237
+ $form-class-modifier-inline: bem($form-class, "", "inline") !default;
238
+ $form-class-modifier-horizontal: bem($form-class, "", "horizontal") !default;
239
+
240
+ $form-modifiers: ("inline", "horizontal") !default;
241
+
242
+ @if ($enable-all-modifiers) {
243
+ $form-modifiers: ("inline", "horizontal") !global;
244
+ }
148
245
 
149
246
  //-------------------- Grid --------------------//
150
247
 
151
- $grid-columns-large: 12 !default;
152
- $grid-columns-medium: 12 !default;
153
- $grid-columns-small: 6 !default;
248
+ $grid-class: class-name("grid") !default;
249
+ $grid-class-column: class-name("col", "") !default;
250
+ $grid-class-end: class-name("end", "") !default;
154
251
 
155
- $grid-columns-desktop: 12 !default;
156
- $grid-columns-tablet: 6 !default;
157
- $grid-columns-mobile: 3 !default;
252
+ $grid-columns-xsmall: 6 !default;
253
+ $grid-columns-small: 12 !default;
254
+ $grid-columns-medium: 12 !default;
255
+ $grid-columns-large: 12 !default;
256
+ $grid-columns-xlarge: 18 !default;
158
257
 
159
258
  $grid-width: 100% !default;
160
259
  $grid-gutter: false !default;
161
260
  $grid-push-pull: true !default;
162
261
 
262
+ $grid-sizes: (
263
+ xsmall: ($grid-columns-xsmall, $breakpoint-range-xsmall),
264
+ small: ($grid-columns-small, $breakpoint-range-small),
265
+ medium: ($grid-columns-medium, $breakpoint-range-medium),
266
+ // Remove the max as we have no xlarge size and want the large value to be open ended
267
+ large: ($grid-columns-large, (nth($breakpoint-range-large, 1), null)),
268
+ ) !default;
269
+
270
+ //-------------------- Icon --------------------//
271
+
272
+ $icon-class: class-name("icon", "") !default;
273
+ $icon-class-modifier-90deg: bem($icon-class, "", "90deg") !default;
274
+ $icon-class-modifier-180deg: bem($icon-class, "", "180deg") !default;
275
+ $icon-class-modifier-270deg: bem($icon-class, "", "270deg") !default;
276
+ $icon-class-modifier-flip: bem($icon-class, "", "flip") !default;
277
+ $icon-class-modifier-flip-vert: bem($icon-class, "", "flip-vert") !default;
278
+
279
+ $icon-sizes: (12, 16, 24, 32, 64) !default;
280
+
281
+ $icon-modifiers: ("90deg", "180deg", "270deg", "flip", "flip-vert") !default;
282
+
283
+ @if ($enable-all-modifiers) {
284
+ $icon-modifiers: ("90deg", "180deg", "270deg", "flip", "flip-vert") !global;
285
+ }
286
+
287
+ //-------------------- Input --------------------//
288
+
289
+ $input-class: class-name("custom-input") !default;
290
+ $input-class-checkbox: class-name("checkbox") !default;
291
+ $input-class-radio: class-name("radio") !default;
292
+ $input-class-select: class-name("select") !default;
293
+ $input-class-select-label: bem($input-class-select, "label") !default;
294
+ $input-class-select-arrow: bem($input-class-select, "arrow") !default;
295
+ $input-class-select-options: bem($input-class-select, "options") !default;
296
+
297
+ //-------------------- Input Group --------------------//
298
+
299
+ $inputGroup-class: class-name("input-group") !default;
300
+ $inputGroup-class-addon: class-name("input-addon") !default;
301
+
302
+ //-------------------- Label --------------------//
303
+
304
+ $label-class: class-name("label") !default;
305
+ $label-class-modifier-badge: bem($label-class, "", "badge") !default;
306
+ $label-class-modifier-ribbon-left: bem($label-class, "", "ribbon-left") !default;
307
+ $label-class-modifier-ribbon-right: bem($label-class, "", "ribbon-right") !default;
308
+ $label-class-modifier-arrow-left: bem($label-class, "", "arrow-left") !default;
309
+ $label-class-modifier-arrow-right: bem($label-class, "", "arrow-right") !default;
310
+
311
+ $label-modifiers: ("badge", "ribbon-left", "ribbon-right", "arrow-left", "arrow-right") !default;
312
+
313
+ @if ($enable-all-modifiers) {
314
+ $label-modifiers: ("badge", "ribbon-left", "ribbon-right", "arrow-left", "arrow-right") !global;
315
+ }
316
+
317
+ //-------------------- Lazy Load --------------------//
318
+
319
+ $lazyLoad-class: class-name("lazy-load") !default;
320
+
321
+ $lazyLoad-transition: $default-transition !default;
322
+
163
323
  //-------------------- Loader --------------------//
164
324
 
325
+ $loader-class: class-name("loader") !default;
326
+ $loader-class-message: bem($loader-class, "message") !default;
327
+ $loader-class-spinner: bem($loader-class, "spinner") !default;
328
+
165
329
  $loader-type: "all" !default;
166
330
  $loader-color: #000 !default;
167
331
  $loader-wave-count: 5 !default;
@@ -169,39 +333,228 @@ $loader-bar-width: 0.65rem !default;
169
333
  $loader-bar-height: 2.5rem !default;
170
334
  $loader-bubble-size: 1.5rem !default;
171
335
 
336
+ //-------------------- Mask --------------------//
337
+
338
+ $mask-class: class-name("mask") !default;
339
+ $mask-class-message: bem($mask-class, "message") !default;
340
+ $mask-class-target: ".is-maskable" !default;
341
+
342
+ $mask-opacity: .85 !default;
343
+ $mask-transition: $default-transition !default;
344
+
345
+ //-------------------- Matrix --------------------//
346
+
347
+ $matrix-class: class-name("matrix") !default;
348
+
349
+ $matrix-transition: $default-transition !default;
350
+
172
351
  //-------------------- Modal --------------------//
173
352
 
174
- $modal-animation: ("fade", "from-above", "from-below", "slide-in-top", "slide-in-right", "slide-in-bottom", "slide-in-left") !default;
175
- $modal-mobile-breakpoint: 640px !default; // iOS5
353
+ $modal-class: class-name("modal") !default;
354
+ $modal-class-close: bem($modal-class, "close") !default;
355
+ $modal-class-outer: bem($modal-class, "outer") !default;
356
+ $modal-class-inner: bem($modal-class, "inner") !default;
357
+ $modal-class-head: bem($modal-class, "head") !default;
358
+ $modal-class-body: bem($modal-class, "body") !default;
359
+ $modal-class-foot: bem($modal-class, "foot") !default;
360
+
361
+ $modal-animations: ("fade", "from-above", "from-below", "slide-in-top", "slide-in-right", "slide-in-bottom", "slide-in-left") !default;
362
+
363
+ @if ($enable-all-animations) {
364
+ $modal-animations: ("fade", "from-above", "from-below", "slide-in-top", "slide-in-right", "slide-in-bottom", "slide-in-left") !global;
365
+ }
366
+
367
+ $modal-mobile-breakpoint: nth($breakpoint-range-xsmall, 2) !default; // iOS5
368
+ $modal-transition: $default-transition !default;
369
+
370
+ //-------------------- Notice --------------------//
371
+
372
+ $notice-class: class-name("notice") !default;
373
+ $notice-class-close: bem($notice-class, "close") !default;
374
+ $notice-class-title: bem($notice-class, "title") !default;
176
375
 
177
376
  //-------------------- Off Canvas --------------------//
178
377
 
378
+ $offCanvas-class: class-name("off-canvas") !default;
379
+ $offCanvas-class-content: class-name("on-canvas") !default;
380
+ $offCanvas-class-wrapper: class-name("canvas") !default;
381
+ $offCanvas-class-modifier-left: bem($offCanvas-class, "", "left") !default;
382
+ $offCanvas-class-modifier-right: bem($offCanvas-class, "", "right") !default;
383
+
384
+ $offCanvas-animations: ("push", "push-reveal", "push-down", "reverse-push", "reveal", "on-top", "squish") !default;
385
+
386
+ @if ($enable-all-animations) {
387
+ $offCanvas-animations: ("push", "push-reveal", "push-down", "reverse-push", "reveal", "on-top", "squish") !global;
388
+ }
389
+
179
390
  $offCanvas-left-width: 20% !default;
180
391
  $offCanvas-right-width: 20% !default;
181
392
  $offCanvas-left-width-mobile: 90% !default;
182
393
  $offCanvas-right-width-mobile: 90% !default;
183
- $offCanvas-mobile-breakpoint: 640px !default; // iOS5
394
+ $offCanvas-mobile-breakpoint: nth($breakpoint-range-xsmall, 2) !default; // iOS5
395
+ $offCanvas-transition: .5s !default;
184
396
 
185
- //-------------------- Toast --------------------//
397
+ //-------------------- Pagination --------------------//
186
398
 
187
- $toast-animation: ("fade", "slide-up", "slide-down", "slide-left", "slide-right") !default;
188
- $toast-position: (
189
- "top-left", "top-center", "top-right", "center-left",
190
- "center-right", "bottom-left", "bottom-center", "bottom-right"
191
- ) !default;
399
+ $pagination-class: class-name("pagination") !default;
400
+ $pagination-class-modifier-grouped: bem($pagination-class, "", "grouped") !default;
401
+
402
+ $pagination-modifiers: ("grouped") !default;
403
+
404
+ @if ($enable-all-modifiers) {
405
+ $pagination-modifiers: ("grouped") !global;
406
+ }
407
+
408
+ $pagination-effects: () !default; // Nothing by default
409
+
410
+ @if ($enable-all-effects) {
411
+ $pagination-effects: ("oval", "pill", "skew") !global;
412
+ }
413
+
414
+ //-------------------- Pin --------------------//
192
415
 
193
- //-------------------- Popover, Tooltip --------------------//
416
+ $pin-class: class-name("pin") !default;
417
+
418
+ $pin-transition: .2s !default;
419
+
420
+ //-------------------- Popover --------------------//
421
+
422
+ $popover-class: class-name("popover") !default;
423
+ $popover-class-head: bem($popover-class, "head") !default;
424
+ $popover-class-body: bem($popover-class, "body") !default;
425
+ $popover-class-arrow: bem($popover-class, "arrow") !default;
194
426
 
195
427
  $popover-tooltip-animation: ("fade", "from-above", "from-below", "flip-rotate") !default;
428
+
429
+ @if ($enable-all-animations) {
430
+ $popover-tooltip-animation: ("fade", "from-above", "from-below", "flip-rotate") !global;
431
+ }
432
+
196
433
  $popover-arrow-width: 8 !default;
434
+
435
+ //-------------------- Progress --------------------//
436
+
437
+ $progress-class: class-name("progress") !default;
438
+ $progress-class-bar: bem($progress-class, "bar") !default;
439
+
440
+ $progress-transition: .5s !default;
441
+
442
+ $progress-effects: ("pill") !default;
443
+
444
+ @if ($enable-all-effects) {
445
+ $progress-effects: ("pill") !global;
446
+ }
447
+
448
+ //-------------------- Responsive --------------------//
449
+
450
+ $responsive-design: "mobile" !default; // mobile, desktop
451
+
452
+ //-------------------- Showcase --------------------//
453
+
454
+ $showcase-class: class-name("showcase") !default;
455
+ $showcase-class-inner: bem($showcase-class, "inner") !default;
456
+ $showcase-class-items: bem($showcase-class, "items") !default;
457
+ $showcase-class-close: bem($showcase-class, "close") !default;
458
+ $showcase-class-next: bem($showcase-class, "next") !default;
459
+ $showcase-class-prev: bem($showcase-class, "prev") !default;
460
+ $showcase-class-tabs: bem($showcase-class, "tabs") !default;
461
+ $showcase-class-caption: bem($showcase-class, "caption") !default;
462
+
463
+ $showcase-opacity: $default-opacity !default;
464
+ $showcase-transition: $default-transition !default;
465
+
466
+ //-------------------- Step --------------------//
467
+
468
+ $step-class: class-name("step") !default;
469
+ $step-class-wrapper: class-name("steps") !default;
470
+
471
+ //-------------------- Switch --------------------//
472
+
473
+ $switch-class: class-name("switch") !default;
474
+ $switch-class-bar: bem($switch-class, "bar") !default;
475
+ $switch-class-toggle: bem($switch-class, "toggle") !default;
476
+ $switch-class-modifier-stacked: bem($switch-class, "", "stacked") !default;
477
+
478
+ $switch-modifiers: ("stacked") !default;
479
+
480
+ @if ($enable-all-modifiers) {
481
+ $switch-modifiers: ("stacked") !global;
482
+ }
483
+
484
+ $switch-effects: ("pill") !default;
485
+
486
+ @if ($enable-all-effects) {
487
+ $switch-effects: ("pill") !global;
488
+ }
489
+
490
+ $switch-transition: $default-transition !default;
491
+
492
+ //-------------------- Tab --------------------//
493
+
494
+ $tab-class: class-name("tabs") !default;
495
+ $tab-class-nav: bem(class-name("tab"), "nav") !default;
496
+ $tab-class-section: bem(class-name("tab"), "section") !default;
497
+ $tab-class-modifier-horizontal: bem($tab-class, "", "horizontal") !default;
498
+
499
+ $tab-modifiers: ("horizontal") !default;
500
+
501
+ @if ($enable-all-modifiers) {
502
+ $tab-modifiers: ("horizontal") !global;
503
+ }
504
+
505
+ //-------------------- Table --------------------//
506
+
507
+ $table-class: class-name("table") !default;
508
+ $table-class-divider: bem($table-class, "divider") !default;
509
+ $table-class-responsive: bem($table-class, "responsive") !default;
510
+
511
+ //-------------------- Toast --------------------//
512
+
513
+ $toast-class: class-name("toast") !default;
514
+ $toast-class-wrapper: class-name("toasts") !default;
515
+
516
+ $toast-animations: ("fade", "slide-up", "slide-down", "slide-left", "slide-right") !default;
517
+
518
+ @if ($enable-all-animations) {
519
+ $toast-animations: ("fade", "slide-up", "slide-down", "slide-left", "slide-right") !global;
520
+ }
521
+
522
+ $toast-position: ("top-left", "top-center", "top-right", "center-left", "center-right", "bottom-left", "bottom-center", "bottom-right") !default;
523
+ $toast-transition: $default-transition !default;
524
+
525
+ //-------------------- Tooltip --------------------//
526
+
527
+ $tooltip-class: class-name("tooltip") !default;
528
+ $tooltip-class-head: bem($tooltip-class, "head") !default;
529
+ $tooltip-class-body: bem($tooltip-class, "body") !default;
530
+ $tooltip-class-arrow: bem($tooltip-class, "arrow") !default;
531
+
197
532
  $tooltip-arrow-width: 6 !default;
533
+ $tooltip-transition: .15s !default;
534
+
535
+ //-------------------- Type Ahead --------------------//
536
+
537
+ $typeAhead-class: class-name("type-ahead") !default;
538
+ $typeAhead-class-heading: bem($typeAhead-class, "heading") !default;
539
+ $typeAhead-class-highlight: bem($typeAhead-class, "highlight") !default;
540
+ $typeAhead-class-description: bem($typeAhead-class, "desc") !default;
541
+ $typeAhead-class-shadow: bem($typeAhead-class, "shadow") !default;
542
+
543
+ $typeAhead-transition: $default-transition !default;
544
+
545
+ //-------------------- Typography --------------------//
546
+
547
+ $h1-size: 3rem !default;
548
+ $h2-size: 2.5rem !default;
549
+ $h3-size: 2.1rem !default;
550
+ $h4-size: 1.8rem !default;
551
+ $h5-size: 1.5rem !default;
552
+ $h6-size: 1.2rem !default;
198
553
 
199
554
  //-------------------- Imports --------------------//
200
555
 
201
- @import "mixins/helper";
202
556
  @import "mixins/unit";
203
557
  @import "mixins/layout";
204
- @import "mixins/state";
205
558
  @import "mixins/grid";
206
559
  @import "mixins/responsive";
207
560
  @import "mixins/components";
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
7
- @import "../common";
7
+ @import "common";
8
8
 
9
9
  // Use border-box for everything
10
- *, *:after, *:before { box-sizing: border-box; }
10
+ *, *::after, *::before { box-sizing: border-box; }
11
11
 
12
12
  // Alignment
13
13
  .align-left { text-align: left; }
@@ -61,7 +61,7 @@
61
61
  .clear-fix { @include clear-fix; }
62
62
 
63
63
  // Styles
64
- .#{$shape-round-class} { border-radius: $round; }
64
+ #{$shape-round-class} { border-radius: $round; }
65
65
  .is-draggable { cursor: move; }
66
66
  .is-dragging { cursor: grabbing; }
67
67
  .is-disabled,
@@ -84,32 +84,15 @@
84
84
  .caret-left { border-right-color: inherit; }
85
85
  .caret-right { border-left-color: inherit; }
86
86
 
87
- // Arrows, Characters
88
- .x,
89
- .arrow-up,
90
- .arrow-down,
91
- .arrow-left,
92
- .arrow-right {
87
+ //, Characters
88
+ .x {
93
89
  @include reset-inline-block;
94
90
  font: bold 1.5rem/1rem Arial, sans-serif;
95
91
  text-transform: uppercase;
96
- }
97
-
98
- .x:before { content: "\00D7"; /* times */ }
99
92
 
100
- .arrow-up:before,
101
- .arrow-left:before,
102
- .arrow-down:before,
103
- .arrow-right:before {
104
- display: inline-block;
105
- position: relative;
106
- content: "\025B4"; /* blacktriangle */
93
+ &::before { content: "\00D7"; /* times */ }
107
94
  }
108
95
 
109
- .arrow-right:before { transform: rotate(90deg); }
110
- .arrow-left:before { transform: rotate(-90deg); }
111
- .arrow-down:before { transform: rotate(180deg); }
112
-
113
96
  // Bullets
114
97
  .bullets {
115
98
  @include reset-list();
@@ -130,7 +113,7 @@
130
113
  background: black(0);
131
114
 
132
115
  &:hover { opacity: 1; border-width: 2px; }
133
- @include is-active { background: #fff; }
116
+ &.is-active { background: #fff; }
134
117
  }
135
118
 
136
119
  &:empty { display: none; }
@@ -149,4 +132,9 @@
149
132
 
150
133
  &.desc .caret-up,
151
134
  &.asc .caret-down { opacity: 1; }
135
+ }
136
+
137
+ // Sizes
138
+ @for $i from 1 through 12 {
139
+ .span-#{$i} { width: grid-span($i, 12); }
152
140
  }
@@ -1,26 +1,26 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
7
7
  @import "../common";
8
8
 
9
- .#{$vendor-prefix}accordion {
9
+ #{$accordion-class} {
10
10
  @include reset-list;
11
11
  }
12
12
 
13
- .#{$vendor-prefix}accordion-header {
13
+ #{$accordion-class-header} {
14
14
  padding: $padding;
15
15
  cursor: pointer;
16
16
  }
17
17
 
18
- .#{$vendor-prefix}accordion-body {
18
+ #{$accordion-class-body} {
19
19
  padding: $padding;
20
20
  }
21
21
 
22
- // Handle is used for animations, do not style it!
23
- .#{$vendor-prefix}accordion-section {
22
+ // Section is used for animations, do not style it!
23
+ #{$accordion-class-section} {
24
24
  overflow: hidden;
25
25
  position: relative;
26
26
  transition: all $accordion-transition ease-in-out;