titon-toolkit 0.12.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,17 +25,6 @@
25
25
  width: 98%;
26
26
  left: 1.5%;
27
27
  }
28
-
29
- &.pill:after,
30
- &.oval:after,
31
- &.skew:after {
32
- width: 90%;
33
- left: 5.5%;
34
- }
35
-
36
- &.pill:after { border-radius: 1rem 1rem 2rem 2rem / 1rem 1rem 1rem 1rem; }
37
- &.oval:after { border-radius: 5rem 5rem 4rem 4rem / 1.5rem 1.5rem 1.5rem 1.5rem; }
38
- &.skew:after { border-radius: 1rem 1rem 3rem 3rem / 1rem 1rem 2rem 2rem; }
39
28
  }
40
29
 
41
30
  //-------------------- Reflection --------------------//
@@ -34,6 +34,10 @@ input::-moz-focus-inner {
34
34
  border: 0;
35
35
  }
36
36
 
37
+ input[type="search"] {
38
+ @include box-sizing("border-box");
39
+ }
40
+
37
41
  // Required values to match browser restrictions
38
42
  label,
39
43
  .input-static {
@@ -57,7 +61,7 @@ label,
57
61
  @include transition(all .3s);
58
62
 
59
63
  &:hover { border-color: $gray-darkest; }
60
- &:focus { border-color: $info; box-shadow: 0 0 5px $info-light; outline: 0; }
64
+ &:focus { border-color: $info; box-shadow: 0 0 5px $info-light; outline: none; }
61
65
 
62
66
  @include disabled-state {
63
67
  cursor: not-allowed;
@@ -13,17 +13,20 @@
13
13
  > .input-addon,
14
14
  > .button,
15
15
  > .button-group {
16
+ float: left;
16
17
  display: inline-block;
17
18
  position: relative;
18
19
  border-radius: 0;
19
- margin-right: -6px; // Remove whitespace and overlap borders
20
+ margin-right: -1px;
20
21
  white-space: nowrap;
21
22
  height: auto;
22
23
  vertical-align: middle;
24
+
25
+ &:last-child { margin-right: 0; }
26
+ &:hover, &:focus { z-index: 1; }
23
27
  }
24
28
 
25
- // Inputs should always be above everything else
26
- > .input { z-index: 1; }
29
+ @include clear-fix;
27
30
  }
28
31
 
29
32
  .input-addon {
@@ -44,6 +44,12 @@
44
44
  }
45
45
  }
46
46
 
47
+ .table-responsive {
48
+ width: 100%;
49
+ max-width: 100%;
50
+ overflow-x: auto;
51
+ }
52
+
47
53
  //-------------------- Modifiers --------------------//
48
54
 
