a zip code crypto-currency system good for red ONLY

picker.wp.scss 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. @import "../../themes/ionic.globals.wp";
  2. // Windows Picker
  3. // --------------------------------------------------
  4. /// @prop - Height of the picker wrapper
  5. $picker-wp-height: 260px !default;
  6. /// @prop - Border color of the picker wrapper
  7. $picker-wp-border-color: $list-wp-border-color !default;
  8. /// @prop - Background of the picker wrapper
  9. $picker-wp-background-color: $list-wp-background-color !default;
  10. /// @prop - Height of the picker toolbar
  11. $picker-wp-toolbar-height: 44px !default;
  12. /// @prop - Background of the picker toolbar
  13. $picker-wp-toolbar-background-color: $picker-wp-background-color !default;
  14. /// @prop - Height of the picker button
  15. $picker-wp-button-height: $picker-wp-toolbar-height !default;
  16. /// @prop - Text color of the picker button
  17. $picker-wp-button-text-color: color($colors-wp, primary) !default;
  18. /// @prop - Background of the picker button
  19. $picker-wp-button-background-color: transparent !default;
  20. // deprecated
  21. $picker-wp-column-padding: null !default;
  22. /// @prop - Padding top of the picker column
  23. $picker-wp-column-padding-top: 0 !default;
  24. /// @prop - Padding end of the picker column
  25. $picker-wp-column-padding-end: 4px !default;
  26. /// @prop - Padding bottom of the picker column
  27. $picker-wp-column-padding-bottom: $picker-wp-column-padding-top !default;
  28. /// @prop - Padding start of the picker column
  29. $picker-wp-column-padding-start: $picker-wp-column-padding-end !default;
  30. // deprecated
  31. $picker-wp-option-padding: null !default;
  32. /// @prop - Padding top of the picker option
  33. $picker-wp-option-padding-top: 0 !default;
  34. /// @prop - Padding end of the picker option
  35. $picker-wp-option-padding-end: $picker-wp-option-padding-top !default;
  36. /// @prop - Padding bottom of the picker option
  37. $picker-wp-option-padding-bottom: $picker-wp-option-padding-top !default;
  38. /// @prop - Padding start of the picker option
  39. $picker-wp-option-padding-start: $picker-wp-option-padding-end !default;
  40. /// @prop - Text color of the picker option
  41. $picker-wp-option-text-color: $list-wp-text-color !default;
  42. /// @prop - Font size of the picker option
  43. $picker-wp-option-font-size: 22px !default;
  44. /// @prop - Height of the picker option
  45. $picker-wp-option-height: 42px !default;
  46. /// @prop - Offset y of the picker option
  47. $picker-wp-option-offset-y: (($picker-wp-height - $picker-wp-toolbar-height) / 2) - ($picker-wp-option-height / 2) - 10 !default;
  48. /// @prop - Text color of the selected picker option
  49. $picker-wp-option-selected-color: color($colors-wp, primary) !default;
  50. .picker-wp .picker-wrapper {
  51. height: $picker-wp-height;
  52. border-top: $hairlines-width solid $picker-wp-border-color;
  53. background: $picker-wp-background-color;
  54. }
  55. .picker-wp .picker-toolbar {
  56. display: flex;
  57. justify-content: flex-end;
  58. height: $picker-wp-toolbar-height;
  59. border-width: $hairlines-width;
  60. background: $picker-wp-toolbar-background-color;
  61. }
  62. .picker-wp .picker-toolbar-button {
  63. @include text-align(end);
  64. flex: 1;
  65. }
  66. .picker-wp .picker-toolbar-cancel {
  67. @include text-align(start);
  68. font-weight: normal;
  69. }
  70. .picker-wp .picker-button,
  71. .picker-wp .picker-button.activated {
  72. @include margin(0);
  73. height: $picker-wp-button-height;
  74. color: $picker-wp-button-text-color;
  75. background: $picker-wp-button-background-color;
  76. box-shadow: none;
  77. }
  78. .picker-wp .picker-columns {
  79. height: $picker-wp-height - $picker-wp-toolbar-height;
  80. perspective: 1800px;
  81. }
  82. .picker-wp .picker-col {
  83. transform-style: preserve-3d;
  84. @include deprecated-variable(padding, $picker-wp-column-padding) {
  85. @include padding($picker-wp-column-padding-top, $picker-wp-column-padding-end, $picker-wp-column-padding-bottom, $picker-wp-column-padding-start);
  86. }
  87. }
  88. .picker-wp .picker-prefix,
  89. .picker-wp .picker-suffix,
  90. .picker-wp .picker-opts {
  91. top: $picker-wp-option-offset-y;
  92. font-size: $picker-wp-option-font-size;
  93. line-height: $picker-wp-option-height;
  94. color: $picker-wp-option-text-color;
  95. transform-style: preserve-3d;
  96. pointer-events: none;
  97. }
  98. .picker-wp .picker-opt {
  99. @include margin(0);
  100. height: 4.2rem;
  101. font-size: $picker-wp-option-font-size;
  102. line-height: $picker-wp-option-height;
  103. color: $picker-wp-option-text-color;
  104. background: transparent;
  105. transition-timing-function: ease-out;
  106. backface-visibility: hidden;
  107. pointer-events: auto;
  108. @include deprecated-variable(padding, $picker-wp-option-padding) {
  109. @include padding($picker-wp-option-padding-top, $picker-wp-option-padding-end, $picker-wp-option-padding-bottom, $picker-wp-option-padding-start);
  110. }
  111. }
  112. .picker-wp .picker-prefix,
  113. .picker-wp .picker-suffix,
  114. .picker-wp .picker-opt-selected {
  115. color: $picker-wp-option-selected-color;
  116. }
  117. .picker-wp .picker-above-highlight {
  118. @include position(0, null, null, 0);
  119. @include transform(translate3d(0, 0, 90px));
  120. position: absolute;
  121. z-index: 10;
  122. width: 100%;
  123. height: $picker-wp-option-offset-y + 4px;
  124. border-bottom: 1px solid $picker-wp-border-color;
  125. background: linear-gradient(to bottom,
  126. rgba($picker-wp-background-color, 1) 20%,
  127. rgba($picker-wp-background-color, .7) 100%);
  128. }
  129. .picker-wp .picker-below-highlight {
  130. @include position($picker-wp-option-offset-y + $picker-wp-option-height - 4, null, null, 0);
  131. @include transform(translate3d(0, 0, 90px));
  132. position: absolute;
  133. z-index: 11;
  134. width: 100%;
  135. height: $picker-wp-option-offset-y + $picker-wp-option-height;
  136. border-top: 1px solid $picker-wp-border-color;
  137. background: linear-gradient(to top,
  138. rgba($picker-wp-background-color, 1) 30%,
  139. rgba($picker-wp-background-color, .7) 100%);
  140. }