diff --git a/build/scss/AdminLTE.scss b/build/scss/AdminLTE.scss index 8a4c766f1..c15a5f901 100644 --- a/build/scss/AdminLTE.scss +++ b/build/scss/AdminLTE.scss @@ -66,6 +66,7 @@ @import 'plugins/jqvmap'; @import 'plugins/sweetalert2'; @import 'plugins/toastr'; +@import 'plugins/pace'; @import 'plugins/miscellaneous'; // Miscellaneous diff --git a/build/scss/plugins/_pace.scss b/build/scss/plugins/_pace.scss new file mode 100644 index 000000000..6cd2cdc51 --- /dev/null +++ b/build/scss/plugins/_pace.scss @@ -0,0 +1,211 @@ +// +// Plugin: Pace +// + +.pace { + z-index: $zindex-main-sidebar + 10; + + .pace-progress { + z-index: $zindex-main-sidebar + 11; + } + + .pace-activity { + z-index: $zindex-main-sidebar + 12; + } +} + +// Mixin +@mixin pace-variant($name, $color) { + .pace-#{$name} { + .pace { + .pace-progress { + background: $color; + } + } + } + + .pace-barber-shop-#{$name} { + .pace { + background: color-yiq($color); + + .pace-progress { + background: $color; + } + + .pace-activity { + background-image: linear-gradient(45deg, rgba(color-yiq($color), 0.2) 25%, transparent 25%, transparent 50%, rgba(color-yiq($color), 0.2) 50%, rgba(color-yiq($color), 0.2) 75%, transparent 75%, transparent); + } + } + } + + .pace-big-counter-#{$name} { + .pace { + .pace-progress::after { + color: rgba($color, .19999999999999996); + } + } + } + + .pace-bounce-#{$name} { + .pace { + .pace-activity { + background: $color; + } + } + } + + .pace-center-atom-#{$name} { + .pace-progress { + height: 100px; + width: 80px; + + &::before { + background: $color; + color: color-yiq($color); + font-size: .8rem; + line-height: .7rem; + padding-top: 17%; + } + } + + .pace-activity { + border-color: $color; + + &::after, + &::before { + border-color: $color; + } + } + } + + .pace-center-circle-#{$name} { + .pace { + .pace-progress { + background: rgba($color, .8); + color: color-yiq($color); + } + } + } + + .pace-center-radar-#{$name} { + .pace { + .pace-activity { + border-color: $color transparent transparent; + } + + .pace-activity::before { + border-color: $color transparent transparent; + } + } + } + + .pace-center-simple-#{$name} { + .pace { + background: color-yiq($color); + border-color: $color; + + .pace-progress { + background: $color; + } + } + } + + .pace-material-#{$name} { + .pace { + color: $color; + } + } + + .pace-corner-indicator-#{$name} { + .pace { + .pace-activity { + background: $color; + } + + .pace-activity::after, + .pace-activity::beforeĀ { + border: 5px solid color-yiq($color); + } + + + .pace-activity::before { + border-right-color: rgba($color, .2); + border-left-color: rgba($color, .2); + } + + .pace-activity::after { + border-top-color: rgba($color, .2); + border-bottom-color: rgba($color, .2); + } + } + } + + .pace-fill-left-#{$name} { + .pace { + .pace-progress { + background-color: rgba($color, 0.19999999999999996); + } + } + } + + .pace-flash-#{$name} { + .pace { + .pace-progress { + background: $color; + } + + .pace-progress-inner { + box-shadow: 0 0 10px $color, 0 0 5px $color; + } + + .pace-activity { + border-top-color: $color; + border-left-color: $color; + } + } + } + + .pace-loading-bar-#{$name} { + .pace { + .pace-progress { + background: $color; + color: $color; + box-shadow: 120px 0 color-yiq($color), 240px 0 color-yiq($color); + } + + .pace-activity { + box-shadow: inset 0 0 0 2px $color, inset 0 0 0 7px color-yiq($color); + } + } + } + + .pace-mac-osx-#{$name} { + .pace { + .pace-progress { + background-color: $color; + box-shadow: inset -1px 0 $color, inset 0 -1px $color, inset 0 2px rgba(color-yiq($color), 0.5), inset 0 6px rgba(color-yiq($color), .3); + } + + .pace-activity { + background-image: radial-gradient(rgba(color-yiq($color), .65) 0%, rgba(color-yiq($color), .15) 100%); + height: 12px; + } + } + } + + .pace-progress-color-#{$name} { + .pace-progress { + color: $color; + } + } +} + + +@each $name, $color in $theme-colors { + @include pace-variant($name, $color); +} + +@each $name, $color in $colors { + @include pace-variant($name, $color); +} + diff --git a/docs/_config.yml b/docs/_config.yml index 731828151..6285ba0d1 100755 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -56,6 +56,8 @@ navigation: url: components/timeline.html - title: Ribbons url: components/ribbons.html + - title: Plugins + url: components/plugins.html - title: JavaScript icon: fas fa-code url: javascript diff --git a/docs/components/plugins.md b/docs/components/plugins.md new file mode 100644 index 000000000..11eee3746 --- /dev/null +++ b/docs/components/plugins.md @@ -0,0 +1,86 @@ +--- +layout: page +title: Plugins +--- +AdminLTE comes with color overrides & extras for the following plugins. + +### Bootstrap Slider +You can override the color for bootstrap slider tracks with the following classes: +- `.slider-*` + +Example: +```html +
+ +
+``` + +You can also change the layout of the slider with the following classes: + +- `.slider-vertical` +- `.slider-horizontal` + +Example: +```html +
+ +
+``` + + +### iCheck Bootstrap +You can override the color of a iCheck checkbox/radio input, add the following class: +- `.icheck-*` + +Example: +```html +
+ + +
+``` + + +### Pace +You can override the color for all pace themes, load your desired theme and add one the following classes to `body`: + +- `.pace-*` + - barber-shop + - flat-top + - minimal +- `.pace-big-counter-*` + - big-counter +- `.pace-bounce-*` + - bounce +- `pace-center-atom-*` + - center-atom +- `pace-center-circle-*` + - center-circle +- `pace-center-radar-*` + - center-radar +- `pace-center-simple-*` + - center-simple +- `pace-corner-indicator-*` + - corner-indicator +- `.pace-flash-*` + - flash +- `.pace-fill-left-*` + - fill-left +- `.pace-loading-bar-*` + - loading-bar +- `.pace-material-*` + - material +- `.pace-mac-osx-*` + - mac-osx + +Example: `` + + +### SweetAlert +If you use SweetAlert and load the SweetAlert CSS before AdminLTE's CSS, then the colors of any icon changes to AdminLTE's default colors. + + +### Toastr +If you use Toastr and load the Toastr CSS before AdminLTE's CSS, then the background colors changes to AdminLTE's default colors. diff --git a/index.html b/index.html index 27cf32b99..873b57172 100644 --- a/index.html +++ b/index.html @@ -568,6 +568,12 @@

Error 500

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +