a zip code crypto-currency system good for red ONLY

range.wp.scss 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. @import "../../themes/ionic.globals.wp";
  2. // Windows Range
  3. // --------------------------------------------------
  4. /// @prop - Padding top/bottom of the range
  5. $range-wp-padding-vertical: 8px !default;
  6. /// @prop - Padding start/end of the range
  7. $range-wp-padding-horizontal: 8px !default;
  8. /// @prop - Height of the range slider
  9. $range-wp-slider-height: 42px !default;
  10. /// @prop - Width of the area that will select the range knob
  11. $range-wp-hit-width: 42px !default;
  12. /// @prop - Height of the area that will select the range knob
  13. $range-wp-hit-height: $range-wp-slider-height !default;
  14. /// @prop - Height of the range bar
  15. $range-wp-bar-height: 2px !default;
  16. /// @prop - Background of the range bar
  17. $range-wp-bar-background-color: #bdbdbd !default;
  18. /// @prop - Background of the active range bar
  19. $range-wp-bar-active-background-color: color($colors-wp, primary) !default;
  20. /// @prop - Width of the range knob
  21. $range-wp-knob-width: 8px !default;
  22. /// @prop - Height of the range knob
  23. $range-wp-knob-height: $range-wp-knob-width * 3 !default;
  24. /// @prop - Background of the range knob
  25. $range-wp-knob-background-color: $range-wp-bar-active-background-color !default;
  26. /// @prop - Border radius of the range knob
  27. $range-wp-knob-border-radius: $range-wp-knob-width / 2 !default;
  28. /// @prop - Width of the range tick
  29. $range-wp-tick-width: $range-wp-bar-height !default;
  30. /// @prop - Height of the range tick
  31. $range-wp-tick-height: $range-wp-tick-width * 3 !default;
  32. /// @prop - Border radius of the range tick
  33. $range-wp-tick-border-radius: $range-wp-knob-width / 2 !default;
  34. /// @prop - Background of the range tick
  35. $range-wp-tick-background-color: $range-wp-bar-background-color !default;
  36. /// @prop - Background of the active range tick
  37. $range-wp-tick-active-background-color: $range-wp-bar-active-background-color !default;
  38. /// @prop - Background of the range pin
  39. $range-wp-pin-background-color: $range-wp-bar-active-background-color !default;
  40. /// @prop - Color of the range pin
  41. $range-wp-pin-color: color-contrast($colors-wp, $range-wp-bar-active-background-color) !default;
  42. /// @prop - Font size of the range pin
  43. $range-wp-pin-font-size: 12px !default;
  44. // deprecated
  45. $range-wp-pin-padding: null !default;
  46. /// @prop - Padding top of the range pin
  47. $range-wp-pin-padding-top: 8px !default;
  48. /// @prop - Padding end of the range pin
  49. $range-wp-pin-padding-end: $range-wp-pin-padding-top !default;
  50. /// @prop - Padding bottom of the range pin
  51. $range-wp-pin-padding-bottom: $range-wp-pin-padding-top !default;
  52. /// @prop - Padding start of the range pin
  53. $range-wp-pin-padding-start: $range-wp-pin-padding-end !default;
  54. .range-wp {
  55. @include padding($range-wp-padding-vertical, $range-wp-padding-horizontal);
  56. }
  57. .range-wp [range-left] {
  58. @include margin(0, 12px, 0, 0);
  59. }
  60. .range-wp [range-right] {
  61. @include margin(0, 0, 0, 12px);
  62. }
  63. .range-wp.range-has-pin {
  64. @include padding($range-wp-padding-vertical + $range-wp-pin-font-size + $range-wp-pin-padding-top, null, null, null);
  65. }
  66. .range-wp .range-slider {
  67. height: $range-wp-slider-height;
  68. }
  69. .range-wp .range-bar {
  70. @include position(($range-wp-slider-height / 2), null, null, 0);
  71. position: absolute;
  72. width: 100%;
  73. height: $range-wp-bar-height;
  74. background: $range-wp-bar-background-color;
  75. pointer-events: none;
  76. }
  77. .range-wp.range-pressed .range-bar-active {
  78. will-change: left, right;
  79. }
  80. .range-wp.range-pressed .range-knob-handle {
  81. will-change: left;
  82. }
  83. .range-wp .range-bar-active {
  84. bottom: 0;
  85. width: auto;
  86. background: $range-wp-bar-active-background-color;
  87. }
  88. .range-wp .range-knob-handle {
  89. @include position(($range-wp-slider-height / 2), null, null, 0);
  90. @include margin(-($range-wp-hit-height / 2), null, null, -($range-wp-hit-width / 2));
  91. @include text-align(center);
  92. position: absolute;
  93. width: $range-wp-hit-width;
  94. height: $range-wp-hit-height;
  95. }
  96. .range-wp .range-knob {
  97. @include position(($range-wp-hit-height / 2) - ($range-wp-knob-height / 2) + ($range-wp-bar-height / 2),
  98. null, null, ($range-wp-hit-width / 2) - ($range-wp-knob-width / 2));
  99. @include border-radius($range-wp-knob-border-radius);
  100. position: absolute;
  101. width: $range-wp-knob-width;
  102. height: $range-wp-knob-height;
  103. background: $range-wp-knob-background-color;
  104. pointer-events: none;
  105. }
  106. .range-wp .range-tick {
  107. @include margin-horizontal(-($range-wp-tick-width / 2), null);
  108. @include border-radius($range-wp-tick-border-radius);
  109. position: absolute;
  110. top: ($range-wp-hit-height / 2) - ($range-wp-tick-height / 2) + ($range-wp-bar-height / 2);
  111. width: $range-wp-tick-width;
  112. height: $range-wp-tick-height;
  113. background: $range-wp-tick-background-color;
  114. pointer-events: none;
  115. }
  116. .range-wp .range-tick-active {
  117. background: $range-wp-tick-active-background-color;
  118. }
  119. .range-wp .range-pin {
  120. @include text-align(center);
  121. @include border-radius(50px);
  122. @include transform(translate3d(0, 28px, 0), scale(.01));
  123. position: relative;
  124. top: -24px;
  125. display: inline-block;
  126. min-width: 28px;
  127. font-size: $range-wp-pin-font-size;
  128. color: $range-wp-pin-color;
  129. background: $range-wp-pin-background-color;
  130. transition: transform 120ms ease;
  131. @include deprecated-variable(padding, $range-wp-pin-padding) {
  132. @include padding($range-wp-pin-padding-top, $range-wp-pin-padding-end, $range-wp-pin-padding-bottom, $range-wp-pin-padding-start);
  133. }
  134. }
  135. .range-wp .range-knob-pressed .range-pin {
  136. @include transform(translate3d(0, 0, 0), scale(1));
  137. }
  138. .range-wp.range-disabled {
  139. opacity: .5;
  140. }
  141. // Generate Windows Range Colors
  142. // --------------------------------------------------
  143. @each $color-name, $color-base, $color-contrast in get-colors($colors-wp) {
  144. .range-wp-#{$color-name} {
  145. .range-bar-active,
  146. .range-tick-active,
  147. .range-knob,
  148. .range-pin {
  149. background: $color-base;
  150. }
  151. }
  152. }