titon-toolkit 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/readme.md +1 -4
  3. data/scss/toolkit/_common.scss +9 -0
  4. data/scss/toolkit/components/accordion.scss +5 -5
  5. data/scss/toolkit/components/blackout.scss +1 -1
  6. data/scss/toolkit/components/breadcrumb.scss +13 -9
  7. data/scss/toolkit/components/button-group.scss +34 -26
  8. data/scss/toolkit/components/button.scss +4 -4
  9. data/scss/toolkit/components/carousel.scss +18 -18
  10. data/scss/toolkit/components/dropdown.scss +13 -13
  11. data/scss/toolkit/components/flyout.scss +6 -6
  12. data/scss/toolkit/components/grid.scss +2 -2
  13. data/scss/toolkit/components/input-group.scss +16 -15
  14. data/scss/toolkit/components/input.scss +20 -19
  15. data/scss/toolkit/components/label.scss +22 -17
  16. data/scss/toolkit/components/lazy-load.scss +1 -1
  17. data/scss/toolkit/components/matrix.scss +3 -3
  18. data/scss/toolkit/components/modal.scss +34 -34
  19. data/scss/toolkit/components/notice.scss +3 -3
  20. data/scss/toolkit/components/pagination.scss +4 -4
  21. data/scss/toolkit/components/pin.scss +2 -2
  22. data/scss/toolkit/components/popover.scss +12 -12
  23. data/scss/toolkit/components/progress.scss +25 -13
  24. data/scss/toolkit/components/showcase.scss +18 -18
  25. data/scss/toolkit/components/table.scss +10 -10
  26. data/scss/toolkit/components/tabs.scss +6 -6
  27. data/scss/toolkit/components/tooltip.scss +12 -12
  28. data/scss/toolkit/components/type-ahead.scss +7 -7
  29. data/scss/toolkit/effects/oval.scss +3 -3
  30. data/scss/toolkit/effects/pill.scss +17 -17
  31. data/scss/toolkit/effects/skew.scss +19 -19
  32. data/scss/toolkit/effects/visual.scss +4 -4
  33. data/scss/toolkit/layout/base.scss +3 -3
  34. data/scss/toolkit/layout/code.scss +1 -1
  35. data/scss/toolkit/layout/form.scss +44 -44
  36. data/scss/toolkit/mixins/_layout.scss +35 -0
  37. data/scss/toolkit/mixins/_state.scss +16 -12
  38. data/scss/toolkit/themes/titon.scss +2 -1
  39. data/version.md +1 -1
  40. metadata +9 -9
@@ -6,7 +6,7 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .showcase {
9
+ .#{$vendor-prefix}showcase {
10
10
  position: fixed;
11
11
  top: 50%;
12
12
  left: 50%;
@@ -19,23 +19,23 @@
19
19
  backface-visibility: hidden;
20
20
  @include transform(translateX(-50%) translateY(-50%));
21
21
 
22
- &.is-loading,
23
- &.is-single {
24
- .showcase-prev,
25
- .showcase-next,
26
- .showcase-tabs {
22
+ &.#{$state-is-prefix}loading,
23
+ &.#{$state-is-prefix}single {
24
+ .#{$vendor-prefix}showcase-prev,
25
+ .#{$vendor-prefix}showcase-next,
26
+ .#{$vendor-prefix}showcase-tabs {
27
27
  display: none !important;
28
28
  }
29
29
  }
30
30
 
31
- &.is-loading {
32
- .showcase-close {
31
+ &.#{$state-is-prefix}loading {
32
+ .#{$vendor-prefix}showcase-close {
33
33
  display: none !important;
34
34
  }
35
35
  }
36
36
  }
37
37
 
38
- .showcase-close {
38
+ .#{$vendor-prefix}showcase-close {
39
39
  position: absolute;
40
40
  top: $padding;
41
41
  right: $padding;
@@ -43,14 +43,14 @@
43
43
  padding: $padding;
44
44
  }
