first commit

This commit is contained in:
dev-chiefworks
2022-05-31 16:21:53 -04:00
commit f76abffdcd
5978 changed files with 1078901 additions and 0 deletions
@@ -0,0 +1,333 @@
/* ------------------------------------------------------------------------------
*
* # ION Range Slider
*
* Styles for ion_rangeslider.min.js - range slider plugin
*
* ---------------------------------------------------------------------------- */
// Check if component is enabled
@if $enable-ion {
// Base
.irs {
position: relative;
display: block;
height: $tooltip-arrow-height + ($tooltip-padding-y * 2) + $slider-pips-font-size + ($slider-height * 4);
user-select: none;
/*rtl:ignore*/
direction: ltr;
}
// Hide original input
.irs-hidden-input {
position: absolute !important;
display: block !important;
top: 0 !important;
left: 0 !important;
width: 0 !important;
height: 0 !important;
font-size: 0 !important;
line-height: 0 !important;
padding: 0 !important;
margin: 0 !important;
outline: none !important;
z-index: -9999 !important;
background: none !important;
border-style: solid !important;
border-color: transparent !important;
}
//
// Background line
//
// Base
.irs-line {
position: relative;
display: block;
overflow: hidden;
outline: none;
height: $slider-height;
top: $tooltip-arrow-height + ($tooltip-padding-y * 2) + $slider-pips-font-size + ($slider-height * 2);
background-color: $slider-bg;
@include border-radius($border-radius-round);
}
// It consists of 3 parts
.irs-line-left,
.irs-line-mid,
.irs-line-right {
position: absolute;
display: block;
top: 0;
}
// Left
.irs-line-left {
/*rtl:ignore*/
left: 0;
width: 11%;
}
// Middle
.irs-line-mid {
/*rtl:ignore*/
left: 9%;
width: 82%;
}
// And right
.irs-line-right {
/*rtl:ignore*/
right: 0;
width: 11%;
}
//
// Colored bar
//
// Base
.irs-bar {
position: absolute;
display: block;
top: $tooltip-arrow-height + ($tooltip-padding-y * 2) + $slider-pips-font-size + ($slider-height * 2);
/*rtl:ignore*/
left: 0;
width: 0;
height: $slider-height;
background-color: $slider-connect-bg;
@include border-radius($border-radius-round);
}
// Edge
.irs-bar-edge {
position: absolute;
display: block;
top: $tooltip-arrow-height + ($tooltip-padding-y * 2) + $slider-pips-font-size + ($slider-height * 2);
/*rtl:ignore*/
left: 0;
height: 0.75rem;
width: 0.5625rem;
}
// Shadow for highlighting disabled range
.irs-shadow {
position: absolute;
display: none;
top: $tooltip-arrow-height + ($tooltip-padding-y * 2) + $slider-pips-font-size + ($slider-height * 2);
/*rtl:ignore*/
left: 0;
width: 0;
height: $slider-height;
background-color: $body-color;
opacity: 0.25;
@include border-radius($border-radius-round);
}
//
// Handles
//
// Base
.irs-handle {
position: absolute;
display: block;
background-color: $slider-handle-bg;
border: $slider-handle-border-width solid $slider-handle-border-color;
cursor: pointer;
top: $tooltip-arrow-height + ($tooltip-padding-y * 2) + $slider-pips-font-size + $slider-height;
cursor: pointer;
z-index: 1;
@include size($slider-height * 3);
@include border-radius($border-radius-round);
// Small circle
&:after {
content: '';
display: inline-block;
position: absolute;
top: 50%;
left: 50%;
margin-top: -($slider-height / 2);
margin-left: -($slider-height / 2);
background-color: $slider-handle-inner-bg;
@include size($slider-height);
@include border-radius($border-radius-round);
}
// Animate handle
&,
&:after {
@include transition(background-color ease-in-out $component-transition-timer);
}
// Hover state
@include hover-focus {
background-color: $slider-handle-hover-bg;
// Mute circle
&:after {
background-color: $slider-handle-inner-hover-bg;
}
}
// The last one is on top of the first one
&.type_last {
z-index: 2;
}
}
//
// Tooltips
//
// Base
.irs-min,
.irs-max,
.irs-from,
.irs-to,
.irs-single {
position: absolute;
display: block;
cursor: default;
}
// Minimum and maximum labels
.irs-min,
.irs-max {
color: $slider-pips-color;
font-size: $slider-pips-font-size;
line-height: 1;
top: 0;
padding: $tooltip-padding-y;
background-color: $slider-bg;
@include border-radius($border-radius);
}
.irs-min {
/*rtl:ignore*/
left: 0;
}
.irs-max {
/*rtl:ignore*/
right: 0;
}
// Handle tooltips
.irs-from,
.irs-to,
.irs-single {
top: 0;
/*rtl:ignore*/
left: 0;
white-space: nowrap;
color: $tooltip-color;
font-size: $slider-pips-font-size;
line-height: 1;
padding: $tooltip-padding-y;
top: 0;
background-color: $tooltip-bg;
@include border-radius($border-radius);
// Tooltip arrow
&:after {
content: "";
position: absolute;
display: block;
bottom: -($tooltip-arrow-height * 2);
left: 50%;
margin-left: -($tooltip-arrow-height);
overflow: hidden;
border: $tooltip-arrow-height solid transparent;
border-top-color: $tooltip-arrow-color;
@include size(0);
}
}
//
// The grid
//
// Base
.irs-grid {
position: absolute;
display: none;
bottom: 0;
/*rtl:ignore*/
left: 0;
width: 100%;
height: ($slider-pips-font-size + $slider-pips-spacer-y);
}
// If slider has grid
.irs-with-grid {
height: $tooltip-arrow-height + ($tooltip-padding-y * 2) + $slider-pips-font-size + ($slider-height * 7) + $slider-pips-spacer-y;
// Display grid
.irs-grid {
display: block;
}
}
// Marker
.irs-grid-pol {
position: absolute;
top: 0;
/*rtl:ignore*/
left: 0;
width: $slider-pips-marker-width;
height: ($slider-pips-marker-height * 2);
background-color: $slider-pips-color;
// Sub marker
&.small {
height: $slider-pips-marker-height;
}
}
// Text label
.irs-grid-text {
position: absolute;
bottom: 0;
/*rtl:ignore*/
left: 0;
white-space: nowrap;
text-align: center;
font-size: $slider-pips-font-size;
color: $slider-pips-color;
line-height: 1;
padding: 0 $slider-pips-marker-height;
}
//
// Disabled state
//
// Disabled mask
.irs-disable-mask {
position: absolute;
display: block;
top: 0;
/*rtl:ignore*/
left: -1%;
width: 102%;
height: 100%;
cursor: default;
background: transparent;
z-index: 2;
}
// Mute slider if disabled
.irs-disabled {
opacity: $slider-disabled-opacity;
}
}
@@ -0,0 +1,555 @@
/* ------------------------------------------------------------------------------
*
* # NoUI slider
*
* Styles for nouislider.min.js - range slider plugin
*
* ---------------------------------------------------------------------------- */
// Check if component is enabled
@if $enable-noui {
// Functional styling
// ------------------------------
// Container
.noUi-target {
position: relative;
background-color: $slider-bg;
@include border-radius($border-radius-round);
@include box-shadow($slider-box-shadow);
// Disable user select
&,
& * {
user-select: none;
}
}
// Base
.noUi-base,
.noUi-connects {
position: relative;
z-index: 1;
@include size(100%);
}
// Wrapper for all connect elements
.noUi-connects {
overflow: hidden;
z-index: 0;
@include border-radius($border-radius-round);
}
// Main wrappers
.noUi-connect,
.noUi-origin {
will-change: transform;
position: absolute;
z-index: 1;
top: 0;
/*rtl:begin:ignore*/
left: 0;
transform-origin: 0 0;
/*rtl:end:ignore*/
@include size(100%);
}
// Inherit cursor
.noUi-state-drag * {
cursor: inherit !important;
}
// Connector
.noUi-connect {
background-color: $slider-connect-bg;
}
// Disabled state
[disabled] {
// Background
.noUi-target {
opacity: $slider-disabled-opacity;
}
// Handle
.noUi-handle {
cursor: $cursor-disabled;
}
}
//
// Orientations
//
// Horizontal orientation
.noUi-horizontal {
height: $slider-height;
// Handle
.noUi-handle {
top: -($slider-height * 1.5) + ($slider-height / 2);
right: -($slider-height * 1.5);
}
// Give origins 0 height so they don't interfere with clicking the connect elements
.noUi-origin {
height: 0;
left: auto;
right: 0;
}
// If has pips
&.has-pips {
margin-bottom: ($slider-pips-spacer-y + $line-height-computed);
}
}
// Vertical orientation
.noUi-vertical {
display: inline-block;
width: $slider-height;
height: $slider-vertical-height;
// Spacing between sliders
& + & {
margin-left: ($spacer * 1.5);
}
// Handle
.noUi-handle {
top: -($slider-height * 1.5);
/*rtl:ignore*/
left: -($slider-height * 1.5) + ($slider-height / 2);
}
// Give origins 0 width so they don't interfere with clicking the connect elements
.noUi-origin {
width: 0;
}
// If has pips
&.has-pips {
margin-right: ($slider-pips-spacer-y + $line-height-computed);
}
}
//
// Handles and cursors
//
// Draggable
.noUi-draggable {
cursor: w-resize;
// Vertical
.noUi-vertical & {
cursor: n-resize;
}
}
// Handle
.noUi-handle {
background-color: $slider-handle-bg;
cursor: pointer;
top: -($slider-height);
position: absolute;
z-index: 1;
border: $slider-handle-border-width solid $slider-handle-border-color;
outline: 0;
@include size($slider-height * 3);
@include border-radius($border-radius-circle);
// Animate handle
&,
&:after {
@include transition(all ease-in-out $component-transition-timer);
}
// This class is applied to the lower origin when its values is > 50%
.noUi-stacking & {
z-index: 10;
}
// Inner circle
&:after {
content: '';
display: inline-block;
position: absolute;
top: 50%;
left: 50%;
margin-top: -($slider-height / 2);
margin-left: -($slider-height / 2);
background-color: $slider-handle-inner-bg;
@include size($slider-height);
@include border-radius($border-radius-circle);
}
// Hover state
@include hover-focus {
background-color: $slider-handle-hover-bg;
// Mute circle
&:after {
background-color: $slider-handle-inner-hover-bg;
}
}
}
// White handle
.noui-slider-white .noUi-handle:after {
content: none;
}
//
// Tap state
//
.noUi-state-tap {
.noUi-connect,
.noUi-origin {
@include transition(transform $component-transition-timer);
}
}
//
// Sizing
//
// Large
.noui-slider-lg {
// Handle
.noUi-handle {
top: -($slider-height-lg);
@include size($slider-height-lg * 3);
// Inner circle
&:after {
margin-top: -($slider-height-lg / 2);
margin-left: -($slider-height-lg / 2);
@include size($slider-height-lg);
}
}
// Horizontal
&.noUi-horizontal {
height: $slider-height-lg;
// Handle
.noUi-handle {
right: -($slider-height-lg * 1.5);
}
}
// Vertical
&.noUi-vertical {
width: $slider-height-lg;
// Handle
.noUi-handle {
top: -($slider-height-lg * 1.5);
right: -($slider-height-lg * 1.5) + ($slider-height-lg / 2);
}
}
}
// Small
.noui-slider-sm {
// Handle
.noUi-handle {
top: -($slider-height-sm);
@include size($slider-height-sm * 3);
// Inner circle
&:after {
margin-top: -($slider-height-sm / 2);
margin-left: -($slider-height-sm / 2);
@include size($slider-height-sm);
}
}
// Horizontal
&.noUi-horizontal {
height: $slider-height-sm;
// Handle
.noUi-handle {
top: -($slider-height-sm * 1.5) + ($slider-height-sm / 2);
right: -($slider-height-sm * 1.5);
}
}
// Vertical
&.noUi-vertical {
width: $slider-height-sm;
// Handle
.noUi-handle {
top: -($slider-height-sm * 1.5);
right: -($slider-height-sm * 1.5) + ($slider-height-sm / 2);
}
}
}
//
// Solid slider handle
//
.noui-slider-solid {
// Handle
.noUi-handle {
// Inner circle
&:after {
background-color: $white;
}
// Change circle opacity on hover
@include hover-focus {
&:after {
opacity: 0.75;
}
}
}
// Handle colors
&.noui-slider-primary .noUi-handle {
background-color: theme-color("primary");
border-color: theme-color("primary");
}
&.noui-slider-danger .noUi-handle {
background-color: theme-color("danger");
border-color: theme-color("danger");
}
&.noui-slider-success .noUi-handle {
background-color: theme-color("success");
border-color: theme-color("success");
}
&.noui-slider-warning .noUi-handle {
background-color: theme-color("warning");
border-color: theme-color("warning");
}
&.noui-slider-info .noUi-handle {
background-color: theme-color("info");
border-color: theme-color("info");
}
}
//
// Contextual colors
//
// Primary
.noui-slider-primary {
.noUi-connect {
background-color: theme-color("primary");
}
}
// Danger
.noui-slider-danger {
.noUi-connect {
background-color: theme-color("danger");
}
}
// Success
.noui-slider-success {
.noUi-connect {
background-color: theme-color("success");
}
}
// Warning
.noui-slider-warning {
.noUi-connect {
background-color: theme-color("warning");
}
}
// Info
.noui-slider-info {
.noUi-connect {
background-color: theme-color("info");
}
}
//
// Tooltip
//
.noUi-tooltip {
position: absolute;
background-color: $tooltip-bg;
color: $tooltip-color;
padding: $tooltip-padding-y $tooltip-padding-x;
bottom: $tooltip-arrow-height;
left: 50%;
transform: translate3d(-50%, -50%, 0);
opacity: 0;
visibility: hidden;
@include border-radius($border-radius);
@include transition(all ease-in-out $component-transition-timer);
// Arrow
&:after {
content: '';
border: $tooltip-arrow-height solid transparent;
border-top-color: $tooltip-arrow-color;
position: absolute;
left: 50%;
bottom: -($tooltip-arrow-height * 2);
transform: translate3d(-50%, 0, 0);
@include size(0);
}
// Show tooltip on hover
.noUi-handle:hover & {
opacity: 1;
visibility: visible;
}
}
// Pips
// ------------------------------
// Base
.noUi-pips {
position: absolute;
color: $slider-pips-color;
}
//
// Values base
//
// Default
.noUi-value {
width: 2.5rem;
position: absolute;
text-align: center;
font-size: $slider-pips-font-size;
line-height: $slider-pips-line-height;
}
// Sub
.noUi-value-sub {
color: lighten($slider-pips-color, 20%);
}
//
// Markings base
//
.noUi-marker {
position: absolute;
background-color: $slider-pips-color;
}
//
// Horizontal layout
//
// Pips
.noUi-pips-horizontal {
padding-top: ($slider-pips-spacer-y / 1.5);
height: ($line-height-computed + $slider-pips-spacer-y);
top: 100%;
left: 0;
width: 100%;
}
// Values
.noUi-value-horizontal {
margin-left: -(1.25rem);
padding-top: $slider-pips-spacer-y;
&.noUi-value-sub {
padding-top: ($slider-pips-spacer-y / 1.5);
}
}
// Markers
.noUi-marker-horizontal {
// Default marker
&.noUi-marker {
width: $slider-pips-marker-width;
height: $slider-pips-marker-height;
}
// Sub marker
&.noUi-marker-sub {
height: ($slider-pips-marker-height * 2);
}
// Large marker
&.noUi-marker-large {
height: ($slider-pips-marker-height * 3);
}
}
//
// Vertical layout
//
// Pips
.noUi-pips-vertical {
padding-left: ($slider-pips-spacer-y / 1.5);
height: 100%;
top: 0;
left: 100%;
}
// Values
.noUi-value-vertical {
margin-top: -($line-height-computed / 2);
padding-left: ($slider-pips-spacer-y / 2);
.noUi-rtl & {
margin-top: 0;
margin-bottom: -($line-height-computed / 2);
}
}
// Markers
.noUi-marker-vertical {
// Default marker
&.noUi-marker {
width: $slider-pips-marker-height;
height: $slider-pips-marker-width;
}
// Sub marker
&.noUi-marker-sub {
width: ($slider-pips-marker-height * 2);
}
// Large marker
&.noUi-marker-large {
width: ($slider-pips-marker-height * 3);
}
}
}
@@ -0,0 +1,173 @@
/* ------------------------------------------------------------------------------
*
* # jQuery UI slider pips
*
* Styles for jQuery UI slider pips extension
*
* ---------------------------------------------------------------------------- */
// Check if component is enabled
@if $enable-jqueryui-pips {
// Pips
// -------------------------
.ui-slider-pips {
// Horizontal
// ------------------------------
// Increase bottom margin to fit the pips
&.ui-slider-horizontal {
margin-bottom: ($slider-height + $slider-pips-spacer-y + $slider-pips-font-size);
margin-left: map-get($spacers, 2);
margin-right: map-get($spacers, 2);
}
// Default hide the labels and pips that arnt visible
.ui-slider-label,
.ui-slider-pip-hide {
display: none;
}
// Now we show any labels that we've set to show in the options
.ui-slider-pip-label .ui-slider-label {
display: block;
}
// Pip and label wrapper
.ui-slider-pip {
height: $slider-pips-font-size;
line-height: 1;
font-size: $slider-pips-font-size;
width: 1.25rem;
margin-left: -$slider-pips-font-size;
position: absolute;
overflow: visible;
text-align: center;
top: $slider-pips-spacer-y;
left: $slider-pips-spacer-y;
cursor: pointer;
-webkit-touch-callout: none;
user-select: none;
}
// Little pip/line position & size
.ui-slider-line {
background-color: $slider-pips-color;
width: $slider-pips-marker-width;
height: $slider-pips-marker-height;
position: absolute;
left: 50%;
}
// Text label postion & size
.ui-slider-label {
position: absolute;
top: ($slider-pips-spacer-y / 1.5);
left: 50%;
width: 1.25rem;
margin-left: -(1.25rem / 2);
white-space: nowrap;
color: $slider-pips-color;
}
// Vertical
// ------------------------------
// Vertical slider needs right-margin, not bottom
&.ui-slider-vertical {
margin-left: ($slider-pips-marker-width + $slider-pips-spacer-y + $slider-pips-font-size);
margin-right: ($slider-pips-marker-width + $slider-pips-spacer-y + $slider-pips-font-size);
// Align vertical pips left and to right of the slider
.ui-slider-pip {
text-align: left;
top: auto;
left: $slider-pips-spacer-y;
margin-left: 0;
height: auto;
}
// Vertical line/pip should be horizontal instead
.ui-slider-line {
width: $slider-pips-marker-height;
height: $slider-pips-marker-width;
position: absolute;
top: 50%;
left: 0;
}
// Text label
.ui-slider-label {
top: 50%;
margin-left: 0;
margin-top: -($slider-pips-font-size / 2);
left: ($slider-pips-spacer-y / 1.5);
}
}
}
// Tooltips
// -------------------------
.ui-slider-float {
// Remove the godawful looking focus outline on handle and float
.ui-slider-handle:focus {
&,
.ui-slider-tip,
.ui-slider-tip-label {
outline: 0;
}
}
// Style tooltips on handles and on labels
.ui-slider-tip,
.ui-slider-tip-label {
position: absolute;
visibility: hidden;
top: -(($slider-height * 3) + ($tooltip-padding-y * 2) + $tooltip-padding-y + $slider-height);
display: block;
left: 50%;
background-color: $tooltip-bg;
text-align: center;
font-size: $tooltip-font-size;
color: $tooltip-color;
padding: $tooltip-padding-y $tooltip-padding-x;
opacity: 0;
transform: translateX(-50%);
@include border-radius($tooltip-border-radius);
@include transition(all ease-in-out $component-transition-timer $component-transition-delay);
}
// Show the tooltip on hover or focus
.ui-slider-handle:hover .ui-slider-tip,
.ui-slider-handle:focus .ui-slider-tip {
visibility: visible;
opacity: 1;
// Transition delay
@if $enable-transitions {
transition-delay: $component-transition-delay;
}
}
// Give the tooltip a css triangle arrow
.ui-slider-tip:after,
.ui-slider-pip .ui-slider-tip-label:after {
content: '';
border: $tooltip-arrow-height solid transparent;
border-top-color: $tooltip-bg;
position: absolute;
bottom: -($tooltip-arrow-height * 2);
left: 50%;
margin-left: -($tooltip-arrow-height);
@include size(0);
}
}
}