flat.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. .irs--flat {
  2. @name: irs;
  3. @top: 25px;
  4. @bottom: 16px;
  5. @line_height: 12px;
  6. @handle_width: 16px;
  7. @handle_height: 18px;
  8. @custom_radius: 4px;
  9. @line_color: #e1e4e9;
  10. @bar_color: #ed5565;
  11. @handle_color_1: #da4453;
  12. @handle_color_2: #a43540;
  13. @minmax_text_color: #999;
  14. @minmax_bg_color: #e1e4e9;
  15. @label_color_1: #ed5565;
  16. @label_color_2: white;
  17. @grid_color_1: #e1e4e9;
  18. @grid_color_2: #999;
  19. height: 40px;
  20. &.irs-with-grid {
  21. height: 60px;
  22. }
  23. .@{name}-line {
  24. top: @top;
  25. height: @line_height;
  26. background-color: @line_color;
  27. border-radius: @custom_radius;
  28. }
  29. .@{name}-bar {
  30. top: @top;
  31. height: @line_height;
  32. background-color: @bar_color;
  33. &--single {
  34. border-radius: @custom_radius 0 0 @custom_radius;
  35. }
  36. }
  37. .@{name}-shadow {
  38. height: 1px;
  39. bottom: @bottom;
  40. background-color: @line_color;
  41. }
  42. .@{name}-handle {
  43. top: 22px;
  44. width: @handle_width;
  45. height: @handle_height;
  46. background-color: transparent;
  47. & > i:first-child {
  48. position: absolute;
  49. display: block;
  50. top: 0;
  51. left: 50%;
  52. width: 2px;
  53. height: 100%;
  54. margin-left: -1px;
  55. background-color: @handle_color_1;
  56. }
  57. &.state_hover,
  58. &:hover {
  59. & > i:first-child {
  60. background-color: @handle_color_2;
  61. }
  62. }
  63. }
  64. .@{name}-min,
  65. .@{name}-max {
  66. top: 0;
  67. padding: 1px 3px;
  68. color: @minmax_text_color;
  69. font-size: 10px;
  70. line-height: 1.333;
  71. text-shadow: none;
  72. background-color: @minmax_bg_color;
  73. border-radius: @custom_radius;
  74. }
  75. .@{name}-from,
  76. .@{name}-to,
  77. .@{name}-single {
  78. color: @label_color_2;
  79. font-size: 10px;
  80. line-height: 1.333;
  81. text-shadow: none;
  82. padding: 1px 5px;
  83. background-color: @label_color_1;
  84. border-radius: @custom_radius;
  85. &:before {
  86. position: absolute;
  87. display: block;
  88. content: "";
  89. bottom: -6px;
  90. left: 50%;
  91. width: 0;
  92. height: 0;
  93. margin-left: -3px;
  94. overflow: hidden;
  95. border: 3px solid transparent;
  96. border-top-color: @label_color_1;
  97. }
  98. }
  99. .@{name}-grid {
  100. &-pol {
  101. background-color: @grid_color_1;
  102. }
  103. &-text {
  104. color: @grid_color_2;
  105. }
  106. }
  107. }