coreui-rails 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +27 -0
- data/LICENSE +21 -0
- data/README.md +40 -0
- data/Rakefile +2 -0
- data/app/assets/stylesheets/_bootstrap-variables.scss +119 -0
- data/app/assets/stylesheets/_coreui-variables.scss +1 -0
- data/app/assets/stylesheets/_custom.scss +1 -0
- data/app/assets/stylesheets/bootstrap/_alert.scss +51 -0
- data/app/assets/stylesheets/bootstrap/_badge.scss +47 -0
- data/app/assets/stylesheets/bootstrap/_breadcrumb.scss +38 -0
- data/app/assets/stylesheets/bootstrap/_button-group.scss +166 -0
- data/app/assets/stylesheets/bootstrap/_buttons.scss +143 -0
- data/app/assets/stylesheets/bootstrap/_card.scss +270 -0
- data/app/assets/stylesheets/bootstrap/_carousel.scss +191 -0
- data/app/assets/stylesheets/bootstrap/_close.scss +34 -0
- data/app/assets/stylesheets/bootstrap/_code.scss +56 -0
- data/app/assets/stylesheets/bootstrap/_custom-forms.scss +297 -0
- data/app/assets/stylesheets/bootstrap/_dropdown.scss +131 -0
- data/app/assets/stylesheets/bootstrap/_forms.scss +333 -0
- data/app/assets/stylesheets/bootstrap/_functions.scss +86 -0
- data/app/assets/stylesheets/bootstrap/_grid.scss +52 -0
- data/app/assets/stylesheets/bootstrap/_images.scss +42 -0
- data/app/assets/stylesheets/bootstrap/_input-group.scss +159 -0
- data/app/assets/stylesheets/bootstrap/_jumbotron.scss +16 -0
- data/app/assets/stylesheets/bootstrap/_list-group.scss +115 -0
- data/app/assets/stylesheets/bootstrap/_media.scss +8 -0
- data/app/assets/stylesheets/bootstrap/_mixins.scss +42 -0
- data/app/assets/stylesheets/bootstrap/_modal.scss +168 -0
- data/app/assets/stylesheets/bootstrap/_nav.scss +118 -0
- data/app/assets/stylesheets/bootstrap/_navbar.scss +311 -0
- data/app/assets/stylesheets/bootstrap/_pagination.scss +77 -0
- data/app/assets/stylesheets/bootstrap/_popover.scss +183 -0
- data/app/assets/stylesheets/bootstrap/_print.scss +124 -0
- data/app/assets/stylesheets/bootstrap/_progress.scss +33 -0
- data/app/assets/stylesheets/bootstrap/_reboot.scss +482 -0
- data/app/assets/stylesheets/bootstrap/_root.scss +19 -0
- data/app/assets/stylesheets/bootstrap/_tables.scss +180 -0
- data/app/assets/stylesheets/bootstrap/_tooltip.scss +115 -0
- data/app/assets/stylesheets/bootstrap/_transitions.scss +36 -0
- data/app/assets/stylesheets/bootstrap/_type.scss +125 -0
- data/app/assets/stylesheets/bootstrap/_utilities.scss +14 -0
- data/app/assets/stylesheets/bootstrap/_variables.scss +894 -0
- data/app/assets/stylesheets/bootstrap/bootstrap-grid.scss +32 -0
- data/app/assets/stylesheets/bootstrap/bootstrap-reboot.scss +12 -0
- data/app/assets/stylesheets/bootstrap/bootstrap.scss +42 -0
- data/app/assets/stylesheets/bootstrap/mixins/_alert.scss +13 -0
- data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +21 -0
- data/app/assets/stylesheets/bootstrap/mixins/_badge.scss +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +35 -0
- data/app/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +5 -0
- data/app/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +123 -0
- data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +109 -0
- data/app/assets/stylesheets/bootstrap/mixins/_caret.scss +65 -0
- data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +7 -0
- data/app/assets/stylesheets/bootstrap/mixins/_float.scss +11 -0
- data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +137 -0
- data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +45 -0
- data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +67 -0
- data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +52 -0
- data/app/assets/stylesheets/bootstrap/mixins/_hover.scss +39 -0
- data/app/assets/stylesheets/bootstrap/mixins/_image.scss +36 -0
- data/app/assets/stylesheets/bootstrap/mixins/_list-group.scss +21 -0
- data/app/assets/stylesheets/bootstrap/mixins/_lists.scss +7 -0
- data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +22 -0
- data/app/assets/stylesheets/bootstrap/mixins/_reset-text.scss +17 -0
- data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/app/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +35 -0
- data/app/assets/stylesheets/bootstrap/mixins/_size.scss +6 -0
- data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +30 -0
- data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +14 -0
- data/app/assets/stylesheets/bootstrap/mixins/_text-hide.scss +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/_text-truncate.scss +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/_transition.scss +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/_visibility.scss +7 -0
- data/app/assets/stylesheets/bootstrap/utilities/_align.scss +8 -0
- data/app/assets/stylesheets/bootstrap/utilities/_background.scss +19 -0
- data/app/assets/stylesheets/bootstrap/utilities/_borders.scss +59 -0
- data/app/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
- data/app/assets/stylesheets/bootstrap/utilities/_display.scss +38 -0
- data/app/assets/stylesheets/bootstrap/utilities/_embed.scss +52 -0
- data/app/assets/stylesheets/bootstrap/utilities/_flex.scss +46 -0
- data/app/assets/stylesheets/bootstrap/utilities/_float.scss +9 -0
- data/app/assets/stylesheets/bootstrap/utilities/_position.scss +36 -0
- data/app/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
- data/app/assets/stylesheets/bootstrap/utilities/_sizing.scss +12 -0
- data/app/assets/stylesheets/bootstrap/utilities/_spacing.scss +51 -0
- data/app/assets/stylesheets/bootstrap/utilities/_text.scss +52 -0
- data/app/assets/stylesheets/bootstrap/utilities/_visibility.scss +11 -0
- data/app/assets/stylesheets/coreui-free.scss +18 -0
- data/app/assets/stylesheets/coreui/_animate.scss +27 -0
- data/app/assets/stylesheets/coreui/_aside.scss +64 -0
- data/app/assets/stylesheets/coreui/_avatars.scss +51 -0
- data/app/assets/stylesheets/coreui/_badge.scss +3 -0
- data/app/assets/stylesheets/coreui/_brand-card.scss +51 -0
- data/app/assets/stylesheets/coreui/_brands-buttons.scss +47 -0
- data/app/assets/stylesheets/coreui/_breadcrumb-menu.scss +36 -0
- data/app/assets/stylesheets/coreui/_breadcrumb.scss +4 -0
- data/app/assets/stylesheets/coreui/_buttons.scss +18 -0
- data/app/assets/stylesheets/coreui/_callout.scss +55 -0
- data/app/assets/stylesheets/coreui/_card.scss +107 -0
- data/app/assets/stylesheets/coreui/_charts.scss +7 -0
- data/app/assets/stylesheets/coreui/_deprecated.scss +175 -0
- data/app/assets/stylesheets/coreui/_dropdown-menu-right.scss +8 -0
- data/app/assets/stylesheets/coreui/_dropdown.scss +69 -0
- data/app/assets/stylesheets/coreui/_footer.scss +9 -0
- data/app/assets/stylesheets/coreui/_grid.scss +15 -0
- data/app/assets/stylesheets/coreui/_input-group.scss +6 -0
- data/app/assets/stylesheets/coreui/_layout.scss +399 -0
- data/app/assets/stylesheets/coreui/_loading.scss +128 -0
- data/app/assets/stylesheets/coreui/_mixins.scss +116 -0
- data/app/assets/stylesheets/coreui/_modal.scss +13 -0
- data/app/assets/stylesheets/coreui/_nav.scss +35 -0
- data/app/assets/stylesheets/coreui/_navbar.scss +135 -0
- data/app/assets/stylesheets/coreui/_others.scss +4 -0
- data/app/assets/stylesheets/coreui/_progress-group.scss +40 -0
- data/app/assets/stylesheets/coreui/_progress.scss +15 -0
- data/app/assets/stylesheets/coreui/_rtl.scss +281 -0
- data/app/assets/stylesheets/coreui/_sidebar.scss +454 -0
- data/app/assets/stylesheets/coreui/_switches.scss +301 -0
- data/app/assets/stylesheets/coreui/_tables.scss +20 -0
- data/app/assets/stylesheets/coreui/_temp.scss +39 -0
- data/app/assets/stylesheets/coreui/_utilities.scss +4 -0
- data/app/assets/stylesheets/coreui/_variables.scss +243 -0
- data/app/assets/stylesheets/coreui/_widgets.scss +79 -0
- data/app/assets/stylesheets/coreui/coreui.scss +47 -0
- data/app/assets/stylesheets/coreui/utilities/_background.scss +20 -0
- data/app/assets/stylesheets/coreui/utilities/_borders.scss +18 -0
- data/app/assets/stylesheets/coreui/utilities/_display.scss +18 -0
- data/app/assets/stylesheets/coreui/utilities/_typography.scss +46 -0
- data/coreui-rails.gemspec +19 -0
- data/lib/coreui_rails.rb +4 -0
- data/lib/coreui_rails/version.rb +3 -0
- metadata +195 -0
@@ -0,0 +1,301 @@
|
|
1
|
+
@mixin switch-size($width, $height, $font-size, $handle-margin) {
|
2
|
+
width: $width;
|
3
|
+
height: $height;
|
4
|
+
|
5
|
+
.switch-label {
|
6
|
+
font-size: $font-size;
|
7
|
+
}
|
8
|
+
|
9
|
+
.switch-handle {
|
10
|
+
width: $height - $handle-margin * 2;
|
11
|
+
height: $height - $handle-margin * 2;
|
12
|
+
}
|
13
|
+
|
14
|
+
.switch-input:checked ~ .switch-handle {
|
15
|
+
left: $width - $height + $handle-margin;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin switch($type, $width, $height, $font-size, $handle-margin) {
|
20
|
+
position: relative;
|
21
|
+
display: inline-block;
|
22
|
+
width: $width;
|
23
|
+
height: $height;
|
24
|
+
vertical-align: top;
|
25
|
+
cursor: pointer;
|
26
|
+
background-color: transparent;
|
27
|
+
|
28
|
+
.switch-input {
|
29
|
+
position: absolute;
|
30
|
+
top: 0;
|
31
|
+
left: 0;
|
32
|
+
opacity: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
.switch-label {
|
36
|
+
position: relative;
|
37
|
+
display: block;
|
38
|
+
height: inherit;
|
39
|
+
@if $type == icon {
|
40
|
+
font-family: FontAwesome;
|
41
|
+
}
|
42
|
+
font-size: $font-size;
|
43
|
+
font-weight: 600;
|
44
|
+
text-transform: uppercase;
|
45
|
+
@if $type == ddd {
|
46
|
+
background-color: $gray-100;
|
47
|
+
} @else {
|
48
|
+
background-color: #fff;
|
49
|
+
}
|
50
|
+
border: 1px solid $border-color;
|
51
|
+
border-radius: 2px;
|
52
|
+
transition: opacity background .15s ease-out;
|
53
|
+
}
|
54
|
+
@if $type == text or $type == icon {
|
55
|
+
.switch-label::before,
|
56
|
+
.switch-label::after {
|
57
|
+
position: absolute;
|
58
|
+
top: 50%;
|
59
|
+
width: 50%;
|
60
|
+
margin-top: -.5em;
|
61
|
+
line-height: 1;
|
62
|
+
text-align: center;
|
63
|
+
transition: inherit;
|
64
|
+
}
|
65
|
+
.switch-label::before {
|
66
|
+
right: 1px;
|
67
|
+
color: $gray-200;
|
68
|
+
content: attr(data-off);
|
69
|
+
}
|
70
|
+
.switch-label::after {
|
71
|
+
left: 1px;
|
72
|
+
color: #fff;
|
73
|
+
content: attr(data-on);
|
74
|
+
opacity: 0;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
.switch-input:checked ~ .switch-label {
|
78
|
+
//background: $gray-lightest;
|
79
|
+
}
|
80
|
+
.switch-input:checked ~ .switch-label::before {
|
81
|
+
opacity: 0;
|
82
|
+
}
|
83
|
+
.switch-input:checked ~ .switch-label::after {
|
84
|
+
opacity: 1;
|
85
|
+
}
|
86
|
+
|
87
|
+
.switch-handle {
|
88
|
+
position: absolute;
|
89
|
+
top: $handle-margin;
|
90
|
+
left: $handle-margin;
|
91
|
+
width: $height - $handle-margin * 2;
|
92
|
+
height: $height - $handle-margin * 2;
|
93
|
+
background: #fff;
|
94
|
+
border: 1px solid $border-color;
|
95
|
+
border-radius: 1px;
|
96
|
+
transition: left .15s ease-out;
|
97
|
+
@if $type == ddd {
|
98
|
+
border: 0;
|
99
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.switch-input:checked ~ .switch-handle {
|
104
|
+
left: $width - $height + $handle-margin;
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
@if $type == ddd {
|
109
|
+
@extend .switch-pill;
|
110
|
+
}
|
111
|
+
|
112
|
+
//size variations
|
113
|
+
@if $type == default {
|
114
|
+
|
115
|
+
&.switch-lg {
|
116
|
+
@include switch-size($switch-lg-width, $switch-lg-height, $switch-lg-font-size, $handle-margin);
|
117
|
+
}
|
118
|
+
&.switch-sm {
|
119
|
+
@include switch-size($switch-sm-width, $switch-sm-height, $switch-sm-font-size, $handle-margin);
|
120
|
+
}
|
121
|
+
&.switch-xs {
|
122
|
+
@include switch-size($switch-xs-width, $switch-xs-height, $switch-xs-font-size, $handle-margin);
|
123
|
+
}
|
124
|
+
|
125
|
+
} @else if $type == text {
|
126
|
+
|
127
|
+
&.switch-lg {
|
128
|
+
@include switch-size($switch-text-lg-width, $switch-text-lg-height, $switch-text-lg-font-size, $handle-margin);
|
129
|
+
}
|
130
|
+
&.switch-sm {
|
131
|
+
@include switch-size($switch-text-sm-width, $switch-text-sm-height, $switch-text-sm-font-size, $handle-margin);
|
132
|
+
}
|
133
|
+
&.switch-xs {
|
134
|
+
@include switch-size($switch-text-xs-width, $switch-text-xs-height, $switch-text-xs-font-size, $handle-margin);
|
135
|
+
}
|
136
|
+
|
137
|
+
} @else if $type == icon {
|
138
|
+
|
139
|
+
&.switch-lg {
|
140
|
+
@include switch-size($switch-icon-lg-width, $switch-icon-lg-height, $switch-icon-lg-font-size, $handle-margin);
|
141
|
+
}
|
142
|
+
&.switch-sm {
|
143
|
+
@include switch-size($switch-icon-sm-width, $switch-icon-sm-height, $switch-icon-sm-font-size, $handle-margin);
|
144
|
+
}
|
145
|
+
&.switch-xs {
|
146
|
+
@include switch-size($switch-icon-xs-width, $switch-icon-xs-height, $switch-icon-xs-font-size, $handle-margin);
|
147
|
+
}
|
148
|
+
|
149
|
+
} @else if $type == ddd {
|
150
|
+
|
151
|
+
&.switch-lg {
|
152
|
+
@include switch-size($switch-lg-width, $switch-lg-height, $switch-lg-font-size, 0);
|
153
|
+
}
|
154
|
+
&.switch-sm {
|
155
|
+
@include switch-size($switch-sm-width, $switch-sm-height, $switch-sm-font-size, 0);
|
156
|
+
}
|
157
|
+
&.switch-xs {
|
158
|
+
@include switch-size($switch-xs-width, $switch-xs-height, $switch-xs-font-size, 0);
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
@mixin switch-variant($color) {
|
164
|
+
> .switch-input:checked ~ .switch-label {
|
165
|
+
background: $color;
|
166
|
+
border-color: darken($color, 10%);
|
167
|
+
}
|
168
|
+
|
169
|
+
> .switch-input:checked ~ .switch-handle {
|
170
|
+
border-color: darken($color, 10%);
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
@mixin switch-outline-variant($color) {
|
175
|
+
> .switch-input:checked ~ .switch-label {
|
176
|
+
background: #fff;
|
177
|
+
border-color: $color;
|
178
|
+
|
179
|
+
&::after {
|
180
|
+
color: $color;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
> .switch-input:checked ~ .switch-handle {
|
185
|
+
border-color: $color;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
@mixin switch-outline-alt-variant($color) {
|
190
|
+
> .switch-input:checked ~ .switch-label {
|
191
|
+
background: #fff;
|
192
|
+
border-color: $color;
|
193
|
+
|
194
|
+
&::after {
|
195
|
+
color: $color;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
> .switch-input:checked ~ .switch-handle {
|
200
|
+
background: $color;
|
201
|
+
border-color: $color;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
$switch-lg-width: 48px;
|
206
|
+
$switch-lg-height: 28px;
|
207
|
+
$switch-lg-font-size: 12px;
|
208
|
+
|
209
|
+
$switch-width: 40px;
|
210
|
+
$switch-height: 24px;
|
211
|
+
$switch-font-size: 10px;
|
212
|
+
|
213
|
+
$handle-margin: 2px;
|
214
|
+
|
215
|
+
$switch-sm-width: 32px;
|
216
|
+
$switch-sm-height: 20px;
|
217
|
+
$switch-sm-font-size: 8px;
|
218
|
+
|
219
|
+
$switch-xs-width: 24px;
|
220
|
+
$switch-xs-height: 16px;
|
221
|
+
$switch-xs-font-size: 7px;
|
222
|
+
|
223
|
+
|
224
|
+
$switch-text-lg-width: 56px;
|
225
|
+
$switch-text-lg-height: 28px;
|
226
|
+
$switch-text-lg-font-size: 12px;
|
227
|
+
|
228
|
+
$switch-text-width: 48px;
|
229
|
+
$switch-text-height: 24px;
|
230
|
+
$switch-text-font-size: 10px;
|
231
|
+
|
232
|
+
$switch-text-sm-width: 40px;
|
233
|
+
$switch-text-sm-height: 20px;
|
234
|
+
$switch-text-sm-font-size: 8px;
|
235
|
+
|
236
|
+
$switch-text-xs-width: 32px;
|
237
|
+
$switch-text-xs-height: 16px;
|
238
|
+
$switch-text-xs-font-size: 7px;
|
239
|
+
|
240
|
+
|
241
|
+
$switch-icon-lg-width: 56px;
|
242
|
+
$switch-icon-lg-height: 28px;
|
243
|
+
$switch-icon-lg-font-size: 12px;
|
244
|
+
|
245
|
+
$switch-icon-width: 48px;
|
246
|
+
$switch-icon-height: 24px;
|
247
|
+
$switch-icon-font-size: 10px;
|
248
|
+
|
249
|
+
$switch-icon-sm-width: 40px;
|
250
|
+
$switch-icon-sm-height: 20px;
|
251
|
+
$switch-icon-sm-font-size: 8px;
|
252
|
+
|
253
|
+
$switch-icon-xs-width: 32px;
|
254
|
+
$switch-icon-xs-height: 16px;
|
255
|
+
$switch-icon-xs-font-size: 7px;
|
256
|
+
|
257
|
+
.switch.switch-default {
|
258
|
+
@include switch("default", $switch-width, $switch-height, $switch-font-size, $handle-margin);
|
259
|
+
}
|
260
|
+
|
261
|
+
.switch.switch-text {
|
262
|
+
@include switch("text", $switch-text-width, $switch-text-height, $switch-text-font-size, $handle-margin);
|
263
|
+
}
|
264
|
+
|
265
|
+
.switch.switch-icon {
|
266
|
+
@include switch("icon", $switch-icon-width, $switch-icon-height, $switch-icon-font-size, $handle-margin);
|
267
|
+
}
|
268
|
+
|
269
|
+
.switch.switch-3d {
|
270
|
+
@include switch("ddd", $switch-width, $switch-height, $switch-font-size, 0);
|
271
|
+
}
|
272
|
+
|
273
|
+
//pills style
|
274
|
+
.switch-pill {
|
275
|
+
.switch-label,
|
276
|
+
.switch-handle {
|
277
|
+
border-radius: 50em;
|
278
|
+
}
|
279
|
+
|
280
|
+
.switch-label::before {
|
281
|
+
right: 2px;
|
282
|
+
}
|
283
|
+
.switch-label::after {
|
284
|
+
left: 2px;
|
285
|
+
}
|
286
|
+
}
|
287
|
+
|
288
|
+
@each $color, $value in $theme-colors {
|
289
|
+
//normal style
|
290
|
+
.switch-#{$color} {
|
291
|
+
@include switch-variant($value);
|
292
|
+
}
|
293
|
+
//outline style
|
294
|
+
.switch-#{$color}-outline {
|
295
|
+
@include switch-outline-variant($value);
|
296
|
+
}
|
297
|
+
//outline alternative style
|
298
|
+
.switch-#{$color}-outline-alt {
|
299
|
+
@include switch-outline-alt-variant($value);
|
300
|
+
}
|
301
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// stylelint-disable
|
2
|
+
|
3
|
+
.pagination-datatables, .pagination {
|
4
|
+
li {
|
5
|
+
@extend .page-item;
|
6
|
+
|
7
|
+
a {
|
8
|
+
@extend .page-link;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
.label-pill {
|
14
|
+
border-radius: 1rem !important;
|
15
|
+
}
|
16
|
+
|
17
|
+
// temp fix for Vue & React
|
18
|
+
|
19
|
+
// Open state for the dropdown
|
20
|
+
.open, .show {
|
21
|
+
// Remove the outline when :focus is triggered
|
22
|
+
> a {
|
23
|
+
outline: 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
// navbar dropdown fix
|
28
|
+
.navbar .dropdown-toggle {
|
29
|
+
@extend .nav-link;
|
30
|
+
|
31
|
+
.img-avatar {
|
32
|
+
height: $navbar-height - 20px;
|
33
|
+
margin: 0 10px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.card-block {
|
38
|
+
@extend .card-body;
|
39
|
+
}
|
@@ -0,0 +1,243 @@
|
|
1
|
+
// CoreUI Variables
|
2
|
+
|
3
|
+
// stylelint-disable
|
4
|
+
$enable-sidebar-nav-rounded: false !default;
|
5
|
+
|
6
|
+
$layout-transition-speed: .25s !default;
|
7
|
+
|
8
|
+
// Social Colors
|
9
|
+
|
10
|
+
$facebook: #3b5998 !default;
|
11
|
+
$twitter: #00aced !default;
|
12
|
+
$linkedin: #4875b4 !default;
|
13
|
+
$google-plus: #d34836 !default;
|
14
|
+
$flickr: #ff0084 !default;
|
15
|
+
$tumblr: #32506d !default;
|
16
|
+
$xing: #026466 !default;
|
17
|
+
$github: #4183c4 !default;
|
18
|
+
$html5: #e34f26 !default;
|
19
|
+
$openid: #f78c40 !default;
|
20
|
+
$stack-overflow: #fe7a15 !default;
|
21
|
+
$youtube: #b00 !default;
|
22
|
+
$css3: #0170ba !default;
|
23
|
+
$dribbble: #ea4c89 !default;
|
24
|
+
$google-plus: #bb4b39 !default;
|
25
|
+
$instagram: #517fa4 !default;
|
26
|
+
$pinterest: #cb2027 !default;
|
27
|
+
$vk: #45668e !default;
|
28
|
+
$yahoo: #400191 !default;
|
29
|
+
$behance: #1769ff !default;
|
30
|
+
$dropbox: #007ee5 !default;
|
31
|
+
$reddit: #ff4500 !default;
|
32
|
+
$spotify: #7ab800 !default;
|
33
|
+
$vine: #00bf8f !default;
|
34
|
+
$foursquare: #1073af !default;
|
35
|
+
$vimeo: #aad450 !default;
|
36
|
+
|
37
|
+
$brands-colors: () !default;
|
38
|
+
$brands-colors: map-merge((
|
39
|
+
"facebook": $facebook,
|
40
|
+
"twitter": $twitter,
|
41
|
+
"linkedin": $linkedin,
|
42
|
+
"google-plus": $google-plus,
|
43
|
+
"flickr": $flickr,
|
44
|
+
"tumblr": $tumblr,
|
45
|
+
"xing": $xing,
|
46
|
+
"github": $github,
|
47
|
+
"html5": $html5,
|
48
|
+
"openid": $openid,
|
49
|
+
"stack-overflow": $stack-overflow,
|
50
|
+
"youtube": $youtube,
|
51
|
+
"css3": $css3,
|
52
|
+
"dribbble": $dribbble,
|
53
|
+
"instagram": $instagram,
|
54
|
+
"pinterest": $pinterest,
|
55
|
+
"vk": $vk,
|
56
|
+
"yahoo": $yahoo,
|
57
|
+
"behance": $behance,
|
58
|
+
"dropbox": $dropbox,
|
59
|
+
"reddit": $reddit,
|
60
|
+
"spotify": $spotify,
|
61
|
+
"vine": $vine,
|
62
|
+
"foursquare": $foursquare,
|
63
|
+
"vimeo": $vimeo
|
64
|
+
), $brands-colors);
|
65
|
+
|
66
|
+
// Navbar
|
67
|
+
|
68
|
+
$navbar-height: 55px !default;
|
69
|
+
$navbar-bg: #fff !default;
|
70
|
+
$navbar-border: (
|
71
|
+
bottom: (
|
72
|
+
size: 1px,
|
73
|
+
style: solid,
|
74
|
+
color: $border-color
|
75
|
+
)
|
76
|
+
) !default;
|
77
|
+
$navbar-brand-width: 155px !default;
|
78
|
+
$navbar-brand-bg: #fff !default;
|
79
|
+
$navbar-brand-border: (
|
80
|
+
bottom: (
|
81
|
+
size: 1px,
|
82
|
+
style: solid,
|
83
|
+
color: $border-color
|
84
|
+
)
|
85
|
+
) !default;
|
86
|
+
|
87
|
+
$navbar-brand-minimized-width: 50px !default;
|
88
|
+
$navbar-brand-minimized-bg: $navbar-brand-bg !default;
|
89
|
+
$navbar-brand-minimized-border: $navbar-brand-border !default;
|
90
|
+
|
91
|
+
$navbar-color: $gray-600 !default;
|
92
|
+
$navbar-hover-color: $gray-800 !default;
|
93
|
+
$navbar-active-color: $gray-800 !default;
|
94
|
+
$navbar-disabled-color: $gray-300 !default;
|
95
|
+
|
96
|
+
$navbar-toggler-icon: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-color}' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"), "#", "%23") !default;
|
97
|
+
$navbar-toggler-icon-hover: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-hover-color}' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"), "#", "%23") !default;
|
98
|
+
|
99
|
+
// Sidebar
|
100
|
+
|
101
|
+
$sidebar-width: 200px !default;
|
102
|
+
$sidebar-padding: 0 !default;
|
103
|
+
$sidebar-minimized-width: 50px !default;
|
104
|
+
$sidebar-minimized-height: $sidebar-minimized-width !default;
|
105
|
+
$sidebar-compact-width: 150px !default;
|
106
|
+
$sidebar-compact-height: $sidebar-compact-width !default;
|
107
|
+
$sidebar-color: #fff !default;
|
108
|
+
$sidebar-bg: $gray-800 !default;
|
109
|
+
$sidebar-borders: none !default;
|
110
|
+
$mobile-sidebar-width: 220px !default;
|
111
|
+
|
112
|
+
// Sidebar Header
|
113
|
+
|
114
|
+
$sidebar-header-height: auto !default;
|
115
|
+
$sidebar-header-bg: rgba(0,0,0,.2) !default;
|
116
|
+
$sidebar-header-padding-y: .75rem !default;
|
117
|
+
$sidebar-header-padding-x: 1rem !default;
|
118
|
+
|
119
|
+
// Sidebar Form
|
120
|
+
|
121
|
+
$sidebar-form-border: 0 !default;
|
122
|
+
$sidebar-form-bg: darken($sidebar-bg,10%) !default;
|
123
|
+
$sidebar-form-color: #fff !default;
|
124
|
+
$sidebar-form-placeholder-color: rgba(255,255,255,.7) !default;
|
125
|
+
|
126
|
+
// Sidebar Navigation
|
127
|
+
|
128
|
+
$sidebar-nav-color: #fff !default;
|
129
|
+
$sidebar-nav-title-padding-y: .75rem !default;
|
130
|
+
$sidebar-nav-title-padding-x: 1rem !default;
|
131
|
+
$sidebar-nav-title-color: $gray-200 !default;
|
132
|
+
$sidebar-nav-link-padding-y: .75rem !default;
|
133
|
+
$sidebar-nav-link-padding-x: 1rem !default;
|
134
|
+
$sidebar-nav-link-color: #fff !default;
|
135
|
+
$sidebar-nav-link-bg: transparent !default;
|
136
|
+
$sidebar-nav-link-icon-color: $gray-600 !default;
|
137
|
+
$sidebar-nav-link-borders: 0 !default;
|
138
|
+
|
139
|
+
$sidebar-nav-link-hover-color: #fff !default;
|
140
|
+
$sidebar-nav-link-hover-bg: theme-color("primary") !default;
|
141
|
+
$sidebar-nav-link-hover-icon-color: #fff !default;
|
142
|
+
$sidebar-nav-link-hover-borders: 0 !default;
|
143
|
+
|
144
|
+
$sidebar-nav-link-active-color: #fff !default;
|
145
|
+
$sidebar-nav-link-active-bg: lighten($sidebar-bg, 5%) !default;
|
146
|
+
$sidebar-nav-link-active-icon-color: theme-color("primary") !default;
|
147
|
+
$sidebar-nav-link-active-borders: 0 !default;
|
148
|
+
|
149
|
+
$sidebar-nav-dropdown-color: #fff !default;
|
150
|
+
$sidebar-nav-dropdown-bg: rgba(0,0,0,.2) !default;
|
151
|
+
$sidebar-nav-dropdown-borders: 0 !default;
|
152
|
+
$sidebar-nav-dropdown-indicator-color:$gray-600 !default;
|
153
|
+
$sidebar-nav-dropdown-indicator: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-nav-dropdown-indicator-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
|
154
|
+
$sidebar-nav-dropdown-indicator-hover-color:$sidebar-nav-link-hover-color;
|
155
|
+
$sidebar-nav-dropdown-indicator-hover:str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-nav-dropdown-indicator-hover-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
|
156
|
+
|
157
|
+
// Sidebar Footer
|
158
|
+
|
159
|
+
$sidebar-footer-height: auto !default;
|
160
|
+
$sidebar-footer-bg: rgba(0,0,0,.2) !default;
|
161
|
+
$sidebar-footer-padding-y: .75rem !default;
|
162
|
+
$sidebar-footer-padding-x: 1rem !default;
|
163
|
+
$sidebar-footer-borders: 0 !default;
|
164
|
+
|
165
|
+
// Sidebar Minimizer
|
166
|
+
|
167
|
+
$sidebar-minimizer-height: 50px !default;
|
168
|
+
$sidebar-minimizer-bg: rgba(0,0,0,.2) !default;
|
169
|
+
$sidebar-minimizer-borders: 0 !default;
|
170
|
+
$sidebar-minimizer-indicator-color: $gray-600 !default;
|
171
|
+
$sidebar-minimizer-indicator: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-minimizer-indicator-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
|
172
|
+
$sidebar-minimizer-hover-bg: rgba(0,0,0,.3) !default;
|
173
|
+
$sidebar-minimizer-hover-indicator-color:$sidebar-nav-link-hover-color !default;
|
174
|
+
$sidebar-minimizer-hover-indicator: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-minimizer-hover-indicator-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
|
175
|
+
|
176
|
+
|
177
|
+
// Top Navigation
|
178
|
+
|
179
|
+
$top-nav-bg: #fff !default;
|
180
|
+
$top-nav-color: $body-color !default;
|
181
|
+
$top-nav-borders: (
|
182
|
+
bottom: (
|
183
|
+
size: 1px,
|
184
|
+
style: solid,
|
185
|
+
color: $border-color
|
186
|
+
)
|
187
|
+
) !default;
|
188
|
+
$top-nav-ul-borders: (
|
189
|
+
all: (
|
190
|
+
size: 1px,
|
191
|
+
style: solid,
|
192
|
+
color: $border-color
|
193
|
+
)
|
194
|
+
) !default;
|
195
|
+
|
196
|
+
$top-nav-hover-color: #fff !default;
|
197
|
+
$top-nav-hover-bg: theme-color("primary") !default;
|
198
|
+
$top-nav-active-color: #fff !default;
|
199
|
+
$top-nav-active-bg: theme-color("primary") !default;
|
200
|
+
$top-nav-height: $navbar-height - 15px !default;
|
201
|
+
|
202
|
+
// Breadcrumb
|
203
|
+
$breadcrumb-borders: (
|
204
|
+
bottom: (
|
205
|
+
size: 1px,
|
206
|
+
style: solid,
|
207
|
+
color: $border-color
|
208
|
+
)
|
209
|
+
) !default;
|
210
|
+
|
211
|
+
// Aside
|
212
|
+
|
213
|
+
$aside-menu-width: 250px !default;
|
214
|
+
$aside-menu-color: $gray-800 !default;
|
215
|
+
$aside-menu-bg: #fff !default;
|
216
|
+
$aside-menu-borders: (
|
217
|
+
left: (
|
218
|
+
size: 1px,
|
219
|
+
style: solid,
|
220
|
+
color: $border-color
|
221
|
+
)
|
222
|
+
) !default;
|
223
|
+
|
224
|
+
$aside-menu-nav-padding-y: .75rem !default;
|
225
|
+
$aside-menu-nav-padding-x: 1rem !default;
|
226
|
+
|
227
|
+
// Footer
|
228
|
+
|
229
|
+
$footer-height: 50px !default;
|
230
|
+
$footer-bg: $gray-100 !default;
|
231
|
+
$footer-color: $body-color !default;
|
232
|
+
$footer-borders: (
|
233
|
+
top: (
|
234
|
+
size: 1px,
|
235
|
+
style: solid,
|
236
|
+
color: $border-color
|
237
|
+
)
|
238
|
+
) !default;
|
239
|
+
|
240
|
+
// Cards
|
241
|
+
|
242
|
+
$card-icon-bg: transparent !default;
|
243
|
+
$card-icon-color: $body-color !default;
|