titon-toolkit 1.3.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/changelog.md +70 -56
  3. data/license.md +16 -13
  4. data/readme.md +1 -1
  5. data/roadmap.md +29 -13
  6. data/scss/toolkit.scss +5 -2
  7. data/scss/toolkit/_common.scss +39 -21
  8. data/scss/toolkit/components/accordion.scss +2 -2
  9. data/scss/toolkit/components/blackout.scss +2 -2
  10. data/scss/toolkit/components/breadcrumb.scss +2 -2
  11. data/scss/toolkit/components/button-group.scss +2 -2
  12. data/scss/toolkit/components/button.scss +2 -2
  13. data/scss/toolkit/components/carousel.scss +3 -3
  14. data/scss/toolkit/components/divider.scss +46 -0
  15. data/scss/toolkit/components/drop.scss +3 -3
  16. data/scss/toolkit/components/flyout.scss +3 -3
  17. data/scss/toolkit/components/grid.scss +2 -2
  18. data/scss/toolkit/components/icon.scss +2 -2
  19. data/scss/toolkit/components/input-group.scss +2 -2
  20. data/scss/toolkit/components/input.scss +2 -2
  21. data/scss/toolkit/components/label.scss +2 -2
  22. data/scss/toolkit/components/lazy-load.scss +2 -2
  23. data/scss/toolkit/components/loader.scss +2 -2
  24. data/scss/toolkit/components/mask.scss +8 -5
  25. data/scss/toolkit/components/matrix.scss +2 -2
  26. data/scss/toolkit/components/modal.scss +21 -97
  27. data/scss/toolkit/components/notice.scss +2 -2
  28. data/scss/toolkit/components/off-canvas.scss +145 -0
  29. data/scss/toolkit/components/pagination.scss +2 -2
  30. data/scss/toolkit/components/pin.scss +2 -2
  31. data/scss/toolkit/components/popover.scss +2 -2
  32. data/scss/toolkit/components/progress.scss +2 -2
  33. data/scss/toolkit/components/showcase.scss +19 -38
  34. data/scss/toolkit/components/step.scss +2 -2
  35. data/scss/toolkit/components/switch.scss +2 -2
  36. data/scss/toolkit/components/table.scss +2 -2
  37. data/scss/toolkit/components/tabs.scss +2 -2
  38. data/scss/toolkit/components/toast.scss +129 -0
  39. data/scss/toolkit/components/tooltip.scss +3 -3
  40. data/scss/toolkit/components/type-ahead.scss +3 -3
  41. data/scss/toolkit/effects/oval.scss +2 -2
  42. data/scss/toolkit/effects/pill.scss +2 -2
  43. data/scss/toolkit/effects/skew.scss +2 -2
  44. data/scss/toolkit/effects/visual.scss +2 -2
  45. data/scss/toolkit/layout/base.scss +24 -2
  46. data/scss/toolkit/layout/code.scss +3 -2
  47. data/scss/toolkit/layout/form.scss +2 -2
  48. data/scss/toolkit/layout/responsive.scss +2 -2
  49. data/scss/toolkit/layout/typography.scss +2 -2
  50. data/scss/toolkit/themes/demo.scss +17 -14
  51. data/version.md +1 -1
  52. metadata +6 -3
@@ -0,0 +1,46 @@
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
+ .#{$vendor-prefix}divider {
10
+ position: relative;
11
+ text-align: center;
12
+ margin: $margin 0;
13
+ user-select: none;
14
+ overflow: hidden;
15
+ clear: both;
16
+ min-height: 2px;
17
+
18
+ &:after,
19
+ &:before {
20
+ position: absolute;
21
+ content: " ";
22
+ width: 50%;
23
+ top: 50%;
24
+ margin-top: -1px;
25
+ border-top: 1px solid black(.1);
26
+ border-bottom: 1px solid white(.75);
27
+ }
28
+
29
+ &:before {
30
+ left: 0;
31
+ margin-left: -1.5rem;
32
+ }
33
+
34
+ &:after {
35
+ right: 0;
36
+ margin-right: -1.5rem;
37
+ }
38
+
39
+ // Collapse the middle when there is no content
40
+ &:empty {
41
+ &:before,
42
+ &:after {
43
+ margin: -1px 0 0 0 !important;
44
+ }
45
+ }
46
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -18,7 +18,7 @@
18
18
  z-index: $drop-zindex;
19
19
  opacity: 0;
