round.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // Skin design by Veaceslav Grimalschi
  2. // https://github.com/grimalschi
  3. .irs--round {
  4. @name: irs;
  5. @top: 36px;
  6. @bottom: 21px;
  7. @line_height: 4px;
  8. @handle_width: 24px;
  9. @handle_height: 24px;
  10. @line_color: #dee4ec;
  11. @bar_color: #006cfa;
  12. @handle_color_1: #006cfa;
  13. @handle_color_2: white;
  14. @handle_color_3: #f0f6ff;
  15. @minmax_text_color: #333;
  16. @minmax_bg_color: rgba(0,0,0,0.1);
  17. @label_color_1: #006cfa;
  18. @label_color_2: white;
  19. @grid_color_1: #dedede;
  20. @grid_color_2: silver;
  21. height: 50px;
  22. &.irs-with-grid {
  23. height: 65px;
  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: 4px;
  41. bottom: @bottom;
  42. background-color: fade(@line_color, 50%);
  43. }
  44. .@{name}-handle {
  45. top: 26px;
  46. width: @handle_width;
  47. height: @handle_height;
  48. border: 4px solid @handle_color_1;
  49. background-color: @handle_color_2;
  50. border-radius: @handle_width;
  51. box-shadow: 0 1px 3px rgba(0, 0, 255, 0.3);
  52. &.state_hover,
  53. &:hover {
  54. background-color: @handle_color_3;
  55. }
  56. }
  57. .@{name}-min,
  58. .@{name}-max {
  59. color: @minmax_text_color;
  60. font-size: 14px;
  61. line-height: 1;
  62. top: 0;
  63. padding: 3px 5px;
  64. background-color: @minmax_bg_color;
  65. border-radius: @line_height;
  66. }
  67. .@{name}-from,
  68. .@{name}-to,
  69. .@{name}-single {
  70. font-size: 14px;
  71. line-height: 1;
  72. text-shadow: none;
  73. padding: 3px 5px;
  74. background-color: @label_color_1;
  75. color: @label_color_2;
  76. border-radius: @line_height;
  77. &:before {
  78. position: absolute;
  79. display: block;
  80. content: "";
  81. bottom: -6px;
  82. left: 50%;
  83. width: 0;
  84. height: 0;
  85. margin-left: -3px;
  86. overflow: hidden;
  87. border: 3px solid transparent;
  88. border-top-color: @label_color_1;
  89. }
  90. }
  91. .@{name}-grid {
  92. height: 25px;
  93. &-pol {
  94. background-color: @grid_color_1;
  95. }
  96. &-text {
  97. color: @grid_color_2;
  98. font-size: 13px;
  99. }
  100. }
  101. }