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
@@ -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
 
@@ -14,10 +14,9 @@
14
14
  height: auto;
15
15
  margin: 0;
16
16
  padding: 0;
17
- z-index: $showcase-zindex;
18
17
  opacity: 0;
18
+ z-index: $showcase-zindex;
19
19
  visibility: hidden;
20
- -webkit-backface-visibility: hidden;
21
20
  backface-visibility: hidden;
22
21
  transform: translate(-50%, -50%);
23
22
  transition: opacity $showcase-transition, visibility $showcase-transition;
@@ -39,25 +38,28 @@
39
38
  }
40
39
 
41
40
  .#{$vendor-prefix}showcase-close {
42
- position: absolute;
43
- top: $padding;
44
- right: $padding;
41
+ float: right;
45
42
  line-height: 1rem;
46
- padding: $padding;
47
43
  background: none;
48
44
  border: 0;
45
+ padding: 0;
46
+ margin-left: 1rem;
47
+ }
48
+
49
+ .#{$vendor-prefix}showcase-caption {
50
+ opacity: 0;
51
+ transition: opacity $showcase-transition, visibility $showcase-transition;
49
52
  }
50
53
 
51
54
  .#{$vendor-prefix}showcase-inner {
52
55
  position: relative;
53
- padding: $padding;
56
+ margin-bottom: $padding;
54
57
  }
55
58
 
56
59
  .#{$vendor-prefix}showcase-items {
57
60
  @include reset-list;
58
61
  width: 100px;
59
62
  height: 100px;
60
- max-width: 1024px;
61
63
  position: relative;
62
64
  overflow: hidden;
63
65
  transition: width $showcase-transition, height $showcase-transition;
@@ -67,7 +69,7 @@
67
69
  top: 0;
68
70
  left: 0;
69
71
  opacity: 0;
70
- transition: opacity $showcase-transition;
72
+ transition: opacity $showcase-transition, visibility $showcase-transition;
71
73
 
72
74
  > img {
73
75
  max-width: 100%;
@@ -75,27 +77,6 @@
75
77
  height: auto;
76
78
  display: block;
77
79
  }
78
-
79
- &.show {
80
- .#{$vendor-prefix}showcase-caption {
81
- display: block;
82
- }
83
- }
84
- }
85
- }
86
-
87
- .#{$vendor-prefix}showcase-caption {
88
- position: absolute;
89
- bottom: 0;
90
- left: 0;
91
- width: 100%;
92
- padding: $padding;
93
- color: #fff;
94
- background: black(.70);
95
- display: none;
96
-
97
- @include in-small {
98
- @include size-small;
99
80
  }
100
81
  }
101
82
 
@@ -103,12 +84,10 @@
103
84
  .#{$vendor-prefix}showcase-next {
104
85
  display: block;
105
86
  position: absolute;
106
- padding: $padding;
107
- width: auto;
108
- height: auto;
109
87
  z-index: 5;
110
88
  top: 50%;
111
89
  background: none;
90
+ padding: 0;
112
91
  border: 0;
113
92
  transform: translateY(-50%); // move up 50% of their height
114
93
 
@@ -120,7 +99,9 @@
120
99
 
121
100
  .#{$vendor-prefix}showcase-tabs {
122
101
  position: absolute;
123
- top: ($padding * 2);
124
- left: 50%;
125
- transform: translateX(-50%); // move left 50% of their width
102
+ top: 0;
103
+ left: 0;
104
+ width: 100%;
105
+ padding: $padding;
106
+ text-align: center;
126
107
  }
@@ -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
 
