titon-toolkit 0.14.0 → 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/readme.md +18 -13
  3. data/scss/ie8.scss +23 -16
  4. data/scss/toolkit/_common.scss +126 -7
  5. data/scss/toolkit/{modules → components}/accordion.scss +3 -25
  6. data/scss/toolkit/{modules → components}/blackout.scss +0 -7
  7. data/scss/toolkit/{ui → components}/breadcrumbs.scss +26 -16
  8. data/scss/toolkit/{ui → components}/button-group.scss +1 -8
  9. data/scss/toolkit/{ui → components}/button.scss +0 -5
  10. data/scss/toolkit/components/carousel.scss +147 -0
  11. data/scss/toolkit/{ui → components}/dropdown.scss +30 -27
  12. data/scss/toolkit/{modules → components}/flyout.scss +0 -6
  13. data/scss/toolkit/{layout → components}/grid.scss +1 -1
  14. data/scss/toolkit/components/icon.scss +60 -0
  15. data/scss/toolkit/{layout → components}/input-group.scss +3 -1
  16. data/scss/toolkit/components/input.scss +112 -0
  17. data/scss/toolkit/components/label.scss +106 -0
  18. data/scss/toolkit/components/lazy-load.scss +12 -0
  19. data/scss/toolkit/{ui → components}/matrix.scss +0 -7
  20. data/scss/toolkit/{modules → components}/modal.scss +44 -44
  21. data/scss/toolkit/{ui/alert.scss → components/notice.scss} +13 -20
  22. data/scss/toolkit/{ui → components}/pagination.scss +0 -14
  23. data/scss/toolkit/{ui → components}/pin.scss +0 -5
  24. data/scss/toolkit/{modules → components}/popover.scss +4 -16
  25. data/scss/toolkit/{ui → components}/progress.scss +15 -12
  26. data/scss/toolkit/{modules → components}/showcase.scss +30 -60
  27. data/scss/toolkit/{layout → components}/table.scss +0 -0
  28. data/scss/toolkit/{modules → components}/tabs.scss +0 -16
  29. data/scss/toolkit/{modules → components}/tooltip.scss +1 -15
  30. data/scss/toolkit/{modules → components}/type-ahead.scss +1 -4
  31. data/scss/toolkit/effects/pill.scss +4 -2
  32. data/scss/toolkit/layout/base.scss +68 -30
  33. data/scss/toolkit/layout/code.scss +2 -3
  34. data/scss/toolkit/layout/form.scss +71 -25
  35. data/scss/toolkit/layout/typography.scss +8 -8
  36. data/scss/toolkit/mixins/_grid.scss +0 -8
  37. data/scss/toolkit/mixins/_layout.scss +3 -14
  38. data/scss/toolkit/mixins/_responsive.scss +0 -14
  39. data/scss/toolkit/themes/titon.scss +116 -98
  40. data/scss/toolkit.scss +26 -25
  41. data/version.md +1 -1
  42. metadata +30 -32
  43. data/scss/toolkit/_variables.scss +0 -63
  44. data/scss/toolkit/mixins/_themes.scss +0 -98
  45. data/scss/toolkit/modules/carousel.scss +0 -183
  46. data/scss/toolkit/themes/tomorrow-night.scss +0 -582
  47. data/scss/toolkit/ui/icon.scss +0 -22
  48. data/scss/toolkit/ui/label-badge.scss +0 -76
  49. data/scss/toolkit/ui/lazy-load.scss +0 -19