20
20
  visibility: hidden;
21
- transition: opacity $drop-transition;
21
+ transition: opacity $drop-transition, visibility $drop-transition;
22
22
 
23
23
  // Nested
24
24
  .#{$vendor-prefix}drop {
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -14,7 +14,7 @@
14
14
  opacity: 0;
15
15
  visibility: hidden;
16
16
  box-sizing: content-box; // required by MooTools for multi columns
17
- transition: opacity $flyout-transition;
17
+ transition: opacity $flyout-transition, visibility $flyout-transition;
18
18
 
19
19
  ul {
20
20
  @include reset-list;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -18,18 +18,21 @@
18
18
  background: black($mask-opacity);
19
19
  transition: all $mask-transition;
20
20
  color: #fff;
21
+ user-select: none;
21
22
  }
22
23
 
23
24
  .#{$vendor-prefix}mask-message {
24
25
  text-align: center;
25
26
  max-width: 80%;
26
- opacity: 1;
27
- transition: all $mask-transition;
28
27
  @include position-center;
29
28
 
30
29
  &:empty { display: none; }
31
30
  }
32
31
 
33
- .#{$vendor-prefix}maskable {
32
+ .#{$vendor-prefix}mask-target {
34
33
  overflow: hidden;
34
+
35
+ // Fixes issues where mask does not display in iOS
36
+ // Kind of hacky? Other solutions?
37
+ transform: translate3d(0, 0, 0);
35
38
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -42,26 +42,18 @@
42
42
  }
43
43
 
44
44
  .#{$vendor-prefix}modal-outer {
45
- position: absolute;
46
- top: 0;
47
- left: 50%;
48
- width: 50%;
49
- height: auto;
45
+ position: relative;
50
46
  margin: $margin;
51
47
  pointer-events: auto; // allow within modal
52
- transform: translateX(-50%);
53
48
 
54
- @include if-max($breakpoint-mobile-landscape) {
55
- width: auto;
56
- left: auto;
57
- right: auto;
58
- transform: translateX(0);
49
+ @include if-min($modal-mobile-breakpoint) {
50
+ width: 50%;
51
+ margin: $margin auto;
59
52
  }
60
53
  }
61
54
 
62
55
  .#{$vendor-prefix}modal-inner {
63
56
  position: relative;
64
- margin: 0 auto;
65
57
  }
66
58
 
67
59
  .#{$vendor-prefix}modal-head,
@@ -87,23 +79,23 @@
87
79
 
88
80
  .#{$vendor-prefix}modal {
89
81
  #{join-classes($modal-animation)} {
90
- .#{$vendor-prefix}modal-handle {
82
+ .#{$vendor-prefix}modal-outer {
91
83
  opacity: 0;
92
84
  transition: all $modal-transition;
93
85
  }
94
86
 
95
- &.show .#{$vendor-prefix}modal-handle {
87
+ &.show .#{$vendor-prefix}modal-outer {
96
88
  opacity: 1;
97
89
  }
98
90
  }
99
91
 
100
92
  @if index($modal-animation, "from-above") {
101
93
  &.from-above {
102
- .#{$vendor-prefix}modal-handle {
94
+ .#{$vendor-prefix}modal-outer {
103
95
  transform: scale(1.3);
104
96
  }
105
97
 
106
- &.show .#{$vendor-prefix}modal-handle {
98
+ &.show .#{$vendor-prefix}modal-outer {
107
99
  transform: scale(1);
108
100
  }
109
101
  }
@@ -111,11 +103,11 @@
111
103
 
112
104
  @if index($modal-animation, "from-below") {
113
105
  &.from-below {
114
- .#{$vendor-prefix}modal-handle {
106
+ .#{$vendor-prefix}modal-outer {
115
107
  transform: scale(0.7);
116
108
  }
117
109
 
118
- &.show .#{$vendor-prefix}modal-handle {
110
+ &.show .#{$vendor-prefix}modal-outer {
119
111
  transform: scale(1);
120
112
  }
121
113
  }
@@ -123,11 +115,11 @@
123
115
 
124
116
  @if index($modal-animation, "slide-in-top") {
125
117
  &.slide-in-top {
126
- .#{$vendor-prefix}modal-handle {
118
+ .#{$vendor-prefix}modal-outer {
127
119
  transform: translateY(-50%);
128
120
  }
129
121
 
130
- &.show .#{$vendor-prefix}modal-handle {
122
+ &.show .#{$vendor-prefix}modal-outer {
131
123
  transform: translateY(0);
132
124
  }
