anchor_ui-sprockets 5.2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +67 -0
- data/Rakefile +20 -0
- data/app/assets/fonts/coreui-icons/CoreUI-Icons-Linear-Free.eot +0 -0
- data/app/assets/fonts/coreui-icons/CoreUI-Icons-Linear-Free.svg +110 -0
- data/app/assets/fonts/coreui-icons/CoreUI-Icons-Linear-Free.ttf +0 -0
- data/app/assets/fonts/coreui-icons/CoreUI-Icons-Linear-Free.woff +0 -0
- data/app/assets/javascripts/core.min.js +10 -0
- data/app/assets/javascripts/core.min.js.map +1 -0
- data/app/assets/javascripts/coreui/coreui-utilities.js +1072 -0
- data/app/assets/javascripts/coreui/coreui-utilities.js.map +1 -0
- data/app/assets/javascripts/coreui/coreui-utilities.min.js +7 -0
- data/app/assets/javascripts/coreui/coreui-utilities.min.js.map +1 -0
- data/app/assets/javascripts/coreui/coreui.js +1962 -0
- data/app/assets/javascripts/coreui/coreui.js.map +1 -0
- data/app/assets/javascripts/coreui/coreui.min.js +7 -0
- data/app/assets/javascripts/coreui/coreui.min.js.map +1 -0
- data/app/assets/javascripts/custom-tooltips.min.js +2 -0
- data/app/assets/javascripts/custom-tooltips.min.js.map +1 -0
- data/app/assets/javascripts/pace.min.js +2 -0
- data/app/assets/javascripts/perfect-scrollbar.min.js +6 -0
- data/app/assets/stylesheets/coreui-icons/_core.scss +33 -0
- data/app/assets/stylesheets/coreui-icons/_functions.scss +3 -0
- data/app/assets/stylesheets/coreui-icons/_variables.scss +106 -0
- data/app/assets/stylesheets/coreui-icons/coreui-icons.scss +11 -0
- data/app/assets/stylesheets/coreui/_animate.scss +27 -0
- data/app/assets/stylesheets/coreui/_aside.scss +65 -0
- data/app/assets/stylesheets/coreui/_avatars.scss +44 -0
- data/app/assets/stylesheets/coreui/_badge.scss +3 -0
- data/app/assets/stylesheets/coreui/_brand-buttons.scss +60 -0
- data/app/assets/stylesheets/coreui/_brand-card.scss +65 -0
- data/app/assets/stylesheets/coreui/_breadcrumb-menu.scss +44 -0
- data/app/assets/stylesheets/coreui/_breadcrumb.scss +16 -0
- data/app/assets/stylesheets/coreui/_buttons.scss +32 -0
- data/app/assets/stylesheets/coreui/_callout.scss +73 -0
- data/app/assets/stylesheets/coreui/_card.scss +117 -0
- data/app/assets/stylesheets/coreui/_charts.scss +55 -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/_header.scss +135 -0
- data/app/assets/stylesheets/coreui/_ie-custom-properties.scss +14 -0
- data/app/assets/stylesheets/coreui/_images.scss +6 -0
- data/app/assets/stylesheets/coreui/_input-group.scss +5 -0
- data/app/assets/stylesheets/coreui/_layout.scss +483 -0
- data/app/assets/stylesheets/coreui/_list-group.scss +35 -0
- data/app/assets/stylesheets/coreui/_mixins.scss +7 -0
- data/app/assets/stylesheets/coreui/_modal.scss +13 -0
- data/app/assets/stylesheets/coreui/_nav.scss +57 -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 +27 -0
- data/app/assets/stylesheets/coreui/_sidebar.scss +606 -0
- data/app/assets/stylesheets/coreui/_switches.scss +173 -0
- data/app/assets/stylesheets/coreui/_tables.scss +20 -0
- data/app/assets/stylesheets/coreui/_utilities.scss +4 -0
- data/app/assets/stylesheets/coreui/_variables.scss +204 -0
- data/app/assets/stylesheets/coreui/_vendors.scss +1 -0
- data/app/assets/stylesheets/coreui/_widgets.scss +1 -0
- data/app/assets/stylesheets/coreui/bootstrap.scss +4 -0
- data/app/assets/stylesheets/coreui/bootstrap/_alert.scss +51 -0
- data/app/assets/stylesheets/coreui/bootstrap/_badge.scss +47 -0
- data/app/assets/stylesheets/coreui/bootstrap/_breadcrumb.scss +41 -0
- data/app/assets/stylesheets/coreui/bootstrap/_button-group.scss +172 -0
- data/app/assets/stylesheets/coreui/bootstrap/_buttons.scss +143 -0
- data/app/assets/stylesheets/coreui/bootstrap/_card.scss +301 -0
- data/app/assets/stylesheets/coreui/bootstrap/_carousel.scss +236 -0
- data/app/assets/stylesheets/coreui/bootstrap/_close.scss +35 -0
- data/app/assets/stylesheets/coreui/bootstrap/_code.scss +48 -0
- data/app/assets/stylesheets/coreui/bootstrap/_custom-forms.scss +433 -0
- data/app/assets/stylesheets/coreui/bootstrap/_dropdown.scss +166 -0
- data/app/assets/stylesheets/coreui/bootstrap/_forms.scss +333 -0
- data/app/assets/stylesheets/coreui/bootstrap/_functions.scss +86 -0
- data/app/assets/stylesheets/coreui/bootstrap/_grid.scss +52 -0
- data/app/assets/stylesheets/coreui/bootstrap/_images.scss +42 -0
- data/app/assets/stylesheets/coreui/bootstrap/_input-group.scss +173 -0
- data/app/assets/stylesheets/coreui/bootstrap/_jumbotron.scss +16 -0
- data/app/assets/stylesheets/coreui/bootstrap/_list-group.scss +115 -0
- data/app/assets/stylesheets/coreui/bootstrap/_media.scss +8 -0
- data/app/assets/stylesheets/coreui/bootstrap/_mixins.scss +41 -0
- data/app/assets/stylesheets/coreui/bootstrap/_modal.scss +180 -0
- data/app/assets/stylesheets/coreui/bootstrap/_nav.scss +118 -0
- data/app/assets/stylesheets/coreui/bootstrap/_navbar.scss +299 -0
- data/app/assets/stylesheets/coreui/bootstrap/_pagination.scss +78 -0
- data/app/assets/stylesheets/coreui/bootstrap/_popover.scss +183 -0
- data/app/assets/stylesheets/coreui/bootstrap/_print.scss +141 -0
- data/app/assets/stylesheets/coreui/bootstrap/_progress.scss +34 -0
- data/app/assets/stylesheets/coreui/bootstrap/_reboot.scss +483 -0
- data/app/assets/stylesheets/coreui/bootstrap/_root.scss +19 -0
- data/app/assets/stylesheets/coreui/bootstrap/_tables.scss +187 -0
- data/app/assets/stylesheets/coreui/bootstrap/_tooltip.scss +115 -0
- data/app/assets/stylesheets/coreui/bootstrap/_transitions.scss +22 -0
- data/app/assets/stylesheets/coreui/bootstrap/_type.scss +125 -0
- data/app/assets/stylesheets/coreui/bootstrap/_utilities.scss +15 -0
- data/app/assets/stylesheets/coreui/bootstrap/_variables.scss +952 -0
- data/app/assets/stylesheets/coreui/bootstrap/bootstrap-grid.scss +32 -0
- data/app/assets/stylesheets/coreui/bootstrap/bootstrap-reboot.scss +12 -0
- data/app/assets/stylesheets/coreui/bootstrap/bootstrap.scss +42 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_alert.scss +13 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_background-variant.scss +21 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_badge.scss +12 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_border-radius.scss +35 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_box-shadow.scss +5 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_breakpoints.scss +123 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_buttons.scss +109 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_caret.scss +66 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_clearfix.scss +7 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_float.scss +11 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_forms.scss +147 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_gradients.scss +45 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_grid-framework.scss +67 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_grid.scss +52 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_hover.scss +37 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_image.scss +36 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_list-group.scss +21 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_lists.scss +7 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_nav-divider.scss +10 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_pagination.scss +22 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_reset-text.scss +17 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_resize.scss +6 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_screen-reader.scss +33 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_size.scss +6 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_table-row.scss +30 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_text-emphasis.scss +14 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_text-hide.scss +13 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_text-truncate.scss +8 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_transition.scss +13 -0
- data/app/assets/stylesheets/coreui/bootstrap/mixins/_visibility.scss +7 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_align.scss +8 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_background.scss +19 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_borders.scss +59 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_clearfix.scss +3 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_display.scss +38 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_embed.scss +52 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_flex.scss +51 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_float.scss +9 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_position.scss +37 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_screenreaders.scss +11 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_shadows.scss +6 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_sizing.scss +12 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_spacing.scss +51 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_text.scss +58 -0
- data/app/assets/stylesheets/coreui/bootstrap/utilities/_visibility.scss +11 -0
- data/app/assets/stylesheets/coreui/coreui-standalone.scss +65 -0
- data/app/assets/stylesheets/coreui/coreui.scss +64 -0
- data/app/assets/stylesheets/coreui/mixins/_avatars.scss +17 -0
- data/app/assets/stylesheets/coreui/mixins/_borders.scss +31 -0
- data/app/assets/stylesheets/coreui/mixins/_buttons.scss +41 -0
- data/app/assets/stylesheets/coreui/mixins/_card-accent.scss +4 -0
- data/app/assets/stylesheets/coreui/mixins/_list-group.scss +7 -0
- data/app/assets/stylesheets/coreui/mixins/_sidebar-width.scss +18 -0
- data/app/assets/stylesheets/coreui/mixins/_switches.scss +78 -0
- data/app/assets/stylesheets/coreui/utilities/_background.scss +28 -0
- data/app/assets/stylesheets/coreui/utilities/_borders.scss +19 -0
- data/app/assets/stylesheets/coreui/utilities/_display.scss +18 -0
- data/app/assets/stylesheets/coreui/utilities/_typography.scss +55 -0
- data/app/assets/stylesheets/coreui/variables/_colors.scss +146 -0
- data/app/assets/stylesheets/coreui/variables/bootstrap/_variables.scss +62 -0
- data/app/assets/stylesheets/coreui/vendors/_perfect-scrollbar.scss +94 -0
- data/lib/anchor_ui/sprockets.rb +21 -0
- data/lib/anchor_ui/sprockets/assets.rb +21 -0
- data/lib/anchor_ui/sprockets/assets/base.rb +24 -0
- data/lib/anchor_ui/sprockets/assets/core.rb +24 -0
- data/lib/anchor_ui/sprockets/assets/core_ui.rb +93 -0
- data/lib/anchor_ui/sprockets/assets/core_ui_icons.rb +73 -0
- data/lib/anchor_ui/sprockets/assets/custom_tooltips.rb +24 -0
- data/lib/anchor_ui/sprockets/assets/javascript.rb +39 -0
- data/lib/anchor_ui/sprockets/assets/pace.rb +19 -0
- data/lib/anchor_ui/sprockets/assets/perfect_scrollbar.rb +19 -0
- data/lib/anchor_ui/sprockets/engine.rb +6 -0
- data/lib/anchor_ui/sprockets/paths.rb +21 -0
- data/lib/anchor_ui/sprockets/updater.rb +23 -0
- data/lib/anchor_ui/sprockets/version.rb +7 -0
- data/lib/generators/anchor_ui/sprockets/install_generator.rb +37 -0
- data/lib/generators/anchor_ui/sprockets/templates/_coreui.scss +35 -0
- data/lib/generators/anchor_ui/sprockets/templates/_variables.scss +411 -0
- data/lib/generators/anchor_ui/sprockets/templates/application.js +11 -0
- data/lib/generators/anchor_ui/sprockets/templates/application.scss +7 -0
- metadata +420 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
// stylelint-disable declaration-no-important
|
2
|
+
|
3
|
+
// Width and height
|
4
|
+
|
5
|
+
@each $prop, $abbrev in (width: w, height: h) {
|
6
|
+
@each $size, $length in $sizes {
|
7
|
+
.#{$abbrev}-#{$size} { #{$prop}: $length !important; }
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.mw-100 { max-width: 100% !important; }
|
12
|
+
.mh-100 { max-height: 100% !important; }
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// stylelint-disable declaration-no-important
|
2
|
+
|
3
|
+
// Margin and Padding
|
4
|
+
|
5
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
6
|
+
@include media-breakpoint-up($breakpoint) {
|
7
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
8
|
+
|
9
|
+
@each $prop, $abbrev in (margin: m, padding: p) {
|
10
|
+
@each $size, $length in $spacers {
|
11
|
+
|
12
|
+
.#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
|
13
|
+
.#{$abbrev}t#{$infix}-#{$size},
|
14
|
+
.#{$abbrev}y#{$infix}-#{$size} {
|
15
|
+
#{$prop}-top: $length !important;
|
16
|
+
}
|
17
|
+
.#{$abbrev}r#{$infix}-#{$size},
|
18
|
+
.#{$abbrev}x#{$infix}-#{$size} {
|
19
|
+
#{$prop}-right: $length !important;
|
20
|
+
}
|
21
|
+
.#{$abbrev}b#{$infix}-#{$size},
|
22
|
+
.#{$abbrev}y#{$infix}-#{$size} {
|
23
|
+
#{$prop}-bottom: $length !important;
|
24
|
+
}
|
25
|
+
.#{$abbrev}l#{$infix}-#{$size},
|
26
|
+
.#{$abbrev}x#{$infix}-#{$size} {
|
27
|
+
#{$prop}-left: $length !important;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
// Some special margin utils
|
33
|
+
.m#{$infix}-auto { margin: auto !important; }
|
34
|
+
.mt#{$infix}-auto,
|
35
|
+
.my#{$infix}-auto {
|
36
|
+
margin-top: auto !important;
|
37
|
+
}
|
38
|
+
.mr#{$infix}-auto,
|
39
|
+
.mx#{$infix}-auto {
|
40
|
+
margin-right: auto !important;
|
41
|
+
}
|
42
|
+
.mb#{$infix}-auto,
|
43
|
+
.my#{$infix}-auto {
|
44
|
+
margin-bottom: auto !important;
|
45
|
+
}
|
46
|
+
.ml#{$infix}-auto,
|
47
|
+
.mx#{$infix}-auto {
|
48
|
+
margin-left: auto !important;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// stylelint-disable declaration-no-important
|
2
|
+
|
3
|
+
//
|
4
|
+
// Text
|
5
|
+
//
|
6
|
+
|
7
|
+
.text-monospace { font-family: $font-family-monospace; }
|
8
|
+
|
9
|
+
// Alignment
|
10
|
+
|
11
|
+
.text-justify { text-align: justify !important; }
|
12
|
+
.text-nowrap { white-space: nowrap !important; }
|
13
|
+
.text-truncate { @include text-truncate; }
|
14
|
+
|
15
|
+
// Responsive alignment
|
16
|
+
|
17
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
18
|
+
@include media-breakpoint-up($breakpoint) {
|
19
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
20
|
+
|
21
|
+
.text#{$infix}-left { text-align: left !important; }
|
22
|
+
.text#{$infix}-right { text-align: right !important; }
|
23
|
+
.text#{$infix}-center { text-align: center !important; }
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
// Transformation
|
28
|
+
|
29
|
+
.text-lowercase { text-transform: lowercase !important; }
|
30
|
+
.text-uppercase { text-transform: uppercase !important; }
|
31
|
+
.text-capitalize { text-transform: capitalize !important; }
|
32
|
+
|
33
|
+
// Weight and italics
|
34
|
+
|
35
|
+
.font-weight-light { font-weight: $font-weight-light !important; }
|
36
|
+
.font-weight-normal { font-weight: $font-weight-normal !important; }
|
37
|
+
.font-weight-bold { font-weight: $font-weight-bold !important; }
|
38
|
+
.font-italic { font-style: italic !important; }
|
39
|
+
|
40
|
+
// Contextual colors
|
41
|
+
|
42
|
+
.text-white { color: $white !important; }
|
43
|
+
|
44
|
+
@each $color, $value in $theme-colors {
|
45
|
+
@include text-emphasis-variant(".text-#{$color}", $value);
|
46
|
+
}
|
47
|
+
|
48
|
+
.text-body { color: $body-color !important; }
|
49
|
+
.text-muted { color: $text-muted !important; }
|
50
|
+
|
51
|
+
.text-black-50 { color: rgba($black, .5) !important; }
|
52
|
+
.text-white-50 { color: rgba($white, .5) !important; }
|
53
|
+
|
54
|
+
// Misc
|
55
|
+
|
56
|
+
.text-hide {
|
57
|
+
@include text-hide($ignore-warning: true);
|
58
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/*!
|
2
|
+
* CoreUI - Open Source Dashboard UI Kit
|
3
|
+
* @version v2.1.1
|
4
|
+
* @link https://coreui.io
|
5
|
+
* Copyright (c) 2018 creativeLabs Łukasz Holeczek
|
6
|
+
* Licensed under MIT (https://coreui.io/license)
|
7
|
+
*/
|
8
|
+
|
9
|
+
// Override Boostrap variables
|
10
|
+
@import "variables";
|
11
|
+
|
12
|
+
// Import Bootstrap source files
|
13
|
+
@import "node_modules/bootstrap/scss/functions";
|
14
|
+
@import "node_modules/bootstrap/scss/variables";
|
15
|
+
@import "node_modules/bootstrap/scss/mixins";
|
16
|
+
|
17
|
+
// Import core styles
|
18
|
+
@import "mixins";
|
19
|
+
|
20
|
+
// Animations
|
21
|
+
@import "animate";
|
22
|
+
|
23
|
+
// Vendors
|
24
|
+
@import "vendors";
|
25
|
+
|
26
|
+
// Components
|
27
|
+
@import "aside";
|
28
|
+
@import "avatars";
|
29
|
+
@import "badge";
|
30
|
+
@import "breadcrumb-menu";
|
31
|
+
@import "breadcrumb";
|
32
|
+
@import "brand-card";
|
33
|
+
@import "brand-buttons";
|
34
|
+
@import "buttons";
|
35
|
+
@import "callout";
|
36
|
+
@import "card";
|
37
|
+
@import "charts";
|
38
|
+
@import "dropdown";
|
39
|
+
@import "footer";
|
40
|
+
@import "grid";
|
41
|
+
@import "header";
|
42
|
+
@import "images";
|
43
|
+
@import "input-group";
|
44
|
+
@import "modal";
|
45
|
+
@import "nav";
|
46
|
+
@import "progress";
|
47
|
+
@import "progress-group";
|
48
|
+
@import "sidebar";
|
49
|
+
@import "switches";
|
50
|
+
@import "tables";
|
51
|
+
@import "widgets";
|
52
|
+
|
53
|
+
// Layout Options
|
54
|
+
@import "layout";
|
55
|
+
|
56
|
+
@import "others";
|
57
|
+
|
58
|
+
// Utility classes
|
59
|
+
@import "utilities";
|
60
|
+
|
61
|
+
// Right-to-left
|
62
|
+
@import "rtl";
|
63
|
+
|
64
|
+
// Custom Properties support for Internet Explorer
|
65
|
+
@import "ie-custom-properties";
|
@@ -0,0 +1,64 @@
|
|
1
|
+
/*!
|
2
|
+
* CoreUI - Open Source Dashboard UI Kit
|
3
|
+
* @version v2.1.1
|
4
|
+
* @link https://coreui.io
|
5
|
+
* Copyright (c) 2018 creativeLabs Łukasz Holeczek
|
6
|
+
* Licensed under MIT (https://coreui.io/license)
|
7
|
+
*/
|
8
|
+
|
9
|
+
// Override Boostrap variables
|
10
|
+
@import "variables";
|
11
|
+
|
12
|
+
// Import Bootstrap source files
|
13
|
+
@import "node_modules/bootstrap/scss/bootstrap"; // from bootstrap node_modules
|
14
|
+
|
15
|
+
// Mixins
|
16
|
+
@import "mixins";
|
17
|
+
|
18
|
+
// Animations
|
19
|
+
@import "animate";
|
20
|
+
|
21
|
+
// Vendors
|
22
|
+
@import "vendors";
|
23
|
+
|
24
|
+
// Components
|
25
|
+
@import "aside";
|
26
|
+
@import "avatars";
|
27
|
+
@import "badge";
|
28
|
+
@import "breadcrumb-menu";
|
29
|
+
@import "breadcrumb";
|
30
|
+
@import "brand-card";
|
31
|
+
@import "brand-buttons";
|
32
|
+
@import "buttons";
|
33
|
+
@import "callout";
|
34
|
+
@import "card";
|
35
|
+
@import "charts";
|
36
|
+
@import "dropdown";
|
37
|
+
@import "footer";
|
38
|
+
@import "grid";
|
39
|
+
@import "header";
|
40
|
+
@import "input-group";
|
41
|
+
@import "images";
|
42
|
+
@import "list-group";
|
43
|
+
@import "modal";
|
44
|
+
@import "nav";
|
45
|
+
@import "progress";
|
46
|
+
@import "progress-group";
|
47
|
+
@import "sidebar";
|
48
|
+
@import "switches";
|
49
|
+
@import "tables";
|
50
|
+
@import "widgets";
|
51
|
+
|
52
|
+
// Layout Options
|
53
|
+
@import "layout";
|
54
|
+
|
55
|
+
@import "others";
|
56
|
+
|
57
|
+
// Utility classes
|
58
|
+
@import "utilities";
|
59
|
+
|
60
|
+
// Right-to-left
|
61
|
+
@import "rtl";
|
62
|
+
|
63
|
+
// Custom Properties support for Internet Explorer
|
64
|
+
@import "ie-custom-properties";
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@mixin avatar($width, $status-width) {
|
2
|
+
position: relative;
|
3
|
+
display: inline-block;
|
4
|
+
width: $width;
|
5
|
+
height: $width;
|
6
|
+
|
7
|
+
.avatar-status {
|
8
|
+
position: absolute;
|
9
|
+
right: 0;
|
10
|
+
bottom: 0;
|
11
|
+
display: block;
|
12
|
+
width: $status-width;
|
13
|
+
height: $status-width;
|
14
|
+
border: 1px solid #fff;
|
15
|
+
border-radius: 50em;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@mixin borders($borders) {
|
2
|
+
@each $border in $borders {
|
3
|
+
$direction: nth($border, 1);
|
4
|
+
@if $direction == "all" {
|
5
|
+
$size: map-get(map-get($borders, $direction), size);
|
6
|
+
$style: map-get(map-get($borders, $direction), style);
|
7
|
+
$color: map-get(map-get($borders, $direction), color);
|
8
|
+
border: $size $style $color;
|
9
|
+
} @else if $direction == "top" {
|
10
|
+
$size: map-get(map-get($borders, $direction), size);
|
11
|
+
$style: map-get(map-get($borders, $direction), style);
|
12
|
+
$color: map-get(map-get($borders, $direction), color);
|
13
|
+
border-top: $size $style $color;
|
14
|
+
} @else if $direction == "right" {
|
15
|
+
$size: map-get(map-get($borders, $direction), size);
|
16
|
+
$style: map-get(map-get($borders, $direction), style);
|
17
|
+
$color: map-get(map-get($borders, $direction), color);
|
18
|
+
border-right: $size $style $color;
|
19
|
+
} @else if $direction == "bottom" {
|
20
|
+
$size: map-get(map-get($borders, $direction), size);
|
21
|
+
$style: map-get(map-get($borders, $direction), style);
|
22
|
+
$color: map-get(map-get($borders, $direction), color);
|
23
|
+
border-bottom: $size $style $color;
|
24
|
+
} @else if $direction == "left" {
|
25
|
+
$size: map-get(map-get($borders, $direction), size);
|
26
|
+
$style: map-get(map-get($borders, $direction), style);
|
27
|
+
$color: map-get(map-get($borders, $direction), color);
|
28
|
+
border-left: $size $style $color;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
@mixin button-ghost-variant($color, $color-hover: color-yiq($color), $active-background: $color, $active-border: $color) {
|
2
|
+
color: $color;
|
3
|
+
background-color: transparent;
|
4
|
+
background-image: none;
|
5
|
+
border-color: transparent;
|
6
|
+
|
7
|
+
&:hover {
|
8
|
+
color: $color-hover;
|
9
|
+
background-color: $active-background;
|
10
|
+
border-color: $active-border;
|
11
|
+
}
|
12
|
+
|
13
|
+
&:focus,
|
14
|
+
&.focus {
|
15
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
16
|
+
}
|
17
|
+
|
18
|
+
&.disabled,
|
19
|
+
&:disabled {
|
20
|
+
color: $color;
|
21
|
+
background-color: transparent;
|
22
|
+
border-color: transparent;
|
23
|
+
}
|
24
|
+
|
25
|
+
&:not(:disabled):not(.disabled):active,
|
26
|
+
&:not(:disabled):not(.disabled).active,
|
27
|
+
.show > &.dropdown-toggle {
|
28
|
+
color: color-yiq($active-background);
|
29
|
+
background-color: $active-background;
|
30
|
+
border-color: $active-border;
|
31
|
+
|
32
|
+
&:focus {
|
33
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
34
|
+
@if $enable-shadows and $btn-active-box-shadow != none {
|
35
|
+
box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5);
|
36
|
+
} @else {
|
37
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@mixin sidebar-width($borders, $width) {
|
2
|
+
$sidebar-width: $width;
|
3
|
+
|
4
|
+
@each $border in $borders {
|
5
|
+
$direction: nth($border, 1);
|
6
|
+
@if $direction == "all" {
|
7
|
+
$size: map-get(map-get($borders, $direction), size);
|
8
|
+
$sidebar-width: ($sidebar-width - (2 * $size));
|
9
|
+
} @else if $direction == "right" {
|
10
|
+
$size: map-get(map-get($borders, $direction), size);
|
11
|
+
$sidebar-width: $sidebar-width - $size;
|
12
|
+
} @else if $direction == "left" {
|
13
|
+
$size: map-get(map-get($borders, $direction), size);
|
14
|
+
$sidebar-width: $sidebar-width - $size;
|
15
|
+
}
|
16
|
+
width: $sidebar-width;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
@mixin switch-size($width, $height, $font-size, $handle-margin) {
|
2
|
+
width: $width;
|
3
|
+
height: $height;
|
4
|
+
|
5
|
+
.switch-slider {
|
6
|
+
font-size: $font-size;
|
7
|
+
|
8
|
+
&::before {
|
9
|
+
width: $height - ($handle-margin * 2) - ($border-width * 2);
|
10
|
+
height: $height - ($handle-margin * 2) - ($border-width * 2);
|
11
|
+
}
|
12
|
+
&::after {
|
13
|
+
font-size: $font-size;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.switch-input:checked ~ .switch-slider {
|
18
|
+
&::before {
|
19
|
+
transform: translateX($width - $height);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
@mixin switch-3d-size($width, $height) {
|
25
|
+
width: $width;
|
26
|
+
height: $height;
|
27
|
+
|
28
|
+
.switch-slider::before {
|
29
|
+
width: $height;
|
30
|
+
height: $height;
|
31
|
+
}
|
32
|
+
|
33
|
+
.switch-input:checked ~ .switch-slider {
|
34
|
+
&::before {
|
35
|
+
transform: translateX($width - $height);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
@mixin switch-variant($color) {
|
41
|
+
.switch-input:checked + .switch-slider {
|
42
|
+
background-color: $color;
|
43
|
+
border-color: darken($color, 10%);
|
44
|
+
|
45
|
+
&::before {
|
46
|
+
border-color: darken($color, 10%);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
@mixin switch-outline-variant($color) {
|
52
|
+
.switch-input:checked + .switch-slider {
|
53
|
+
background-color: #fff;
|
54
|
+
border-color: $color;
|
55
|
+
|
56
|
+
&::before {
|
57
|
+
border-color: $color;
|
58
|
+
}
|
59
|
+
&::after {
|
60
|
+
color: $color;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
@mixin switch-outline-variant-alt($color) {
|
66
|
+
.switch-input:checked + .switch-slider {
|
67
|
+
background-color: #fff;
|
68
|
+
border-color: $color;
|
69
|
+
|
70
|
+
&::before {
|
71
|
+
background-color: $color;
|
72
|
+
border-color: $color;
|
73
|
+
}
|
74
|
+
&::after {
|
75
|
+
color: $color;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|