padma-assets 0.1.32 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/abilities/general_ability.rb +2 -1
- data/app/assets/javascripts/bootstrap-multiselect.js +1401 -0
- data/app/assets/javascripts/bootstrap.min.js +12 -0
- data/app/assets/javascripts/jquery-2.1.4.min.js +4 -0
- data/app/assets/javascripts/jquery-iframe-transport.js +156 -0
- data/app/assets/javascripts/jquery-tmpl-min.js +1 -0
- data/app/assets/javascripts/jquery.common.js +12 -0
- data/app/assets/javascripts/jquery.iframe-transport.js +156 -0
- data/app/assets/javascripts/jquery.postmessage-transport.js +108 -0
- data/app/assets/javascripts/jquery.rest_in_place.js +233 -0
- data/app/assets/javascripts/jquery.stickyheader.js +7 -5
- data/app/assets/javascripts/jquery.tipsy.js +243 -0
- data/app/assets/javascripts/jquery.xdr-transport.js +76 -0
- data/app/assets/javascripts/padma-assets.js +14 -2
- data/app/assets/stylesheets/bootstrap-multiselect.css +1 -0
- data/app/assets/stylesheets/common/custom.scss +1611 -0
- data/app/assets/stylesheets/common/ui.css.scss +488 -0
- data/app/assets/stylesheets/common/variables.scss +68 -0
- data/app/assets/stylesheets/custom/colors.css.scss +13 -0
- data/app/assets/stylesheets/custom/form.css.scss +37 -0
- data/app/assets/stylesheets/custom/tabs.scss +7 -0
- data/app/assets/stylesheets/header.css.erb +8 -148
- data/app/assets/stylesheets/header.scss +364 -0
- data/app/assets/stylesheets/layout_application.css +0 -5
- data/app/assets/stylesheets/layout_users.css +29 -28
- data/app/assets/stylesheets/pm-modal.scss +15 -9
- data/app/views/layouts/_header.html.erb +24 -20
- data/app/views/layouts/_lists_list.html.erb +39 -25
- data/app/views/layouts/_module_box.html.erb +70 -58
- metadata +21 -7
- data/app/assets/stylesheets/button.css.scss +0 -344
- data/app/assets/stylesheets/padma-accounts.scss +0 -3
- data/app/assets/stylesheets/reset.css +0 -102
- data/app/assets/stylesheets/tables.css.scss +0 -154
- data/app/views/layouts/_alpha_lists_list.html.erb +0 -46
@@ -0,0 +1,1611 @@
|
|
1
|
+
@import "variables";
|
2
|
+
@import "../custom/colors";
|
3
|
+
|
4
|
+
// Declare new variables
|
5
|
+
$font-color-th: #666;
|
6
|
+
$font-color-th-link: #2c69b8;
|
7
|
+
|
8
|
+
.table {
|
9
|
+
border-top: 4px solid #ebebeb;
|
10
|
+
> caption + thead > tr:first-child > td,
|
11
|
+
> caption + thead > tr:first-child > th,
|
12
|
+
> colgroup + thead > tr:first-child > td,
|
13
|
+
> colgroup + thead > tr:first-child > th,
|
14
|
+
> thead:first-child > tr:first-child > td,
|
15
|
+
> thead:first-child > tr:first-child > th {
|
16
|
+
border-bottom: 1px solid #ebebeb;
|
17
|
+
}
|
18
|
+
> thead > tr > th,
|
19
|
+
> tbody > tr > th {
|
20
|
+
border-bottom-width: 1px;
|
21
|
+
color: $font-color-th;
|
22
|
+
font: {
|
23
|
+
family: $font-family-base;
|
24
|
+
size: $font-size-base-xs;
|
25
|
+
weight: bold;
|
26
|
+
}
|
27
|
+
text-transform: uppercase;
|
28
|
+
vertical-align: middle;
|
29
|
+
> p {
|
30
|
+
display: table;
|
31
|
+
width: 100%;
|
32
|
+
> a {
|
33
|
+
display: table-cell;
|
34
|
+
max-width: 200px;
|
35
|
+
overflow: hidden;
|
36
|
+
text-overflow: ellipsis;
|
37
|
+
white-space: nowrap;
|
38
|
+
@media (max-width: $screen-sm-min - 1) {
|
39
|
+
max-width: 100px;
|
40
|
+
}
|
41
|
+
&.asc,
|
42
|
+
&.desc {
|
43
|
+
position: relative;
|
44
|
+
padding-right: 20px;
|
45
|
+
&:after {
|
46
|
+
font: {
|
47
|
+
family: "Glyphicons Halflings";
|
48
|
+
style: normal;
|
49
|
+
weight: 400;
|
50
|
+
}
|
51
|
+
line-height: 1;
|
52
|
+
-webkit-font-smoothing: antialiased;
|
53
|
+
-moz-osx-font-smoothing: grayscale;
|
54
|
+
position: absolute;
|
55
|
+
right: 0;
|
56
|
+
top: 1px;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
&.desc:after {
|
60
|
+
content: "\e252";
|
61
|
+
}
|
62
|
+
&.asc:after {
|
63
|
+
content: "\e253";
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
a {
|
68
|
+
color: $font-color-th-link;
|
69
|
+
cursor: pointer;
|
70
|
+
&:hover,
|
71
|
+
&:focus,
|
72
|
+
&.focus {
|
73
|
+
color: darken($font-color-th-link, 10%);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
> thead,
|
78
|
+
> tbody {
|
79
|
+
> tr {
|
80
|
+
> th,
|
81
|
+
> td {
|
82
|
+
border: none;
|
83
|
+
padding-bottom: 18px;
|
84
|
+
padding-top: 18px;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
> tbody,
|
89
|
+
> tfoot {
|
90
|
+
> tr {
|
91
|
+
> th:first-child {
|
92
|
+
color: $font-color-th;
|
93
|
+
}
|
94
|
+
> td {
|
95
|
+
color: $gray-base;
|
96
|
+
font: {
|
97
|
+
family: $font-family-base;
|
98
|
+
size: $font-size-base-sm;
|
99
|
+
}
|
100
|
+
&.td-checkbox,
|
101
|
+
&.td-radio {
|
102
|
+
width: 1%;
|
103
|
+
}
|
104
|
+
&.td-actions {
|
105
|
+
text-align: right;
|
106
|
+
vertical-align: middle;
|
107
|
+
}
|
108
|
+
&.pending {
|
109
|
+
background-color: darken($bg-lightgrey, 10%);
|
110
|
+
}
|
111
|
+
.progress {
|
112
|
+
margin: 0;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
.table-hover {
|
120
|
+
> tbody {
|
121
|
+
> tr {
|
122
|
+
&:hover {
|
123
|
+
> th,
|
124
|
+
> td {
|
125
|
+
background-color: $bg-lightgrey;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
.table-bordered {
|
133
|
+
> thead,
|
134
|
+
> tbody,
|
135
|
+
> tfoot {
|
136
|
+
> tr {
|
137
|
+
> th,
|
138
|
+
> td {
|
139
|
+
border: 1px solid #ddd;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
.table-noborder {
|
146
|
+
> thead,
|
147
|
+
> tbody,
|
148
|
+
> tfoot {
|
149
|
+
> tr {
|
150
|
+
> th,
|
151
|
+
> td {
|
152
|
+
border: none;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
// table-sticky js
|
159
|
+
.sticky-wrap {
|
160
|
+
margin-bottom: 15px;
|
161
|
+
overflow-x: auto;
|
162
|
+
overflow-y: hidden;
|
163
|
+
position: relative;
|
164
|
+
width: 100%;
|
165
|
+
.sticky-thead,
|
166
|
+
.sticky-col,
|
167
|
+
.sticky-intersect {
|
168
|
+
font-weight: bold;
|
169
|
+
left: 0;
|
170
|
+
opacity: 0;
|
171
|
+
position: absolute;
|
172
|
+
-webkit-transition: .25s cubic-bezier(0.1, 0.82, 0.25, 1);
|
173
|
+
transition: .25s cubic-bezier(0.1, 0.82, 0.25, 1);
|
174
|
+
top: 0;
|
175
|
+
width: auto; // Prevent table from stretching to full size
|
176
|
+
}
|
177
|
+
.sticky-thead {
|
178
|
+
box-shadow: 0 2px 2px -1px rgba(#000, .1);
|
179
|
+
width: 100% !important; // Force width - problem in webkit.
|
180
|
+
}
|
181
|
+
.sticky-intersect {
|
182
|
+
opacity: 1;
|
183
|
+
th {
|
184
|
+
background-color: #f2f2f2;
|
185
|
+
color: #4D4D4D;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
.table-striped {
|
191
|
+
> tbody {
|
192
|
+
> tr {
|
193
|
+
&:nth-child(odd){
|
194
|
+
background-color: transparent;
|
195
|
+
}
|
196
|
+
&:nth-child(even) {
|
197
|
+
background-color: #f5f5f5;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
.sticky-thead {
|
204
|
+
> thead {
|
205
|
+
> tr {
|
206
|
+
> th,
|
207
|
+
> td {
|
208
|
+
background-color: #fff;
|
209
|
+
border: 1px solid #ddd;
|
210
|
+
color: $font-color-th;
|
211
|
+
font: {
|
212
|
+
size: $font-size-base-xs;
|
213
|
+
}
|
214
|
+
padding: 8px;
|
215
|
+
text-transform: uppercase;
|
216
|
+
> p {
|
217
|
+
display: table;
|
218
|
+
width: 100%;
|
219
|
+
> a {
|
220
|
+
display: table-cell;
|
221
|
+
max-width: 200px;
|
222
|
+
overflow: hidden;
|
223
|
+
text-overflow: ellipsis;
|
224
|
+
white-space: nowrap;
|
225
|
+
@media (max-width: $screen-sm-min - 1) {
|
226
|
+
max-width: 100px;
|
227
|
+
}
|
228
|
+
&.asc,
|
229
|
+
&.desc {
|
230
|
+
position: relative;
|
231
|
+
padding-right: 20px;
|
232
|
+
&:after {
|
233
|
+
font: {
|
234
|
+
family: "Glyphicons Halflings";
|
235
|
+
style: normal;
|
236
|
+
weight: 400;
|
237
|
+
}
|
238
|
+
line-height: 1;
|
239
|
+
-webkit-font-smoothing: antialiased;
|
240
|
+
-moz-osx-font-smoothing: grayscale;
|
241
|
+
position: absolute;
|
242
|
+
right: 0;
|
243
|
+
top: 1px;
|
244
|
+
}
|
245
|
+
}
|
246
|
+
&.desc:after {
|
247
|
+
content: "\e252";
|
248
|
+
}
|
249
|
+
&.asc:after {
|
250
|
+
content: "\e253";
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
a {
|
255
|
+
color: $font-color-th-link;
|
256
|
+
cursor: pointer;
|
257
|
+
&:hover,
|
258
|
+
&:focus,
|
259
|
+
&.focus {
|
260
|
+
color: darken($font-color-th-link, 10%);
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|
265
|
+
}
|
266
|
+
}
|
267
|
+
|
268
|
+
// Not needed for sticky header/column functionality
|
269
|
+
.sticky-wrap.overflow-y {
|
270
|
+
overflow-y: auto;
|
271
|
+
max-height: 50vh;
|
272
|
+
}
|
273
|
+
|
274
|
+
|
275
|
+
// Forms
|
276
|
+
// Declare new variables
|
277
|
+
$font-color-select: #e5e9ec;
|
278
|
+
.control-label {
|
279
|
+
&.control-label-block {
|
280
|
+
display: block;
|
281
|
+
}
|
282
|
+
}
|
283
|
+
|
284
|
+
.form-horizontal {
|
285
|
+
.multiselect-container {
|
286
|
+
.checkbox,
|
287
|
+
.radio {
|
288
|
+
min-height: inherit;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
292
|
+
|
293
|
+
.form-inline {
|
294
|
+
margin-bottom: 10px;
|
295
|
+
.control-label {
|
296
|
+
display: inline-block;
|
297
|
+
padding-right: 10px;
|
298
|
+
vertical-align: middle;
|
299
|
+
}
|
300
|
+
select {
|
301
|
+
display: inline-block;
|
302
|
+
vertical-align: middle;
|
303
|
+
width: auto;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
|
307
|
+
.form-group {
|
308
|
+
&:empty {
|
309
|
+
margin-bottom: 0;
|
310
|
+
}
|
311
|
+
.help-block {
|
312
|
+
color: $font-color-help-addon;
|
313
|
+
font: {
|
314
|
+
size: ($font-size-base-xs + 1);
|
315
|
+
}
|
316
|
+
}
|
317
|
+
+ .checkbox {
|
318
|
+
margin-top: 0;
|
319
|
+
}
|
320
|
+
}
|
321
|
+
|
322
|
+
.form-group-inline {
|
323
|
+
display: inline-block;
|
324
|
+
vertical-align: middle;
|
325
|
+
+ .form-group-inline {
|
326
|
+
margin-left: 10px;
|
327
|
+
}
|
328
|
+
}
|
329
|
+
|
330
|
+
.input-group {
|
331
|
+
> select {
|
332
|
+
&,
|
333
|
+
&.form-control {
|
334
|
+
display: inline-block;
|
335
|
+
float: left;
|
336
|
+
vertical-align: middle;
|
337
|
+
width: auto;
|
338
|
+
z-index: 1;
|
339
|
+
+ select,
|
340
|
+
+ select.form-control {
|
341
|
+
margin-left: -2px;
|
342
|
+
}
|
343
|
+
&:hover:not(:focus),
|
344
|
+
&:focus {
|
345
|
+
z-index: 2;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
// Feedback states
|
352
|
+
$warning-border-color: #e4d045;
|
353
|
+
$error-border-color: #d9534f;
|
354
|
+
.form-control-feedback {
|
355
|
+
top: 0;
|
356
|
+
height: 32px;
|
357
|
+
width: 32px;
|
358
|
+
}
|
359
|
+
|
360
|
+
.has-success {
|
361
|
+
.help-block,
|
362
|
+
.control-label,
|
363
|
+
.radio,
|
364
|
+
.checkbox,
|
365
|
+
.radio-inline,
|
366
|
+
.checkbox-inline,
|
367
|
+
&.radio label,
|
368
|
+
&.checkbox label,
|
369
|
+
&.radio-inline label,
|
370
|
+
&.checkbox-inline label {
|
371
|
+
color: $success;
|
372
|
+
}
|
373
|
+
.form-control {
|
374
|
+
border-color: $success;
|
375
|
+
}
|
376
|
+
.form-control-feedback {
|
377
|
+
color: $success;
|
378
|
+
}
|
379
|
+
}
|
380
|
+
|
381
|
+
.has-warning {
|
382
|
+
.help-block,
|
383
|
+
.control-label,
|
384
|
+
.radio,
|
385
|
+
.checkbox,
|
386
|
+
.radio-inline,
|
387
|
+
.checkbox-inline,
|
388
|
+
&.radio label,
|
389
|
+
&.checkbox label,
|
390
|
+
&.radio-inline label,
|
391
|
+
&.checkbox-inline label {
|
392
|
+
color: $warning;
|
393
|
+
}
|
394
|
+
.form-control {
|
395
|
+
border-color: $warning-border-color;
|
396
|
+
}
|
397
|
+
.form-control-feedback {
|
398
|
+
color: $warning;
|
399
|
+
}
|
400
|
+
}
|
401
|
+
|
402
|
+
.has-error {
|
403
|
+
.help-block,
|
404
|
+
.control-label,
|
405
|
+
.radio,
|
406
|
+
.checkbox,
|
407
|
+
.radio-inline,
|
408
|
+
.checkbox-inline,
|
409
|
+
&.radio label,
|
410
|
+
&.checkbox label,
|
411
|
+
&.radio-inline label,
|
412
|
+
&.checkbox-inline label {
|
413
|
+
color: $error;
|
414
|
+
}
|
415
|
+
.form-control {
|
416
|
+
border-color: $error-border-color;
|
417
|
+
}
|
418
|
+
.form-control-feedback {
|
419
|
+
color: $error;
|
420
|
+
}
|
421
|
+
}
|
422
|
+
|
423
|
+
label {
|
424
|
+
&,
|
425
|
+
&.label {
|
426
|
+
color: $font-color-base;
|
427
|
+
display: block;
|
428
|
+
font: {
|
429
|
+
size: $font-size-base-md;
|
430
|
+
weight: normal;
|
431
|
+
}
|
432
|
+
}
|
433
|
+
}
|
434
|
+
|
435
|
+
.radio {
|
436
|
+
input[type='radio'] {
|
437
|
+
margin-left: 0;
|
438
|
+
margin-top: 2px;
|
439
|
+
}
|
440
|
+
&.disabled,
|
441
|
+
&[disabled],
|
442
|
+
&[disabled='disabled'] {
|
443
|
+
opacity: .7;
|
444
|
+
}
|
445
|
+
> label {
|
446
|
+
> input[type='radio'] {
|
447
|
+
margin-left: -20px;
|
448
|
+
}
|
449
|
+
}
|
450
|
+
}
|
451
|
+
|
452
|
+
.checkbox {
|
453
|
+
input[type='checkbox'] {
|
454
|
+
margin-left: 0;
|
455
|
+
margin-top: 2px;
|
456
|
+
}
|
457
|
+
&.disabled,
|
458
|
+
&[disabled],
|
459
|
+
&[disabled='disabled'] {
|
460
|
+
opacity: .7;
|
461
|
+
}
|
462
|
+
> label {
|
463
|
+
> input[type='checkbox'] {
|
464
|
+
margin-left: -20px;
|
465
|
+
}
|
466
|
+
}
|
467
|
+
}
|
468
|
+
|
469
|
+
.form-control,
|
470
|
+
input[type="text"],
|
471
|
+
.uneditable-input,
|
472
|
+
select,
|
473
|
+
textarea,
|
474
|
+
input[type="password"],
|
475
|
+
input[type="datetime"],
|
476
|
+
input[type="datetime-local"],
|
477
|
+
input[type="date"],
|
478
|
+
input[type="month"],
|
479
|
+
input[type="time"],
|
480
|
+
input[type="week"],
|
481
|
+
input[type="number"],
|
482
|
+
input[type="email"],
|
483
|
+
input[type="url"],
|
484
|
+
input[type="search"],
|
485
|
+
input[type="tel"],
|
486
|
+
input[type="color"] {
|
487
|
+
background-color: #fff;
|
488
|
+
background-image: none;
|
489
|
+
border: 2px solid $bordergrey;
|
490
|
+
border-radius: 4px;
|
491
|
+
box-shadow: 0 0 0 3px transparent;
|
492
|
+
color: #555;
|
493
|
+
display: block;
|
494
|
+
font: {
|
495
|
+
family: $font-family-base;
|
496
|
+
size: $font-size-base-md;
|
497
|
+
}
|
498
|
+
height: 34px;
|
499
|
+
line-height: 1.42857143;
|
500
|
+
padding: 6px 12px;
|
501
|
+
-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
|
502
|
+
-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
503
|
+
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
504
|
+
width: 100%;
|
505
|
+
&:hover {
|
506
|
+
box-shadow: 0 0 0 3px #f5f5f5;
|
507
|
+
}
|
508
|
+
&:focus {
|
509
|
+
border-color: #66afe9;
|
510
|
+
box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
|
511
|
+
outline: 0;
|
512
|
+
&:hover {
|
513
|
+
box-shadow: inset 0 1px 1px rgba(#000, .075), 0 0 8px rgba(102,175,233,.6);
|
514
|
+
}
|
515
|
+
}
|
516
|
+
&[disabled],
|
517
|
+
&[readonly],
|
518
|
+
fieldset[disabled] & {
|
519
|
+
background-color: $bg-form-control-disabled;
|
520
|
+
border-color: $border-form-control-disabled;
|
521
|
+
box-shadow: none;
|
522
|
+
}
|
523
|
+
&::-moz-placeholder {
|
524
|
+
color: #ccc;
|
525
|
+
font: {
|
526
|
+
family: $font-family-base;
|
527
|
+
}
|
528
|
+
opacity: 1;
|
529
|
+
}
|
530
|
+
&:-moz-placeholder {
|
531
|
+
color: #ccc;
|
532
|
+
font: {
|
533
|
+
family: $font-family-base;
|
534
|
+
}
|
535
|
+
opacity: 1;
|
536
|
+
}
|
537
|
+
&:-ms-input-placeholder {
|
538
|
+
color: #ccc;
|
539
|
+
font: {
|
540
|
+
family: $font-family-base;
|
541
|
+
}
|
542
|
+
}
|
543
|
+
&::-webkit-input-placeholder {
|
544
|
+
color: #ccc;
|
545
|
+
font: {
|
546
|
+
family: $font-family-base;
|
547
|
+
}
|
548
|
+
}
|
549
|
+
}
|
550
|
+
|
551
|
+
// Select container
|
552
|
+
select {
|
553
|
+
&,
|
554
|
+
&.form-control {
|
555
|
+
-moz-appearance: none;
|
556
|
+
-webkit-appearance: none;
|
557
|
+
-ms-appearance: none;
|
558
|
+
-o-appearance: none;
|
559
|
+
appearance: none;
|
560
|
+
background-repeat: no-repeat;
|
561
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wseCx8GwMZRrQAAAKBJREFUSMft1dEOgjAMheG/A2GJKO//mMpENLP1AQyYCUKMO9cn+ZI2acXMWDOqSggBWRsGiDFuAwM4NkqGM5zh34fLlLLFK93lZjpx7MR59gcvpSwIS1lTFwPd8BhpFPi24h36wagdddPK0RcjaEuzc/KlHTuqFzwNBeZ8J+UeTnYeSEZnwgCGKrg0cwk4H5AMZzjD/wLHGNeHVZW+73kCVHo70xteukkAAAAASUVORK5CYII=);
|
562
|
+
background-position: right center;
|
563
|
+
line-height: normal;
|
564
|
+
padding-right: 30px;
|
565
|
+
}
|
566
|
+
}
|
567
|
+
|
568
|
+
.select {
|
569
|
+
background-color: #fff;
|
570
|
+
border-radius: 4px;
|
571
|
+
position: relative;
|
572
|
+
display: inline-block;
|
573
|
+
vertical-align: middle;
|
574
|
+
&[class*='col-'] {
|
575
|
+
float: none;
|
576
|
+
padding-left: 0;
|
577
|
+
padding-right: 0;
|
578
|
+
}
|
579
|
+
> select {
|
580
|
+
background-color: transparent;
|
581
|
+
line-height: normal;
|
582
|
+
padding-right: 30px;
|
583
|
+
position: relative;
|
584
|
+
-webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
585
|
+
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
586
|
+
width: 100%;
|
587
|
+
background-repeat: no-repeat;
|
588
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wseCx8GwMZRrQAAAKBJREFUSMft1dEOgjAMheG/A2GJKO//mMpENLP1AQyYCUKMO9cn+ZI2acXMWDOqSggBWRsGiDFuAwM4NkqGM5zh34fLlLLFK93lZjpx7MR59gcvpSwIS1lTFwPd8BhpFPi24h36wagdddPK0RcjaEuzc/KlHTuqFzwNBeZ8J+UeTnYeSEZnwgCGKrg0cwk4H5AMZzjD/wLHGNeHVZW+73kCVHo70xteukkAAAAASUVORK5CYII=);
|
589
|
+
background-position: right center;
|
590
|
+
z-index: 2;
|
591
|
+
&:focus {
|
592
|
+
border-color: #66afe9;
|
593
|
+
outline: 0;
|
594
|
+
}
|
595
|
+
&::-ms-expand {
|
596
|
+
display: none;
|
597
|
+
}
|
598
|
+
}
|
599
|
+
}
|
600
|
+
|
601
|
+
// Custom IE8 - IE9
|
602
|
+
.ie8,
|
603
|
+
.ie9 {
|
604
|
+
.select {
|
605
|
+
> select {
|
606
|
+
padding-right: 12px;
|
607
|
+
}
|
608
|
+
}
|
609
|
+
&:after {
|
610
|
+
display: none;
|
611
|
+
}
|
612
|
+
}
|
613
|
+
|
614
|
+
.input-file {
|
615
|
+
margin-bottom: 10px;
|
616
|
+
input[type='file'] {
|
617
|
+
display: none;
|
618
|
+
opacity: 0;
|
619
|
+
}
|
620
|
+
}
|
621
|
+
|
622
|
+
.input-file-name {
|
623
|
+
display: inline-block;
|
624
|
+
color: $gray-dark;
|
625
|
+
font: {
|
626
|
+
family: $font-family-base;
|
627
|
+
size: $font-size-base-md;
|
628
|
+
}
|
629
|
+
margin-left: 10px;
|
630
|
+
max-width: 400px;
|
631
|
+
overflow: hidden;
|
632
|
+
text-overflow: ellipsis;
|
633
|
+
vertical-align: middle;
|
634
|
+
white-space: nowrap;
|
635
|
+
}
|
636
|
+
|
637
|
+
// Pagination
|
638
|
+
.pagination {
|
639
|
+
margin-bottom: 15px;
|
640
|
+
margin-top: 15px;
|
641
|
+
> li {
|
642
|
+
display: inline-block;
|
643
|
+
vertical-align: middle;
|
644
|
+
> a,
|
645
|
+
> span {
|
646
|
+
border: none;
|
647
|
+
display: inline-block;
|
648
|
+
float: none;
|
649
|
+
&:focus,
|
650
|
+
&:hover {
|
651
|
+
background-color: $bg-lightgrey;
|
652
|
+
}
|
653
|
+
}
|
654
|
+
&.active {
|
655
|
+
> a,
|
656
|
+
> span {
|
657
|
+
&,
|
658
|
+
&:focus,
|
659
|
+
&:hover {
|
660
|
+
background-color: $bg-btn-primary;
|
661
|
+
font: {
|
662
|
+
weight: bold;
|
663
|
+
}
|
664
|
+
}
|
665
|
+
}
|
666
|
+
}
|
667
|
+
}
|
668
|
+
}
|
669
|
+
|
670
|
+
// Dropdown
|
671
|
+
// Declare new variables for Dropdown
|
672
|
+
$bg-dropdown-responsive: #1e5788;
|
673
|
+
.dropdown-menu {
|
674
|
+
> .active {
|
675
|
+
> a,
|
676
|
+
> a:focus,
|
677
|
+
> a:hover {
|
678
|
+
background-color: #f5f5f5;
|
679
|
+
color: #000;
|
680
|
+
}
|
681
|
+
}
|
682
|
+
> li {
|
683
|
+
&.dropdown-form {
|
684
|
+
font: {
|
685
|
+
family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
686
|
+
}
|
687
|
+
padding: 3px 10px;
|
688
|
+
@media (max-width: 767) {
|
689
|
+
padding: 10px;
|
690
|
+
}
|
691
|
+
}
|
692
|
+
+ .dropdown-header {
|
693
|
+
margin-top: 6px;
|
694
|
+
@media (max-width: 767px) {
|
695
|
+
margin: 0;
|
696
|
+
}
|
697
|
+
}
|
698
|
+
}
|
699
|
+
&.multiselect-container {
|
700
|
+
padding-bottom: 5px;
|
701
|
+
padding-top: 5px;
|
702
|
+
> li {
|
703
|
+
> a {
|
704
|
+
padding: 0;
|
705
|
+
label {
|
706
|
+
&.checkbox,
|
707
|
+
&.radio {
|
708
|
+
padding: 3px 20px 3px 40px;
|
709
|
+
}
|
710
|
+
}
|
711
|
+
.checkbox {
|
712
|
+
input[type='checkbox'] {
|
713
|
+
margin-left: -20px;
|
714
|
+
margin-top: 4px;
|
715
|
+
}
|
716
|
+
}
|
717
|
+
.radio {
|
718
|
+
input[type='radio'] {
|
719
|
+
margin-left: -20px;
|
720
|
+
margin-top: 4px;
|
721
|
+
}
|
722
|
+
}
|
723
|
+
}
|
724
|
+
&.active {
|
725
|
+
&,
|
726
|
+
&:hover,
|
727
|
+
&:hover:focus {
|
728
|
+
> a {
|
729
|
+
background-color: #337ab7;
|
730
|
+
color: #fff;
|
731
|
+
text-decoration: none;
|
732
|
+
outline: 0;
|
733
|
+
.checkbox,
|
734
|
+
.radio {
|
735
|
+
color: #fff;
|
736
|
+
}
|
737
|
+
}
|
738
|
+
}
|
739
|
+
}
|
740
|
+
}
|
741
|
+
}
|
742
|
+
}
|
743
|
+
|
744
|
+
.dropdown-header {
|
745
|
+
color: #666;
|
746
|
+
font-size: 12px;
|
747
|
+
margin-bottom: 6px;
|
748
|
+
overflow: hidden;
|
749
|
+
padding: 7.5px 20px;
|
750
|
+
text-overflow: ellipsis;
|
751
|
+
text-transform: uppercase;
|
752
|
+
white-space: nowrap;
|
753
|
+
@media (max-width: 767px) {
|
754
|
+
background-color: $bg-dropdown-responsive;
|
755
|
+
border: none;
|
756
|
+
color: #fff;
|
757
|
+
margin: 0;
|
758
|
+
text-align: center;
|
759
|
+
}
|
760
|
+
}
|
761
|
+
|
762
|
+
// Nav
|
763
|
+
// Declare new variables
|
764
|
+
$nav-tab-active-hover-bg: #fff;
|
765
|
+
$nav-tab-active: #6abbeb;
|
766
|
+
$nav-tab-default-hover: #eee;
|
767
|
+
$nav-tab-border-bottom-hover: #ddd;
|
768
|
+
.nav {
|
769
|
+
> li {
|
770
|
+
> a {
|
771
|
+
@media (max-width: 884px) {
|
772
|
+
padding-left: 8px;
|
773
|
+
padding-right: 8px;
|
774
|
+
-webkit-transition: padding .2s ease-in;
|
775
|
+
transition: padding .2s ease-in;
|
776
|
+
}
|
777
|
+
@media (min-width: 768px) and (max-width: 883px) {
|
778
|
+
padding-left: 6px;
|
779
|
+
padding-right: 6px;
|
780
|
+
-webkit-transition: padding .2s ease-in;
|
781
|
+
transition: padding .2s ease-in;
|
782
|
+
}
|
783
|
+
}
|
784
|
+
}
|
785
|
+
}
|
786
|
+
|
787
|
+
.nav-tabs {
|
788
|
+
margin: 20px 0 0;
|
789
|
+
border-bottom-color: #ebebeb;
|
790
|
+
> li {
|
791
|
+
float: left;
|
792
|
+
// Actual tabs (as links)
|
793
|
+
> a {
|
794
|
+
border: none;
|
795
|
+
border-top: 4px solid transparent;
|
796
|
+
border-radius: 0;
|
797
|
+
font: {
|
798
|
+
family: $font-family-base;
|
799
|
+
size: $font-size-base-md;
|
800
|
+
}
|
801
|
+
line-height: $font-line-height-default;
|
802
|
+
margin-right: 2px;
|
803
|
+
&:hover {
|
804
|
+
background-color: $nav-tab-default-hover;
|
805
|
+
border-top-color: $nav-tab-border-bottom-hover;
|
806
|
+
}
|
807
|
+
&.btn {
|
808
|
+
border-top-width: 0;
|
809
|
+
}
|
810
|
+
&.del {
|
811
|
+
padding: 0;
|
812
|
+
position: absolute;
|
813
|
+
right: 4px;
|
814
|
+
top: 11px;
|
815
|
+
visibility: hidden;
|
816
|
+
}
|
817
|
+
.badge {
|
818
|
+
-webkit-background-clip: padding-box;
|
819
|
+
background-clip: padding-box;
|
820
|
+
border-radius: 2px;
|
821
|
+
font: {
|
822
|
+
size: 11px;
|
823
|
+
weight: normal;
|
824
|
+
}
|
825
|
+
line-height: 15px;
|
826
|
+
min-height: 13px;
|
827
|
+
padding: 1px 3px;
|
828
|
+
text-shadow: 0 -1px 0 rgba(#000, .4);
|
829
|
+
vertical-align: text-top;
|
830
|
+
width: 15px;
|
831
|
+
}
|
832
|
+
}
|
833
|
+
&:hover {
|
834
|
+
> a.del {
|
835
|
+
border: none;
|
836
|
+
visibility: visible;
|
837
|
+
}
|
838
|
+
}
|
839
|
+
&.active {
|
840
|
+
> a,
|
841
|
+
> a:hover,
|
842
|
+
> a:focus {
|
843
|
+
border-top: 4px solid;
|
844
|
+
border-color: $nav-tab-active #ebebeb #fff;
|
845
|
+
color: $gray-base;
|
846
|
+
cursor: default;
|
847
|
+
font: {
|
848
|
+
weight: bold;
|
849
|
+
}
|
850
|
+
}
|
851
|
+
}
|
852
|
+
}
|
853
|
+
&.nav-justified {
|
854
|
+
display: table;
|
855
|
+
-webkit-margin-start: -1px;
|
856
|
+
table-layout: fixed;
|
857
|
+
> li {
|
858
|
+
width: 100%;
|
859
|
+
> a {
|
860
|
+
border-top: 4px solid transparent;
|
861
|
+
border-radius: 0;
|
862
|
+
display: block;
|
863
|
+
overflow: hidden;
|
864
|
+
text-overflow: ellipsis;
|
865
|
+
white-space: nowrap;
|
866
|
+
&:hover {
|
867
|
+
background-color: $nav-tab-default-hover;
|
868
|
+
border-top-color: $nav-tab-border-bottom-hover;
|
869
|
+
}
|
870
|
+
&.close {
|
871
|
+
background-color: transparent;
|
872
|
+
border: none;
|
873
|
+
cursor: pointer;
|
874
|
+
display: inline-block;
|
875
|
+
opacity: 0;
|
876
|
+
padding: 0;
|
877
|
+
position: absolute;
|
878
|
+
right: 5px;
|
879
|
+
text-align: center;
|
880
|
+
top: 15px;
|
881
|
+
-webkit-transform: scale(.6);
|
882
|
+
transform: scale(.6);
|
883
|
+
-webkit-transition: opacity .25s ease-in, transform .2s cubic-bezier(.1,.82,.25,1);
|
884
|
+
transition: opacity .25s ease-in, transform .2s cubic-bezier(.1,.82,.25,1);
|
885
|
+
width: 15px;
|
886
|
+
}
|
887
|
+
}
|
888
|
+
&.active > a {
|
889
|
+
&,
|
890
|
+
&:hover,
|
891
|
+
&:focus {
|
892
|
+
background-color: $nav-tab-active-hover-bg;
|
893
|
+
border-top: 4px solid;
|
894
|
+
border-color: $nav-tab-active #ebebeb #fff;
|
895
|
+
color: $gray-base;
|
896
|
+
cursor: default;
|
897
|
+
font: {
|
898
|
+
weight: bold;
|
899
|
+
}
|
900
|
+
&.close {
|
901
|
+
background-color: transparent;
|
902
|
+
border: none;
|
903
|
+
cursor: pointer;
|
904
|
+
}
|
905
|
+
}
|
906
|
+
}
|
907
|
+
}
|
908
|
+
}
|
909
|
+
}
|
910
|
+
|
911
|
+
.tab-content {
|
912
|
+
> .tab-pane {
|
913
|
+
padding: 10px;
|
914
|
+
position: relative;
|
915
|
+
}
|
916
|
+
}
|
917
|
+
|
918
|
+
.tab-content-border {
|
919
|
+
border-color: #ebebeb;
|
920
|
+
border-style: solid;
|
921
|
+
border-width: 0 1px 1px 1px;
|
922
|
+
}
|
923
|
+
|
924
|
+
.tab-pane-footer {
|
925
|
+
background-color: $bg-panel;
|
926
|
+
color: $gray-dark;
|
927
|
+
font: {
|
928
|
+
size: $font-size-base-sm;
|
929
|
+
}
|
930
|
+
margin: 0;
|
931
|
+
padding: 5px;
|
932
|
+
}
|
933
|
+
|
934
|
+
// Navbar
|
935
|
+
.navbar {
|
936
|
+
border: none;
|
937
|
+
border-radius: 0;
|
938
|
+
margin: 0;
|
939
|
+
}
|
940
|
+
|
941
|
+
.navbar-toggle {
|
942
|
+
border-radius: 0;
|
943
|
+
border: none;
|
944
|
+
margin-bottom: 17px;
|
945
|
+
margin-top: 17px;
|
946
|
+
margin-right: 17px;
|
947
|
+
&:active,
|
948
|
+
&:active:focus,
|
949
|
+
&:focus,
|
950
|
+
&:hover {
|
951
|
+
background-color: rgba(#000,.1);
|
952
|
+
outline: none;
|
953
|
+
}
|
954
|
+
}
|
955
|
+
|
956
|
+
.navbar-inverse {
|
957
|
+
.navbar-collapse,
|
958
|
+
.navbar-form {
|
959
|
+
border: none;
|
960
|
+
}
|
961
|
+
.navbar-toggle {
|
962
|
+
background-color: rgba(#000,.1);
|
963
|
+
-webkit-transition: background-color 150ms ease;
|
964
|
+
transition: background-color 150ms ease;
|
965
|
+
&.collapsed {
|
966
|
+
background-color: transparent;
|
967
|
+
}
|
968
|
+
&:focus,
|
969
|
+
&:hover {
|
970
|
+
background-color: rgba(#000,.1);
|
971
|
+
}
|
972
|
+
}
|
973
|
+
}
|
974
|
+
|
975
|
+
.navbar-collapse {
|
976
|
+
box-shadow: none;
|
977
|
+
}
|
978
|
+
|
979
|
+
@media (max-width: 767px) {
|
980
|
+
.navbar-collapse {
|
981
|
+
padding-left: 0;
|
982
|
+
padding-right: 0;
|
983
|
+
}
|
984
|
+
}
|
985
|
+
|
986
|
+
// Labels
|
987
|
+
// Declare new variables for Labels
|
988
|
+
$bg-label-default: #1f9dd9;
|
989
|
+
$icon-label-default: #1a77a3;
|
990
|
+
$icon-hover-label-default: #104a66;
|
991
|
+
.label-primary {
|
992
|
+
background-color: $bg-label-default;
|
993
|
+
a {
|
994
|
+
cursor: pointer;
|
995
|
+
text-decoration: none;
|
996
|
+
&.glyphicon {
|
997
|
+
color: $icon-label-default;
|
998
|
+
margin: 0;
|
999
|
+
top: 2px;
|
1000
|
+
&:hover {
|
1001
|
+
color: $icon-hover-label-default;
|
1002
|
+
}
|
1003
|
+
}
|
1004
|
+
}
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
/*
|
1008
|
+
* Base
|
1009
|
+
*/
|
1010
|
+
ul {
|
1011
|
+
margin: 0;
|
1012
|
+
padding: 0;
|
1013
|
+
}
|
1014
|
+
|
1015
|
+
hr {
|
1016
|
+
margin-bottom: 10px;
|
1017
|
+
margin-top: 10px;
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
.hr-dotted {
|
1021
|
+
border-style: dotted;
|
1022
|
+
}
|
1023
|
+
|
1024
|
+
.hr-dashed {
|
1025
|
+
border-style: dashed;
|
1026
|
+
}
|
1027
|
+
|
1028
|
+
// Buttons
|
1029
|
+
$font-color-default: #525252;
|
1030
|
+
$font-color-secondary: $font-color-default;
|
1031
|
+
$font-color-warning: #74511e;
|
1032
|
+
$font-color-secondary-disabled: $bg-btn-default;
|
1033
|
+
|
1034
|
+
.btn {
|
1035
|
+
border-radius: 3px;
|
1036
|
+
font: {
|
1037
|
+
family: $font-family-base;
|
1038
|
+
size: $font-size-base-md;
|
1039
|
+
}
|
1040
|
+
padding: $padding-base-btn-default;
|
1041
|
+
&:active,
|
1042
|
+
&.active,
|
1043
|
+
&:active:focus,
|
1044
|
+
&:focus,
|
1045
|
+
&.focus {
|
1046
|
+
outline: 0;
|
1047
|
+
}
|
1048
|
+
&:active,
|
1049
|
+
&.active,
|
1050
|
+
&:active:focus {
|
1051
|
+
background-image: none;
|
1052
|
+
box-shadow: inset 0 3px 5px rgba(#000, .125);
|
1053
|
+
}
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
$buttons: "primary" $bg-btn-primary,
|
1057
|
+
"default" $bg-btn-default,
|
1058
|
+
"secondary" $bg-btn-secondary,
|
1059
|
+
"info" $bg-btn-secondary,
|
1060
|
+
"success" $bg-btn-success,
|
1061
|
+
"danger" $bg-btn-danger,
|
1062
|
+
"warning" $bg-btn-warning;
|
1063
|
+
|
1064
|
+
@each $btn in $buttons {
|
1065
|
+
.btn-#{nth($btn, 1)} {
|
1066
|
+
background-color: nth($btn, 2);
|
1067
|
+
border-color: nth($btn, 2);
|
1068
|
+
&:active,
|
1069
|
+
&.active,
|
1070
|
+
&:active:focus {
|
1071
|
+
background-color: darken(nth($btn, 2), 5%);
|
1072
|
+
border-color: darken(nth($btn, 2), 5%);
|
1073
|
+
}
|
1074
|
+
&:hover,
|
1075
|
+
&:focus,
|
1076
|
+
&.focus {
|
1077
|
+
background-color: darken(nth($btn, 2), 5%);
|
1078
|
+
border-color: darken(nth($btn, 2), 5%);
|
1079
|
+
}
|
1080
|
+
&.disabled,
|
1081
|
+
&[disabled],
|
1082
|
+
fieldset[disabled] & {
|
1083
|
+
background-color: nth($btn, 2);
|
1084
|
+
border-color: nth($btn, 2);
|
1085
|
+
}
|
1086
|
+
}
|
1087
|
+
}
|
1088
|
+
|
1089
|
+
.btn-default {
|
1090
|
+
color: $font-color-default;
|
1091
|
+
}
|
1092
|
+
.btn-default + .btn-primary {
|
1093
|
+
margin:0 0 0 10px;
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
.btn-secondary,
|
1097
|
+
.btn-info {
|
1098
|
+
color: $font-color-secondary;
|
1099
|
+
&:hover,
|
1100
|
+
&:focus,
|
1101
|
+
&.focus {
|
1102
|
+
color: $font-color-secondary;
|
1103
|
+
}
|
1104
|
+
&.disabled,
|
1105
|
+
&[disabled],
|
1106
|
+
fieldset[disabled] & {
|
1107
|
+
color: $font-color-secondary-disabled;
|
1108
|
+
}
|
1109
|
+
}
|
1110
|
+
|
1111
|
+
.btn-warning {
|
1112
|
+
color: $font-color-warning;
|
1113
|
+
&:hover,
|
1114
|
+
&:focus,
|
1115
|
+
&.focus {
|
1116
|
+
color: $font-color-warning;
|
1117
|
+
}
|
1118
|
+
}
|
1119
|
+
|
1120
|
+
.open {
|
1121
|
+
> .dropdown-toggle {
|
1122
|
+
&.btn-default {
|
1123
|
+
background-color: $bg-btn-default;
|
1124
|
+
color: $gray-dark;
|
1125
|
+
}
|
1126
|
+
&.btn-primary {
|
1127
|
+
background-color: $bg-btn-primary;
|
1128
|
+
}
|
1129
|
+
&.btn-secondary,
|
1130
|
+
&.btn-info {
|
1131
|
+
background-color: $bg-btn-secondary;
|
1132
|
+
color: $font-color-secondary;
|
1133
|
+
}
|
1134
|
+
&.btn-success {
|
1135
|
+
background-color: $bg-btn-success;
|
1136
|
+
}
|
1137
|
+
&.btn-danger {
|
1138
|
+
background-color: $bg-btn-danger;
|
1139
|
+
}
|
1140
|
+
}
|
1141
|
+
}
|
1142
|
+
|
1143
|
+
.btn-xs {
|
1144
|
+
font: {
|
1145
|
+
size: $font-size-base-sm;
|
1146
|
+
}
|
1147
|
+
line-height: $font-line-height-xs;
|
1148
|
+
padding: $padding-base-btn-xs;
|
1149
|
+
}
|
1150
|
+
|
1151
|
+
.btn-sm {
|
1152
|
+
line-height: $font-line-height-default;
|
1153
|
+
padding: $padding-base-btn-sm;
|
1154
|
+
}
|
1155
|
+
|
1156
|
+
.btn-upper {
|
1157
|
+
font: {
|
1158
|
+
size: 14px;
|
1159
|
+
weight: bold;
|
1160
|
+
}
|
1161
|
+
padding: $padding-base-btn-upper;
|
1162
|
+
text-transform: uppercase;
|
1163
|
+
color:#ffffff;
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
.btn-group {
|
1167
|
+
&.bootstrap-select {
|
1168
|
+
margin: 0;
|
1169
|
+
}
|
1170
|
+
.btn {
|
1171
|
+
+ .btn {
|
1172
|
+
position: relative;
|
1173
|
+
&:before {
|
1174
|
+
background-color: rgba(#000, .05);
|
1175
|
+
content: '';
|
1176
|
+
bottom: 5px;
|
1177
|
+
left: -1px;
|
1178
|
+
position: absolute;
|
1179
|
+
top: 5px;
|
1180
|
+
width: 1px;
|
1181
|
+
}
|
1182
|
+
}
|
1183
|
+
}
|
1184
|
+
}
|
1185
|
+
|
1186
|
+
.btn-glyphicon {
|
1187
|
+
&:before {
|
1188
|
+
display: inline-block;
|
1189
|
+
content: '';
|
1190
|
+
font: {
|
1191
|
+
family: "Glyphicons Halflings";
|
1192
|
+
style: normal;
|
1193
|
+
weight: normal;
|
1194
|
+
}
|
1195
|
+
line-height: 1;
|
1196
|
+
position: relative;
|
1197
|
+
top: 1px;
|
1198
|
+
-webkit-font-smoothing: antialiased;
|
1199
|
+
-moz-osx-font-smoothing: grayscale;
|
1200
|
+
padding-right: 3px;
|
1201
|
+
}
|
1202
|
+
}
|
1203
|
+
|
1204
|
+
.avatar {
|
1205
|
+
display: -webkit-box;
|
1206
|
+
display: -webkit-flex;
|
1207
|
+
display: -ms-flexbox;
|
1208
|
+
display: flex;
|
1209
|
+
border: 1px solid #ddd;
|
1210
|
+
border-radius: 2px;
|
1211
|
+
width: 40px;
|
1212
|
+
height: 40px;
|
1213
|
+
-webkit-box-align: center;
|
1214
|
+
-webkit-align-items: center;
|
1215
|
+
-ms-flex-align: center;
|
1216
|
+
align-items: center;
|
1217
|
+
-webkit-box-pack: center;
|
1218
|
+
-webkit-justify-content: center;
|
1219
|
+
-ms-flex-pack: center;
|
1220
|
+
justify-content: center;
|
1221
|
+
overflow: hidden;
|
1222
|
+
padding: 2px;
|
1223
|
+
margin: 0 auto;
|
1224
|
+
> img {
|
1225
|
+
border-radius: 1px;
|
1226
|
+
max-width: 100%;
|
1227
|
+
}
|
1228
|
+
> .male {
|
1229
|
+
background-image: url('../images/userphoto_default_male.png');
|
1230
|
+
background-repeat: no-repeat;
|
1231
|
+
background-position: center center;
|
1232
|
+
}
|
1233
|
+
> .female {
|
1234
|
+
background-image: url('../images/female_placeholder.jpg');
|
1235
|
+
background-repeat: no-repeat;
|
1236
|
+
background-position: center center;
|
1237
|
+
}
|
1238
|
+
}
|
1239
|
+
|
1240
|
+
.avatar-lg {
|
1241
|
+
width: 100%;
|
1242
|
+
}
|
1243
|
+
|
1244
|
+
// alert
|
1245
|
+
.alert-message-inline {
|
1246
|
+
display: inline-block;
|
1247
|
+
}
|
1248
|
+
|
1249
|
+
.alert-md {
|
1250
|
+
padding: 10px;
|
1251
|
+
}
|
1252
|
+
|
1253
|
+
// Alert
|
1254
|
+
$alerts: "success" $bg-alert-success,
|
1255
|
+
"info" $bg-alert-info,
|
1256
|
+
"warning" $bg-alert-warning,
|
1257
|
+
"danger" $bg-alert-danger;
|
1258
|
+
|
1259
|
+
@each $alert in $alerts {
|
1260
|
+
.alert-#{nth($alert, 1)} {
|
1261
|
+
background-color: lighten(nth($alert, 2), 40%);
|
1262
|
+
border-color: lighten(nth($alert, 2), 30%);
|
1263
|
+
color: darken(nth($alert, 2), 10%);
|
1264
|
+
.alert-link,
|
1265
|
+
strong {
|
1266
|
+
color: darken(nth($alert, 2), 20%);
|
1267
|
+
}
|
1268
|
+
}
|
1269
|
+
}
|
1270
|
+
|
1271
|
+
// Panels
|
1272
|
+
// Declare new variables for panel
|
1273
|
+
$card-body-bg: #ebebeb;
|
1274
|
+
$card-body-font-color: #4d4d4d;
|
1275
|
+
|
1276
|
+
.panel {
|
1277
|
+
border-radius: 0;
|
1278
|
+
box-shadow: none;
|
1279
|
+
margin-bottom: 10px;
|
1280
|
+
position: relative;
|
1281
|
+
}
|
1282
|
+
|
1283
|
+
.panel-heading {
|
1284
|
+
.btn-xs {
|
1285
|
+
font: {
|
1286
|
+
size: 11px;
|
1287
|
+
}
|
1288
|
+
line-height: normal;
|
1289
|
+
padding: 4px 10px;
|
1290
|
+
}
|
1291
|
+
}
|
1292
|
+
|
1293
|
+
.panel-body {
|
1294
|
+
padding: 10px;
|
1295
|
+
}
|
1296
|
+
|
1297
|
+
// Popover
|
1298
|
+
.popover {
|
1299
|
+
border-color: rgba(#000, .1);
|
1300
|
+
border-radius: 3px;
|
1301
|
+
min-width: 85px;
|
1302
|
+
}
|
1303
|
+
|
1304
|
+
.popover-content {
|
1305
|
+
.popover-footer {
|
1306
|
+
border-top: 1px solid rgba(#000, .1);
|
1307
|
+
margin: 5px -15px -9px;
|
1308
|
+
}
|
1309
|
+
}
|
1310
|
+
|
1311
|
+
// Background text
|
1312
|
+
@each $v in (primary, success, info, warning, danger) {
|
1313
|
+
.bg-#{$v} {
|
1314
|
+
padding: 4px 6px;
|
1315
|
+
}
|
1316
|
+
}
|
1317
|
+
|
1318
|
+
// Label
|
1319
|
+
* {
|
1320
|
+
&[class*='label-'] {
|
1321
|
+
display: inline-block;
|
1322
|
+
font: {
|
1323
|
+
size: 80%;
|
1324
|
+
weight: 700;
|
1325
|
+
}
|
1326
|
+
vertical-align: middle;
|
1327
|
+
}
|
1328
|
+
}
|
1329
|
+
|
1330
|
+
// Helpers
|
1331
|
+
|
1332
|
+
// Texts
|
1333
|
+
.text-grey {
|
1334
|
+
color: #999;
|
1335
|
+
}
|
1336
|
+
|
1337
|
+
// Modal
|
1338
|
+
.modal {
|
1339
|
+
&.modal-fixed-footer {
|
1340
|
+
.modal-dialog {
|
1341
|
+
height: 85%;
|
1342
|
+
left: 10px;
|
1343
|
+
margin: auto;
|
1344
|
+
position: absolute;
|
1345
|
+
right: 10px;
|
1346
|
+
top: 30px;
|
1347
|
+
}
|
1348
|
+
.modal-content {
|
1349
|
+
height: 100%;
|
1350
|
+
position: relative;
|
1351
|
+
.modal-body {
|
1352
|
+
height: calc(100% - 121px);
|
1353
|
+
overflow-y: auto;
|
1354
|
+
position: absolute;
|
1355
|
+
width: 100%;
|
1356
|
+
}
|
1357
|
+
}
|
1358
|
+
.modal-footer {
|
1359
|
+
bottom: 0;
|
1360
|
+
position: absolute;
|
1361
|
+
width: 100%;
|
1362
|
+
}
|
1363
|
+
}
|
1364
|
+
}
|
1365
|
+
.modal-body {
|
1366
|
+
form {
|
1367
|
+
.form-group {
|
1368
|
+
&:last-child {
|
1369
|
+
margin-bottom: 0;
|
1370
|
+
}
|
1371
|
+
}
|
1372
|
+
}
|
1373
|
+
}
|
1374
|
+
|
1375
|
+
.modal-footer {
|
1376
|
+
.bt {
|
1377
|
+
display: inline-block;
|
1378
|
+
vertical-align: middle;
|
1379
|
+
}
|
1380
|
+
}
|
1381
|
+
|
1382
|
+
// Fix bug when modal is open
|
1383
|
+
.modal-backdrop {
|
1384
|
+
bottom: 0;
|
1385
|
+
position: fixed;
|
1386
|
+
z-index: 1000;
|
1387
|
+
}
|
1388
|
+
|
1389
|
+
// Well
|
1390
|
+
.well {
|
1391
|
+
background-color: #f8f8f8;
|
1392
|
+
border-color: #ccc;
|
1393
|
+
box-shadow: none;
|
1394
|
+
}
|
1395
|
+
|
1396
|
+
// Custom chosen-container plugin
|
1397
|
+
.chosen-container {
|
1398
|
+
@media (min-width: 992px) {
|
1399
|
+
min-width: 220px;
|
1400
|
+
}
|
1401
|
+
@media (min-width: 1200px) {
|
1402
|
+
min-width: 250px;
|
1403
|
+
}
|
1404
|
+
&.chosen-container-active {
|
1405
|
+
ul.chosen-choices {
|
1406
|
+
border-color: #66afe9;
|
1407
|
+
box-shadow: inset 0 1px 1px rgba(#000, .075), 0 0 8px rgba(102, 175, 233, .6);
|
1408
|
+
}
|
1409
|
+
}
|
1410
|
+
}
|
1411
|
+
.chosen-container-multi {
|
1412
|
+
ul.chosen-choices {
|
1413
|
+
background-color: #fff;
|
1414
|
+
border: 2px solid #ebebeb;
|
1415
|
+
border-radius: 4px;
|
1416
|
+
font: {
|
1417
|
+
family: $font-family-base;
|
1418
|
+
size: $font-size-base-md;
|
1419
|
+
}
|
1420
|
+
height: auto !important;
|
1421
|
+
min-height: 38px !important;
|
1422
|
+
min-height: inherit;
|
1423
|
+
padding: 0 12px;
|
1424
|
+
li.search-field {
|
1425
|
+
input[type='text'] {
|
1426
|
+
line-height: 1.42857143;
|
1427
|
+
height: 34px;
|
1428
|
+
margin: 0;
|
1429
|
+
padding: 6px 0;
|
1430
|
+
width: auto !important;
|
1431
|
+
}
|
1432
|
+
}
|
1433
|
+
li.search-choice {
|
1434
|
+
background-color: $bg-panel;
|
1435
|
+
background-image: none;
|
1436
|
+
border: none;
|
1437
|
+
box-shadow: none;
|
1438
|
+
color: #525252;
|
1439
|
+
font: {
|
1440
|
+
size: $font-size-base-xs;
|
1441
|
+
weight: bold;
|
1442
|
+
}
|
1443
|
+
margin: 4.5px 2px;
|
1444
|
+
padding: 6px 20px 6px 5px;
|
1445
|
+
&:first-child {
|
1446
|
+
margin-left: 0;
|
1447
|
+
}
|
1448
|
+
+ .search-field {
|
1449
|
+
margin-left: 7.5px;
|
1450
|
+
}
|
1451
|
+
.search-choice-close {
|
1452
|
+
background-position: -49px 1px;
|
1453
|
+
right: 0;
|
1454
|
+
top: 6px;
|
1455
|
+
&:hover {
|
1456
|
+
background-position: -49px -10px;
|
1457
|
+
}
|
1458
|
+
}
|
1459
|
+
}
|
1460
|
+
}
|
1461
|
+
}
|
1462
|
+
|
1463
|
+
|
1464
|
+
// Custom plugin bootstrap-select
|
1465
|
+
.bootstrap-select {
|
1466
|
+
&[class*="span"],
|
1467
|
+
&[class*="col-"] {
|
1468
|
+
padding-left: 0;
|
1469
|
+
padding-right: 0;
|
1470
|
+
}
|
1471
|
+
}
|
1472
|
+
|
1473
|
+
// Custom editable-field
|
1474
|
+
.editable-field {
|
1475
|
+
-webkit-transition: box-shadow 150ms ease-in 0ms;
|
1476
|
+
transition: box-shadow 150ms ease-in 0ms;
|
1477
|
+
border-radius: 2.01px;
|
1478
|
+
cursor: text;
|
1479
|
+
display: inline-block;
|
1480
|
+
max-width: 100%;
|
1481
|
+
box-shadow: 0 0 0 0 transparent;
|
1482
|
+
padding: 2px 30px 2px 5px;
|
1483
|
+
position: relative;
|
1484
|
+
vertical-align: top;
|
1485
|
+
word-break: break-word;
|
1486
|
+
&:after {
|
1487
|
+
background-color: #f0f0f0;
|
1488
|
+
border-left: 1px solid #ccc;
|
1489
|
+
font: {
|
1490
|
+
family: "Glyphicons Halflings";
|
1491
|
+
size: 13px;
|
1492
|
+
style: normal;
|
1493
|
+
weight: 400;
|
1494
|
+
}
|
1495
|
+
opacity: 0;
|
1496
|
+
line-height: 1;
|
1497
|
+
-webkit-font-smoothing: antialiased;
|
1498
|
+
-moz-osx-font-smoothing: grayscale;
|
1499
|
+
content: "\270f";
|
1500
|
+
padding: 5px;
|
1501
|
+
position: absolute;
|
1502
|
+
text-align: center;
|
1503
|
+
right: 0;
|
1504
|
+
top: 0;
|
1505
|
+
bottom: 0;
|
1506
|
+
-webkit-transition: opacity 150ms ease-in 0ms;
|
1507
|
+
transition: opacity 150ms ease-in 0ms;
|
1508
|
+
}
|
1509
|
+
&:hover,
|
1510
|
+
&.saving {
|
1511
|
+
background-color: #fff;
|
1512
|
+
box-shadow: 0 0 0 1px #ccc;
|
1513
|
+
}
|
1514
|
+
&:hover {
|
1515
|
+
&:after {
|
1516
|
+
opacity: 1;
|
1517
|
+
}
|
1518
|
+
}
|
1519
|
+
}
|
1520
|
+
|
1521
|
+
// Custom Datepicker
|
1522
|
+
$bg-day-active: #0971b7;
|
1523
|
+
.datepicker {
|
1524
|
+
table {
|
1525
|
+
thead {
|
1526
|
+
> tr {
|
1527
|
+
> th {
|
1528
|
+
color: #333;
|
1529
|
+
vertical-align: middle;
|
1530
|
+
&.prev,
|
1531
|
+
&.next {
|
1532
|
+
font: normal normal normal 0px/1 'Glyphicons Halflings';
|
1533
|
+
text-rendering: auto;
|
1534
|
+
-webkit-font-smoothing: antialiased;
|
1535
|
+
-moz-osx-font-smoothing: grayscale;
|
1536
|
+
&:before {
|
1537
|
+
font: {
|
1538
|
+
size: 10px;
|
1539
|
+
}
|
1540
|
+
}
|
1541
|
+
}
|
1542
|
+
&.prev:before {
|
1543
|
+
content: "\e079";
|
1544
|
+
}
|
1545
|
+
&.next:before {
|
1546
|
+
content: "\e080";
|
1547
|
+
}
|
1548
|
+
}
|
1549
|
+
}
|
1550
|
+
}
|
1551
|
+
tr {
|
1552
|
+
td {
|
1553
|
+
color: #333;
|
1554
|
+
span {
|
1555
|
+
height: 40px;
|
1556
|
+
line-height: 40px;
|
1557
|
+
}
|
1558
|
+
}
|
1559
|
+
}
|
1560
|
+
}
|
1561
|
+
}
|
1562
|
+
|
1563
|
+
.datepicker-days {
|
1564
|
+
thead {
|
1565
|
+
> tr {
|
1566
|
+
&:last-child {
|
1567
|
+
> th {
|
1568
|
+
font: {
|
1569
|
+
size: 10px;
|
1570
|
+
weight: normal;
|
1571
|
+
}
|
1572
|
+
height: 20px;
|
1573
|
+
padding: 0;
|
1574
|
+
text-transform: uppercase;
|
1575
|
+
}
|
1576
|
+
}
|
1577
|
+
}
|
1578
|
+
}
|
1579
|
+
tbody {
|
1580
|
+
> tr {
|
1581
|
+
.day {
|
1582
|
+
&.today {
|
1583
|
+
background-color: $bg-lightgrey;
|
1584
|
+
&:hover,
|
1585
|
+
&:focus,
|
1586
|
+
&:active {
|
1587
|
+
&:hover {
|
1588
|
+
background-color: darken($bg-lightgrey, 5%);
|
1589
|
+
}
|
1590
|
+
}
|
1591
|
+
}
|
1592
|
+
&.active,
|
1593
|
+
&.today {
|
1594
|
+
&.active {
|
1595
|
+
&:hover,
|
1596
|
+
&:focus {
|
1597
|
+
background-color: $bg-day-active;
|
1598
|
+
}
|
1599
|
+
}
|
1600
|
+
}
|
1601
|
+
}
|
1602
|
+
}
|
1603
|
+
}
|
1604
|
+
}
|
1605
|
+
|
1606
|
+
// Custom Select2 plugin
|
1607
|
+
.select2-dropdown {
|
1608
|
+
border-color: rgba(#000, .1);
|
1609
|
+
border-radius: 0;
|
1610
|
+
box-shadow: 0 6px 12px rgba(#000, .175); // Add box shadow
|
1611
|
+
}
|