49
55
  .table.table--hover {
@@ -20,7 +20,7 @@ h1, h2, h3, h4, h5, h6 {
20
20
  font-weight: normal;
21
21
  }
22
22
 
23
- p, ul, ol, hr, blockquote {
23
+ p, ul, ol, hr {
24
24
  margin: $margin 0;
25
25
  }
26
26
 
@@ -6,6 +6,8 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
+ $accordion-transition: $default-transition !default;
10
+
9
11
  /**
10
12
  * Should be used in conjunction with the JavaScript Titon.Tooltip module.
11
13
  *
@@ -55,7 +57,7 @@
55
57
  .accordion-inner {
56
58
  overflow: hidden;
57
59
  position: relative;
58
- @include transition(all .3s ease-in-out);
60
+ @include transition(all $accordion-transition ease-in-out);
59
61
 
60
62
  &.show { height: auto; }
61
63
  &.hide { max-height: 0; } // don't include on base styles
@@ -6,6 +6,9 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
+ $blackout-opacity: .5 !default;
10
+ $blackout-transition: $default-transition !default;
11
+
9
12
  /**
10
13
  * Should be used in conjunction with the JavaScript Titon.Blackout module.
11
14
  */
@@ -19,6 +22,6 @@
19
22
  z-index: 600;
20
23
  opacity: 0;
21
24
  visibility: hidden;
22
- background: black(.5);
23
- @include transition(all 0.3s);
25
+ background: black($blackout-opacity);
26
+ @include transition(all $blackout-transition);
24
27
  }
@@ -6,6 +6,8 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
+ $carousel-transition: 1s !default;
10
+
9
11
  /**
10
12
  * Should be used in conjunction with the JavaScript Titon.Carousel module.
11
13
  *
@@ -50,7 +52,7 @@
50
52
  width: 100%;
51
53
  height: auto;
52
54
  z-index: 1;
53
- @include transition(left 1s, top 1s);
55
+ @include transition(left $carousel-transition, top $carousel-transition);
54
56
 
55
57
  > li {
56
58
  position: relative;
@@ -65,16 +67,21 @@
65
67
  max-width: 100%;
66
68
  height: auto;
67
69
  }
70
+ }
71
+ }
68
72
 
69
- .carousel-caption {
70
- position: absolute;
71
- bottom: 0;
72
- left: 0;
73
- width: 100%;
74
- padding: $padding;
75
- color: #fff;
76
- background: black(.70);
77
- }
73
+ .carousel-caption {
74
+ position: absolute;
75
+ bottom: 0;
76
+ left: 0;
77
+ width: 100%;
78
+ padding: $padding;
79
+ color: #fff;
80
+ background: black(.70);
81
+
82
+ @include in-small {
83
+ font-size: $small-size;
84
+ padding: $small-padding;
78
85
  }
79
86
  }
80
87
 
@@ -136,6 +143,7 @@
136
143
  width: 10px;
137
144
  border-radius: 50%;
138
145
  opacity: .65;
146
+ background: black(0);
139
147
 
140
148
  &:hover { opacity: 1; }
141
149
  &.is-active { background: #fff; }
@@ -167,7 +175,7 @@
167
175
  left: 0;
168
176
  opacity: 0;
169
177
  z-index: 1;
170
- @include transition(opacity 1s);
178
+ @include transition(opacity $carousel-transition);
171
179
 
172
180
  &.show { z-index: 2; }
173
181
  }
@@ -6,6 +6,8 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
+ $flyout-transition: $default-transition !default;
10
+
9
11
  /**
10
12
  * Should be used in conjunction with the JavaScript Titon.Flyout module.
11
13
  */
@@ -20,7 +22,7 @@
20
22
  background: $gray;
21
23
  border: 1px solid $gray-dark;
22
24
  @include box-sizing(content-box); // required by MooTools for multi columns
23
- @include transition(opacity 0.3s);
25
+ @include transition(opacity $flyout-transition);
24
26
 
25
27
  ul {
26
28
  list-style: none;
@@ -51,7 +53,7 @@
51
53
  // Sub-flyouts
52
54
  > .flyout {
53
55
  left: 90%;
54
- @include transition(left .3s, right .3s, opacity .3s);
56
+ @include transition(left $flyout-transition, right $flyout-transition, opacity $flyout-transition);
55
57
 
56
58
  // Reverse menu to left side incase it goes outside the viewport
57
59
  // Will be set automatically from the Javascript layer
@@ -6,6 +6,8 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
+ $modal-transition: $default-transition !default;
10
+
9
11
  /**
10
12
  * Should be used in conjunction with the JavaScript Titon.Modal module.
11
13
  *
@@ -44,7 +46,7 @@
44
46
  .close { display: none; }
45
47
 
46
48
  .modal-outer {
47
- background: $gray url("../../../img/loader.gif") 50% 50% no-repeat;
49
+ background: $gray;
48
50
  }
49
51
  }
50
52
  }
@@ -90,7 +92,7 @@
90
92
  &.flip-vert {
91
93
  .modal-outer {
92
94
  opacity: 0;
93
- @include transition(all 0.3s);
95
+ @include transition(all $modal-transition);
94
96
  }
95
97
 
96
98
  &.show .modal-outer {
@@ -100,7 +102,7 @@
100
102
 
101
103
  &.fade {
102
104
  opacity: 0;
103
- @include transition(opacity 0.3s);
105
+ @include transition(opacity $modal-transition);
104
106
  }
105
107
 
106
108
  &.from-above {
@@ -145,7 +147,7 @@
145
147
 
146
148
  &.slide-in-left {
147
149
  .modal-outer {
148
- @include transition(all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9));
150
+ @include transition(all $modal-transition cubic-bezier(0.25, 0.5, 0.5, 0.9));
149
151
  @include transform(translateX(-50%));
150
152
  }
151
153
 
@@ -156,7 +158,7 @@
156
158
 
157
159
  &.slide-in-right {
158
160
  .modal-outer {
159
- @include transition(all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9));
161
+ @include transition(all $modal-transition cubic-bezier(0.25, 0.5, 0.5, 0.9));
160
162
  @include transform(translateX(50%));
161
163
  }
162
164
 
@@ -168,7 +170,7 @@
168
170
  &.sticky-top {
169
171
  top: -100%;
170
172
  opacity: 0;
171
- @include transition(all 0.3s);
173
+ @include transition(all $modal-transition);
172
174
  @include transform(translateX(-50%)); // reset to x
173
175
 
174
176
  &.show {
@@ -181,7 +183,7 @@
181
183
  top: auto;
182
184
  bottom: -100%;
183
185
  opacity: 0;
184
- @include transition(all 0.3s);
186
+ @include transition(all $modal-transition);
185
187
  @include transform(translateX(-50%)); // reset to x
186
188
 
187
189
  &.show {
@@ -193,7 +195,7 @@
193
195
  &.sticky-left {
194
196
  left: -100%;
195
197
  opacity: 0;
196
- @include transition(all 0.3s);
198
+ @include transition(all $modal-transition);
197
199
  @include transform(translate(0, -50%));
198
200
 
199
201
  &.show {
@@ -206,7 +208,7 @@
206
208
  left: auto;
207
209
  right: -100%;
208
210
  opacity: 0;
209
- @include transition(all 0.3s);
211
+ @include transition(all $modal-transition);
210
212
  @include transform(translate(0, -50%));
211
213
 
212
214
  &.show {
@@ -6,6 +6,8 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
+ $showcase-transition: $default-transition !default;
10
+
9
11
  /**
10
12
  * Should be used in conjunction with the JavaScript Titon.Showcase module.
11
13
  *
@@ -50,7 +52,7 @@
50
52
  }
51
53
 
52
54
  .showcase-inner {
53
- background: $gray url("../../../img/loader.gif") 50% 50% no-repeat;
55
+ background: $gray;
54
56
  }
55
57
  }
56
58
  }
@@ -71,14 +73,14 @@
71
73
  max-width: 1024px;
72
74
  position: relative;
73
75
  overflow: hidden;
74
- @include transition(width .3s, height .3s);
76
+ @include transition(width $showcase-transition, height $showcase-transition);
75
77
 
76
78
  > li {
77
79
  position: absolute;
78
80
  top: 0;
79
81
  left: 0;
80
82
  opacity: 0;
81
- @include transition(opacity .3s);
83
+ @include transition(opacity $showcase-transition);
82
84
 
83
85
  > img {
84
86
  max-width: 100%;
@@ -104,6 +106,11 @@
104
106
  color: #fff;
105
107
  background: black(.70);
106
108
  display: none;
109
+
110
+ @include in-small {
111
+ font-size: $small-size;
112
+ padding: $small-padding;
113
+ }
107
114
  }
108
115
 
109
116
  .showcase-prev,
@@ -156,6 +163,7 @@
156
163
  width: 10px;
157
164
  border-radius: 50%;
158
165
  opacity: .65;
166
+ background: black(0);
159
167
 
160
168
  &:hover { opacity: 1; }
161
169
  &.is-active { background: #fff; }
@@ -6,6 +6,8 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
+ $tooltip-transition: $default-transition !default;
10
+
9
11
  /**
10
12
  * Should be used in conjunction with the JavaScript Titon.Tooltip module.
11
13
  *
@@ -87,7 +89,7 @@
87
89
  }
88
90
 
89
91
  &.from-above {
90
- @include transition(transform 0.3s);
92
+ @include transition(transform $tooltip-transition);
91
93
  @include transform(scale(1.2));
92
94
 
93
95
  &.show {
@@ -96,7 +98,7 @@
96
98
  }
97
99
 
98
100
  &.from-below {
99
- @include transition(transform 0.3s);
101
+ @include transition(transform $tooltip-transition);
100
102
  @include transform(scale(0.8));
101
103
 
102
104
  &.show {
@@ -105,7 +107,7 @@
105
107
  }
106
108
 
107
109
  &.flip-rotate {
108
- @include transition(transform 0.3s);
110
+ @include transition(transform $tooltip-transition);
109
111
  @include transform(rotate(-90deg));
110
112
 
111
113
  &.show {
@@ -114,7 +116,7 @@
114
116
  }
115
117
 
116
118
  &.slide-in {
117
- @include transition(transform 0.3s);
119
+ @include transition(transform $tooltip-transition);
118
120
 
119
121
  &.top-left { @include transform(translate(-25%, -25%)); }
120
122
  &.top-center { @include transform(translateY(-50%)); }
@@ -6,8 +6,11 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- body {
9
+ html {
10
10
  font: normal 16px/1.75rem "Helvetica Neue", Helvetica, Arial, sans-serif;
11
+ }
12
+
13
+ body {
11
14
  background: $background-color;
12
15
  color: $foreground-color;
13
16
  }
@@ -27,6 +30,13 @@ code { background: $info-light; color: $info-dark; }
27
30
  var { background: $error-light; color: $error-dark; }
28
31
  mark { background: tint($warning-light, 25%); }
29
32
 
33
+ .input-group {
34
+ > .input,
35
+ > .input-addon,
36
+ > .button,
37
+ > .button-group .button { height: 46px; }
38
+ }
39
+
30
40
  //-------------------- Accordion --------------------//
31
41
 
32
42
  .accordion-head {
@@ -247,6 +257,7 @@ mark { background: tint($warning-light, 25%); }
247
257
  .modal-foot {
248
258
  background: $gray-lightest;
249
259
  text-align: center;
260
+ margin-bottom: -1px;
250
261
  }
251
262
 
252
263
  //-------------------- Popover --------------------//
@@ -54,6 +54,13 @@ body {
54
54
  line-height: 22px;
55
55
  }
56
56
 
57
+ .input-group {
58
+ > .input,
59
+ > .input-addon,
60
+ > .button,
61
+ > .button-group .button { height: 42px; }
62
+ }
63
+
57
64
  //-------------------- Typography --------------------//
58
65
 
59
66
  .caret-up { border-bottom-color: $foreground-color; }