sharp.less 2.8 KB

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