@@ -0,0 +1,129 @@
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}toasts {
10
+ position: fixed;
11
+ margin: $margin;
12
+ width: 20%;
13
+ z-index: $toast-zindex;
14
+
15
+ @if index($toast-position, "top-left") {
16
+ &.top-left {
17
+ top: 0;
18
+ left: 0;
19
+ }
20
+ }
21
+
22
+ @if index($toast-position, "top-center") {
23
+ &.top-center {
24
+ top: 0;
25
+ left: 50%;
26
+ }
27
+ }
28
+
29
+ @if index($toast-position, "top-right") {
30
+ &.top-right {
31
+ top: 0;
32
+ right: 0;
33
+ }
34
+ }
35
+
36
+ @if index($toast-position, "center-left") {
37
+ &.center-left {
38
+ top: 50%;
39
+ left: 0;
40
+ }
41
+ }
42
+
43
+ @if index($toast-position, "center-right") {
44
+ &.center-right {
45
+ top: 50%;
46
+ right: 0;
47
+ }
48
+ }
49
+
50
+ @if index($toast-position, "bottom-left") {
51
+ &.bottom-left {
52
+ bottom: 0;
53
+ left: 0;
54
+ }
55
+ }
56
+
57
+ @if index($toast-position, "bottom-center") {
58
+ &.bottom-center {
59
+ bottom: 0;
60
+ left: 50%;
61
+ }
62
+ }
63
+
64
+ @if index($toast-position, "bottom-right") {
65
+ &.bottom-right {
66
+ bottom: 0;
67
+ right: 0;
68
+ }
69
+ }
70
+
71
+ @if index($toast-position, "top-center") or index($toast-position, "bottom-center") {
72
+ &.top-center,
73
+ &.bottom-center {
74
+ transform: translateX(-50%);
75
+ }
76
+ }
77
+
78
+ @if index($toast-position, "center-left") or index($toast-position, "center-right") {
79
+ &.center-left,
80
+ &.center-right {
81
+ transform: translateY(-50%);
82
+ }
83
+ }
84
+ }
85
+
86
+ .#{$vendor-prefix}toast {
87
+ margin-top: 1rem;
88
+ transition: opacity $toast-transition, visibility $toast-transition, transform $toast-transition;
89
+ opacity: 0;
90
+
91
+ &.show { opacity: 1; }
92
+ &:first-child { margin-top: 0; }
93
+ }
94
+
95
+ //-------------------- Animations --------------------//
96
+
97
+ .#{$vendor-prefix}toast {
98
+ @if index($toast-animation, "slide-up") {
99
+ &.slide-up {
100
+ transform: translateY(50%);
101
+
102
+ &.show { transform: translateY(0); }
103
+ }
104
+ }
105
+
106
+ @if index($toast-animation, "slide-down") {
107
+ &.slide-down {
108
+ transform: translateY(-50%);
109
+
110
+ &.show { transform: translateY(0); }
111
+ }
112
+ }
113
+
114
+ @if index($toast-animation, "slide-left") {
115
+ &.slide-left {
116
+ transform: translateX(25%);
117
+
118
+ &.show { transform: translateX(0); }
119
+ }
120
+ }
121
+
122
+ @if index($toast-animation, "slide-right") {
123
+ &.slide-right {
124
+ transform: translateX(-25%);
125
+
126
+ &.show { transform: translateX(0); }
127
+ }
128
+ }
129
+ }
@@ -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
 
@@ -76,7 +76,7 @@ $tooltip-arrow-width-double: ($tooltip-arrow-width * 2);
76
76
  @if index($popover-tooltip-animation, "fade") {
77
77
  &.fade {
78
78
  opacity: 0;
79
- transition: opacity 0.5s;
79
+ transition: opacity $tooltip-transition, visibility $tooltip-transition;
80
80
  }
81
81
  }
82
82
 
@@ -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
 
@@ -13,7 +13,7 @@
13
13
  z-index: $typeAhead-zindex;
14
14
  opacity: 0;
15
15
  visibility: hidden;
16
- transition: opacity 0.3s;
16
+ transition: opacity 0.3s, visibility 0.3s;
17
17
 
18
18
  ul {
19
19
  @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
 
@@ -27,6 +27,28 @@
27
27
  .shown { display: block; }
28
28
  .hidden { display: none; }
29
29
  .no-scroll { overflow: hidden; }
30
+ .no-transition { transition: none !important; }
31
+
32
+ .sr-only {
33
+ position: absolute;
34
+ width: 1px;
35
+ height: 1px;
36
+ border: 0;
37
+ padding: 0;
38
+ margin: -1px;
39
+ overflow: hidden;
40
+ clip: rect(0, 0, 0, 0);
41
+
42
+ &.is-focusable:active,
43
+ &.is-focusable:focus {
44
+ position: static;
45
+ width: auto;
46
+ height: auto;
47
+ margin: 0;
48
+ overflow: visible;
49
+ clip: auto;
50
+ }
51
+ }
30
52
 
31
53
  // Layout
32
54
  .vertical-center {
@@ -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
 
@@ -33,6 +33,7 @@ pre {
33
33
  word-spacing: normal;
34
34
  font-size: .9rem;
35
35
  overflow-x: auto;
36
+ -webkit-overflow-scrolling: touch;
36
37
 
37
38
  code {
38
39
  padding: 0;