UI for Zipcoin Blue

picker.ios.scss 6.1KB

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