123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550 |
- /**
- * IBM Confidential
- * OCO Source Materials
- * IBM Business Platform: Dashboard
- * (C) Copyright IBM Corp. 2018, 2020
- * The source code for this program is not published or otherwise divested of its trade secrets,
- * irrespective of what has been deposited with the U.S. Copyright Office
- **/
- .slider-container {
- position: relative;
- padding: 38px 25px 45px 25px;
- >div.padding {
- display: block;
- position: relative;
- padding: 0px 0 10px 0;
- }
- .tooltipHandle {
- margin-top: 0px;
- padding: 0;
- z-index: 5;
- .tooltip-inner {
- display: inline-flex;
- flex-direction: row;
- align-items: center;
- padding: 0;
- margin-bottom: 10px;
- border-radius: 5px;
- width: 100%;
- >span {
- font-weight: $fw-light;
- padding-left: 5px;
- padding-right: 0;
- &[dir="rtl"] {
- padding-right: 5px;
- padding-left: 0;
- }
- }
- input {
- flex: 1 100%;
- outline: none;
- border: 0;
- padding: 3px;
- text-align: center;
- min-width: 10px; // FF34 sets a 'large' minimum width on inputs. Making it small so it doesn't bleed outside containers.
- }
- }
- .tooltip-arrow {
- left: 0;
- right: 0;
- margin-left: auto;
- margin-right: auto;
- width: 0;
- height: 0;
- margin-top: -10px;
- border-bottom-width: 0;
- border-top-width: 5px;
- border-top-style: solid;
- border-left: 7px solid transparent;
- border-right: 7px solid transparent;
- }
- }
- .tooltipHandle.bottom {
- margin-top: 31px;
- .tooltip-inner {
- margin-top: 8px;
- }
- .tooltip-arrow {
- top: 0;
- margin-top: 3px;
- border-top-width: 0;
- border-bottom-width: 5px;
- border-bottom-style: solid;
- border-left: 7px solid transparent;
- border-right: 7px solid transparent;
- }
- }
- .slider {
- display: block;
- position: absolute;
- margin: 0;
- padding: 0;
- }
- .slider.slider-horizontal {
- width: 100%;
- margin: 0;
- padding: 0;
- }
- .slider.slider-horizontal .slider-track {
- height: 2px;
- width: 100%;
- left: -1px;
- &[dir="rtl"] {
- left: auto;
- right: -1px;
- }
- }
- .slider.slider-horizontal .slider-selection {
- height: 100%;
- top: 0;
- bottom: 0;
- }
- .slider.slider-horizontal .slider-handle {
- margin-left: -10px;
- margin-top: -13px;
- &[dir="rtl"] {
- margin-left: 0px;
- margin-right: -10px;
- }
- }
- .slider.slider-disabled .slider-handle {
- background: none;
- border: 0;
- }
- .slider.slider-disabled .slider-track {}
- .slider .tooltip-inner {
- white-space: nowrap;
- }
- .slider-track {
- position: absolute;
- cursor: pointer;
- }
- .slider-selection {
- cursor: pointer;
- position: absolute;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- .slider-handle {
- position: absolute;
- width: 20px;
- height: 20px;
- filter: none;
- -webkit-box-shadow: inset 0 1px 0 $colorWhitealpha20, 0 1px 2px $colorBlackalpha15;
- box-shadow: inset 0 1px 0 $colorWhitealpha20, 0 1px 2px $colorBlackalpha15;
- outline: 1px dotted;
- @include theming(outline, interactive-01);
- @include user-select(none);
- }
- .slider.slider-disabled .slider-handle {
- filter: none;
- -webkit-box-shadow: none;
- box-shadow: none;
- }
- .slider-handle.round {
- border-radius: 50%;
- }
- .slider-handle.triangle {
- background: transparent none;
- }
- .hint {
- display: block;
- position: relative;
- padding: 0;
- margin-top: 10px;
- margin-bottom: 10px;
- .minvalue,
- .maxvalue {
- width: 50%;
- float: left;
- display: inline-block;
- font-style: normal;
- font-weight: $fw-light;
- font-size: $body-size-s;
- &[dir="rtl"] {
- float: right;
- }
- }
- .minvalue {
- text-align: left;
- &[dir="rtl"] {
- text-align: right;
- }
- }
- .maxvalue {
- text-align: right;
- &[dir="rtl"] {
- text-align: left;
- }
- }
- .minvalue span,
- .maxvalue span {
- @include theming(color, ui-04);
- }
- .minvalue span {
- text-align: left;
- &[dir="rtl"] {
- text-align: right;
- }
- }
- .maxvalue span {
- text-align: right;
- &[dir="rtl"] {
- text-align: left;
- }
- }
- }
- }
- .slider-container.disabled {
- opacity: 1;
- cursor: default;
- .slider.slider-disabled .slider-handle {
- @include theming(background-color, disabled-03);
- outline: none;
- }
- }
- .slider-container.minimized {
- padding: 0;
- >div.padding {
- border: 0;
- padding: 0;
- }
- .slider.slider-horizontal .slider-track {
- height: 4px;
- }
- }
- // Style: dual
- .slider-container.dual {
- padding: 38px 25px 45px 25px;
- >div.padding {
- border: 0;
- }
- .slider {
- margin-top: 12px;
- }
- .tooltipHandle {
- margin-top: -25px;
- padding: 0;
- min-width: 25px;
- .tooltip-inner {
- border-radius: 3px; //border: 1px solid $swatchBlueDark;
- //border-bottom: 2px solid $swatchBlueDark;
- background: $blue40;
- margin-bottom: 0;
- font-size: $caption-size;
- input {
- background-color: transparent;
- }
- &.focus {
- @include theming(background, ui-01);
- border: 1px solid;
- @include theming(border-color, focus);
- @include theming(color, ui-05);
- }
- &.focus span {
- @include theming(color, focus);
- }
- }
- .tooltip-arrow {
- display: none;
- width: 0;
- min-width: 0;
- height: 0;
- min-height: 0;
- border: 0;
- }
- }
- .slider.slider-horizontal .slider-track {
- height: 4px;
- }
- .slider-track {
- @include theming(background-color, ui-03);
- }
- .slider-selection {
- @include theming(background-color, interactive-01);
- }
- .slider.slider-disabled .slider-selection {
- @include theming(background-color, disabled-03);
- }
- .slider-handle {
- top: 17px;
- width: 26px;
- height: 32px;
- filter: none;
- -webkit-box-shadow: none;
- box-shadow: none;
- outline: none;
- z-index: 10;
- background-color: transparent;
- overflow: visible;
- &:active .angle {
- @include theming(border-right-color, interactive-01);
- }
- &:active .box {
- @include theming(background-color, focus);
- }
- }
- .slider-handle .angle {
- position: absolute;
- left: -3px;
- width: 13px;
- border: 0;
- border-top: 10px solid transparent;
- border-right: 13px solid;
- @include theming(border-right-color, ui-03);
- &[dir="rtl"] {
- left: auto;
- right: -3px;
- border-right: none;
- border-left: 13px solid;
- @include theming(border-left-color, ui-03);
- }
- }
- .slider-handle .box {
- position: absolute;
- left: -3px;
- top: 10px;
- width: 13px;
- height: 22px;
- border-bottom-left-radius: 2px;
- border-bottom-right-radius: 2px;
- @include theming(background-color, ui-03);
- &[dir="rtl"] {
- left: auto;
- right: -3px;
- }
- }
- .slider-handle:last-of-type {
- &:active .angle {
- @include theming(border-left-color, interactive-01);
- }
- &:active .box {
- @include theming(background-color, interactive-01);
- }
- .angle {
- left: auto;
- right: 3px;
- border-right: 0;
- border-left: 13px solid;
- @include theming(border-left-color, ui-03);
- &[dir="rtl"] {
- right: auto;
- left: 3px;
- border-left: 0;
- border-right: 13px solid;
- @include theming(border-right-color, ui-03);
- }
- }
- .box {
- left: auto;
- right: 3px;
- &[dir="rtl"] {
- right: auto;
- left: 3px;
- }
- }
- }
- .slider.slider-disabled .slider-handle {
- filter: none;
- -webkit-box-shadow: none;
- box-shadow: none;
- }
- .slider-handle.round {
- border-radius: 0;
- }
- .linePanel {
- display: block;
- height: 12px;
- min-height: 12px;
- z-index: 100;
- .lineSegment {
- display: block;
- position: absolute;
- height: 5px;
- padding: 0;
- margin: 0 0 0 0;
- .linkLine {
- display: inline-block;
- position: absolute;
- top: 0;
- width: 0;
- height: 7px;
- min-height: 7px;
- border-width: 0;
- border-bottom-width: 1px;
- border-style: solid;
- @include theming(border-color, link-01);
- padding: 0;
- margin: 0;
- vertical-align: top;
- }
- .linkLine.left {
- border-left-width: 1px;
- margin-left: -1px;
- }
- .linkLine.right {
- border-right-width: 1px;
- margin-left: -1px;
- }
- .linkLine.bottom {
- top: 6px;
- height: 10px;
- min-height: 10px;
- }
- }
- .lineSegment.bottom {
- height: 5px;
- }
- }
- }
- .dataColumnHeader .slider-handle {
- visibility: hidden;
- }
- .slider-container.dual.invert {
- .slider {
- .slider-track {
- @include theming(background-color, interactive-01);
- }
- .slider-selection {
- @include theming(background-color, ui-background);
- }
- }
- }
- // Style: modelling
- .slider-container.modelling {
- .slider-track {
- background-color: transparent;
- cursor: default;
- }
- .slider-selection {
- @include theming(background-color, interactive-01);
- cursor: default;
- }
- }
- .slider-container.modelling.invert .slider {
- .slider-track {
- @include theming(background-color, ui-background);
- }
- .slider-selection {
- @include theming(background-color, ui-01);
- }
- }
- .slider-container.modelling.indeterminate {
- .slider {
- .slider-selection {
- border-top: 4px dashed;
- @include theming(border-color, interactive-01);
- background-color: transparent;
- }
- }
- }
- // Style: datastrip
- .slider-container.datastrip {
- .slider-track {
- @include theming(background-color, ui-03);
- cursor: default;
- }
- .slider-selection {
- @include theming(background-color, interactive-01);
- cursor: default;
- }
- }
- .slider-container.datastrip.invert .slider {
- .slider-track {
- @include theming(background-color, interactive-01);
- }
- .slider-selection {
- @include theming(background-color, ui-background);
- }
- }
- .slider-container.datastrip.indeterminate {
- .slider {
- .slider-selection {
- border-top: 4px dashed;
- @include theming(background-color, ui-background);
- @include theming(border-color, interactive-01);
- }
- }
- }
- // Style: simple
- .slider-container.simple {
- padding-top: 49px;
- >div.padding {
- border-left: 2px solid;
- @include theming(border-left-color, interactive-02);
- @include theming(border-right-color, interactive-02);
- }
- .tooltipHandle {
- top: 11px;
- margin-top: -47px;
- .tooltip-inner {
- @include theming(background-color, ui-background);
- }
- .tooltip-inner {
- >span {
- @include theming(color, interactive-01);
- }
- input {
- @include theming(border-color, interactive-02);
- @include theming(color, text-01);
- background-color: transparent;
- padding: 3px;
- }
- }
- .tooltip-arrow {
- @include theming(border-top-color, ui-03);
- }
- }
- .tooltipHandle.bottom {
- .tooltip-arrow {
- @include theming(border-bottom-color, ui-03);
- }
- }
- .slider {
- .slider-handle {
- @include theming(background-color, interactive-02);
- }
- .slider-track {
- left: 0px;
- height: 10px;
- &[dir="rtl"] {
- left: auto;
- right: 0px;
- }
- .dummy {
- left: 0px;
- width: 100%;
- height: 2px;
- @include theming(background-color, ui-background);
- margin-top: 4px;
- &[dir="rtl"] {
- left: auto;
- right: 0px;
- }
- }
- }
- .slider-horizontal {
- margin-top: 4px;
- .slider-handle {
- margin-top: -9px;
- }
- }
- .slider-handle {
- top: 4px;
- }
- }
- }
|