45
45
 
46
- .showcase-inner {
46
+ .#{$vendor-prefix}showcase-inner {
47
47
  position: relative;
48
48
  padding: $padding;
49
49
  background: $gray;
50
50
  border: 1px solid $gray-dark;
51
51
  }
52
52
 
53
- .showcase-items {
53
+ .#{$vendor-prefix}showcase-items {
54
54
  list-style: none;
55
55
  padding: 0;
56
56
  margin: 0;
@@ -76,14 +76,14 @@
76
76
  }
77
77
 
78
78
  &.show {
79
- .showcase-caption {
79
+ .#{$vendor-prefix}showcase-caption {
80
80
  display: block;
81
81
  }
82
82
  }
83
83
  }
84
84
  }
85
85
 
86
- .showcase-caption {
86
+ .#{$vendor-prefix}showcase-caption {
87
87
  position: absolute;
88
88
  bottom: 0;
89
89
  left: 0;
@@ -98,8 +98,8 @@
98
98
  }
99
99
  }
100
100
 
101
- .showcase-prev,
102
- .showcase-next {
101
+ .#{$vendor-prefix}showcase-prev,
102
+ .#{$vendor-prefix}showcase-next {
103
103
  display: block;
104
104
  position: absolute;
105
105
  padding: $padding;
@@ -112,10 +112,10 @@
112
112
  &:focus { outline: none; }
113
113
  }
114
114
 
115
- .showcase-prev { left: $padding; }
116
- .showcase-next { right: $padding; }
115
+ .#{$vendor-prefix}showcase-prev { left: $padding; }
116
+ .#{$vendor-prefix}showcase-next { right: $padding; }
117
117
 
118
- .showcase-tabs {
118
+ .#{$vendor-prefix}showcase-tabs {
119
119
  position: absolute;
120
120
  top: ($padding * 2);
121
121
  left: 50%;
@@ -6,7 +6,7 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .table {
9
+ .#{$vendor-prefix}table {
10
10
  width: 100%;
11
11
  background: $gray;
12
12
  border-collapse: collapse;
@@ -40,11 +40,11 @@
40
40
  background: $gray;
41
41
 
42
42
  &:nth-child(odd) { background: $gray-lightest; }
43
- &.table-divider { background: $gray-dark; }
43
+ &.#{$vendor-prefix}table-divider { background: $gray-dark; }
44
44
  }
45
45
  }
46
46
 
