square.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // Skin design by Veaceslav Grimalschi
  2. // https://github.com/grimalschi
  3. .irs--square {
  4. @name: irs;
  5. @top: 31px;
  6. @bottom: 21px;
  7. @line_height: 4px;
  8. @handle_width: 16px;
  9. @handle_height: 16px;
  10. @line_color: #dedede;
  11. @bar_color: black;
  12. @handle_color_1: black;
  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: black;
  18. @label_color_2: white;
  19. @grid_color_1: #dedede;
  20. @grid_color_2: silver;
  21. height: 50px;
  22. &.irs-with-grid {
  23. height: 60px;
  24. }
  25. .@{name}-line {
  26. top: @top;
  27. height: @line_height;
  28. background-color: @line_color;
  29. }
  30. .@{name}-bar {
  31. top: @top;
  32. height: @line_height;
  33. background-color: @bar_color;
  34. }
  35. .@{name}-shadow {
  36. height: 2px;
  37. bottom: @bottom;
  38. background-color: @line_color;
  39. }
  40. .@{name}-handle {
  41. top: (@top - 6px);
  42. width: @handle_width;
  43. height: @handle_height;
  44. border: 3px solid @handle_color_1;
  45. background-color: @handle_color_2;
  46. -webkit-transform: rotate(45deg);
  47. -ms-transform: rotate(45deg);
  48. transform: rotate(45deg);
  49. &.state_hover,
  50. &:hover {
  51. background-color: @handle_color_3;
  52. }
  53. }
  54. .@{name}-min,
  55. .@{name}-max {
  56. color: @minmax_text_color;
  57. font-size: 14px;
  58. line-height: 1;
  59. top: 0;
  60. padding: 3px 5px;
  61. background-color: @minmax_bg_color;
  62. }
  63. .@{name}-from,
  64. .@{name}-to,
  65. .@{name}-single {
  66. font-size: 14px;
  67. line-height: 1;
  68. text-shadow: none;
  69. padding: 3px 5px;
  70. background-color: @label_color_1;
  71. color: @label_color_2;
  72. }
  73. .@{name}-grid {
  74. height: 25px;
  75. &-pol {
  76. background-color: @grid_color_1;
  77. }
  78. &-text {
  79. color: @grid_color_2;
  80. font-size: 11px;
  81. }
  82. }
  83. }