titon-toolkit 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/scss/normalize.scss +396 -0
- data/src/scss/toolkit.scss +38 -0
- data/src/scss/toolkit/_common.scss +16 -0
- data/src/scss/toolkit/_variables.scss +59 -0
- data/src/scss/toolkit/effects/visual.scss +75 -0
- data/src/scss/toolkit/layout/base.scss +93 -0
- data/src/scss/toolkit/layout/code.scss +61 -0
- data/src/scss/toolkit/layout/form.scss +158 -0
- data/src/scss/toolkit/layout/grid.scss +64 -0
- data/src/scss/toolkit/layout/input-group.scss +56 -0
- data/src/scss/toolkit/layout/responsive.scss +53 -0
- data/src/scss/toolkit/layout/table.scss +82 -0
- data/src/scss/toolkit/layout/typography.scss +49 -0
- data/src/scss/toolkit/mixins/_grid.scss +24 -0
- data/src/scss/toolkit/mixins/_layout.scss +90 -0
- data/src/scss/toolkit/mixins/_responsive.scss +111 -0
- data/src/scss/toolkit/mixins/_themes.scss +98 -0
- data/src/scss/toolkit/modules/accordion.scss +62 -0
- data/src/scss/toolkit/modules/blackout.scss +24 -0
- data/src/scss/toolkit/modules/carousel.scss +175 -0
- data/src/scss/toolkit/modules/flyout.scss +78 -0
- data/src/scss/toolkit/modules/modal.scss +243 -0
- data/src/scss/toolkit/modules/popover.scss +84 -0
- data/src/scss/toolkit/modules/showcase.scss +166 -0
- data/src/scss/toolkit/modules/tabs.scss +56 -0
- data/src/scss/toolkit/modules/tooltip.scss +130 -0
- data/src/scss/toolkit/modules/type-ahead.scss +67 -0
- data/src/scss/toolkit/themes/titon.scss +364 -0
- data/src/scss/toolkit/themes/tomorrow-night.scss +569 -0
- data/src/scss/toolkit/ui/alert.scss +48 -0
- data/src/scss/toolkit/ui/breadcrumbs.scss +51 -0
- data/src/scss/toolkit/ui/button-group.scss +204 -0
- data/src/scss/toolkit/ui/button.scss +48 -0
- data/src/scss/toolkit/ui/dropdown.scss +105 -0
- data/src/scss/toolkit/ui/icon.scss +22 -0
- data/src/scss/toolkit/ui/label-badge.scss +76 -0
- data/src/scss/toolkit/ui/lazy-load.scss +14 -0
- data/src/scss/toolkit/ui/pagination.scss +128 -0
- data/src/scss/toolkit/ui/pin.scss +16 -0
- data/src/scss/toolkit/ui/progress.scss +34 -0
- metadata +42 -2
@@ -0,0 +1,364 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright Copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
|
+
*/
|
6
|
+
|
7
|
+
@import "../common";
|
8
|
+
|
9
|
+
body {
|
10
|
+
font: normal 16px/1.75rem "Helvetica Neue", Helvetica, Arial, sans-serif;
|
11
|
+
background: $background-color;
|
12
|
+
color: $foreground-color;
|
13
|
+
}
|
14
|
+
|
15
|
+
//-------------------- Layout --------------------//
|
16
|
+
|
17
|
+
a {
|
18
|
+
color: shade($info, 15%);
|
19
|
+
text-decoration: none;
|
20
|
+
|
21
|
+
&:hover { color: $info-dark; }
|
22
|
+
}
|
23
|
+
|
24
|
+
blockquote cite { color: $default; }
|
25
|
+
|
26
|
+
code { background: $info-light; color: $info-dark; }
|
27
|
+
var { background: $error-light; color: $error-dark; }
|
28
|
+
mark { background: tint($warning-light, 25%); }
|
29
|
+
|
30
|
+
input, textarea {
|
31
|
+
font: normal 16px/1.75rem "Helvetica Neue", Helvetica, Arial, sans-serif;
|
32
|
+
}
|
33
|
+
|
34
|
+
.close { line-height: 90%; }
|
35
|
+
|
36
|
+
//-------------------- Accordion --------------------//
|
37
|
+
|
38
|
+
.accordion-head {
|
39
|
+
@include transition(all .15s);
|
40
|
+
|
41
|
+
.is-active & {
|
42
|
+
background: $info;
|
43
|
+
border-color: $info-dark;
|
44
|
+
color: #fff;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
//-------------------- Alert --------------------//
|
49
|
+
|
50
|
+
.alert {
|
51
|
+
@include alert-style($default-light, $default-dark);
|
52
|
+
|
53
|
+
&.is-info { @include alert-style($info-light, $info-dark); }
|
54
|
+
&.is-error { @include alert-style($error-light, $error-dark); }
|
55
|
+
&.is-warning { @include alert-style($warning-light, $warning-dark); }
|
56
|
+
&.is-success { @include alert-style($success-light, $success-dark); }
|
57
|
+
}
|
58
|
+
|
59
|
+
//-------------------- Breadcrumbs --------------------//
|
60
|
+
|
61
|
+
.breadcrumbs {
|
62
|
+
overflow: hidden;
|
63
|
+
|
64
|
+
a {
|
65
|
+
height: 45px;
|
66
|
+
line-height: 45px;
|
67
|
+
padding: 0 30px 0 20px;
|
68
|
+
border-right: 0;
|
69
|
+
outline: none;
|
70
|
+
|
71
|
+
&:before,
|
72
|
+
&:after {
|
73
|
+
content: "";
|
74
|
+
position: absolute;
|
75
|
+
height: 32px;
|
76
|
+
width: 32px;
|
77
|
+
border-right: 1px solid $gray-lightest;
|
78
|
+
border-bottom: 1px solid $gray-lightest;
|
79
|
+
top: 6px;
|
80
|
+
right: 2px;
|
81
|
+
z-index: 1;
|
82
|
+
@include transform(rotate(-45deg));
|
83
|
+
}
|
84
|
+
|
85
|
+
&:before {
|
86
|
+
height: 32px;
|
87
|
+
width: 32px;
|
88
|
+
border-right: 1px solid $gray-dark;
|
89
|
+
border-bottom: 1px solid $gray-dark;
|
90
|
+
right: 4px;
|
91
|
+
}
|
92
|
+
|
93
|
+
&:hover {
|
94
|
+
&:before {
|
95
|
+
border-color: $gray-darkest;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
.caret-right { display: none; }
|
100
|
+
}
|
101
|
+
|
102
|
+
li:last-child a {
|
103
|
+
color: $default;
|
104
|
+
}
|
105
|
+
|
106
|
+
&.small {
|
107
|
+
a { height: 30px; line-height: 30px; padding: 0 25px 0 15px; }
|
108
|
+
a:before { height: 22px; width: 22px; top: 4px; }
|
109
|
+
a:after { height: 22px; width: 22px; top: 4px; }
|
110
|
+
}
|
111
|
+
|
112
|
+
&.large {
|
113
|
+
a { height: 50px; line-height: 50px; padding: 0 30px 0 20px; }
|
114
|
+
a:before { height: 40px; width: 40px; top: 4px; }
|
115
|
+
a:after { height: 40px; width: 40px; top: 4px; }
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
//-------------------- Button --------------------//
|
120
|
+
|
121
|
+
.button {
|
122
|
+
color: #fff;
|
123
|
+
@include transition(all .2s);
|
124
|
+
@include button-style($default, $default-light, $default-dark);
|
125
|
+
|
126
|
+
&:active {
|
127
|
+
top: 1px;
|
128
|
+
}
|
129
|
+
|
130
|
+
&.is-info { @include button-style($info, $info-light, $info-dark); }
|
131
|
+
&.is-error { @include button-style($error, $error-light, $error-dark); }
|
132
|
+
&.is-warning { @include button-style($warning, $warning-light, $warning-dark); }
|
133
|
+
&.is-success { @include button-style($success, $success-light, $success-dark); }
|
134
|
+
}
|
135
|
+
|
136
|
+
//-------------------- Dropdown --------------------//
|
137
|
+
|
138
|
+
.dropdown {
|
139
|
+
box-shadow: 5px 5px black(.25);
|
140
|
+
|
141
|
+
li {
|
142
|
+
a {
|
143
|
+
@include transition(background .15s);
|
144
|
+
|
145
|
+
.caret-right {
|
146
|
+
top: 2px;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
&.heading {
|
151
|
+
color: $default;
|
152
|
+
font-size: .8rem;
|
153
|
+
}
|
154
|
+
|
155
|
+
&:hover > a {
|
156
|
+
background: $info;
|
157
|
+
color: #fff;
|
158
|
+
|
159
|
+
.caret-right { border-left-color: #fff; }
|
160
|
+
}
|
161
|
+
|
162
|
+
&:nth-child(odd) {
|
163
|
+
background: $gray-lightest;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
.dropdown.dropdown--top {
|
169
|
+
box-shadow: 5px -5px black(.25);
|
170
|
+
}
|
171
|
+
|
172
|
+
//-------------------- Flyout, TypeAhead --------------------//
|
173
|
+
|
174
|
+
.flyout,
|
175
|
+
.type-ahead {
|
176
|
+
background: $gray;
|
177
|
+
border: 1px solid $gray-dark;
|
178
|
+
box-shadow: 5px 5px black(.25);
|
179
|
+
padding: $small-padding;
|
180
|
+
|
181
|
+
li {
|
182
|
+
&:nth-child(odd) > a { background: $gray-lightest; }
|
183
|
+
&.heading { background: $gray-dark; }
|
184
|
+
|
185
|
+
> a {
|
186
|
+
@include transition(all .15s);
|
187
|
+
}
|
188
|
+
|
189
|
+
> a:hover,
|
190
|
+
&.is-open > a,
|
191
|
+
&.is-active > a {
|
192
|
+
background: $info;
|
193
|
+
color: #fff;
|
194
|
+
|
195
|
+
.caret-right { border-left-color: #fff; }
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
.type-ahead-highlight { background: $warning-light; }
|
201
|
+
|
202
|
+
.type-ahead {
|
203
|
+
li a:hover,
|
204
|
+
li.is-active a {
|
205
|
+
.type-ahead-desc { color: $gray-lightest; }
|
206
|
+
.type-ahead-highlight{ background: $info-light; color: $info-dark; }
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
//-------------------- Label, Badge --------------------//
|
211
|
+
|
212
|
+
.label,
|
213
|
+
.badge {
|
214
|
+
@include label-style($default-light, $default-dark);
|
215
|
+
|
216
|
+
&.is-info { @include label-style($info-light, $info-dark); }
|
217
|
+
&.is-error { @include label-style($error-light, $error-dark); }
|
218
|
+
&.is-warning { @include label-style($warning-light, $warning-dark); }
|
219
|
+
&.is-success { @include label-style($success-light, $success-dark); }
|
220
|
+
}
|
221
|
+
|
222
|
+
.label.label--left {
|
223
|
+
&:after { border-right-color: $default-light; }
|
224
|
+
&.is-info:after { border-right-color: $info-light; }
|
225
|
+
&.is-error:after { border-right-color: $error-light; }
|
226
|
+
&.is-warning:after { border-right-color: $warning-light; }
|
227
|
+
&.is-success:after { border-right-color: $success-light; }
|
228
|
+
}
|
229
|
+
|
230
|
+
.label.label--right {
|
231
|
+
&:after { border-left-color: $default-light; }
|
232
|
+
&.is-info:after { border-left-color: $info-light; }
|
233
|
+
&.is-error:after { border-left-color: $error-light; }
|
234
|
+
&.is-warning:after { border-left-color: $warning-light; }
|
235
|
+
&.is-success:after { border-left-color: $success-light; }
|
236
|
+
}
|
237
|
+
|
238
|
+
//-------------------- Modal --------------------//
|
239
|
+
|
240
|
+
.modal-outer {
|
241
|
+
margin: $margin;
|
242
|
+
background: $gray;
|
243
|
+
border: 1px solid $gray-dark;
|
244
|
+
box-shadow: 5px 5px black(.25);
|
245
|
+
}
|
246
|
+
|
247
|
+
.modal-body {
|
248
|
+
background: #fff;
|
249
|
+
border-top: 1px solid $gray-dark;
|
250
|
+
border-bottom: 1px solid $gray-dark;
|
251
|
+
}
|
252
|
+
|
253
|
+
.modal-foot {
|
254
|
+
background: $gray-lightest;
|
255
|
+
text-align: center;
|
256
|
+
}
|
257
|
+
|
258
|
+
//-------------------- Popover --------------------//
|
259
|
+
|
260
|
+
.popover {
|
261
|
+
margin: 15px;
|
262
|
+
background: #fff;
|
263
|
+
line-height: 115%;
|
264
|
+
border-radius: $round;
|
265
|
+
border: 1px solid $gray-dark;
|
266
|
+
box-shadow: 5px 5px black(.25);
|
267
|
+
|
268
|
+
&.top-center .popover-arrow {
|
269
|
+
border-top-color: black(.25);
|
270
|
+
@include transform(translateY(6px));
|
271
|
+
|
272
|
+
&:after {
|
273
|
+
margin-top: -8px;
|
274
|
+
border-top: 8px solid #fff;
|
275
|
+
}
|
276
|
+
}
|
277
|
+
|
278
|
+
&.center-left .popover-arrow {
|
279
|
+
border-left-color: black(.25);
|
280
|
+
@include transform(translateX(6px));
|
281
|
+
|
282
|
+
&:after {
|
283
|
+
margin-left: -8px;
|
284
|
+
border-left: 8px solid #fff;
|
285
|
+
}
|
286
|
+
}
|
287
|
+
|
288
|
+
&.center-right .popover-arrow {
|
289
|
+
border-right-color: $gray-dark;
|
290
|
+
|
291
|
+
&:after {
|
292
|
+
margin-left: 2px;
|
293
|
+
border-right-color: #fff;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
&.bottom-center .popover-arrow {
|
298
|
+
border-bottom-color: $gray-dark;
|
299
|
+
|
300
|
+
&:after {
|
301
|
+
margin-top: 2px;
|
302
|
+
border-bottom-color: #fff;
|
303
|
+
}
|
304
|
+
}
|
305
|
+
|
306
|
+
&.top-left,
|
307
|
+
&.top-right,
|
308
|
+
&.bottom-left,
|
309
|
+
&.bottom-right {
|
310
|
+
margin: $margin / 2;
|
311
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
.popover-head {
|
315
|
+
font-weight: bold;
|
316
|
+
background: $gray;
|
317
|
+
border-bottom: 1px solid $gray-dark;
|
318
|
+
}
|
319
|
+
|
320
|
+
//-------------------- Progress --------------------//
|
321
|
+
|
322
|
+
.progress {
|
323
|
+
box-shadow: inset 1px 1px 2px $gray-darkest;
|
324
|
+
border-radius: $round;
|
325
|
+
}
|
326
|
+
|
327
|
+
.progress-bar {
|
328
|
+
color: #fff;
|
329
|
+
font-weight: bold;
|
330
|
+
border-top-left-radius: $round;
|
331
|
+
border-bottom-left-radius: $round;
|
332
|
+
@include progress-style($default, $default-dark);
|
333
|
+
|
334
|
+
&.is-info { @include progress-style($info, $info-dark); }
|
335
|
+
&.is-error { @include progress-style($error, $error-dark); }
|
336
|
+
&.is-warning { @include progress-style($warning, $warning-dark); }
|
337
|
+
&.is-success { @include progress-style($success, $success-dark); }
|
338
|
+
}
|
339
|
+
|
340
|
+
.progress-bar + .progress-bar {
|
341
|
+
border-top-left-radius: 0;
|
342
|
+
border-bottom-left-radius: 0;
|
343
|
+
}
|
344
|
+
|
345
|
+
//-------------------- Tooltip --------------------//
|
346
|
+
|
347
|
+
.tooltip {
|
348
|
+
background: black(.70);
|
349
|
+
color: #fff;
|
350
|
+
border-radius: $round;
|
351
|
+
margin: 10px;
|
352
|
+
line-height: 115%;
|
353
|
+
|
354
|
+
&.top-center .tooltip-arrow { border-top-color: black(.70); }
|
355
|
+
&.center-left .tooltip-arrow { border-left-color: black(.70); }
|
356
|
+
&.center-right .tooltip-arrow { border-right-color: black(.70); }
|
357
|
+
&.bottom-center .tooltip-arrow { border-bottom-color: black(.70); }
|
358
|
+
}
|
359
|
+
|
360
|
+
.tooltip-head {
|
361
|
+
color: $info;
|
362
|
+
font-weight: bold;
|
363
|
+
margin-bottom: $margin / 2;
|
364
|
+
}
|
@@ -0,0 +1,569 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright Copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
|
+
*/
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Based on the Tomorrow Night theme by Chris Kempson.
|
9
|
+
* https://github.com/chriskempson/tomorrow-theme
|
10
|
+
*/
|
11
|
+
|
12
|
+
@import "../common";
|
13
|
+
|
14
|
+
$gray-lightest: #72757b;
|
15
|
+
$gray-light: #575b62;
|
16
|
+
$gray: #373b41;
|
17
|
+
$gray-dark: #282a2e;
|
18
|
+
$gray-darkest: #1d1f21;
|
19
|
+
|
20
|
+
$background-color: #1d1f21;
|
21
|
+
$foreground-color: #c5c8c6;
|
22
|
+
$middleground-color: #373b41;
|
23
|
+
|
24
|
+
$default: #969896;
|
25
|
+
$default-light: #e2e3e2;
|
26
|
+
$default-dark: #515251;
|
27
|
+
|
28
|
+
$info: #81a2be;
|
29
|
+
$info-light: #d2e9f4;
|
30
|
+
$info-dark: #45586d;
|
31
|
+
|
32
|
+
$warning: #f0c674;
|
33
|
+
$warning-light: #fdf7c5;
|
34
|
+
$warning-dark: #b1753e;
|
35
|
+
|
36
|
+
$success: #b5bd68;
|
37
|
+
$success-light: #f1f4b8;
|
38
|
+
$success-dark: #666d37;
|
39
|
+
|
40
|
+
$error: #cc6666;
|
41
|
+
$error-light: #f8b5b5;
|
42
|
+
$error-dark: #7a3636;
|
43
|
+
|
44
|
+
//-------------------- Layout --------------------//
|
45
|
+
|
46
|
+
body {
|
47
|
+
color: $foreground-color;
|
48
|
+
background: $background-color;
|
49
|
+
}
|
50
|
+
|
51
|
+
//-------------------- Typography --------------------//
|
52
|
+
|
53
|
+
.caret-up { border-bottom-color: $foreground-color; }
|
54
|
+
.caret-down { border-top-color: $foreground-color; }
|
55
|
+
.caret-left { border-right-color: $foreground-color; }
|
56
|
+
.caret-right { border-left-color: $foreground-color; }
|
57
|
+
.x { color: $foreground-color; }
|
58
|
+
|
59
|
+
.text-muted { color: $default; }
|
60
|
+
.text-info { color: $info; }
|
61
|
+
.text-error { color: $error; }
|
62
|
+
.text-warning { color: $warning; }
|
63
|
+
.text-success { color: $success; }
|
64
|
+
|
65
|
+
a {
|
66
|
+
color: $info;
|
67
|
+
text-decoration: none;
|
68
|
+
|
69
|
+
&:hover { color: $info-light; }
|
70
|
+
}
|
71
|
+
|
72
|
+
blockquote { border-color: $info; }
|
73
|
+
blockquote cite { color: $default; }
|
74
|
+
|
75
|
+
pre, code, var, kbd { color: $default-dark; }
|
76
|
+
code { background: $info-light; color: $info-dark; }
|
77
|
+
var { background: $error-light; color: $error-dark; }
|
78
|
+
|
79
|
+
//-------------------- Layout --------------------//
|
80
|
+
|
81
|
+
.table {
|
82
|
+
background: $gray;
|
83
|
+
|
84
|
+
td, th {
|
85
|
+
border-color: $gray-light;
|
86
|
+
}
|
87
|
+
|
88
|
+
thead tr,
|
89
|
+
tfoot tr {
|
90
|
+
background: $gray-light;
|
91
|
+
|
92
|
+
th { border-color: $gray-lightest; }
|
93
|
+
}
|
94
|
+
|
95
|
+
tbody tr {
|
96
|
+
background: $gray;
|
97
|
+
|
98
|
+
&:nth-child(odd) { background: $gray-dark; }
|
99
|
+
&.divider { background: $gray-light; }
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.table.table--hover {
|
104
|
+
tbody tr:not(.divider):hover { background: $gray-darkest; }
|
105
|
+
}
|
106
|
+
|
107
|
+
.table.table--sortable thead th a {
|
108
|
+
background: $gray-light;
|
109
|
+
color: #fff;
|
110
|
+
|
111
|
+
&:hover { background: shade($gray-light, 5%); }
|
112
|
+
}
|
113
|
+
|
114
|
+
fieldset {
|
115
|
+
border-color: $gray-light;
|
116
|
+
}
|
117
|
+
|
118
|
+
.input {
|
119
|
+
background: $gray;
|
120
|
+
border-color: $gray-light;
|
121
|
+
color: $foreground-color;
|
122
|
+
|
123
|
+
&:hover { border-color: $gray-lightest; }
|
124
|
+
&:focus { border-color: $info; box-shadow: 0 0 5px $info-light; }
|
125
|
+
|
126
|
+
@include disabled-state {
|
127
|
+
color: $default;
|
128
|
+
border-color: $gray;
|
129
|
+
}
|
130
|
+
|
131
|
+
&[readonly] {
|
132
|
+
color: $default;
|
133
|
+
border-color: $gray;
|
134
|
+
box-shadow: none;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
.input-addon {
|
139
|
+
border-color: $gray-light;
|
140
|
+
background-color: $gray-dark;
|
141
|
+
}
|
142
|
+
|
143
|
+
.input-group {
|
144
|
+
.input-addon,
|
145
|
+
.button,
|
146
|
+
.button-group {
|
147
|
+
box-shadow: none;
|
148
|
+
margin-right: -5px;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
.field {
|
153
|
+
@include field-style;
|
154
|
+
}
|
155
|
+
|
156
|
+
//-------------------- Accordion --------------------//
|
157
|
+
|
158
|
+
.accordion {
|
159
|
+
border-color: $gray-light;
|
160
|
+
border-radius: 3px;
|
161
|
+
background: $gray-dark;
|
162
|
+
|
163
|
+
li {
|
164
|
+
&:first-child .accordion-head {
|
165
|
+
border-top-left-radius: 3px;
|
166
|
+
border-top-right-radius: 3px;
|
167
|
+
}
|
168
|
+
|
169
|
+
&:last-child {
|
170
|
+
.accordion-head {
|
171
|
+
border-bottom-left-radius: 3px;
|
172
|
+
border-bottom-right-radius: 3px;
|
173
|
+
}
|
174
|
+
|
175
|
+
.accordion-body {
|
176
|
+
border: 0;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
&.is-active .accordion-head {
|
181
|
+
background: $gray-light;
|
182
|
+
border-color: $gray-lightest;
|
183
|
+
color: $success;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
.accordion-head {
|
189
|
+
color: $info;
|
190
|
+
background: $gray;
|
191
|
+
border-color: $gray-light;
|
192
|
+
padding: 1rem;
|
193
|
+
text-align: center;
|
194
|
+
cursor: pointer;
|
195
|
+
@include transition(all .3s);
|
196
|
+
}
|
197
|
+
|
198
|
+
.accordion-body { padding: $padding; }
|
199
|
+
|
200
|
+
//-------------------- Alert --------------------//
|
201
|
+
|
202
|
+
.alert {
|
203
|
+
text-shadow: 0 1px 0 white(.50);
|
204
|
+
box-shadow: 0 0 3px #000;
|
205
|
+
@include alert-style($default-light, $default-dark);
|
206
|
+
|
207
|
+
&.is-info { @include alert-style($info-light, $info-dark); }
|
208
|
+
&.is-warning { @include alert-style($warning-light, $warning-dark); }
|
209
|
+
&.is-error { @include alert-style($error-light, $error-dark); }
|
210
|
+
&.is-success { @include alert-style($success-light, $success-dark); }
|
211
|
+
}
|
212
|
+
|
213
|
+
//-------------------- Button --------------------//
|
214
|
+
|
215
|
+
.breadcrumbs {
|
216
|
+
background: $gray;
|
217
|
+
border-color: $gray-light;
|
218
|
+
|
219
|
+
a {
|
220
|
+
padding-right: 0 !important;
|
221
|
+
|
222
|
+
.caret-right {
|
223
|
+
top: -1px;
|
224
|
+
margin-left: $medium-padding;
|
225
|
+
opacity: .5;
|
226
|
+
display: inline-block;
|
227
|
+
}
|
228
|
+
};
|
229
|
+
|
230
|
+
&.small a .caret-right { margin-left: $small-padding; }
|
231
|
+
&.large a .caret-right { margin-left: $large-padding; }
|
232
|
+
|
233
|
+
li:last-child a {
|
234
|
+
color: $default;
|
235
|
+
.caret-right { display: none; }
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
//-------------------- Button --------------------//
|
240
|
+
|
241
|
+
$button-shadow: 0 1px 0 white(.5) inset, 0 0 3px #000;
|
242
|
+
|
243
|
+
@mixin button-style($color) {
|
244
|
+
color: shade($color, 75%);
|
245
|
+
background: $color;
|
246
|
+
border: 1px solid #000;
|
247
|
+
@include background-image(linear-gradient($color, shade($color, 30%)));
|
248
|
+
|
249
|
+
@include active-state {
|
250
|
+
color: #000;
|
251
|
+
background: tint($color, 30%);
|
252
|
+
@include background-image(linear-gradient(tint($color, 30%), $color));
|
253
|
+
}
|
254
|
+
|
255
|
+
@include disabled-state { background: $color; }
|
256
|
+
&:active { background: $color; }
|
257
|
+
}
|
258
|
+
|
259
|
+
.button {
|
260
|
+
font-weight: bold;
|
261
|
+
text-shadow: 0 1px white(.35);
|
262
|
+
box-shadow: $button-shadow;
|
263
|
+
@include transition(all .3s);
|
264
|
+
|
265
|
+
&.small, .small & { text-shadow: 0 1px white(.25); }
|
266
|
+
&.large, .large & { font-weight: normal; }
|
267
|
+
|
268
|
+
@include button-style($default);
|
269
|
+
@include disabled-state {
|
270
|
+
opacity: .35;
|
271
|
+
}
|
272
|
+
|
273
|
+
&.is-info { @include button-style($info); }
|
274
|
+
&.is-warning { @include button-style($warning); }
|
275
|
+
&.is-error { @include button-style($error); }
|
276
|
+
&.is-success { @include button-style($success); }
|
277
|
+
}
|
278
|
+
|
279
|
+
.button.visual-popout {
|
280
|
+
box-shadow: $button-shadow, 0 6px 0 0 black(.25) !important;
|
281
|
+
|
282
|
+
&:active {
|
283
|
+
box-shadow: $button-shadow, 0 3px 0 0 black(.5) !important;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
//-------------------- ButtonGroup, Pagination --------------------//
|
288
|
+
|
289
|
+
.button-group,
|
290
|
+
.pagination.pagination--grouped ul {
|
291
|
+
box-shadow: 0 0 3px #000;
|
292
|
+
|
293
|
+
li .button,
|
294
|
+
> .button {
|
295
|
+
box-shadow: 0 1px 0 white(0.5) inset;
|
296
|
+
border-left: 1px solid black(.35);
|
297
|
+
border-right: 1px solid black(.35);
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
.button-group {
|
302
|
+
> li:first-child .button,
|
303
|
+
> .button:first-child { border-left: 0; }
|
304
|
+
|
305
|
+
> li:last-child .button,
|
306
|
+
> .button:last-child { border-right: 0; }
|
307
|
+
}
|
308
|
+
|
309
|
+
.pagination.pagination--grouped li {
|
310
|
+
&:first-child .button { border-left: 0; }
|
311
|
+
&:last-child .button { border-right: 0; }
|
312
|
+
}
|
313
|
+
|
314
|
+
.button-group.button-group--vertical {
|
315
|
+
.button {
|
316
|
+
box-shadow: none;
|
317
|
+
border: 1px solid black(.35);
|
318
|
+
}
|
319
|
+
|
320
|
+
> li:first-child .button,
|
321
|
+
> .button:first-child { border-top: 0; }
|
322
|
+
|
323
|
+
> li:last-child .button,
|
324
|
+
> .button:last-child { border-bottom: 0; }
|
325
|
+
}
|
326
|
+
|
327
|
+
//-------------------- Label, Badge --------------------//
|
328
|
+
|
329
|
+
.label,
|
330
|
+
.badge {
|
331
|
+
color: #000;
|
332
|
+
box-shadow: 0 0 3px #000;
|
333
|
+
text-shadow: 0 1px white(.35);
|
334
|
+
background-color: $default;
|
335
|
+
|
336
|
+
&.is-info { background-color: $info; }
|
337
|
+
&.is-warning { background-color: $warning; }
|
338
|
+
&.is-error { background-color: $error; }
|
339
|
+
&.is-success { background-color: $success; }
|
340
|
+
}
|
341
|
+
|
342
|
+
.label.label--left {
|
343
|
+
&:after { border-right-color: $default; }
|
344
|
+
&.is-info:after { border-right-color: $info; }
|
345
|
+
&.is-warning:after { border-right-color: $warning; }
|
346
|
+
&.is-error:after { border-right-color: $error; }
|
347
|
+
&.is-success:after { border-right-color: $success; }
|
348
|
+
}
|
349
|
+
|
350
|
+
.label.label--right {
|
351
|
+
&:after { border-left-color: $default; }
|
352
|
+
&.is-info:after { border-left-color: $info; }
|
353
|
+
&.is-warning:after { border-left-color: $warning; }
|
354
|
+
&.is-error:after { border-left-color: $error; }
|
355
|
+
&.is-success:after { border-left-color: $success; }
|
356
|
+
}
|
357
|
+
|
358
|
+
//-------------------- Dropdown, TypeAhead, Flyout --------------------//
|
359
|
+
|
360
|
+
.dropdown,
|
361
|
+
.flyout,
|
362
|
+
.type-ahead {
|
363
|
+
border: 3px solid white(.75);
|
364
|
+
border-radius: 3px;
|
365
|
+
background: $gray-dark;
|
366
|
+
box-shadow: 0 0 3px #000;
|
367
|
+
|
368
|
+
li {
|
369
|
+
border-top: 1px solid $gray;
|
370
|
+
|
371
|
+
&:first-child { border: 0; }
|
372
|
+
|
373
|
+
a {
|
374
|
+
.caret-right {
|
375
|
+
float: right;
|
376
|
+
margin-top: 3px;
|
377
|
+
}
|
378
|
+
}
|
379
|
+
|
380
|
+
a:hover,
|
381
|
+
&.is-open > a,
|
382
|
+
&.is-active > a,
|
383
|
+
&:hover > a {
|
384
|
+
background: $gray-darkest;
|
385
|
+
color: #fff;
|
386
|
+
}
|
387
|
+
|
388
|
+
&.heading {
|
389
|
+
background: $gray;
|
390
|
+
font-size: .9em;
|
391
|
+
color: #fff;
|
392
|
+
}
|
393
|
+
|
394
|
+
&.divider {
|
395
|
+
background: $gray-darkest;
|
396
|
+
border-top: 1px solid $gray;
|
397
|
+
height: 10px;
|
398
|
+
margin: 0;
|
399
|
+
}
|
400
|
+
}
|
401
|
+
}
|
402
|
+
|
403
|
+
.type-ahead-desc {
|
404
|
+
display: block;
|
405
|
+
color: $default;
|
406
|
+
font-size: .7rem;
|
407
|
+
}
|
408
|
+
|
409
|
+
.type-ahead-highlight {
|
410
|
+
color: $warning;
|
411
|
+
}
|
412
|
+
|
413
|
+
//-------------------- Modal --------------------//
|
414
|
+
|
415
|
+
.modal {
|
416
|
+
.close {
|
417
|
+
top: .9rem;
|
418
|
+
right: .9rem;
|
419
|
+
}
|
420
|
+
}
|
421
|
+
|
422
|
+
.modal-outer {
|
423
|
+
border: 10px solid white(.75);
|
424
|
+
border-radius: 3px;
|
425
|
+
background: $gray-dark;
|
426
|
+
margin: 10px;
|
427
|
+
}
|
428
|
+
|
429
|
+
.modal-head,
|
430
|
+
.modal-foot,
|
431
|
+
.modal-loading,
|
432
|
+
.modal-error {
|
433
|
+
background: $gray-darkest;
|
434
|
+
}
|
435
|
+
|
436
|
+
.modal-head {
|
437
|
+
font-size: 1rem;
|
438
|
+
font-weight: normal;
|
439
|
+
color: $info;
|
440
|
+
}
|
441
|
+
|
442
|
+
.modal-foot {
|
443
|
+
text-align: center;
|
444
|
+
}
|
445
|
+
|
446
|
+
.modal-body {
|
447
|
+
border-top: 1px solid $gray;
|
448
|
+
border-bottom: 1px solid $gray;
|
449
|
+
}
|
450
|
+
|
451
|
+
//-------------------- Popover --------------------//
|
452
|
+
|
453
|
+
.popover {
|
454
|
+
border: 3px solid white(.75);
|
455
|
+
border-radius: 3px;
|
456
|
+
background: $gray-dark;
|
457
|
+
box-shadow: 0 0 3px #000;
|
458
|
+
margin: 10px;
|
459
|
+
|
460
|
+
.popover-head {
|
461
|
+
font-size: 1rem;
|
462
|
+
font-weight: bold;
|
463
|
+
color: $info;
|
464
|
+
background: $gray-darkest;
|
465
|
+
border-bottom: 1px solid $gray;
|
466
|
+
}
|
467
|
+
|
468
|
+
&.center-left .popover-arrow {
|
469
|
+
right: -19px;
|
470
|
+
border-left-color: $gray-darkest;
|
471
|
+
|
472
|
+
&:after {
|
473
|
+
margin-left: -2px;
|
474
|
+
border-left-color: white(.75);
|
475
|
+
}
|
476
|
+
}
|
477
|
+
|
478
|
+
&.center-right .popover-arrow {
|
479
|
+
left: -19px;
|
480
|
+
border-right-color: $gray-darkest;
|
481
|
+
|
482
|
+
&:after {
|
483
|
+
margin-left: 2px;
|
484
|
+
border-right-color: white(.75);
|
485
|
+
}
|
486
|
+
}
|
487
|
+
|
488
|
+
&.top-center .popover-arrow {
|
489
|
+
bottom: -19px;
|
490
|
+
border-top-color: $gray-darkest;
|
491
|
+
|
492
|
+
&:after {
|
493
|
+
margin-top: -2px;
|
494
|
+
border-top-color: white(.75);
|
495
|
+
}
|
496
|
+
}
|
497
|
+
|
498
|
+
&.bottom-center .popover-arrow {
|
499
|
+
top: -19px;
|
500
|
+
border-bottom-color: $gray-darkest;
|
501
|
+
|
502
|
+
&:after {
|
503
|
+
margin-top: 2px;
|
504
|
+
border-bottom-color: white(.75);
|
505
|
+
}
|
506
|
+
}
|
507
|
+
}
|
508
|
+
|
509
|
+
//-------------------- Progress --------------------//
|
510
|
+
|
511
|
+
.progress {
|
512
|
+
background: $gray;
|
513
|
+
box-shadow: inset 1px 1px 2px $gray-darkest;
|
514
|
+
border-radius: $round;
|
515
|
+
}
|
516
|
+
|
517
|
+
.progress-bar {
|
518
|
+
color: #fff;
|
519
|
+
font-weight: bold;
|
520
|
+
border-top-left-radius: $round;
|
521
|
+
border-bottom-left-radius: $round;
|
522
|
+
@include progress-style($default, $default-dark);
|
523
|
+
|
524
|
+
&.is-info { @include progress-style($info, $info-dark); }
|
525
|
+
&.is-error { @include progress-style($error, $error-dark); }
|
526
|
+
&.is-warning { @include progress-style($warning, $warning-dark); }
|
527
|
+
&.is-success { @include progress-style($success, $success-dark); }
|
528
|
+
}
|
529
|
+
|
530
|
+
.progress-bar + .progress-bar {
|
531
|
+
border-top-left-radius: 0;
|
532
|
+
border-bottom-left-radius: 0;
|
533
|
+
}
|
534
|
+
|
535
|
+
//-------------------- Showcase --------------------//
|
536
|
+
|
537
|
+
.showcase {
|
538
|
+
border: 10px solid white(.75);
|
539
|
+
border-radius: 3px;
|
540
|
+
|
541
|
+
.close {
|
542
|
+
top: -11px;
|
543
|
+
right: -40px;
|
544
|
+
}
|
545
|
+
}
|
546
|
+
|
547
|
+
.showcase-inner {
|
548
|
+
padding: 0;
|
549
|
+
}
|
550
|
+
|
551
|
+
//-------------------- Tooltip --------------------//
|
552
|
+
|
553
|
+
.tooltip {
|
554
|
+
background: white(.90);
|
555
|
+
color: #000;
|
556
|
+
border-radius: 3px;
|
557
|
+
margin: $margin / 2;
|
558
|
+
|
559
|
+
.tooltip-head {
|
560
|
+
padding-bottom: $small-padding;
|
561
|
+
font-weight: bold;
|
562
|
+
font-size: 1rem;
|
563
|
+
}
|
564
|
+
|
565
|
+
&.top-center .tooltip-arrow { border-top-color: white(.90); }
|
566
|
+
&.center-left .tooltip-arrow { border-left-color: white(.90); }
|
567
|
+
&.center-right .tooltip-arrow { border-right-color: white(.90); }
|
568
|
+
&.bottom-center .tooltip-arrow { border-bottom-color: white(.90); }
|
569
|
+
}
|