47
- .table-responsive {
47
+ .#{$vendor-prefix}table-responsive {
48
48
  width: 100%;
49
49
  max-width: 100%;
50
50
  overflow-x: auto;
@@ -52,11 +52,11 @@
52
52
 
53
53
  //-------------------- Modifiers --------------------//
54
54
 
55
- .table.has-hover {
56
- tbody tr:not(.table-divider):hover { background: #fff; }
55
+ .#{$vendor-prefix}table.#{$state-has-prefix}hover {
56
+ tbody tr:not(.#{$vendor-prefix}table-divider):hover { background: #fff; }
57
57
  }
58
58
 
59
- .table.is-sortable {
59
+ .#{$vendor-prefix}table.#{$state-is-prefix}sortable {
60
60
  thead th {
61
61
  padding: 0;
62
62
 
@@ -76,11 +76,11 @@
76
76
 
77
77
  //-------------------- Sizes --------------------//
78
78
 
79
- .table.small {
79
+ .#{$vendor-prefix}table.#{$size-small-class} {
80
80
  thead th,
81
81
  tbody td { padding: $small-padding; }
82
82
 
83
- &.is-sortable {
83
+ &.#{$state-is-prefix}sortable {
84
84
  thead th {
85
85
  padding: 0;
86
86
 
@@ -90,11 +90,11 @@
90
90
  }
91
91
  }
92
92
 
93
- .table.large {
93
+ .#{$vendor-prefix}table.#{$size-large-class} {
94
94
  thead th,
95
95
  tbody td { padding: $large-padding; }
96
96
 
97
- &.is-sortable {
97
+ &.#{$state-is-prefix}sortable {
98
98
  thead th {
99
99
  padding: 0;
100
100
 
@@ -6,11 +6,11 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .tabs {
9
+ .#{$vendor-prefix}tabs {
10
10
  text-align: left;
11
11
  }
12
12
 
13
- .tabs-nav {
13
+ .#{$vendor-prefix}tabs-nav {
14
14
  display: block;
15
15
  margin-bottom: $margin;
16
16
 
@@ -23,16 +23,16 @@
23
23
  }
24
24
 
25
25
  // Display none on sections since visibility takes up DOM space
26
- .tabs-section.hide {
26
+ .#{$vendor-prefix}tabs-section.hide {
27
27
  display: none;
28
28
  }
29
29
 
30
30
  //-------------------- Modifiers --------------------//
31
31
 
32
- .tabs--horizontal {
33
- @extend .tabs;
32
+ .#{$vendor-prefix}tabs--horizontal {
33
+ @extend .#{$vendor-prefix}tabs;
34
34
 
35
- .tabs-nav {
35
+ .#{$vendor-prefix}tabs-nav {
36
36
  ul, ol, li, a, button {
37
37
  display: block;
38
38
  float: none;
@@ -6,7 +6,7 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .tooltip {
9
+ .#{$vendor-prefix}tooltip {
10
10
  position: absolute;
11
11
  top: 0;
12
12
  left: 0;
@@ -20,40 +20,40 @@
20
20
  color: #fff;
21
21
  @include box-sizing(content-box); // Required or else MooTools position() is off
22
22
 
23
- &.center-left .tooltip-arrow,
24
- &.center-right .tooltip-arrow {
23
+ &.center-left .#{$vendor-prefix}tooltip-arrow,
24
+ &.center-right .#{$vendor-prefix}tooltip-arrow {
25
25
  top: 50%;
26
26
  margin-top: -6px;
27
27
  }
28
28
 
29
- &.center-left .tooltip-arrow {
29
+ &.center-left .#{$vendor-prefix}tooltip-arrow {
30
30
  border-left-color: #000;
31
31
  right: -12px;
32
32
  }
33
33
 
34
- &.center-right .tooltip-arrow {
34
+ &.center-right .#{$vendor-prefix}tooltip-arrow {
35
35
  border-right-color: #000;
36
36
  left: -12px;
37
37
  }
38
38
 
39
- &.top-center .tooltip-arrow,
40
- &.bottom-center .tooltip-arrow {
39
+ &.top-center .#{$vendor-prefix}tooltip-arrow,
40
+ &.bottom-center .#{$vendor-prefix}tooltip-arrow {
41
41
  left: 50%;
42
42
  margin-left: -6px;
43
43
  }
44
44
 
45
- &.top-center .tooltip-arrow {
45
+ &.top-center .#{$vendor-prefix}tooltip-arrow {
46
46
  border-top-color: #000;
47
47
  bottom: -12px;
48
48
  }
49
49
 
50
- &.bottom-center .tooltip-arrow {
50
+ &.bottom-center .#{$vendor-prefix}tooltip-arrow {
51
51
  border-bottom-color: #000;
52
52
  top: -12px;
53
53
  }
54
54
  }
55
55
 
56
- .tooltip-arrow {
56
+ .#{$vendor-prefix}tooltip-arrow {
57
57
  width: 0;
58
58
  height: 0;
59
59
  border: 6px solid transparent;
@@ -68,8 +68,8 @@
68
68
 
69
69
  //-------------------- Animations --------------------//
70
70
 
71
- .tooltip,
72
- .popover {
71
+ .#{$vendor-prefix}tooltip,
72
+ .#{$vendor-prefix}popover {
73
73
  &.fade {
74
74
  opacity: 0;
75
75
  @include transition(opacity 0.5s);
@@ -6,7 +6,7 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .type-ahead {
9
+ .#{$vendor-prefix}type-ahead {
10
10
  position: absolute;
11
11
  top: 0;
12
12
  left: 0;
@@ -32,13 +32,13 @@
32
32
  }
33
33
 
34
34
  > a:hover,
35
- &.is-active a {
35
+ &.#{$state-is-prefix}active a {
36
36
  background: $gray-lightest;
37
37
  }
38
38
  }
39
39
  }
40
40
 
41
- .type-ahead-heading {
41
+ .#{$vendor-prefix}type-ahead-heading {
42
42
  padding: $small-padding;
43
43
  line-height: 100%;
44
44
  display: block;
@@ -46,17 +46,17 @@
46
46
  background: $gray-dark;
47
47
  }
48
48
 
49
- .type-ahead-highlight {
49
+ .#{$vendor-prefix}type-ahead-highlight {
50
50
  background: #fff;
51
51
  }
52
52
 
53
- .type-ahead-desc {
53
+ .#{$vendor-prefix}type-ahead-desc {
54
54
  display: block;
55
55
  color: $gray-darkest;
56
56
  font-size: .7rem;
57
57
  }
58
58
 
59
- .type-ahead-shadow {
59
+ .#{$vendor-prefix}type-ahead-shadow {
60
60
  position: relative;
61
61
  height: 2rem;
62
62
 
@@ -66,7 +66,7 @@
66
66
  left: 0;
67
67
  }
68
68
 
69
- .is-shadow {
69
+ .#{$state-is-prefix}shadow {
70
70
  color: gray;
71
71
  }
72
72
 
@@ -8,11 +8,11 @@
8
8
 
9
9
  //-------------------- Button --------------------//
10
10
 
11
- .button.oval { border-radius: #{$oval-x} / #{$oval-y}; }
11
+ .#{$vendor-prefix}button.oval { border-radius: #{$oval-x} / #{$oval-y}; }
12
12
 
13
13
  //-------------------- Pagination --------------------//
14
14
 
15
- .pagination--grouped.oval {
15
+ .#{$vendor-prefix}pagination--grouped.oval {
16
16
  ul {
17
17
  border-radius: #{$oval-x} / #{$oval-y};
18
18
  }
@@ -28,7 +28,7 @@
28
28
 
29
29
  //-------------------- Visual --------------------//
30
30
 
31
- .visual-gloss.oval:after {
31
+ .#{$vendor-prefix}visual-gloss.oval:after {
32
32
  width: 90%;
33
33
  left: 5.5%;
34
34
  border-radius: 5rem 5rem 4rem 4rem / 1.5rem 1.5rem 1.5rem 1.5rem;
@@ -8,41 +8,41 @@
8
8
 
9
9
  //-------------------- Button --------------------//
10
10
 
11
- .button.pill { border-radius: $pill; }
11
+ .#{$vendor-prefix}button.pill { border-radius: $pill; }
12
12
 
13
13
  //-------------------- ButtonGroup --------------------//
14
14
 
15
- .button-group.pill {
15
+ .#{$vendor-prefix}button-group.pill {
16
16
  border-radius: $pill;
17
17
 
18
- > li:first-child .button,
19
- > .button:first-child,
20
- > .button.first {
18
+ > li:first-child .#{$vendor-prefix}button,
19
+ > .#{$vendor-prefix}button:first-child,
20
+ > .#{$vendor-prefix}button.first {
21
21
  border-top-left-radius: $pill;
22
22
  border-bottom-left-radius: $pill;
23
23
  }
24
24
 
25
- > li:last-child .button,
26
- > .button:last-child,
27
- > .button.last {
25
+ > li:last-child .#{$vendor-prefix}button,
26
+ > .#{$vendor-prefix}button:last-child,
27
+ > .#{$vendor-prefix}button.last {
28
28
  border-top-right-radius: $pill;
29
29
  border-bottom-right-radius: $pill;
30
30
  }
31
31
  }
32
32
 
33
- .button-group--vertical.pill {
33
+ .#{$vendor-prefix}button-group--vertical.pill {
34
34
  border-radius: $pill;
35
35
 
36
- > li:first-child .button,
37
- > .button:first-child {
36
+ > li:first-child .#{$vendor-prefix}button,
37
+ > .#{$vendor-prefix}button:first-child {
38
38
  border-top-left-radius: $pill;
39
39
  border-top-right-radius: $pill;
40
40
  border-bottom-left-radius: 0;
41
41
  border-bottom-right-radius: 0;
42
42
  }
43
43
 
44
- > li:last-child .button,
45
- > .button:last-child {
44
+ > li:last-child .#{$vendor-prefix}button,
45
+ > .#{$vendor-prefix}button:last-child {
46
46
  border-top-left-radius: 0;
47
47
  border-top-right-radius: 0;
48
48
  border-bottom-left-radius: $pill;
@@ -52,7 +52,7 @@
52
52
 
53
53
  //-------------------- Pagination --------------------//
54
54
 
55
- .pagination--grouped.pill {
55
+ .#{$vendor-prefix}pagination--grouped.pill {
56
56
  ul {
57
57
  border-radius: $pill;
58
58
  }
@@ -70,10 +70,10 @@
70
70
 
71
71
  //-------------------- Progress --------------------//
72
72
 
73
- .progress.pill {
73
+ .#{$vendor-prefix}progress.pill {
74
74
  border-radius: $pill;
75
75
 
76
- .progress-bar {
76
+ .#{$vendor-prefix}progress-bar {
77
77
  border-top-left-radius: $pill;
78
78
  border-bottom-left-radius: $pill;
79
79
  }
@@ -81,7 +81,7 @@
81
81
 
82
82
  //-------------------- Visual --------------------//
83
83
 
84
- .visual-gloss.pill:after {
84
+ .#{$vendor-prefix}visual-gloss.pill:after {
85
85
  width: 90%;
86
86
  left: 5.5%;
87
87
  border-radius: 1rem 1rem 2rem 2rem / 1rem 1rem 1rem 1rem;
@@ -8,43 +8,43 @@
8
8
 
9
9
  //-------------------- Button --------------------//
10
10
 
11
- .button.skew { border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0; }
11
+ .#{$vendor-prefix}button.skew { border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0; }
12
12
 
13
13
  //-------------------- ButtonGroup --------------------//
14
14
 
15
- .button-group.skew {
15
+ .#{$vendor-prefix}button-group.skew {
16
16
  border-top-left-radius: $skew;
17
17
  border-top-right-radius: $skew;
18
18
  border-bottom-left-radius: 0;
19
19
  border-bottom-right-radius: 0;
20
20
 
21
- > li:first-child .button,
22
- > .button:first-child,
23
- > .button.first {
21
+ > li:first-child .#{$vendor-prefix}button,
22
+ > .#{$vendor-prefix}button:first-child,
23
+ > .#{$vendor-prefix}button.first {
24
24
  border-top-left-radius: $skew;
25
25
  border-bottom-left-radius: 0;
26
26
  }
27
27
 
28
- > li:last-child .button,
29
- > .button:last-child,
30
- > .button.last {
28
+ > li:last-child .#{$vendor-prefix}button,
29
+ > .#{$vendor-prefix}button:last-child,
30
+ > .#{$vendor-prefix}button.last {
31
31
  border-top-right-radius: $skew;
32
32
  border-bottom-right-radius: 0;
33
33
  }
34
34
  }
35
35
 
36
- .button-group--vertical {
36
+ .#{$vendor-prefix}button-group--vertical {
37
37
  &.skew {
38
38
  border-top-left-radius: $skew-y 1.5rem;
39
39
  border-bottom-left-radius: $skew-y 1.5rem;
40
40
 
41
- > li:first-child .button,
42
- > .button:first-child {
41
+ > li:first-child .#{$vendor-prefix}button,
42
+ > .#{$vendor-prefix}button:first-child {
43
43
  border-top-left-radius: $skew-reverse;
44
44
  }
45
45
 
46
- > li:last-child .button,
47
- > .button:last-child {
46
+ > li:last-child .#{$vendor-prefix}button,
47
+ > .#{$vendor-prefix}button:last-child {
48
48
  border-bottom-left-radius: $skew-reverse;
49
49
  border-top-right-radius: 0;
50
50
  }
@@ -54,13 +54,13 @@
54
54
  border-top-right-radius: $skew-y 1.25rem;
55
55
  border-bottom-right-radius: $skew-y 1.25rem;
56
56
 
57
- > li:first-child .button,
58
- > .button:first-child {
57
+ > li:first-child .#{$vendor-prefix}button,
58
+ > .#{$vendor-prefix}button:first-child {
59
59
  border-top-right-radius: $skew-reverse;
60
60
  }
61
61
 
62
- > li:last-child .button,
63
- > .button:last-child {
62
+ > li:last-child .#{$vendor-prefix}button,
63
+ > .#{$vendor-prefix}button:last-child {
64
64
  border-bottom-right-radius: $skew-reverse;
65
65
  }
66
66
  }
@@ -68,7 +68,7 @@
68
68
 
69
69
  //-------------------- Pagination --------------------//
70
70
 
71
- .pagination--grouped.skew {
71
+ .#{$vendor-prefix}pagination--grouped.skew {
72
72
  ul {
73
73
  border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0;
74
74
  }
@@ -84,7 +84,7 @@
84
84
 
85
85
  //-------------------- Visual --------------------//
86
86
 
87
- .visual-gloss.skew:after {
87
+ .#{$vendor-prefix}visual-gloss.skew:after {
88
88
  width: 90%;
89
89
  left: 5.5%;
90
90
  border-radius: 1rem 1rem 3rem 3rem / 1rem 1rem 2rem 2rem;
@@ -8,7 +8,7 @@
8
8
 
9
9
  //-------------------- Gloss --------------------//
10
10
 
11
- .visual-gloss {
11
+ .#{$vendor-prefix}visual-gloss {
12
12
  &:after {
13
13
  content: "";
14
14
  position: absolute;
@@ -29,7 +29,7 @@
29
29
 
30
30
  //-------------------- Reflection --------------------//
31
31
 
32
- .visual-reflect:after {
32
+ .#{$vendor-prefix}visual-reflect:after {
33
33
  content: "";
34
34
  position: absolute;
35
35
  width: 100%;
@@ -41,7 +41,7 @@
41
41
 
42
42
  //-------------------- Glare --------------------//
43
43
 
44
- .visual-glare:after {
44
+ .#{$vendor-prefix}visual-glare:after {
45
45
  content: "";
46
46
  position: absolute;
47
47
  width: 100%;
@@ -53,7 +53,7 @@
53
53
 
54
54
  //-------------------- Popout --------------------//
55
55
 
56
- .visual-popout {
56
+ .#{$vendor-prefix}visual-popout {
57
57
  box-shadow: 0 6px 0 0 black(.25) !important;
58
58
  top: -3px;
59
59
 
@@ -45,9 +45,9 @@
45
45
 
46
46
  // Styles
47
47
  .round { border-radius: $round; }
48
- .is-draggable { cursor: move; }
49
- .is-dragging { cursor: grabbing; }
50
- .is-disabled,
48
+ .#{$state-is-prefix}draggable { cursor: move; }
49
+ .#{$state-is-prefix}dragging { cursor: grabbing; }
50
+ .#{$state-is-prefix}disabled,
51
51
  [disabled] { cursor: not-allowed !important; }
52
52
 
53
53
  // Carets
@@ -44,7 +44,7 @@ pre {
44
44
  border: none;
45
45
  }
46
46
 
47
- &.is-scrollable {
47
+ &.#{$state-is-prefix}scrollable {
48
48
  max-height: 350px;
49
49
  overflow-y: auto;
50
50
  }