modern.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. .irs--modern {
  2. @name: irs;
  3. @top: 25px;
  4. @bottom: 21px;
  5. @line_height: 5px;
  6. @handle_width: 12px;
  7. @handle_height: 13px;
  8. @line_color: #d1d6e0;
  9. @bar_color: #20b426;
  10. @handle_color_1: #e9e6e6;
  11. @handle_color_2: white;
  12. @handle_color_3: black;
  13. @minmax_text_color: white;
  14. @minmax_bg_color: #d1d6e0;
  15. @label_color_1: #20b426;
  16. @label_color_2: white;
  17. @grid_color_1: #dedede;
  18. @grid_color_2: silver;
  19. height: 55px;
  20. &.irs-with-grid {
  21. height: 55px;
  22. }
  23. .@{name}-line {
  24. top: @top;
  25. height: @line_height;
  26. background-color: @line_color;
  27. background: linear-gradient(to bottom, lighten(@line_color, 5%) 0%, @line_color 100%);
  28. border: 1px solid darken(@line_color, 15%);
  29. border-bottom-width: 0;
  30. border-radius: @line_height;
  31. }
  32. .@{name}-bar {
  33. top: @top;
  34. height: @line_height;
  35. background: @bar_color;
  36. background: linear-gradient(to bottom, @bar_color 0%, darken(@bar_color, 10%) 100%);
  37. &--single {
  38. border-radius: @line_height 0 0 @line_height;
  39. }
  40. }
  41. .@{name}-shadow {
  42. height: 1px;
  43. bottom: @bottom;
  44. background-color: fade(@line_color, 50%);
  45. }
  46. .@{name}-handle {
  47. top: 37px;
  48. width: @handle_width;
  49. height: @handle_height;
  50. border: 1px solid darken(@line_color, 15%);
  51. border-top-width: 0;
  52. box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
  53. border-radius: 0 0 3px 3px;
  54. & > i:nth-child(1) {
  55. position: absolute;
  56. display: block;
  57. top: -4px; left: 1px;
  58. width: (@handle_width - 6px);
  59. height: (@handle_width - 6px);
  60. border: 1px solid darken(@line_color, 15%);
  61. background: @handle_color_2;
  62. transform: rotate(45deg);
  63. }
  64. & > i:nth-child(2) {
  65. position: absolute;
  66. display: block;
  67. box-sizing: border-box;
  68. top: 0; left: 0;
  69. width: (@handle_width - 2);
  70. height: (@handle_height - 1);
  71. background: @handle_color_1;
  72. background: linear-gradient(to bottom, @handle_color_2 0%, @handle_color_1 100%);
  73. border-radius: 0 0 3px 3px;
  74. }
  75. & > i:nth-child(3) {
  76. position: absolute;
  77. display: block;
  78. box-sizing: border-box;
  79. top: 3px; left: 3px;
  80. width: 4px; height: 5px;
  81. border-left: 1px solid darken(@line_color, 15%);
  82. border-right: 1px solid darken(@line_color, 15%);
  83. }
  84. &.state_hover,
  85. &:hover {
  86. border-color: darken(@line_color, 30%);
  87. background: #c3c7cd;
  88. background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(145,155,165,1) 30%,rgba(255,255,255,1) 100%);
  89. & > i:nth-child(1) {
  90. border-color: darken(@line_color, 30%);
  91. }
  92. & > i:nth-child(3) {
  93. border-color: darken(@line_color, 50%);
  94. }
  95. }
  96. }
  97. .@{name}-min,
  98. .@{name}-max {
  99. top: 0;
  100. font-size: 10px;
  101. line-height: 1.333;
  102. text-shadow: none;
  103. padding: 1px 5px;
  104. color: @minmax_text_color;
  105. background-color: @minmax_bg_color;
  106. border-radius: @line_height;
  107. }
  108. .@{name}-from,
  109. .@{name}-to,
  110. .@{name}-single {
  111. font-size: 10px;
  112. line-height: 1.333;
  113. text-shadow: none;
  114. padding: 1px 5px;
  115. background-color: @label_color_1;
  116. color: @label_color_2;
  117. border-radius: @line_height;
  118. &:before {
  119. position: absolute;
  120. display: block;
  121. content: "";
  122. bottom: -6px;
  123. left: 50%;
  124. width: 0;
  125. height: 0;
  126. margin-left: -3px;
  127. overflow: hidden;
  128. border: 3px solid transparent;
  129. border-top-color: @label_color_1;
  130. }
  131. }
  132. .@{name}-grid {
  133. height: 25px;
  134. &-pol {
  135. background-color: @grid_color_1;
  136. }
  137. &-text {
  138. color: @grid_color_2;
  139. font-size: 13px;
  140. }
  141. }
  142. }