big.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .irs--big {
  2. @name: irs;
  3. @top: 33px;
  4. @bottom: 16px;
  5. @line_height: 12px;
  6. @handle_width: 30px;
  7. @handle_height: 30px;
  8. @custom_radius: 3px;
  9. @line_color_1: white;
  10. @line_color_2: #ccc;
  11. @line_color_3: #ddd;
  12. @bar_color: #428bca;
  13. @handle_color_1: #cbcfd5;
  14. @handle_color_2: #B4B9BE;
  15. @handle_color_3: white;
  16. @handle_color_4: #919BA5;
  17. @minmax_text_color: white;
  18. @minmax_bg_color: #9f9f9f;
  19. @label_color_1: #428bca;
  20. @label_color_2: white;
  21. @grid_color_1: #428bca;
  22. height: 55px;
  23. &.irs-with-grid {
  24. height: 70px;
  25. }
  26. .@{name}-line {
  27. top: @top;
  28. height: @line_height;
  29. background-color: @line_color_1;
  30. background: linear-gradient(to bottom, @line_color_3 -50%, @line_color_1 150%);
  31. border: 1px solid @line_color_2;
  32. border-radius: @line_height;
  33. }
  34. .@{name}-bar {
  35. top: @top;
  36. height: @line_height;
  37. background-color: lighten(@bar_color, 20%);
  38. border: 1px solid @bar_color;
  39. background: linear-gradient(to bottom, lighten(@bar_color, 70%) 0%, @bar_color 30%, lighten(@bar_color, 30%) 100%);
  40. box-shadow: inset 0 0 1px 1px rgba(255,255,255,0.5);
  41. &--single {
  42. border-radius: @line_height 0 0 @line_height;
  43. }
  44. }
  45. .@{name}-shadow {
  46. height: 1px;
  47. bottom: @bottom;
  48. background-color: fade(@bar_color, 50%);
  49. }
  50. .@{name}-handle {
  51. top: 25px;
  52. width: @handle_width;
  53. height: @handle_height;
  54. border: 1px solid rgba(0,0,0,0.3);
  55. background-color: @handle_color_1;
  56. background: linear-gradient(to bottom, @handle_color_3 0%, @handle_color_2 30%, @handle_color_3 100%);
  57. box-shadow: 1px 1px 2px rgba(0,0,0,0.2), inset 0 0 3px 1px @handle_color_3;
  58. border-radius: @handle_width;
  59. &.state_hover,
  60. &:hover {
  61. border-color: rgba(0,0,0,0.45);
  62. background-color: darken(@handle_color_1, 20%);
  63. background: linear-gradient(to bottom, @handle_color_3 0%, @handle_color_4 30%, @handle_color_3 100%);
  64. }
  65. }
  66. .@{name}-min,
  67. .@{name}-max {
  68. top: 0;
  69. padding: 1px 5px;
  70. color: @minmax_text_color;
  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. text-shadow: none;
  80. padding: 1px 5px;
  81. background-color: @label_color_1;
  82. background: linear-gradient(to bottom, @label_color_1 0%, darken(@label_color_1, 10%) 100%);
  83. border-radius: @custom_radius;
  84. }
  85. .@{name}-grid {
  86. &-pol {
  87. background-color: @grid_color_1;
  88. }
  89. &-text {
  90. color: @grid_color_1;
  91. }
  92. }
  93. }