_HistogramRangeSlider.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. @mixin histogramRangeSlider() {
  2. .esri-histogram-range-slider {
  3. display: flex;
  4. flex-direction: column;
  5. height: 100%;
  6. position: relative;
  7. width: 100%;
  8. .esri-slider .esri-slider__label {
  9. top: 24px;
  10. display: none;
  11. }
  12. .esri-slider__anchor--moving .esri-slider__label {
  13. display: inline;
  14. }
  15. .esri-slider {
  16. font-size: 12px;
  17. }
  18. .esri-slider__content {
  19. display: flex;
  20. flex-direction: column-reverse;
  21. }
  22. .esri-slider__max {
  23. bottom: 0;
  24. position: absolute;
  25. right: 0;
  26. text-align: right;
  27. .esri-slider__range-input {
  28. text-align: right;
  29. }
  30. }
  31. .esri-slider__min {
  32. bottom: 0;
  33. left: 0;
  34. position: absolute;
  35. text-align: left;
  36. .esri-slider__range-input {
  37. text-align: left;
  38. }
  39. }
  40. .esri-slider--horizontal {
  41. .esri-slider__max,
  42. .esri-slider__min {
  43. display: inline;
  44. min-width: 50%;
  45. }
  46. }
  47. .esri-histogram {
  48. display: flex;
  49. align-self: flex-end;
  50. }
  51. .esri-histogram__bar {
  52. touch-action: none;
  53. }
  54. .esri-slider__max {
  55. .esri-slider__range-input {
  56. float: right;
  57. }
  58. }
  59. }
  60. .esri-histogram-range-slider__slider-container {
  61. align-self: flex-end;
  62. margin-bottom: 24px;
  63. width: 100%;
  64. }
  65. .esri-histogram-range-slider__histogram-container {
  66. display: flex;
  67. flex-grow: 1;
  68. height: 100%;
  69. min-height: 0;
  70. width: 100%;
  71. }
  72. .esri-histogram-range-slider__range-type--less-than,
  73. .esri-histogram-range-slider__range-type--at-most {
  74. .esri-slider__segment-0 {
  75. background-color: #0079c1;
  76. }
  77. }
  78. .esri-histogram-range-slider__range-type--greater-than,
  79. .esri-histogram-range-slider__range-type--at-least,
  80. .esri-histogram-range-slider__range-type--between,
  81. .esri-histogram-range-slider__range-type--not-between {
  82. .esri-slider__segment-1 {
  83. background-color: #0079c1;
  84. }
  85. }
  86. }
  87. @if $include_HistogramRangeSlider == true {
  88. @include histogramRangeSlider();
  89. }