123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- @mixin timeSlider() {
- $widget-min-width: 375px;
- $primary-color: $border-color--contrast;
- $highlight-color: $button-color;
- .esri-time-slider {
- cursor: default;
- min-width: $widget-min-width;
- @include defaultBoxShadow();
- &__layout {
- &--wide {
- .esri-time-slider {
- &__row {
- display: flex;
- height: 88px;
- overflow: hidden;
- }
- &__animation {
- width: 64px;
- }
- &__time-extent {
- align-items: center;
- border: {
- left: 1px solid $border-color;
- right: 1px solid $border-color;
- }
- display: flex;
- flex-flow: column nowrap;
- justify-content: center;
- width: 110px;
- }
- &__min,
- &__max {
- width: 110px;
- }
- &__max {
- border: {
- right: 1px solid $border-color;
- }
- }
- &__slider {
- flex: auto;
- }
- &__previous,
- &__next {
- width: 42px;
- }
- }
- }
- &--compact {
- .esri-time-slider {
- &__row {
- display: flex;
- &:nth-child(1),
- &:nth-child(3) {
- padding: {
- bottom: $cap-spacing--half;
- top: $cap-spacing--half;
- }
- }
- &:nth-child(2) {
- height: 88px;
- overflow: hidden;
- }
- }
- &__animation {
- width: 35px;
- }
- &__time-extent {
- align-items: center;
- display: flex;
- flex: auto;
- flex-flow: row nowrap;
- justify-content: center;
- &-separator {
- margin: 0 15px 0 15px;
- }
- }
- &__slider {
- flex: auto;
- }
- &__min,
- &__max {
- flex: auto;
- margin: 0 35px 0 35px;
- }
- &__min {
- align-items: flex-start;
- }
- &__max {
- align-items: flex-end;
- }
- &__previous,
- &__next {
- width: 35px;
- }
- }
- }
- }
- &__mode {
- &--instant {
- .esri-slider {
- &__segment-0,
- &__segment-1 {
- background-color: $primary-color;
- }
- }
- }
- &--time-window {
- .esri-slider {
- &__segment-1 {
- background-color: $highlight-color;
- height: 6px;
- margin-top: -1px;
- }
- &__segment-0,
- &__segment-2 {
- background-color: $primary-color;
- }
- }
- }
- &--cumulative-from-start {
- .esri-slider {
- &__segment-0 {
- background-color: $highlight-color;
- height: 6px;
- margin-top: -1px;
- }
- &__segment-1 {
- background-color: $primary-color;
- }
- }
- }
- &--cumulative-from-end {
- .esri-slider {
- &__segment-0 {
- background-color: $primary-color;
- }
- &__segment-1 {
- background-color: $highlight-color;
- height: 6px;
- margin-top: -1px;
- }
- }
- }
- }
- &__animation {
- &-button {
- border: none;
- height: 100%;
- width: 100%;
- .esri-icon-play,
- .esri-icon-pause {
- font-size: 24px;
- }
- }
- }
- &__time-extent {
- font-size: $font-size__body;
- line-height: $font-size__body;
- &-group {
- display: flex;
- flex-flow: column nowrap;
- align-items: center;
- }
- &-date {
- font-weight: $font-weight--bold;
- color: $highlight-color;
- }
- &-time {
- color: $highlight-color;
- }
- &-separator {
- font-size: $font-size__h2;
- font-weight: $font-weight--bold;
- line-height: $font-size__h2;
- }
- }
- &__min,
- &__max {
- align-items: center;
- display: flex;
- flex-flow: column nowrap;
- font-size: $font-size__body;
- justify-content: center;
- line-height: $font-size__body;
- &-date {
- font-weight: $font-weight--bold;
- }
- }
- &__slider {
- background-color: $background-color--offset;
- padding: 0 40px 0 40px;
- .esri-slider {
- margin-top: -19px;
- background-color: $background-color--offset;
- // This is a fix specifically for IE11. Without it ticks and tick labels are severely displaced.
- &__content {
- height: 2px;
- }
- &__thumb {
- border-width: 3px;
- top: -6px;
- }
- &__tick-label {
- font-size: $font-size__body;
- margin-top: 23px;
- white-space: nowrap;
- }
- &__tick {
- background: $primary-color;
- width: 1px;
- &.minorTick {
- height: 4px;
- }
- &.majorTick {
- height: 8px;
- }
- }
- &__ticks {
- margin: 16px 0 0 0;
- }
- &__track {
- height: 4px;
- }
- }
- }
- &__previous,
- &__next {
- &-button {
- border: none;
- height: 100%;
- width: 100%;
- .esri-icon-reverse,
- .esri-icon-forward {
- font-size: 24px;
- }
- }
- }
- }
- html[dir="rtl"] .esri-time-slider {
- &__layout {
- &--wide {
- .esri-time-slider {
- &__row {
- flex-direction: row-reverse;
- }
- }
- }
- &--compact {
- .esri-time-slider {
- &__row {
- &:nth-child(3) {
- flex-direction: row-reverse;
- }
- }
- &__min {
- align-items: flex-end;
- }
- &__max {
- align-items: flex-start;
- }
- }
- }
- }
- }
- }
- @if $include_TimeSlider == true {
- @include timeSlider();
- }
|