133
125
  }
@@ -135,11 +127,11 @@
135
127
 
136
128
  @if index($modal-animation, "slide-in-bottom") {
137
129
  &.slide-in-bottom {
138
- .#{$vendor-prefix}modal-handle {
130
+ .#{$vendor-prefix}modal-outer {
139
131
  transform: translateY(50%);
140
132
  }
141
133
 
142
- &.show .#{$vendor-prefix}modal-handle {
134
+ &.show .#{$vendor-prefix}modal-outer {
143
135
  transform: translateY(0);
144
136
  }
145
137
  }
@@ -147,12 +139,11 @@
147
139
 
148
140
  @if index($modal-animation, "slide-in-left") {
149
141
  &.slide-in-left {
150
- .#{$vendor-prefix}modal-handle {
151
- transition: all $modal-transition cubic-bezier(0.25, 0.5, 0.5, 0.9);
152
- transform: translateX(-50%);
142
+ .#{$vendor-prefix}modal-outer {
143
+ transform: translateX(-25%);
153
144
  }
154
145
 
155
- &.show .#{$vendor-prefix}modal-handle {
146
+ &.show .#{$vendor-prefix}modal-outer {
156
147
  transform: translateX(0);
157
148
  }
158
149
  }
@@ -160,79 +151,12 @@
160
151
 
161
152
  @if index($modal-animation, "slide-in-right") {
162
153
  &.slide-in-right {
163
- .#{$vendor-prefix}modal-handle {
164
- transition: all $modal-transition cubic-bezier(0.25, 0.5, 0.5, 0.9);
165
- transform: translateX(50%);
166
- }
167
-
168
- &.show .#{$vendor-prefix}modal-handle {
169
- transform: translateX(0);
170
- }
171
- }
172
- }
173
-
174
- @if index($modal-animation, "sticky-top") {
175
- &.sticky-top {
176
154
  .#{$vendor-prefix}modal-outer {
177
- top: -100%;
178
- opacity: 0;
179
- transition: all $modal-transition;
155
+ transform: translateX(25%);
180
156
  }
181
157
 
182
158
  &.show .#{$vendor-prefix}modal-outer {
183
- top: 0;
184
- opacity: 1;
185
- }
186
- }
187
- }
188
-
189
- @if index($modal-animation, "sticky-bottom") {
190
- &.sticky-bottom {
191
- .#{$vendor-prefix}modal-outer {
192
- top: auto;
193
- bottom: -100%;
194
- opacity: 0;
195
- transition: all $modal-transition;
196
- }
197
-
198
- &.show .#{$vendor-prefix}modal-outer {
199
- bottom: 0;
200
- opacity: 1;
201
- }
202
- }
203
- }
204
-
205
- @if index($modal-animation, "sticky-left") {
206
- &.sticky-left {
207
- .#{$vendor-prefix}modal-outer {
208
- left: -100%;
209
- opacity: 0;
210
- top: 50%;
211
- transition: all $modal-transition;
212
- transform: translate(0, -50%);
213
- }
214
-
215
- &.show .#{$vendor-prefix}modal-outer {
216
- left: 0;
217
- opacity: 1;
218
- }
219
- }
220
- }
221
-
222
- @if index($modal-animation, "sticky-right") {
223
- &.sticky-right {
224
- .#{$vendor-prefix}modal-outer {
225
- left: auto;
226
- right: -100%;
227
- top: 50%;
228
- opacity: 0;
229
- transition: all $modal-transition;
230
- transform: translate(0, -50%);
231
- }
232
-
233
- &.show .#{$vendor-prefix}modal-outer {
234
- right: 0;
235
- opacity: 1;
159
+ transform: translateX(0);
236
160
  }
237
161
  }
