a zip code crypto-currency system good for red ONLY

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. @import "../../themes/ionic.globals.md";
  2. // Material Design Toggle
  3. // --------------------------------------------------
  4. /// @prop - Color of the active toggle
  5. $toggle-md-active-color: color($colors-md, primary) !default;
  6. /// @prop - Width of the toggle track
  7. $toggle-md-track-width: 36px !default;
  8. /// @prop - Height of the toggle track
  9. $toggle-md-track-height: 14px !default;
  10. /// @prop - Background color of the toggle track
  11. $toggle-md-track-background-color-off: $list-md-border-color !default;
  12. /// @prop - Background color of the checked toggle track
  13. $toggle-md-track-background-color-on: lighten($toggle-md-active-color, 25%) !default;
  14. /// @prop - Width of the toggle handle
  15. $toggle-md-handle-width: 20px !default;
  16. /// @prop - Height of the toggle handle
  17. $toggle-md-handle-height: 20px !default;
  18. /// @prop - Border radius of the toggle handle
  19. $toggle-md-handle-border-radius: 50% !default;
  20. /// @prop - Box shadow of the toggle handle
  21. $toggle-md-handle-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12) !default;
  22. /// @prop - Background color of the toggle handle
  23. $toggle-md-handle-background-color-off: $background-md-color !default;
  24. /// @prop - Background color of the checked toggle handle
  25. $toggle-md-handle-background-color-on: $toggle-md-active-color !default;
  26. // deprecated
  27. $toggle-md-media-margin: null !default;
  28. /// @prop - Margin top of the toggle
  29. $toggle-md-media-margin-top: 0 !default;
  30. /// @prop - Margin end of the toggle
  31. $toggle-md-media-margin-end: $toggle-md-media-margin-top !default;
  32. /// @prop - Margin bottom of the toggle
  33. $toggle-md-media-margin-bottom: $toggle-md-media-margin-top !default;
  34. /// @prop - Margin start of the toggle
  35. $toggle-md-media-margin-start: $toggle-md-media-margin-end !default;
  36. /// @prop - Transition duration of the toggle icon
  37. $toggle-md-transition-duration: 300ms !default;
  38. /// @prop - Opacity of the disabled toggle
  39. $toggle-md-disabled-opacity: .3 !default;
  40. // deprecated
  41. $toggle-md-padding: null !default;
  42. /// @prop - Padding top of standalone toggle
  43. $toggle-md-padding-top: 12px !default;
  44. /// @prop - Padding end of standalone toggle
  45. $toggle-md-padding-end: $toggle-md-padding-top !default;
  46. /// @prop - Padding bottom of standalone toggle
  47. $toggle-md-padding-bottom: $toggle-md-padding-top !default;
  48. /// @prop - Padding start of standalone toggle
  49. $toggle-md-padding-start: $toggle-md-padding-end !default;
  50. // deprecated
  51. $toggle-md-item-left-padding: null !default;
  52. /// @prop - Padding top of the toggle positioned on the start in an item
  53. $toggle-md-item-start-padding-top: 12px !default;
  54. /// @prop - Padding end of the toggle positioned on the start in an item
  55. $toggle-md-item-start-padding-end: 18px !default;
  56. /// @prop - Padding bottom of the toggle positioned on the start in an item
  57. $toggle-md-item-start-padding-bottom: 12px !default;
  58. /// @prop - Padding start the toggle positioned on the start in an item
  59. $toggle-md-item-start-padding-start: 2px !default;
  60. // deprecated
  61. $toggle-md-item-right-padding: null !default;
  62. /// @prop - Padding top of the toggle positioned on the end in an item
  63. $toggle-md-item-end-padding-top: 12px !default;
  64. /// @prop - Padding end of the toggle positioned on the end in an item
  65. $toggle-md-item-end-padding-end: ($item-md-padding-end / 2) !default;
  66. /// @prop - Padding bottom of the toggle positioned on the end in an item
  67. $toggle-md-item-end-padding-bottom: 12px !default;
  68. /// @prop - Padding start of the toggle positioned on the end in an item
  69. $toggle-md-item-end-padding-start: $item-md-padding-start !default;
  70. // Material Design Toggle
  71. // -----------------------------------------
  72. .toggle-md {
  73. position: relative;
  74. width: $toggle-md-track-width;
  75. height: $toggle-md-track-height;
  76. box-sizing: content-box;
  77. contain: strict;
  78. @include deprecated-variable(padding, $toggle-md-padding) {
  79. @include padding($toggle-md-padding-top, $toggle-md-padding-end, $toggle-md-padding-bottom, $toggle-md-padding-start);
  80. }
  81. }
  82. // Material Design Toggle Background Track: Unchecked
  83. // -----------------------------------------
  84. .toggle-md .toggle-icon {
  85. @include border-radius($toggle-md-track-height);
  86. position: relative;
  87. display: block;
  88. width: 100%;
  89. height: 100%;
  90. background-color: $toggle-md-track-background-color-off;
  91. transition: background-color $toggle-md-transition-duration;
  92. pointer-events: none;
  93. }
  94. // Material Design Toggle Inner Knob: Unchecked
  95. // -----------------------------------------
  96. .toggle-md .toggle-inner {
  97. @include position(($toggle-md-handle-height - $toggle-md-track-height) / -2, null, null, 0);
  98. @include border-radius($toggle-md-handle-border-radius);
  99. position: absolute;
  100. width: $toggle-md-handle-width;
  101. height: $toggle-md-handle-height;
  102. background-color: $toggle-md-handle-background-color-off;
  103. box-shadow: $toggle-md-handle-box-shadow;
  104. transition-duration: $toggle-md-transition-duration;
  105. transition-property: transform, background-color;
  106. will-change: transform, background-color;
  107. contain: strict;
  108. }
  109. // Material Design Toggle Background Track: Checked
  110. // -----------------------------------------
  111. .toggle-md.toggle-checked .toggle-icon {
  112. background-color: $toggle-md-track-background-color-on;
  113. }
  114. // Material Design Toggle Inner Knob: Checked
  115. // -----------------------------------------
  116. .toggle-md.toggle-checked .toggle-inner {
  117. @include transform(translate3d($toggle-md-track-width - $toggle-md-handle-width, 0, 0));
  118. background-color: $toggle-md-handle-background-color-on;
  119. }
  120. // Material Design Toggle: Disabled
  121. // -----------------------------------------
  122. .toggle-md.toggle-disabled,
  123. .item-md.item-toggle-disabled ion-label {
  124. opacity: $toggle-md-disabled-opacity;
  125. pointer-events: none;
  126. }
  127. .toggle-md.toggle-disabled ion-radio {
  128. opacity: $toggle-md-disabled-opacity;
  129. }
  130. // Material Design Toggle Within An Item
  131. // -----------------------------------------
  132. .item-md .toggle-md {
  133. cursor: pointer;
  134. @include deprecated-variable(margin, $toggle-md-media-margin) {
  135. @include margin($toggle-md-media-margin-top, $toggle-md-media-margin-end, $toggle-md-media-margin-bottom, $toggle-md-media-margin-start);
  136. }
  137. @include deprecated-variable(padding, $toggle-md-item-right-padding) {
  138. @include padding($toggle-md-item-end-padding-top, $toggle-md-item-end-padding-end, $toggle-md-item-end-padding-bottom, $toggle-md-item-end-padding-start);
  139. }
  140. }
  141. .item-md .toggle-md[item-left], // deprecated
  142. .item-md .toggle-md[item-start] {
  143. @include deprecated-variable(padding, $toggle-md-item-left-padding) {
  144. @include padding($toggle-md-item-start-padding-top, $toggle-md-item-start-padding-end, $toggle-md-item-start-padding-bottom, $toggle-md-item-start-padding-start);
  145. }
  146. }
  147. .item-md.item-toggle ion-label {
  148. @include margin-horizontal(0, null);
  149. }
  150. // Material Design Color Mixin
  151. // --------------------------------------------------
  152. @mixin toggle-theme-md($color-name, $color-base) {
  153. .toggle-md-#{$color-name}.toggle-checked .toggle-icon {
  154. background-color: lighten($color-base, 25%);
  155. }
  156. .toggle-md-#{$color-name}.toggle-checked .toggle-inner {
  157. background-color: $color-base;
  158. }
  159. }
  160. // Generate Material Design Toggle Auxiliary Colors
  161. // --------------------------------------------------
  162. @each $color-name, $color-base, $color-contrast in get-colors($colors-md) {
  163. @include toggle-theme-md($color-name, $color-base);
  164. }