titon-toolkit 0.9.4 → 0.10.0
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.
- data/license.md +23 -0
- data/readme.md +93 -0
- data/src/lib/titon-toolkit.rb +2 -2
- data/src/scss/toolkit.scss +3 -3
- data/src/scss/toolkit/effects/visual.scss +47 -47
- data/src/scss/toolkit/layout/base.scss +32 -32
- data/src/scss/toolkit/layout/code.scss +38 -38
- data/src/scss/toolkit/layout/form.scss +86 -86
- data/src/scss/toolkit/layout/grid.scss +31 -31
- data/src/scss/toolkit/layout/input-group.scss +41 -41
- data/src/scss/toolkit/layout/responsive.scss +21 -21
- data/src/scss/toolkit/layout/table.scss +59 -59
- data/src/scss/toolkit/layout/typography.scss +18 -18
- data/src/scss/toolkit/mixins/_grid.scss +8 -8
- data/src/scss/toolkit/mixins/_layout.scss +36 -36
- data/src/scss/toolkit/mixins/_responsive.scss +56 -56
- data/src/scss/toolkit/mixins/_themes.scss +78 -78
- data/src/scss/toolkit/modules/accordion.scss +33 -33
- data/src/scss/toolkit/modules/blackout.scss +13 -13
- data/src/scss/toolkit/modules/carousel.scss +141 -141
- data/src/scss/toolkit/modules/flyout.scss +57 -57
- data/src/scss/toolkit/modules/modal.scss +206 -206
- data/src/scss/toolkit/modules/popover.scss +58 -58
- data/src/scss/toolkit/modules/showcase.scss +135 -135
- data/src/scss/toolkit/modules/tabs.scss +29 -29
- data/src/scss/toolkit/modules/tooltip.scss +109 -109
- data/src/scss/toolkit/modules/type-ahead.scss +44 -44
- data/src/scss/toolkit/themes/titon.scss +242 -242
- data/src/scss/toolkit/themes/tomorrow-night.scss +322 -322
- data/src/scss/toolkit/ui/alert.scss +29 -29
- data/src/scss/toolkit/ui/breadcrumbs.scss +41 -41
- data/src/scss/toolkit/ui/button-group.scss +181 -181
- data/src/scss/toolkit/ui/button.scss +31 -31
- data/src/scss/toolkit/ui/dropdown.scss +83 -83
- data/src/scss/toolkit/ui/icon.scss +5 -5
- data/src/scss/toolkit/ui/label-badge.scss +48 -48
- data/src/scss/toolkit/ui/lazy-load.scss +8 -5
- data/src/scss/toolkit/ui/matrix.scss +26 -0
- data/src/scss/toolkit/ui/pagination.scss +108 -108
- data/src/scss/toolkit/ui/pin.scss +5 -5
- data/src/scss/toolkit/ui/progress.scss +20 -20
- data/version.md +1 -0
- metadata +17 -5
- checksums.yaml +0 -15
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
* @copyright
|
3
|
-
* @license
|
4
|
-
* @link
|
2
|
+
* @copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
5
|
*/
|
6
6
|
|
7
7
|
@import "../common";
|
@@ -9,58 +9,58 @@
|
|
9
9
|
/**
|
10
10
|
* Should be used in conjunction with the JavaScript Titon.Modal module.
|
11
11
|
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
*
|
18
|
-
*
|
19
|
-
*
|
12
|
+
* <div class="modal">
|
13
|
+
* <div class="modal-outer">
|
14
|
+
* <div class="modal-inner">
|
15
|
+
* Custom content here
|
16
|
+
* </div>
|
17
|
+
* <button type="button" class="modal-close"></button>
|
18
|
+
* </div>
|
19
|
+
* </div>
|
20
20
|
*/
|
21
21
|
|
22
22
|
.modal {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
23
|
+
position: fixed;
|
24
|
+
top: 50%;
|
25
|
+
left: 50%;
|
26
|
+
width: 50%;
|
27
|
+
height: auto;
|
28
|
+
margin: 0;
|
29
|
+
padding: 0;
|
30
|
+
z-index: 610; // higher than blackout
|
31
|
+
max-width: 700px;
|
32
|
+
min-width: 350px;
|
33
|
+
visibility: hidden;
|
34
|
+
backface-visibility: hidden;
|
35
|
+
@include transform(translateX(-50%) translateY(-50%));
|
36
|
+
|
37
|
+
.close {
|
38
|
+
position: absolute;
|
39
|
+
top: -1px;
|
40
|
+
right: -35px;
|
41
|
+
}
|
42
|
+
|
43
|
+
&.is-loading {
|
44
|
+
.close { display: none; }
|
45
|
+
|
46
|
+
.modal-outer {
|
47
|
+
background: $gray url("../../../img/loader.gif") 50% 50% no-repeat;
|
48
|
+
}
|
49
|
+
}
|
50
50
|
}
|
51
51
|
|
52
52
|
// Used for animations, should also contain the styles
|
53
53
|
.modal-outer {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
54
|
+
position: relative;
|
55
|
+
margin: 0 auto;
|
56
|
+
background: $gray;
|
57
|
+
border: 1px solid $gray-dark;
|
58
58
|
}
|
59
59
|
|
60
60
|
// Reset draggable cursor
|
61
61
|
.modal.is-draggable {
|
62
|
-
|
63
|
-
|
62
|
+
.modal-inner { cursor: default; }
|
63
|
+
.modal-head { cursor: move; }
|
64
64
|
}
|
65
65
|
|
66
66
|
// Apply block padding
|
@@ -69,175 +69,175 @@
|
|
69
69
|
.modal-foot,
|
70
70
|
.modal-loading,
|
71
71
|
.modal-error {
|
72
|
-
|
72
|
+
padding: $padding;
|
73
73
|
}
|
74
74
|
|
75
75
|
// Remove margins from text elements
|
76
76
|
.modal-body {
|
77
|
-
|
77
|
+
@include content-spacing;
|
78
78
|
}
|
79
79
|
|
80
80
|
//-------------------- Animations --------------------//
|
81
81
|
|
82
82
|
.modal {
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
83
|
+
&.from-above,
|
84
|
+
&.from-below,
|
85
|
+
&.slide-in-top,
|
86
|
+
&.slide-in-bottom,
|
87
|
+
&.slide-in-left,
|
88
|
+
&.slide-in-right,
|
89
|
+
&.flip,
|
90
|
+
&.flip-vert {
|
91
|
+
.modal-outer {
|
92
|
+
opacity: 0;
|
93
|
+
@include transition(all 0.3s);
|
94
|
+
}
|
95
|
+
|
96
|
+
&.show .modal-outer {
|
97
|
+
opacity: 1;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
&.fade {
|
102
|
+
opacity: 0;
|
103
|
+
@include transition(opacity 0.3s);
|
104
|
+
}
|
105
|
+
|
106
|
+
&.from-above {
|
107
|
+
.modal-outer {
|
108
|
+
@include transform(scale(1.3));
|
109
|
+
}
|
110
|
+
|
111
|
+
&.show .modal-outer {
|
112
|
+
@include transform(scale(1));
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
&.from-below {
|
117
|
+
.modal-outer {
|
118
|
+
@include transform(scale(0.7));
|
119
|
+
}
|
120
|
+
|
121
|
+
&.show .modal-outer {
|
122
|
+
@include transform(scale(1));
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
&.slide-in-top {
|
127
|
+
.modal-outer {
|
128
|
+
@include transform(translateY(-50%));
|
129
|
+
}
|
130
|
+
|
131
|
+
&.show .modal-outer {
|
132
|
+
@include transform(translateY(0));
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
&.slide-in-bottom {
|
137
|
+
.modal-outer {
|
138
|
+
@include transform(translateY(50%));
|
139
|
+
}
|
140
|
+
|
141
|
+
&.show .modal-outer {
|
142
|
+
@include transform(translateY(0));
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
&.slide-in-left {
|
147
|
+
.modal-outer {
|
148
|
+
@include transition(all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9));
|
149
|
+
@include transform(translateX(-50%));
|
150
|
+
}
|
151
|
+
|
152
|
+
&.show .modal-outer {
|
153
|
+
@include transform(translateX(0));
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
&.slide-in-right {
|
158
|
+
.modal-outer {
|
159
|
+
@include transition(all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9));
|
160
|
+
@include transform(translateX(50%));
|
161
|
+
}
|
162
|
+
|
163
|
+
&.show .modal-outer {
|
164
|
+
@include transform(translateX(0));
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
&.sticky-top {
|
169
|
+
top: -100%;
|
170
|
+
opacity: 0;
|
171
|
+
@include transition(all 0.3s);
|
172
|
+
@include transform(translateX(-50%)); // reset to x
|
173
|
+
|
174
|
+
&.show {
|
175
|
+
top: 0;
|
176
|
+
opacity: 1;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
&.sticky-bottom {
|
181
|
+
top: auto;
|
182
|
+
bottom: -100%;
|
183
|
+
opacity: 0;
|
184
|
+
@include transition(all 0.3s);
|
185
|
+
@include transform(translateX(-50%)); // reset to x
|
186
|
+
|
187
|
+
&.show {
|
188
|
+
bottom: 0;
|
189
|
+
opacity: 1;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
&.sticky-left {
|
194
|
+
left: -100%;
|
195
|
+
opacity: 0;
|
196
|
+
@include transition(all 0.3s);
|
197
|
+
@include transform(translate(0, -50%));
|
198
|
+
|
199
|
+
&.show {
|
200
|
+
left: 0;
|
201
|
+
opacity: 1;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
&.sticky-right {
|
206
|
+
left: auto;
|
207
|
+
right: -100%;
|
208
|
+
opacity: 0;
|
209
|
+
@include transition(all 0.3s);
|
210
|
+
@include transform(translate(0, -50%));
|
211
|
+
|
212
|
+
&.show {
|
213
|
+
right: 0;
|
214
|
+
opacity: 1;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
&.flip {
|
219
|
+
@include perspective(1300px);
|
220
|
+
|
221
|
+
.modal-outer {
|
222
|
+
@include transform-style(preserve-3d);
|
223
|
+
@include transform(rotateY(-70deg));
|
224
|
+
}
|
225
|
+
|
226
|
+
&.show .modal-outer {
|
227
|
+
@include transform(rotateY(0deg));
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
&.flip-vert {
|
232
|
+
@include perspective(1300px);
|
233
|
+
|
234
|
+
.modal-outer {
|
235
|
+
@include transform-style(preserve-3d);
|
236
|
+
@include transform(rotateX(-70deg));
|
237
|
+
}
|
238
|
+
|
239
|
+
&.show .modal-outer {
|
240
|
+
@include transform(rotateX(0deg));
|
241
|
+
}
|
242
|
+
}
|
243
243
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
* @copyright
|
3
|
-
* @license
|
4
|
-
* @link
|
2
|
+
* @copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
5
|
*/
|
6
6
|
|
7
7
|
@import "../common";
|
@@ -9,76 +9,76 @@
|
|
9
9
|
/**
|
10
10
|
* Should be used in conjunction with the JavaScript Titon.Popover module.
|
11
11
|
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
*
|
18
|
-
*
|
12
|
+
* <div class="popover">
|
13
|
+
* <div class="popover-inner">
|
14
|
+
* <div class="popover-head">Popover Title</div>
|
15
|
+
* <div class="popover-body">Popover Content</div>
|
16
|
+
* </div>
|
17
|
+
* <div class="popover-arrow"></div>
|
18
|
+
* </div>
|
19
19
|
*/
|
20
20
|
|
21
21
|
.popover {
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
22
|
+
position: absolute;
|
23
|
+
top: 0;
|
24
|
+
left: 0;
|
25
|
+
margin: 0;
|
26
|
+
padding: 0;
|
27
|
+
z-index: 500;
|
28
|
+
max-width: 300px;
|
29
|
+
visibility: hidden;
|
30
|
+
background: $gray;
|
31
|
+
border: 1px solid $gray-dark;
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
&.center-left .popover-arrow,
|
34
|
+
&.center-right .popover-arrow {
|
35
|
+
top: 50%;
|
36
|
+
margin-top: -8px;
|
37
|
+
}
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
&.center-left .popover-arrow {
|
40
|
+
border-left-color: #000;
|
41
|
+
right: -16px;
|
42
|
+
}
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
&.center-right .popover-arrow {
|
45
|
+
border-right-color: #000;
|
46
|
+
left: -16px;
|
47
|
+
}
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
49
|
+
&.top-center .popover-arrow,
|
50
|
+
&.bottom-center .popover-arrow {
|
51
|
+
left: 50%;
|
52
|
+
margin-left: -8px;
|
53
|
+
}
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
&.top-center .popover-arrow {
|
56
|
+
border-top-color: #000;
|
57
|
+
bottom: -16px;
|
58
|
+
}
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
60
|
+
&.bottom-center .popover-arrow {
|
61
|
+
border-bottom-color: #000;
|
62
|
+
top: -16px;
|
63
|
+
}
|
64
64
|
}
|
65
65
|
|
66
66
|
.popover-head,
|
67
67
|
.popover-body {
|
68
|
-
|
68
|
+
padding: $small-padding;
|
69
69
|
}
|
70
70
|
|
71
71
|
.popover-arrow {
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
72
|
+
width: 0;
|
73
|
+
height: 0;
|
74
|
+
border: 8px solid transparent;
|
75
|
+
position: absolute;
|
76
76
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
77
|
+
&:after {
|
78
|
+
content: "";
|
79
|
+
border: 6px solid transparent;
|
80
|
+
position: absolute;
|
81
|
+
top: -6px;
|
82
|
+
left: -6px;
|
83
|
+
}
|
84
84
|
}
|