lte-rails 0.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +37 -0
- data/.gitmodules +3 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +94 -0
- data/LICENSE +22 -0
- data/README.md +4 -0
- data/Rakefile +52 -0
- data/lib/lte/rails/engine.rb +13 -0
- data/lib/lte/rails/version.rb +7 -0
- data/lib/lte/rails.rb +7 -0
- data/lib/lte-rails.rb +1 -0
- data/lte-rails.gemspec +40 -0
- data/vendor/assets/stylesheets/AdminLTE/.csslintrc +23 -0
- data/vendor/assets/stylesheets/AdminLTE/404_500_errors.less +36 -0
- data/vendor/assets/stylesheets/AdminLTE/AdminLTE.less +68 -0
- data/vendor/assets/stylesheets/AdminLTE/alerts.less +44 -0
- data/vendor/assets/stylesheets/AdminLTE/bootstrap-social.less +114 -0
- data/vendor/assets/stylesheets/AdminLTE/boxes.less +483 -0
- data/vendor/assets/stylesheets/AdminLTE/buttons.less +159 -0
- data/vendor/assets/stylesheets/AdminLTE/callout.less +48 -0
- data/vendor/assets/stylesheets/AdminLTE/carousel.less +18 -0
- data/vendor/assets/stylesheets/AdminLTE/control-sidebar.less +280 -0
- data/vendor/assets/stylesheets/AdminLTE/core.less +171 -0
- data/vendor/assets/stylesheets/AdminLTE/direct-chat.less +172 -0
- data/vendor/assets/stylesheets/AdminLTE/dropdown.less +347 -0
- data/vendor/assets/stylesheets/AdminLTE/forms.less +94 -0
- data/vendor/assets/stylesheets/AdminLTE/fullcalendar.less +88 -0
- data/vendor/assets/stylesheets/AdminLTE/header.less +244 -0
- data/vendor/assets/stylesheets/AdminLTE/info-box.less +69 -0
- data/vendor/assets/stylesheets/AdminLTE/invoice.less +16 -0
- data/vendor/assets/stylesheets/AdminLTE/labels.less +23 -0
- data/vendor/assets/stylesheets/AdminLTE/lockscreen.less +68 -0
- data/vendor/assets/stylesheets/AdminLTE/login_and_register.less +50 -0
- data/vendor/assets/stylesheets/AdminLTE/mailbox.less +77 -0
- data/vendor/assets/stylesheets/AdminLTE/miscellaneous.less +529 -0
- data/vendor/assets/stylesheets/AdminLTE/mixins.less +302 -0
- data/vendor/assets/stylesheets/AdminLTE/modal.less +73 -0
- data/vendor/assets/stylesheets/AdminLTE/navs.less +182 -0
- data/vendor/assets/stylesheets/AdminLTE/print.less +48 -0
- data/vendor/assets/stylesheets/AdminLTE/products.less +44 -0
- data/vendor/assets/stylesheets/AdminLTE/profile.less +29 -0
- data/vendor/assets/stylesheets/AdminLTE/progress-bars.less +107 -0
- data/vendor/assets/stylesheets/AdminLTE/select2.less +102 -0
- data/vendor/assets/stylesheets/AdminLTE/sidebar-mini.less +138 -0
- data/vendor/assets/stylesheets/AdminLTE/sidebar.less +157 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/_all-skins.less +13 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black-light.less +64 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black.less +64 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue-light.less +61 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue.less +58 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green-light.less +56 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green.less +56 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple-light.less +55 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple.less +55 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red-light.less +55 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red.less +55 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow-light.less +55 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow.less +55 -0
- data/vendor/assets/stylesheets/AdminLTE/small-box.less +89 -0
- data/vendor/assets/stylesheets/AdminLTE/social-widgets.less +78 -0
- data/vendor/assets/stylesheets/AdminLTE/table.less +71 -0
- data/vendor/assets/stylesheets/AdminLTE/timeline.less +111 -0
- data/vendor/assets/stylesheets/AdminLTE/users-list.less +39 -0
- data/vendor/assets/stylesheets/AdminLTE/variables.less +120 -0
- data/vendor/assets/stylesheets/lte-rails.less +1 -0
- metadata +200 -0
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Component: Box
|
|
3
|
+
* --------------
|
|
4
|
+
*/
|
|
5
|
+
.box {
|
|
6
|
+
position: relative;
|
|
7
|
+
.border-radius(@box-border-radius);
|
|
8
|
+
background: #ffffff;
|
|
9
|
+
border-top: 3px solid @box-default-border-top-color;
|
|
10
|
+
margin-bottom: 20px;
|
|
11
|
+
width: 100%;
|
|
12
|
+
box-shadow: @box-boxshadow;
|
|
13
|
+
|
|
14
|
+
// Box color variations
|
|
15
|
+
&.box-primary {
|
|
16
|
+
border-top-color: @light-blue;
|
|
17
|
+
}
|
|
18
|
+
&.box-info {
|
|
19
|
+
border-top-color: @aqua;
|
|
20
|
+
}
|
|
21
|
+
&.box-danger {
|
|
22
|
+
border-top-color: @red;
|
|
23
|
+
}
|
|
24
|
+
&.box-warning {
|
|
25
|
+
border-top-color: @yellow;
|
|
26
|
+
}
|
|
27
|
+
&.box-success {
|
|
28
|
+
border-top-color: @green;
|
|
29
|
+
}
|
|
30
|
+
&.box-default {
|
|
31
|
+
border-top-color: @gray;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// collapsed mode
|
|
35
|
+
&.collapsed-box {
|
|
36
|
+
.box-body,
|
|
37
|
+
.box-footer {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.nav-stacked {
|
|
43
|
+
> li {
|
|
44
|
+
border-bottom: 1px solid @box-border-color;
|
|
45
|
+
margin: 0;
|
|
46
|
+
&:last-of-type {
|
|
47
|
+
border-bottom: none;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// fixed height to 300px
|
|
53
|
+
&.height-control {
|
|
54
|
+
.box-body {
|
|
55
|
+
max-height: 300px;
|
|
56
|
+
overflow: auto;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.border-right {
|
|
61
|
+
border-right: 1px solid @box-border-color;
|
|
62
|
+
}
|
|
63
|
+
.border-left {
|
|
64
|
+
border-left: 1px solid @box-border-color;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//SOLID BOX
|
|
68
|
+
//---------
|
|
69
|
+
//use this class to get a colored header and borders
|
|
70
|
+
|
|
71
|
+
&.box-solid {
|
|
72
|
+
border-top: 0;
|
|
73
|
+
> .box-header {
|
|
74
|
+
.btn.btn-default {
|
|
75
|
+
background: transparent;
|
|
76
|
+
}
|
|
77
|
+
.btn,
|
|
78
|
+
a {
|
|
79
|
+
&:hover {
|
|
80
|
+
background: rgba(0,0,0,0.1);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Box color variations
|
|
86
|
+
&.box-default {
|
|
87
|
+
.box-solid-variant(@gray, #444);
|
|
88
|
+
}
|
|
89
|
+
&.box-primary {
|
|
90
|
+
.box-solid-variant(@light-blue);
|
|
91
|
+
}
|
|
92
|
+
&.box-info {
|
|
93
|
+
.box-solid-variant(@aqua);
|
|
94
|
+
}
|
|
95
|
+
&.box-danger {
|
|
96
|
+
.box-solid-variant(@red);
|
|
97
|
+
}
|
|
98
|
+
&.box-warning {
|
|
99
|
+
.box-solid-variant(@yellow);
|
|
100
|
+
}
|
|
101
|
+
&.box-success {
|
|
102
|
+
.box-solid-variant(@green);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
> .box-header > .box-tools .btn {
|
|
106
|
+
border: 0;
|
|
107
|
+
box-shadow: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Fix font color for tiles
|
|
111
|
+
&[class*='bg'] {
|
|
112
|
+
> .box-header {
|
|
113
|
+
color: #fff;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
//BOX GROUP
|
|
120
|
+
.box-group {
|
|
121
|
+
> .box {
|
|
122
|
+
margin-bottom: 5px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
// jQuery Knob in a box
|
|
128
|
+
.knob-label {
|
|
129
|
+
text-align: center;
|
|
130
|
+
color: #333;
|
|
131
|
+
font-weight: 100;
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
margin-bottom: 0.3em;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.box,
|
|
138
|
+
.overlay-wrapper {
|
|
139
|
+
// Box overlay for LOADING STATE effect
|
|
140
|
+
> .overlay,
|
|
141
|
+
> .loading-img {
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: 0;
|
|
144
|
+
left: 0;
|
|
145
|
+
width: 100%;
|
|
146
|
+
height: 100%;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.overlay {
|
|
150
|
+
z-index: 50;
|
|
151
|
+
background: rgba(255, 255, 255, 0.7);
|
|
152
|
+
.border-radius(@box-border-radius);
|
|
153
|
+
> .fa {
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 50%;
|
|
156
|
+
left: 50%;
|
|
157
|
+
margin-left: -15px;
|
|
158
|
+
margin-top: -15px;
|
|
159
|
+
color: #000;
|
|
160
|
+
font-size: 30px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.overlay.dark {
|
|
165
|
+
background: rgba(0, 0, 0, 0.5);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
//Add clearfix to header, body and footer
|
|
170
|
+
.box-header,
|
|
171
|
+
.box-body,
|
|
172
|
+
.box-footer {
|
|
173
|
+
.clearfix();
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
//Box header
|
|
177
|
+
.box-header {
|
|
178
|
+
color: #444;
|
|
179
|
+
display: block;
|
|
180
|
+
padding: @box-padding;
|
|
181
|
+
position: relative;
|
|
182
|
+
|
|
183
|
+
//Add bottom border
|
|
184
|
+
&.with-border {
|
|
185
|
+
border-bottom: 1px solid @box-border-color;
|
|
186
|
+
.collapsed-box & {
|
|
187
|
+
border-bottom: none;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
//Icons and box title
|
|
192
|
+
> .fa,
|
|
193
|
+
> .glyphicon,
|
|
194
|
+
> .ion,
|
|
195
|
+
.box-title {
|
|
196
|
+
display: inline-block;
|
|
197
|
+
font-size: 18px;
|
|
198
|
+
margin: 0;
|
|
199
|
+
line-height: 1;
|
|
200
|
+
}
|
|
201
|
+
> .fa,
|
|
202
|
+
> .glyphicon,
|
|
203
|
+
> .ion {
|
|
204
|
+
margin-right: 5px;
|
|
205
|
+
}
|
|
206
|
+
> .box-tools {
|
|
207
|
+
position: absolute;
|
|
208
|
+
right: 10px;
|
|
209
|
+
top: 5px;
|
|
210
|
+
[data-toggle="tooltip"] {
|
|
211
|
+
position: relative;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&.pull-right {
|
|
215
|
+
.dropdown-menu {
|
|
216
|
+
right: 0;
|
|
217
|
+
left: auto;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
//Box Tools Buttons
|
|
224
|
+
.btn-box-tool {
|
|
225
|
+
padding: 5px;
|
|
226
|
+
font-size: 12px;
|
|
227
|
+
background: transparent;
|
|
228
|
+
color: darken(@box-default-border-top-color, 20%);
|
|
229
|
+
.open &,
|
|
230
|
+
&:hover {
|
|
231
|
+
color: darken(@box-default-border-top-color, 40%);
|
|
232
|
+
}
|
|
233
|
+
&.btn:active {
|
|
234
|
+
box-shadow: none;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
//Box Body
|
|
239
|
+
.box-body {
|
|
240
|
+
.border-radius(0; 0; @box-border-radius; @box-border-radius);
|
|
241
|
+
padding: @box-padding;
|
|
242
|
+
.no-header & {
|
|
243
|
+
.border-top-radius(@box-border-radius);
|
|
244
|
+
}
|
|
245
|
+
// Tables within the box body
|
|
246
|
+
> .table {
|
|
247
|
+
margin-bottom: 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// Calendar within the box body
|
|
251
|
+
.fc {
|
|
252
|
+
margin-top: 5px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.full-width-chart {
|
|
256
|
+
margin: -19px;
|
|
257
|
+
}
|
|
258
|
+
&.no-padding .full-width-chart {
|
|
259
|
+
margin: -9px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.box-pane {
|
|
263
|
+
.border-radius(0; 0; @box-border-radius; 0);
|
|
264
|
+
}
|
|
265
|
+
.box-pane-right {
|
|
266
|
+
.border-radius(0; 0; 0; @box-border-radius);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
//Box footer
|
|
271
|
+
.box-footer {
|
|
272
|
+
.border-radius(0; 0; @box-border-radius; @box-border-radius);
|
|
273
|
+
border-top: 1px solid @box-border-color;
|
|
274
|
+
padding: @box-padding;
|
|
275
|
+
background-color: @box-footer-bg;
|
|
276
|
+
}
|
|
277
|
+
.chart-legend {
|
|
278
|
+
&:extend(.list-unstyled);
|
|
279
|
+
margin: 10px 0;
|
|
280
|
+
> li {
|
|
281
|
+
@media (max-width: @screen-sm-max) {
|
|
282
|
+
float: left;
|
|
283
|
+
margin-right: 10px;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
//Comment Box
|
|
289
|
+
.box-comments {
|
|
290
|
+
background: #f7f7f7;
|
|
291
|
+
.box-comment {
|
|
292
|
+
.clearfix();
|
|
293
|
+
padding: 8px 0;
|
|
294
|
+
border-bottom: 1px solid #eee;
|
|
295
|
+
&:last-of-type {
|
|
296
|
+
border-bottom: 0;
|
|
297
|
+
}
|
|
298
|
+
&:first-of-type {
|
|
299
|
+
padding-top: 0;
|
|
300
|
+
}
|
|
301
|
+
img {
|
|
302
|
+
&:extend(.img-sm);
|
|
303
|
+
float: left;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
.comment-text {
|
|
307
|
+
margin-left: 40px;
|
|
308
|
+
color: #555;
|
|
309
|
+
}
|
|
310
|
+
.username {
|
|
311
|
+
color: #444;
|
|
312
|
+
display: block;
|
|
313
|
+
font-weight: 600;
|
|
314
|
+
}
|
|
315
|
+
.text-muted {
|
|
316
|
+
font-weight: 400;
|
|
317
|
+
font-size: 12px;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
//Widgets
|
|
322
|
+
//-----------
|
|
323
|
+
|
|
324
|
+
/* Widget: TODO LIST */
|
|
325
|
+
|
|
326
|
+
.todo-list {
|
|
327
|
+
margin: 0;
|
|
328
|
+
padding: 0;
|
|
329
|
+
list-style: none;
|
|
330
|
+
overflow: auto;
|
|
331
|
+
// Todo list element
|
|
332
|
+
> li {
|
|
333
|
+
.border-radius(2px);
|
|
334
|
+
padding: 10px;
|
|
335
|
+
background: #f4f4f4;
|
|
336
|
+
margin-bottom: 2px;
|
|
337
|
+
border-left: 2px solid #e6e7e8;
|
|
338
|
+
color: #444;
|
|
339
|
+
&:last-of-type {
|
|
340
|
+
margin-bottom: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
> input[type='checkbox'] {
|
|
344
|
+
margin: 0 10px 0 5px;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.text {
|
|
348
|
+
display: inline-block;
|
|
349
|
+
margin-left: 5px;
|
|
350
|
+
font-weight: 600;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// Time labels
|
|
354
|
+
.label {
|
|
355
|
+
margin-left: 10px;
|
|
356
|
+
font-size: 9px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// Tools and options box
|
|
360
|
+
.tools {
|
|
361
|
+
display: none;
|
|
362
|
+
float: right;
|
|
363
|
+
color: @red;
|
|
364
|
+
// icons
|
|
365
|
+
> .fa, > .glyphicon, > .ion {
|
|
366
|
+
margin-right: 5px;
|
|
367
|
+
cursor: pointer;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
}
|
|
371
|
+
&:hover .tools {
|
|
372
|
+
display: inline-block;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
&.done {
|
|
376
|
+
color: #999;
|
|
377
|
+
.text {
|
|
378
|
+
text-decoration: line-through;
|
|
379
|
+
font-weight: 500;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.label {
|
|
383
|
+
background: @gray!important;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Color varaity
|
|
389
|
+
.danger {
|
|
390
|
+
border-left-color: @red;
|
|
391
|
+
}
|
|
392
|
+
.warning {
|
|
393
|
+
border-left-color: @yellow;
|
|
394
|
+
}
|
|
395
|
+
.info {
|
|
396
|
+
border-left-color: @aqua;
|
|
397
|
+
}
|
|
398
|
+
.success {
|
|
399
|
+
border-left-color: @green;
|
|
400
|
+
}
|
|
401
|
+
.primary {
|
|
402
|
+
border-left-color: @light-blue;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.handle {
|
|
406
|
+
display: inline-block;
|
|
407
|
+
cursor: move;
|
|
408
|
+
margin: 0 5px;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
}
|
|
412
|
+
// END TODO WIDGET
|
|
413
|
+
|
|
414
|
+
/* Chat widget (DEPRECATED - this will be removed in the next major release. Use Direct Chat instead)*/
|
|
415
|
+
.chat {
|
|
416
|
+
padding: 5px 20px 5px 10px;
|
|
417
|
+
|
|
418
|
+
.item {
|
|
419
|
+
.clearfix();
|
|
420
|
+
margin-bottom: 10px;
|
|
421
|
+
// The image
|
|
422
|
+
> img {
|
|
423
|
+
width: 40px;
|
|
424
|
+
height: 40px;
|
|
425
|
+
border: 2px solid transparent;
|
|
426
|
+
.border-radius(50%);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
> .online {
|
|
430
|
+
border: 2px solid @green;
|
|
431
|
+
}
|
|
432
|
+
> .offline {
|
|
433
|
+
border: 2px solid @red;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// The message body
|
|
437
|
+
> .message {
|
|
438
|
+
margin-left: 55px;
|
|
439
|
+
margin-top: -40px;
|
|
440
|
+
> .name {
|
|
441
|
+
display: block;
|
|
442
|
+
font-weight: 600;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// The attachment
|
|
447
|
+
> .attachment {
|
|
448
|
+
.border-radius(@attachment-border-radius);
|
|
449
|
+
background: #f4f4f4;
|
|
450
|
+
margin-left: 65px;
|
|
451
|
+
margin-right: 15px;
|
|
452
|
+
padding: 10px;
|
|
453
|
+
> h4 {
|
|
454
|
+
margin: 0 0 5px 0;
|
|
455
|
+
font-weight: 600;
|
|
456
|
+
font-size: 14px;
|
|
457
|
+
}
|
|
458
|
+
> p, > .filename {
|
|
459
|
+
font-weight: 600;
|
|
460
|
+
font-size: 13px;
|
|
461
|
+
font-style: italic;
|
|
462
|
+
margin: 0;
|
|
463
|
+
|
|
464
|
+
}
|
|
465
|
+
.clearfix();
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
}
|
|
470
|
+
//END CHAT WIDGET
|
|
471
|
+
|
|
472
|
+
//Input in box
|
|
473
|
+
.box-input {
|
|
474
|
+
max-width: 200px;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
//A fix for panels body text color when placed within
|
|
478
|
+
// a modal
|
|
479
|
+
.modal {
|
|
480
|
+
.panel-body {
|
|
481
|
+
color: #444;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Component: Button
|
|
3
|
+
* -----------------
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.btn {
|
|
7
|
+
.border-radius(@btn-border-radius);
|
|
8
|
+
.box-shadow(@btn-boxshadow);
|
|
9
|
+
border: 1px solid transparent;
|
|
10
|
+
|
|
11
|
+
&.uppercase {
|
|
12
|
+
text-transform: uppercase
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Flat buttons
|
|
16
|
+
&.btn-flat {
|
|
17
|
+
.border-radius(0);
|
|
18
|
+
-webkit-box-shadow: none;
|
|
19
|
+
-moz-box-shadow: none;
|
|
20
|
+
box-shadow: none;
|
|
21
|
+
border-width: 1px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Active state
|
|
25
|
+
&:active {
|
|
26
|
+
-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
|
|
27
|
+
-moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
|
|
28
|
+
box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:focus {
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// input file btn
|
|
36
|
+
&.btn-file {
|
|
37
|
+
position: relative;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
> input[type='file'] {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
right: 0;
|
|
43
|
+
min-width: 100%;
|
|
44
|
+
min-height: 100%;
|
|
45
|
+
font-size: 100px;
|
|
46
|
+
text-align: right;
|
|
47
|
+
.opacity(0);
|
|
48
|
+
outline: none;
|
|
49
|
+
background: white;
|
|
50
|
+
cursor: inherit;
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
//Button color variations
|
|
57
|
+
.btn-default {
|
|
58
|
+
background-color: #f4f4f4;
|
|
59
|
+
color: #444;
|
|
60
|
+
border-color: #ddd;
|
|
61
|
+
&:hover,
|
|
62
|
+
&:active,
|
|
63
|
+
&.hover {
|
|
64
|
+
background-color:darken(#f4f4f4, 5%);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.btn-primary {
|
|
68
|
+
background-color: @light-blue;
|
|
69
|
+
border-color: darken(@light-blue, 5%);
|
|
70
|
+
&:hover, &:active, &.hover {
|
|
71
|
+
background-color: darken(@light-blue, 5%);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.btn-success {
|
|
75
|
+
background-color: @green;
|
|
76
|
+
border-color: darken(@green, 5%);
|
|
77
|
+
&:hover, &:active, &.hover {
|
|
78
|
+
background-color: darken(@green, 5%);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.btn-info {
|
|
82
|
+
background-color: @aqua;
|
|
83
|
+
border-color: darken(@aqua, 5%);
|
|
84
|
+
&:hover, &:active, &.hover {
|
|
85
|
+
background-color: darken(@aqua, 5%);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.btn-danger {
|
|
89
|
+
background-color: @red;
|
|
90
|
+
border-color: darken(@red, 5%);
|
|
91
|
+
&:hover, &:active, &.hover {
|
|
92
|
+
background-color: darken(@red, 5%);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.btn-warning {
|
|
96
|
+
background-color: @yellow;
|
|
97
|
+
border-color: darken(@yellow, 5%);
|
|
98
|
+
&:hover, &:active, &.hover {
|
|
99
|
+
background-color: darken(@yellow, 5%);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
.btn-outline {
|
|
103
|
+
border: 1px solid #fff;
|
|
104
|
+
background: transparent;
|
|
105
|
+
color: #fff;
|
|
106
|
+
&:hover,
|
|
107
|
+
&:focus,
|
|
108
|
+
&:active {
|
|
109
|
+
color: rgba(255,255,255,.7);
|
|
110
|
+
border-color: rgba(255,255,255,.7);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.btn-link {
|
|
114
|
+
.box-shadow(none);
|
|
115
|
+
}
|
|
116
|
+
//General .btn with bg class
|
|
117
|
+
.btn[class*='bg-']:hover {
|
|
118
|
+
.box-shadow(inset 0 0 100px rgba(0,0,0,0.2));
|
|
119
|
+
}
|
|
120
|
+
// Application buttons
|
|
121
|
+
.btn-app {
|
|
122
|
+
.border-radius(3px);
|
|
123
|
+
position: relative;
|
|
124
|
+
padding: 15px 5px;
|
|
125
|
+
margin: 0 0 10px 10px;
|
|
126
|
+
min-width: 80px;
|
|
127
|
+
height: 60px;
|
|
128
|
+
text-align: center;
|
|
129
|
+
color: #666;
|
|
130
|
+
border: 1px solid #ddd;
|
|
131
|
+
background-color: #f4f4f4;
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
//Icons within the btn
|
|
134
|
+
> .fa, > .glyphicon, > .ion {
|
|
135
|
+
font-size: 20px;
|
|
136
|
+
display: block;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:hover {
|
|
140
|
+
background: #f4f4f4;
|
|
141
|
+
color: #444;
|
|
142
|
+
border-color: #aaa;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&:active, &:focus {
|
|
146
|
+
-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
|
|
147
|
+
-moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
|
|
148
|
+
box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
//The badge
|
|
152
|
+
> .badge {
|
|
153
|
+
position: absolute;
|
|
154
|
+
top: -3px;
|
|
155
|
+
right: -10px;
|
|
156
|
+
font-size: 10px;
|
|
157
|
+
font-weight: 400;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Component: Callout
|
|
3
|
+
* ------------------
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// Base styles (regardless of theme)
|
|
7
|
+
.callout {
|
|
8
|
+
.border-radius(3px);
|
|
9
|
+
margin: 0 0 20px 0;
|
|
10
|
+
padding: 15px 30px 15px 15px;
|
|
11
|
+
border-left: 5px solid #eee;
|
|
12
|
+
a {
|
|
13
|
+
color: #fff;
|
|
14
|
+
text-decoration: underline;
|
|
15
|
+
&:hover {
|
|
16
|
+
color: #eee;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
h4 {
|
|
20
|
+
margin-top: 0;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
}
|
|
23
|
+
p:last-child {
|
|
24
|
+
margin-bottom: 0;
|
|
25
|
+
}
|
|
26
|
+
code,
|
|
27
|
+
.highlight {
|
|
28
|
+
background-color: #fff;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Themes for different contexts
|
|
32
|
+
&.callout-danger {
|
|
33
|
+
&:extend(.bg-red);
|
|
34
|
+
border-color: darken(@red, 10%);
|
|
35
|
+
}
|
|
36
|
+
&.callout-warning {
|
|
37
|
+
&:extend(.bg-yellow);
|
|
38
|
+
border-color: darken(@yellow, 10%);
|
|
39
|
+
}
|
|
40
|
+
&.callout-info {
|
|
41
|
+
&:extend(.bg-aqua);
|
|
42
|
+
border-color: darken(@aqua, 10%);
|
|
43
|
+
}
|
|
44
|
+
&.callout-success {
|
|
45
|
+
&:extend(.bg-green);
|
|
46
|
+
border-color: darken(@green, 10%);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Component: Carousel
|
|
3
|
+
* -------------------
|
|
4
|
+
*/
|
|
5
|
+
.carousel-control {
|
|
6
|
+
&.left,
|
|
7
|
+
&.right {
|
|
8
|
+
background-image: none;
|
|
9
|
+
}
|
|
10
|
+
> .fa {
|
|
11
|
+
font-size: 40px;
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 50%;
|
|
14
|
+
z-index: 5;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
margin-top: -20px;
|
|
17
|
+
}
|
|
18
|
+
}
|