a zip code crypto-currency system good for red ONLY

range.md.scss 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. @import "../../themes/ionic.globals.md";
  2. // Material Design Range
  3. // --------------------------------------------------
  4. /// @prop - Padding top/bottom of the range
  5. $range-md-padding-vertical: 8px !default;
  6. /// @prop - Padding start/end of the range
  7. $range-md-padding-horizontal: 8px !default;
  8. /// @prop - Height of the range slider
  9. $range-md-slider-height: 42px !default;
  10. /// @prop - Width of the area that will select the range knob
  11. $range-md-hit-width: 42px !default;
  12. /// @prop - Height of the area that will select the range knob
  13. $range-md-hit-height: $range-md-slider-height !default;
  14. /// @prop - Height of the range bar
  15. $range-md-bar-height: 2px !default;
  16. /// @prop - Background of the range bar
  17. $range-md-bar-background-color: #bdbdbd !default;
  18. /// @prop - Background of the active range bar
  19. $range-md-bar-active-background-color: color($colors-md, primary) !default;
  20. /// @prop - Width of the range knob
  21. $range-md-knob-width: 18px !default;
  22. /// @prop - Height of the range knob
  23. $range-md-knob-height: $range-md-knob-width !default;
  24. /// @prop - Background of the range knob
  25. $range-md-knob-background-color: $range-md-bar-active-background-color !default;
  26. /// @prop - Background of the range knob when the value is the minimum
  27. $range-md-knob-min-background-color: $background-md-color !default;
  28. /// @prop - Border of the range knob when the value is the minimum
  29. $range-md-knob-min-border: 2px solid $range-md-bar-background-color !default;
  30. /// @prop - Width of the range tick
  31. $range-md-tick-width: 2px !default;
  32. /// @prop - Height of the range tick
  33. $range-md-tick-height: $range-md-tick-width !default;
  34. /// @prop - Border radius of the range tick
  35. $range-md-tick-border-radius: 50% !default;
  36. /// @prop - Background of the range tick
  37. $range-md-tick-background-color: #000 !default;
  38. /// @prop - Background of the active range tick
  39. $range-md-tick-active-background-color: $range-md-tick-background-color !default;
  40. /// @prop - Background of the range pin
  41. $range-md-pin-background-color: $range-md-bar-active-background-color !default;
  42. /// @prop - Color of the range pin
  43. $range-md-pin-color: color-contrast($colors-md, $range-md-bar-active-background-color) !default;
  44. /// @prop - Font size of the range pin
  45. $range-md-pin-font-size: 12px !default;
  46. /// @prop - Padding top/bottom of the range pin
  47. $range-md-pin-padding-vertical: 8px !default;
  48. /// @prop - Padding start/end of the range pin
  49. $range-md-pin-padding-horizontal: 0 !default;
  50. /// @prop - Background of the range pin when the value is the minimum
  51. $range-md-pin-min-background-color: $range-md-bar-background-color !default;
  52. .range-md {
  53. @include padding($range-md-padding-vertical, $range-md-padding-horizontal);
  54. }
  55. .range-md [range-left] {
  56. @include margin(0, 12px, 0, 0);
  57. }
  58. .range-md [range-right] {
  59. @include margin(0, 0, 0, 12px);
  60. }
  61. .range-md.range-has-pin {
  62. @include padding($range-md-padding-vertical + $range-md-pin-font-size + $range-md-pin-padding-vertical, null, null, null);
  63. }
  64. .range-md .range-slider {
  65. height: $range-md-slider-height;
  66. }
  67. .range-md .range-bar {
  68. @include position(($range-md-slider-height / 2), null, null, 0);
  69. position: absolute;
  70. width: 100%;
  71. height: $range-md-bar-height;
  72. background: $range-md-bar-background-color;
  73. pointer-events: none;
  74. }
  75. .range-md.range-pressed .range-bar-active {
  76. will-change: left, right;
  77. }
  78. .range-md.range-pressed .range-knob-handle {
  79. will-change: left;
  80. }
  81. .range-md .range-bar-active {
  82. bottom: 0;
  83. width: auto;
  84. background: $range-md-bar-active-background-color;
  85. }
  86. .range-md .range-knob-handle {
  87. @include position(($range-md-slider-height / 2), null, null, 0);
  88. @include margin(-($range-md-hit-height / 2), null, null, -($range-md-hit-width / 2));
  89. @include text-align(center);
  90. position: absolute;
  91. width: $range-md-hit-width;
  92. height: $range-md-hit-height;
  93. }
  94. .range-md .range-knob {
  95. @include position(($range-md-hit-height / 2) - ($range-md-knob-height / 2) + ($range-md-bar-height / 2),
  96. null, null, ($range-md-hit-width / 2) - ($range-md-knob-width / 2));
  97. @include border-radius(50%);
  98. position: absolute;
  99. z-index: 2;
  100. width: $range-md-knob-width;
  101. height: $range-md-knob-height;
  102. background: $range-md-knob-background-color;
  103. transform: scale(.67);
  104. transition-duration: 120ms;
  105. transition-property: transform, background-color, border;
  106. transition-timing-function: ease;
  107. pointer-events: none;
  108. }
  109. .range-md .range-tick {
  110. @include margin-horizontal(-($range-md-tick-width / 2), null);
  111. @include border-radius($range-md-tick-border-radius);
  112. position: absolute;
  113. top: ($range-md-hit-height / 2) - ($range-md-tick-height / 2) + ($range-md-bar-height / 2);
  114. z-index: 1;
  115. width: $range-md-tick-width;
  116. height: $range-md-tick-height;
  117. background: $range-md-tick-background-color;
  118. pointer-events: none;
  119. }
  120. .range-md .range-tick-active {
  121. background: $range-md-tick-active-background-color;
  122. }
  123. .range-md .range-pin {
  124. @include padding($range-md-pin-padding-vertical, $range-md-pin-padding-horizontal);
  125. @include text-align(center);
  126. @include border-radius(50%);
  127. @include transform(translate3d(0, 28px, 0), scale(.01));
  128. position: relative;
  129. top: -20px;
  130. display: inline-block;
  131. min-width: 28px;
  132. height: 28px;
  133. font-size: $range-md-pin-font-size;
  134. color: $range-md-pin-color;
  135. background: $range-md-pin-background-color;
  136. transition: transform 120ms ease, background-color 120ms ease;
  137. &::before {
  138. @include position(3px, null, null, 50%);
  139. @include border-radius(50%, 50%, 50%, 0);
  140. @include margin-horizontal(-13px, null);
  141. position: absolute;
  142. z-index: -1;
  143. width: 26px;
  144. height: 26px;
  145. background: $range-md-pin-background-color;
  146. content: "";
  147. transform: rotate(-45deg);
  148. transition: background-color 120ms ease;
  149. }
  150. }
  151. .range-md .range-knob-pressed .range-pin {
  152. @include transform(translate3d(0, 0, 0), scale(1));
  153. }
  154. .range-md:not(.range-has-pin) .range-knob-pressed .range-knob {
  155. transform: scale(1);
  156. }
  157. @mixin md-range-min() {
  158. .range-md .range-knob-min.range-knob-min {
  159. .range-knob {
  160. border: $range-md-knob-min-border;
  161. background: $range-md-knob-min-background-color;
  162. }
  163. .range-pin,
  164. .range-pin::before {
  165. color: color-contrast($colors-md, $range-md-pin-min-background-color);
  166. background: $range-md-pin-min-background-color;
  167. }
  168. }
  169. }
  170. @include md-range-min();
  171. .range-md.range-disabled {
  172. .range-bar-active {
  173. background-color: $range-md-bar-background-color;
  174. }
  175. .range-knob {
  176. outline: 5px solid #fff;
  177. background-color: $range-md-bar-background-color;
  178. transform: scale(.55);
  179. }
  180. }
  181. // Generate Material Design Range Colors
  182. // --------------------------------------------------
  183. @each $color-name, $color-base, $color-contrast in get-colors($colors-md) {
  184. .range-md-#{$color-name} {
  185. @include md-range-min();
  186. .range-bar-active,
  187. .range-knob,
  188. .range-pin,
  189. .range-pin::before {
  190. background: $color-base;
  191. }
  192. }
  193. }