238
162
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @copyright 2010-2013, The Titon Project
3
- * @license http://opensource.org/licenses/bsd-license.php
2
+ * @copyright 2010-2014, The Titon Project
3
+ * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
@@ -0,0 +1,145 @@
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
+ .#{$vendor-prefix}off-canvas {
10
+ visibility: visible;
11
+ position: fixed;
12
+ overflow: auto;
13
+ top: 0;
14
+ height: 100%;
15
+ z-index: 1;
16
+ transition: transform $offCanvas-transition, visibility $offCanvas-transition;
17
+ -webkit-overflow-scrolling: touch;
18
+ }
19
+
20
+ .#{$vendor-prefix}on-canvas {
21
+ position: relative;
22
+ width: 100%;
23
+ max-width: 100%;
24
+ z-index: 2;
25
+ transition: transform $offCanvas-transition, padding $offCanvas-transition;
26
+ }
27
+
28
+ .#{$vendor-prefix}canvas {
29
+ position: relative;
30
+ overflow-x: hidden;
31
+ }
32
+
33
+ //-------------------- Modifiers --------------------//
34
+
35
+ .#{$vendor-prefix}off-canvas--left {
36
+ @extend .#{$vendor-prefix}off-canvas;
37
+
38
+ left: 0;
39
+ width: $offCanvas-left-width;
40
+ transform: translate3d(-100%, 0, 0);
41
+
42
+ &.show { transform: translate3d(0, 0, 0) !important; }
43
+ }
44
+
45
+ .#{$vendor-prefix}off-canvas--right {
46
+ @extend .#{$vendor-prefix}off-canvas;
47
+
48
+ right: 0;
49
+ width: $offCanvas-right-width;
50
+ transform: translate3d(100%, 0, 0);
51
+
52
+ &.show { transform: translate3d(0, 0, 0) !important; }
53
+ }
54
+
55
+ //-------------------- Animations --------------------//
56
+
57
+ .#{$vendor-prefix}canvas {
58
+ &.on-top,
59
+ &.squish {
60
+ .#{$vendor-prefix}off-canvas { z-index: 3; }
61
+ }
62
+
63
+ &.push-reveal {
64
+ .#{$vendor-prefix}off-canvas--left { transform: translate3d(-50%, 0, 0); }
65
+ .#{$vendor-prefix}off-canvas--right { transform: translate3d(50%, 0, 0); }
66
+ }
67
+
68
+ &.reverse-push {
69
+ .#{$vendor-prefix}off-canvas--left { transform: translate3d(100%, 0, 0); }
70
+ .#{$vendor-prefix}off-canvas--right { transform: translate3d(-100%, 0, 0); }
71
+ }
72
+
73
+ &.reveal {
74
+ .#{$vendor-prefix}off-canvas { transform: translate3d(0, 0, 0); }
75
+ }
76
+
77
+ &.push-down {
78
+ .#{$vendor-prefix}off-canvas--left,
79
+ .#{$vendor-prefix}off-canvas--right { transform: translate3d(0, -100%, 0); }
80
+ }
81
+
82
+ &.push,
83
+ &.push-reveal,
84
+ &.push-down,
85
+ &.reverse-push,
86
+ &.reveal {
87
+ &.move-left {
88
+ .#{$vendor-prefix}on-canvas {
89
+ transform: translate3d(-$offCanvas-right-width, 0, 0);
90
+ }
91
+ }
92
+
93
+ &.move-right {
94
+ .#{$vendor-prefix}on-canvas {
95
+ transform: translate3d($offCanvas-left-width, 0, 0);
96
+ }
97
+ }
98
+ }
99
+
100
+ &.squish {
101
+ &.move-left {
102
+ .#{$vendor-prefix}on-canvas {
103
+ padding-right: $offCanvas-right-width;
104
+ }
105
+ }
106
+
107
+ &.move-right {
108
+ .#{$vendor-prefix}on-canvas {
109
+ padding-left: $offCanvas-left-width;
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ //-------------------- Responsive --------------------//
116
+
117
+ @include if-max($offCanvas-mobile-breakpoint) {
118
+ .#{$vendor-prefix}off-canvas--left {
119
+ width: $offCanvas-left-width-mobile;
120
+ }
121
+
122
+ .#{$vendor-prefix}off-canvas--right {
123
+ width: $offCanvas-right-width-mobile;
124
+ }
125
+
126
+ .#{$vendor-prefix}canvas {
127
+ &.push,
128
+ &.push-reveal,
129
+ &.push-down,
130
+ &.reverse-push,
131
+ &.reveal {
132
+ &.move-left {
133
+ .#{$vendor-prefix}on-canvas {
134
+ transform: translate3d(-$offCanvas-right-width-mobile, 0, 0);
135
+ }
136
+ }
137
+
138
+ &.move-right {
139
+ .#{$vendor-prefix}on-canvas {
140
+ transform: translate3d($offCanvas-left-width-mobile, 0, 0);
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }