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,569 +0,0 @@
1
- /**
2
- * @copyright 2010-2014, The Titon Project
3
- * @license http://opensource.org/licenses/BSD-3-Clause
4
- * @link http://titon.io
5
- */
6
-
7
- @import "../common";
8
-
9
- html {
10
- font: normal 16px/1.75rem "Helvetica Neue", Helvetica, Arial, sans-serif;
11
- }
12
-
13
- body {
14
- background: $background-color;
15
- color: $foreground-color;
16
- }
17
-
18
- //-------------------- Layout --------------------//
19
-
20
- a {
21
- color: darken($info, 15%);
22
- text-decoration: none;
23
-
24
- &:hover { color: $info-dark; }
25
- }
26
-
27
- blockquote cite { color: $default; }
28
-
29
- //code { background: $info-light; color: $info-dark; }
30
- //var { background: $error-light; color: $error-dark; }
31
- mark { background: lighten($warning-light, 25%); }
32
-
33
- //-------------------- Accordion --------------------//
34
-
35
- .accordion-header {
36
- background: $gray;
37
- border: 1px solid $gray-dark;
38
- margin: -1px;
39
- transition: all .15s;
40
-
41
- &:hover { background-color: $gray-light; }
42
-
43
- .is-active & {
44
- background: $info;
45
- border-color: $info-dark;
46
- color: #fff;
47
-
48
- &:hover { background-color: lighten($info, 5%); }
49
- }
50
- }
51
-
52
- //-------------------- Breadcrumbs --------------------//
53
-
54
- .breadcrumb {
55
- border: 1px solid $gray-dark;
56
- background: $gray;
57
-
58
- ul, ol {
59
- .caret { color: $gray-darkest; }
60
- }
61
- }
62
-
63
- //-------------------- Button --------------------//
64
-
65
- @mixin button-style($base, $light, $dark) {
66
- background: darken($base, 5%);
67
- border: 1px solid darken($base, 12%);
68
-
69
- &:hover {
70
- color: #fff;
71
- background-color: lighten($base, 5%);
72
- }
73
-
74
- @include is-active {
75
- color: #fff;
76
- background-color: darken($base, 20%);
77
- text-shadow: 1px 1px $dark;
78
- border-color: darken($base, 30%);
79
- }
80
-
81
- @include is-disabled {
82
- background: $base;
83
- border-color: $base;
84
- }
85
-
86
- @content;
87
- }
88
-
89
- .button {
90
- color: #fff;
91
- background: $gray;
92
- font-weight: bold;
93
- text-shadow: 1px 1px black(.2);
94
- transition: color .2s, border .2s, background .2s;
95
- @include button-style($default, $default-light, $default-dark);
96
-
97
- &:active {
98
- top: 1px;
99
- }
100
-
101
- @include is-disabled {
102
- box-shadow: none;
103
- text-shadow: none;
104
- top: 0;
105
- opacity: $disabled-opacity;
106
- }
107
-
108
- &.is-info { @include button-style($info, $info-light, $info-dark); }
109
- &.is-error { @include button-style($error, $error-light, $error-dark); }
110
- &.is-warning { @include button-style($warning, $warning-light, $warning-dark); }
111
- &.is-success { @include button-style($success, $success-light, $success-dark); }
112
- }
113
-
114
- //-------------------- Carousel, Showcase --------------------//
115
-
116
- .carousel-prev,
117
- .carousel-next,
118
- .showcase-prev,
119
- .showcase-next {
120
- opacity: $carousel-opacity;
121
-
122
- .arrow-left,
123
- .arrow-right {
124
- color: #fff;
125
- font-size: 2rem;
126
- }
127
-
128
- &:hover { opacity: 1; }
129
- }
130
-
131
- .showcase-close {
132
- opacity: $showcase-opacity;
133
-
134
- .x { color: #fff; }
135
-
136
- &:hover { opacity: 1; }
137
- }
138
-
139
- .carousel-caption {
140
- position: absolute;
141
- bottom: 0;
142
- left: 0;
143
- width: 100%;
144
- padding: $padding;
145
- color: #fff;
146
- background: black(.7);
147
-
148
- @include in-small {
149
- @include size-small;
150
- }
151
- }
152
-
153
- //-------------------- Drop --------------------//
154
-
155
- .drop {
156
- background: $gray;
157
- border: 1px solid $gray-dark;
158
- box-shadow: 5px 5px black(.25);
159
- padding: $small-padding;
160
-
161
- ul { padding: $small-padding; }
162
- > ul { padding: 0; }
163
-
164
- li {
165
- > a {
166
- color: darken($info, 15%);
167
-
168
- .caret-right { top: 2px; }
169
- }
170
-
171
- &:hover > a {
172
- color: darken($info, 15%);
173
- background: $info-light;
174
- }
175
-
176
- &.is-active > a {
177
- color: #fff;
178
- background: $info;
179
-
180
- .drop-desc { color: #fff; }
181
- .caret-right { border-left-color: #fff; }
182
- }
183
-
184
- &:nth-child(odd) {
185
- background: $gray-lightest;
186
- }
187
- }
188
- }
189
-
190
- .drop-heading {
191
- color: $default;
192
- font-size: .8rem;
193
- background-color: $gray-dark !important;
194
- }
195
-
196
- .drop--up {
197
- box-shadow: 5px -5px black(.25);
198
- }
199
-
200
- .drop--left {
201
- box-shadow: -5px 5px black(.25);
202
- }
203
-
204
- .drop-desc {
205
- display: block;
206
- color: $gray-darkest;
207
- font-size: .7rem;
208
- }
209
-
210
- //-------------------- Flyout, TypeAhead --------------------//
211
-
212
- .flyout,
213
- .type-ahead {
214
- background: $gray;
215
- border: 1px solid $gray-dark;
216
- box-shadow: 5px 5px black(.25);
217
- padding: $small-padding;
218
-
219
- li {
220
- &:nth-child(odd) > a { background: $gray-lightest; }
221
-
222
- > a:hover,
223
- &.is-open > a,
224
- &.is-active > a {
225
- background: $info;
226
- color: #fff;
227
-
228
- .caret-right { border-left-color: #fff; }
229
- }
230
- }
231
- }
232
-
233
- .flyout-heading,
234
- .type-ahead-heading {
235
- background: $gray-dark;
236
- }
237
-
238
- .type-ahead-highlight { background: $warning-light; }
239
-
240
- .type-ahead {
241
- li {
242
- > a:hover,
243
- &.is-active a {
244
- .type-ahead-desc { color: $gray-lightest; }
245
- .type-ahead-highlight{ background: $info-light; color: $info-dark; }
246
- }
247
- }
248
- }
249
-
250
- //-------------------- Input --------------------//
251
-
252
- .custom-input {
253
- .checkbox,
254
- .radio,
255
- .select {
256
- transition: all $default-transition;
257
- }
258
-
259
- input {
260
- &:checked + .checkbox,
261
- &:checked + .radio {
262
- box-shadow: 0 0 5px $info-light;
263
- }
264
- }
265
-
266
- select:focus + .select,
267
- .select.is-active {
268
- box-shadow: 0 0 5px $info-light;
269
- }
270
-
271
- .select.is-active {
272
- .caret-down {
273
- top: -5px;
274
- transform: rotate(-180deg);
275
- }
276
- }
277
- }
278
-
279
- /*.input-group {
280
- > .button { height: 44px; }
281
-
282
- &.small > .button { height: 30px; }
283
- &.large > .button { height: 59px; }
284
- */
285
-
286
- .input-addon {
287
- background: $gray;
288
- border: 1px solid $gray-dark;
289
- }
290
-
291
- //-------------------- Label --------------------//
292
-
293
- @mixin label-style($bg, $text) {
294
- background: $bg;
295
- color: $text;
296
-
297
- @content;
298
- }
299
-
300
- .label,
301
- .label--badge {
302
- @include label-style($default-light, $default-dark);
303
-
304
- &.is-info { @include label-style($info-light, $info-dark); }
305
- &.is-error { @include label-style($error-light, $error-dark); }
306
- &.is-warning { @include label-style($warning-light, $warning-dark); }
307
- &.is-success { @include label-style($success-light, $success-dark); }
308
- }
309
-
310
- .label--arrow-left {
311
- @extend .label;
312
-
313
- &:after { border-right-color: $default-light; }
314
- &.is-info:after { border-right-color: $info-light; }
315
- &.is-error:after { border-right-color: $error-light; }
316
- &.is-warning:after { border-right-color: $warning-light; }
317
- &.is-success:after { border-right-color: $success-light; }
318
- }
319
-
320
- .label--arrow-right {
321
- @extend .label;
322
-
323
- &:after { border-left-color: $default-light; }
324
- &.is-info:after { border-left-color: $info-light; }
325
- &.is-error:after { border-left-color: $error-light; }
326
- &.is-warning:after { border-left-color: $warning-light; }
327
- &.is-success:after { border-left-color: $success-light; }
328
- }
329
-
330
- .label--ribbon-left {
331
- @extend .label;
332
-
333
- &:after { border-right-color: darken($default, 15%); }
334
- &.is-info:after { border-right-color: darken($info-light, 15%); }
335
- &.is-error:after { border-right-color: darken($error-light, 15%); }
336
- &.is-warning:after { border-right-color: darken($warning-light, 15%); }
337
- &.is-success:after { border-right-color: darken($success-light, 15%); }
338
- }
339
-
340
- .label--ribbon-right {
341
- @extend .label;
342
-
343
- &:after { border-left-color: darken($default, 15%); }
344
- &.is-info:after { border-left-color: darken($info-light, 15%); }
345
- &.is-error:after { border-left-color: darken($error-light, 15%); }
346
- &.is-warning:after { border-left-color: darken($warning-light, 15%); }
347
- &.is-success:after { border-left-color: darken($success-light, 15%); }
348
- }
349
-
350
- //-------------------- Modal --------------------//
351
-
352
- .modal-inner {
353
- background: $gray;
354
- border: 1px solid $gray-dark;
355
- box-shadow: 5px 5px black(.25);
356
- }
357
-
358
- .modal-head {
359
- background: $gray-lightest;
360
- }
361
-
362
- .modal-body {
363
- background: #fff;
364
- border-top: 1px solid $gray-dark;
365
- border-bottom: 1px solid $gray-dark;
366
- }
367
-
368
- .modal-foot {
369
- text-align: center;
370
- }
371
-
372
- //-------------------- Notice --------------------//
373
-
374
- @mixin notice-style($bg, $text) {
375
- color: $text;
376
- background: lighten($bg, 5%);
377
- border: 1px solid $bg;
378
-
379
- hr { border-color: darken($bg, 10%); }
380
-
381
- a { color: darken($text, 10%); }
382
- a:hover { color: lighten($text, 25%); }
383
-
384
- @content;
385
- }
386
-
387
- .notice {
388
- @include notice-style($default-light, $default-dark);
389
-
390
- &.is-info { @include notice-style($info-light, $info-dark); }
391
- &.is-error { @include notice-style($error-light, $error-dark); }
392
- &.is-warning { @include notice-style($warning-light, $warning-dark); }
393
- &.is-success { @include notice-style($success-light, $success-dark); }
394
- }
395
-
396
- //-------------------- Popover --------------------//
397
-
398
- .popover {
399
- margin: 15px;
400
- background: #fff;
401
- line-height: 115%;
402
- border-radius: $round;
403
- border: 1px solid $gray-dark;
404
- box-shadow: 5px 5px black(.25);
405
-
406
- &.top-center .popover-arrow {
407
- border-top-color: black(.25);
408
- transform: translateY(6px);
409
-
410
- &:after {
411
- margin-top: -8px;
412
- border-top: 8px solid #fff;
413
- }
414
- }
415
-
416
- &.center-left .popover-arrow {
417
- border-left-color: black(.25);
418
- transform: translateX(6px);
419
-
420
- &:after {
421
- margin-left: -8px;
422
- border-left: 8px solid #fff;
423
- }
424
- }
425
-
426
- &.center-right .popover-arrow {
427
- border-right-color: $gray-dark;
428
-
429
- &:after {
430
- margin-left: 2px;
431
- border-right-color: #fff;
432
- }
433
- }
434
-
435
- &.bottom-center .popover-arrow {
436
- border-bottom-color: $gray-dark;
437
-
438
- &:after {
439
- margin-top: 2px;
440
- border-bottom-color: #fff;
441
- }
442
- }
443
-
444
- &.top-left,
445
- &.top-right,
446
- &.bottom-left,
447
- &.bottom-right {
448
- margin: $margin / 2;
449
- }
450
- }
451
-
452
- .popover-head {
453
- font-weight: bold;
454
- background: $gray;
455
- border-bottom: 1px solid $gray-dark;
456
- }
457
-
458
- //-------------------- Progress --------------------//
459
-
460
- @mixin progress-style($bg, $border) {
461
- background: $bg;
462
- text-shadow: 1px 1px $border;
463
- border: 1px solid darken($bg, 12%);
464
-
465
- @content;
466
- }
467
-
468
- .progress {
469
- background: $gray;
470
- box-shadow: inset 1px 1px 2px $gray-darkest;
471
- }
472
-
473
- .progress-bar {
474
- color: #fff;
475
- font-weight: bold;
476
- @include progress-style($default, $default-dark);
477
-
478
- &.is-info { @include progress-style($info, $info-dark); }
479
- &.is-error { @include progress-style($error, $error-dark); }
480
- &.is-warning { @include progress-style($warning, $warning-dark); }
481
- &.is-success { @include progress-style($success, $success-dark); }
482
- }
483
-
484
- //-------------------- Showcase --------------------//
485
-
486
- .showcase-inner {
487
- background: $gray;
488
- padding: 5px;
489
- border-radius: .2rem;
490
- }
491
-
492
- .showcase-caption {
493
- color: #fff;
494
- line-height: 125%;
495
- font-size: .9rem;
496
- }
497
-
498
- .showcase-items {
499
- background: $gray;
500
- }
501
-
502
- //-------------------- Step --------------------//
503
-
504
- .steps ol {
505
- border: 1px solid $gray-dark;
506
- background: $gray;
507
- }
508
-
509
- .step:after {
510
- background: $gray;
511
- border-right: 1px solid $gray-dark;
512
- border-bottom: 1px solid $gray-dark;
513
- }
514
-
515
- a.step:hover,
516
- a.step:hover:after {
517
- background: $gray-lightest;
518
- }
519
-
520
- .steps li.is-complete {
521
- a.step,
522
- a.step:after {
523
- background: $info;
524
- color: #fff;
525
- }
526
- }
527
-
528
- //-------------------- Switch --------------------//
529
-
530
- .switch {
531
- overflow: hidden;
532
- background: $gray-light;
533
- border: 1px solid $gray-dark;
534
-
535
- input:checked + .switch-bar {
536
- background: $info;
537
- color: #fff;
538
- }
539
- }
540
-
541
- .switch-toggle {
542
- background: #fff;
543
- }
544
-
545
- .switch--stacked input:not(:checked) + .switch-bar:before,
546
- .switch--stacked input:checked + .switch-bar:after {
547
- color: $foreground-color;
548
- }
549
-
550
- //-------------------- Tooltip --------------------//
551
-
552
- .tooltip {
553
- background: black(.85);
554
- color: #fff;
555
- border-radius: $round;
556
- margin: 10px;
557
- line-height: 115%;
558
-
559
- &.top-center .tooltip-arrow { border-top-color: black(.70); }
560
- &.center-left .tooltip-arrow { border-left-color: black(.70); }
561
- &.center-right .tooltip-arrow { border-right-color: black(.70); }
562
- &.bottom-center .tooltip-arrow { border-bottom-color: black(.70); }
563
- }
564
-
565
- .tooltip-head {
566
- color: $info;
567
- font-weight: bold;
568
- margin-bottom: $margin / 2;
569
- }