@@ -1,582 +0,0 @@
1
- /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
4
- * @link http://titon.io
5
- */
6
-
7
- /**
8
- * Based on the Tomorrow Night theme by Chris Kempson.
9
- * https://github.com/chriskempson/tomorrow-theme
10
- */
11
-
12
- @import "../common";
13
-
14
- $gray-lightest: #72757b;
15
- $gray-light: #575b62;
16
- $gray: #373b41;
17
- $gray-dark: #282a2e;
18
- $gray-darkest: #1d1f21;
19
-
20
- $background-color: #1d1f21;
21
- $foreground-color: #c5c8c6;
22
- $middleground-color: #373b41;
23
-
24
- $default: #969896;
25
- $default-light: #e2e3e2;
26
- $default-dark: #515251;
27
-
28
- $info: #81a2be;
29
- $info-light: #d2e9f4;
30
- $info-dark: #45586d;
31
-
32
- $warning: #f0c674;
33
- $warning-light: #fdf7c5;
34
- $warning-dark: #b1753e;
35
-
36
- $success: #b5bd68;
37
- $success-light: #f1f4b8;
38
- $success-dark: #666d37;
39
-
40
- $error: #cc6666;
41
- $error-light: #f8b5b5;
42
- $error-dark: #7a3636;
43
-
44
- //-------------------- Layout --------------------//
45
-
46
- body {
47
- color: $foreground-color;
48
- background: $background-color;
49
- }
50
-
51
- .close {
52
- width: 20px;
53
- height: 20px;
54
- line-height: 22px;
55
- }
56
-
57
- .input-group {
58
- > .input,
59
- > .input-addon,
60
- > .button,
61
- > .button-group .button { height: 42px; }
62
- }
63
-
64
- //-------------------- Typography --------------------//
65
-
66
- .caret-up { border-bottom-color: $foreground-color; }
67
- .caret-down { border-top-color: $foreground-color; }
68
- .caret-left { border-right-color: $foreground-color; }
69
- .caret-right { border-left-color: $foreground-color; }
70
- .x { color: $foreground-color; }
71
-
72
- .text-muted { color: $default; }
73
- .text-info { color: $info; }
74
- .text-error { color: $error; }
75
- .text-warning { color: $warning; }
76
- .text-success { color: $success; }
77
-
78
- a {
79
- color: $info;
80
- text-decoration: none;
81
-
82
- &:hover { color: $info-light; }
83
- }
84
-
85
- blockquote { border-color: $info; }
86
- blockquote cite { color: $default; }
87
-
88
- pre, code, var, kbd { color: $default-dark; }
89
- code { background: $info-light; color: $info-dark; }
90
- var { background: $error-light; color: $error-dark; }
91
-
92
- //-------------------- Layout --------------------//
93
-
94
- .table {
95
- background: $gray;
96
-
97
- td, th {
98
- border-color: $gray-light;
99
- }
100
-
101
- thead tr,
102
- tfoot tr {
103
- background: $gray-light;
104
-
105
- th { border-color: $gray-lightest; }
106
- }
107
-
108
- tbody tr {
109
- background: $gray;
110
-
111
- &:nth-child(odd) { background: $gray-dark; }
112
- &.divider { background: $gray-light; }
113
- }
114
- }
115
-
116
- .table.table--hover {
117
- tbody tr:not(.divider):hover { background: $gray-darkest; }
118
- }
119
-
120
- .table.table--sortable thead th a {
121
- background: $gray-light;
122
- color: #fff;
123
-
124
- &:hover { background: shade($gray-light, 5%); }
125
- }
126
-
127
- fieldset {
128
- border-color: $gray-light;
129
- }
130
-
131
- .input {
132
- background: $gray;
133
- border-color: $gray-light;
134
- color: $foreground-color;
135
-
136
- &:hover { border-color: $gray-lightest; }
137
- &:focus { border-color: $info; box-shadow: 0 0 5px $info-light; }
138
-
139
- @include disabled-state {
140
- color: $default;
141
- border-color: $gray;
142
- }
143
-
144
- &[readonly] {
145
- color: $default;
146
- border-color: $gray;
147
- box-shadow: none;
148
- }
149
- }
150
-
151
- .input-addon {
152
- border-color: $gray-light;
153
- background-color: $gray-dark;
154
- }
155
-
156
- .input-group {
157
- .input-addon,
158
- .button,
159
- .button-group {
160
- box-shadow: none;
161
- margin-right: -5px;
162
- }
163
- }
164
-
165
- .field {
166
- @include field-style;
167
- }
168
-
169
- //-------------------- Accordion --------------------//
170
-
171
- .accordion {
172
- border-color: $gray-light;
173
- border-radius: 3px;
174
- background: $gray-dark;
175
-
176
- li {
177
- &:first-child .accordion-head {
178
- border-top-left-radius: 3px;
179
- border-top-right-radius: 3px;
180
- }
181
-
182
- &:last-child {
183
- .accordion-head {
184
- border-bottom-left-radius: 3px;
185
- border-bottom-right-radius: 3px;
186
- }
187
-
188
- .accordion-body {
189
- border: 0;
190
- }
191
- }
192
-
193
- &.is-active .accordion-head {
194
- background: $gray-light;
195
- border-color: $gray-lightest;
196
- color: $success;
197
- }
198
- }
199
- }
200
-
201
- .accordion-head {
202
- color: $info;
203
- background: $gray;
204
- border-color: $gray-light;
205
- padding: 1rem;
206
- text-align: center;
207
- cursor: pointer;
208
- @include transition(all .3s);
209
- }
210
-
211
- .accordion-body { padding: $padding; }
212
-
213
- //-------------------- Alert --------------------//
214
-
215
- .alert {
216
- text-shadow: 0 1px 0 white(.50);
217
- box-shadow: 0 0 3px #000;
218
- @include alert-style($default-light, $default-dark);
219
-
220
- &.is-info { @include alert-style($info-light, $info-dark); }
221
- &.is-warning { @include alert-style($warning-light, $warning-dark); }
222
- &.is-error { @include alert-style($error-light, $error-dark); }
223
- &.is-success { @include alert-style($success-light, $success-dark); }
224
- }
225
-
226
- //-------------------- Button --------------------//
227
-
228
- .breadcrumbs {
229
- background: $gray;
230
- border-color: $gray-light;
231
-
232
- a {
233
- padding-right: 0 !important;
234
-
235
- .caret-right {
236
- top: -1px;
237
- margin-left: $medium-padding;
238
- opacity: .5;
239
- display: inline-block;
240
- }
241
- };
242
-
243
- &.small a .caret-right { margin-left: $small-padding; }
244
- &.large a .caret-right { margin-left: $large-padding; }
245
-
246
- li:last-child a {
247
- color: $default;
248
- .caret-right { display: none; }
249
- }
250
- }
251
-
252
- //-------------------- Button --------------------//
253
-
254
- $button-shadow: 0 1px 0 white(.5) inset, 0 0 3px #000;
255
-
256
- @mixin button-style($color) {
257
- color: shade($color, 75%);
258
- background: $color;
259
- border: 1px solid #000;
260
- @include background-image(linear-gradient($color, shade($color, 30%)));
261
-
262
- @include active-state {
263
- color: #000;
264
- background: tint($color, 30%);
265
- @include background-image(linear-gradient(tint($color, 30%), $color));
266
- }
267
-
268
- @include disabled-state { background: $color; }
269
- &:active { background: $color; }
270
- }
271
-
272
- .button {
273
- font-weight: bold;
274
- text-shadow: 0 1px white(.35);
275
- box-shadow: $button-shadow;
276
- @include transition(all .3s);
277
-
278
- &.small, .small & { text-shadow: 0 1px white(.25); }
279
- &.large, .large & { font-weight: normal; }
280
-
281
- @include button-style($default);
282
- @include disabled-state {
283
- opacity: .35;
284
- }
285
-
286
- &.is-info { @include button-style($info); }
287
- &.is-warning { @include button-style($warning); }
288
- &.is-error { @include button-style($error); }
289
- &.is-success { @include button-style($success); }
290
- }
291
-
292
- .button.visual-popout {
293
- box-shadow: $button-shadow, 0 6px 0 0 black(.25) !important;
294
-
295
- &:active {
296
- box-shadow: $button-shadow, 0 3px 0 0 black(.5) !important;
297
- }
298
- }
299
-
300
- //-------------------- ButtonGroup, Pagination --------------------//
301
-
302
- .button-group,
303
- .pagination.pagination--grouped ul {
304
- box-shadow: 0 0 3px #000;
305
-
306
- li .button,
307
- > .button {
308
- box-shadow: 0 1px 0 white(0.5) inset;
309
- border-left: 1px solid black(.35);
310
- border-right: 1px solid black(.35);
311
- }
312
- }
313
-
314
- .button-group {
315
- > li:first-child .button,
316
- > .button:first-child { border-left: 0; }
317
-
318
- > li:last-child .button,
319
- > .button:last-child { border-right: 0; }
320
- }
321
-
322
- .pagination.pagination--grouped li {
323
- &:first-child .button { border-left: 0; }
324
- &:last-child .button { border-right: 0; }
325
- }
326
-
327
- .button-group.button-group--vertical {
328
- .button {
329
- box-shadow: none;
330
- border: 1px solid black(.35);
331
- }
332
-
333
- > li:first-child .button,
334
- > .button:first-child { border-top: 0; }
335
-
336
- > li:last-child .button,
337
- > .button:last-child { border-bottom: 0; }
338
- }
339
-
340
- //-------------------- Label, Badge --------------------//
341
-
342
- .label,
343
- .badge {
344
- color: #000;
345
- box-shadow: 0 0 3px #000;
346
- text-shadow: 0 1px white(.35);
347
- background-color: $default;
348
-
349
- &.is-info { background-color: $info; }
350
- &.is-warning { background-color: $warning; }
351
- &.is-error { background-color: $error; }
352
- &.is-success { background-color: $success; }
353
- }
354
-
355
- .label.label--left {
356
- &:after { border-right-color: $default; }
357
- &.is-info:after { border-right-color: $info; }
358
- &.is-warning:after { border-right-color: $warning; }
359
- &.is-error:after { border-right-color: $error; }
360
- &.is-success:after { border-right-color: $success; }
361
- }
362
-
363
- .label.label--right {
364
- &:after { border-left-color: $default; }
365
- &.is-info:after { border-left-color: $info; }
366
- &.is-warning:after { border-left-color: $warning; }
367
- &.is-error:after { border-left-color: $error; }
368
- &.is-success:after { border-left-color: $success; }
369
- }
370
-
371
- //-------------------- Dropdown, TypeAhead, Flyout --------------------//
372
-
373
- .dropdown,
374
- .flyout,
375
- .type-ahead {
376
- border: 3px solid white(.75);
377
- border-radius: 3px;
378
- background: $gray-dark;
379
- box-shadow: 0 0 3px #000;
380
-
381
- li {
382
- border-top: 1px solid $gray;
383
-
384
- &:first-child { border: 0; }
385
-
386
- a {
387
- .caret-right {
388
- float: right;
389
- margin-top: 3px;
390
- }
391
- }
392
-
393
- a:hover,
394
- &.is-open > a,
395
- &.is-active > a,
396
- &:hover > a {
397
- background: $gray-darkest;
398
- color: #fff;
399
- }
400
-
401
- &.heading {
402
- background: $gray;
403
- font-size: .9em;
404
- color: #fff;
405
- }
406
-
407
- &.divider {
408
- background: $gray-darkest;
409
- border-top: 1px solid $gray;
410
- height: 10px;
411
- margin: 0;
412
- }
413
- }
414
- }
415
-
416
- .type-ahead-desc {
417
- display: block;
418
- color: $default;
419
- font-size: .7rem;
420
- }
421
-
422
- .type-ahead-highlight {
423
- color: $warning;
424
- }
425
-
426
- //-------------------- Modal --------------------//
427
-
428
- .modal {
429
- .close {
430
- top: -11px;
431
- right: -35px;
432
- }
433
- }
434
-
435
- .modal-outer {
436
- border: 10px solid white(.75);
437
- border-radius: 3px;
438
- background: $gray-dark;
439
- margin: 10px;
440
- }
441
-
442
- .modal-head,
443
- .modal-foot,
444
- .modal-loading,
445
- .modal-error {
446
- background: $gray-darkest;
447
- }
448
-
449
- .modal-head {
450
- font-size: 1rem;
451
- font-weight: normal;
452
- color: $info;
453
- }
454
-
455
- .modal-foot {
456
- text-align: center;
457
- }
458
-
459
- .modal-body {
460
- border-top: 1px solid $gray;
461
- border-bottom: 1px solid $gray;
462
- }
463
-
464
- //-------------------- Popover --------------------//
465
-
466
- .popover {
467
- border: 3px solid white(.75);
468
- border-radius: 3px;
469
- background: $gray-dark;
470
- box-shadow: 0 0 3px #000;
471
- margin: 10px;
472
-
473
- .popover-head {
474
- font-size: 1rem;
475
- font-weight: bold;
476
- color: $info;
477
- background: $gray-darkest;
478
- border-bottom: 1px solid $gray;
479
- }
480
-
481
- &.center-left .popover-arrow {
482
- right: -19px;
483
- border-left-color: $gray-darkest;
484
-
485
- &:after {
486
- margin-left: -2px;
487
- border-left-color: white(.75);
488
- }
489
- }
490
-
491
- &.center-right .popover-arrow {
492
- left: -19px;
493
- border-right-color: $gray-darkest;
494
-
495
- &:after {
496
- margin-left: 2px;
497
- border-right-color: white(.75);
498
- }
499
- }
500
-
501
- &.top-center .popover-arrow {
502
- bottom: -19px;
503
- border-top-color: $gray-darkest;
504
-
505
- &:after {
506
- margin-top: -2px;
507
- border-top-color: white(.75);
508
- }
509
- }
510
-
511
- &.bottom-center .popover-arrow {
512
- top: -19px;
513
- border-bottom-color: $gray-darkest;
514
-
515
- &:after {
516
- margin-top: 2px;
517
- border-bottom-color: white(.75);
518
- }
519
- }
520
- }
521
-
522
- //-------------------- Progress --------------------//
523
-
524
- .progress {
525
- background: $gray;
526
- box-shadow: inset 1px 1px 2px $gray-darkest;
527
- border-radius: $round;
528
- }
529
-
530
- .progress-bar {
531
- color: #fff;
532
- font-weight: bold;
533
- border-top-left-radius: $round;
534
- border-bottom-left-radius: $round;
535
- @include progress-style($default, $default-dark);
536
-
537
- &.is-info { @include progress-style($info, $info-dark); }
538
- &.is-error { @include progress-style($error, $error-dark); }
539
- &.is-warning { @include progress-style($warning, $warning-dark); }
540
- &.is-success { @include progress-style($success, $success-dark); }
541
- }
542
-
543
- .progress-bar + .progress-bar {
544
- border-top-left-radius: 0;
545
- border-bottom-left-radius: 0;
546
- }
547
-
548
- //-------------------- Showcase --------------------//
549
-
550
- .showcase {
551
- border: 10px solid white(.75);
552
- border-radius: 3px;
553
-
554
- .close {
555
- top: -11px;
556
- right: -35px;
557
- }
558
- }
559
-
560
- .showcase-inner {
561
- padding: 0;
562
- }
563
-
564
- //-------------------- Tooltip --------------------//
565
-
566
- .tooltip {
567
- background: white(.90);
568
- color: #000;
569
- border-radius: 3px;
570
- margin: $margin / 2;
571
-
572
- .tooltip-head {
573
- padding-bottom: $small-padding;
574
- font-weight: bold;
575
- font-size: 1rem;
576
- }
577
-
578
- &.top-center .tooltip-arrow { border-top-color: white(.90); }
579
- &.center-left .tooltip-arrow { border-left-color: white(.90); }
580
- &.center-right .tooltip-arrow { border-right-color: white(.90); }
581
- &.bottom-center .tooltip-arrow { border-bottom-color: white(.90); }
582
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
4
- * @link http://titon.io
5
- */
6
-
7
- @import "../common";
8
-
9
- /**
10
- * <span class="icon-16-delete"></span>
11
- */
12
-
13
- [class*="icon-"] { @include reset-inline-block; }
14
- [class*="icon-12"] { width: 12px; height: 12px; }
15
- [class*="icon-16"] { width: 16px; height: 16px; }
16
- [class*="icon-24"] { width: 24px; height: 24px; }
17
- [class*="icon-32"] { width: 32px; height: 32px; }
18
- [class*="icon-64"] { width: 64px; height: 64px; }
19
-
20
- .button {
21
- [class*="icon-"] { margin-top: -1px; }
22
- }
@@ -1,76 +0,0 @@
1
- /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
4
- * @link http://titon.io
5
- */
6
-
7
- @import "../common";
8
-
9
- /**
10
- * <span class="badge is-success">15</span>
11
- * <span class="label is-error">Required</span>
12
- */
13
-
14
- .badge,
15
- .label {
16
- @include reset-inline-block;
17
- color: #fff;
18
- // Shorthand doesn't work in IE
19
- font-weight: bold;
20
- font-size: .6rem;
21
- line-height: 100%;
22
- background: #282a2e;
23
- padding: 3px 5px;
24
- text-transform: uppercase;
25
- border-radius: 2px;
26
- white-space: nowrap;
27
- top: -1px;
28
-
29
- &:empty { display: none; }
30
- }
31
-
32
- .label {
33
- letter-spacing: 1px;
34
- }
35
-
36
- .badge {
37
- border-radius: 10px;
38
- }
39
-
40
- //-------------------- Modifiers --------------------//
41
-
42
- .label.label--left {
43
- border-top-left-radius: 1px;
44
- border-bottom-left-radius: 1px;
45
- padding-left: 2px;
46
- margin-left: 10px;
47
-
48
- &:after {
49
- top: 0;
50
- right: 100%;
51
- content: "";
52
- height: 0;
53
- width: 0;
54
- position: absolute;
55
- border: .85em solid transparent;
56
- border-right-color: #282a2e;
57
- }
58
- }
59
-
60
- .label.label--right {
61
- border-top-right-radius: 1px;
62
- border-bottom-right-radius: 1px;
63
- padding-right: 2px;
64
- margin-right: 10px;
65
-
66
- &:after {
67
- top: 0;
68
- left: 100%;
69
- content: "";
70
- height: 0;
71
- width: 0;
72
- position: absolute;
73
- border: .85em solid transparent;
74
- border-left-color: #282a2e;
75
- }
76
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
4
- * @link http://titon.io
5
- */
6
-
7
- @import "../common";
8
-
9
- $lazyLoad-transition: $default-transition !default;
10
-
11
- /**
12
- * Will hide background images and defer image loading until they are within viewport.
13
- * Should be used in conjunction with the JavaScript Titon.LazyLoad component.
14
- */
15
-
16
- .lazy-load {
17
- background-image: none !important;
18
- @include transition(background-image $lazyLoad-transition);
19
- }