123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- @import "../../themes/ionic.globals";
-
- // Picker
- // --------------------------------------------------
-
- /// @prop - Width of the picker
- $picker-width: 100% !default;
-
- /// @prop - Max width of the picker
- $picker-max-width: 500px !default;
-
-
- ion-picker-cmp {
- @include position(0, null, null, 0);
-
- position: absolute;
- z-index: $z-index-overlay;
- display: block;
-
- width: $picker-width;
- height: $picker-width;
-
- contain: strict;
- }
-
- .picker-toolbar {
- z-index: 1;
-
- width: 100%;
-
- contain: strict;
- }
-
- .picker-wrapper {
- @include position(null, 0, 0, 0);
- @include margin(auto);
- @include transform(translate3d(0, 100%, 0));
-
- position: absolute;
- z-index: $z-index-overlay-wrapper;
- display: flex;
-
- overflow: hidden;
-
- flex-direction: column;
-
- width: $picker-width;
- max-width: $picker-max-width;
-
- contain: strict;
- }
-
- .picker-columns {
- @include margin(null, null, constant(safe-area-inset-bottom), null);
- @include margin(null, null, env(safe-area-inset-bottom), null);
- position: relative;
- display: flex;
-
- overflow: hidden;
-
- justify-content: center;
-
- contain: strict;
-
- @include rtl() {
- // Date is the same format in both directions
- flex-direction: row-reverse;
- }
- }
-
- .picker-col {
- position: relative;
- display: flex;
-
- flex: 1;
- justify-content: center;
-
- height: 100%;
-
- box-sizing: content-box;
-
- contain: content;
- }
-
- .picker-opts {
- position: relative;
-
- flex: 1;
-
- max-width: 100%;
- }
-
- .picker-prefix {
- @include text-align(end);
-
- position: relative;
-
- flex: 2;
-
- min-width: 45%;
- max-width: 50%;
-
- white-space: nowrap;
- }
-
- .picker-suffix {
- @include text-align(start);
-
- position: relative;
-
- flex: 2;
-
- min-width: 45%;
- max-width: 50%;
-
- white-space: nowrap;
- }
-
- // contain property is supported by Chrome
- .picker-opt {
- @include position(0, null, null, 0);
- @include text-align(center);
-
- position: absolute;
-
- display: block;
- overflow: hidden;
-
- width: 100%;
-
- text-overflow: ellipsis;
- white-space: nowrap;
-
- will-change: transform;
- contain: strict;
- }
-
- .picker-opt.picker-opt-disabled {
- pointer-events: none;
- }
-
- .picker-opt-disabled {
- opacity: 0;
- }
-
- .picker-opts-left {
- @include ltr() {
- justify-content: flex-start;
- }
-
- @include rtl() {
- justify-content: flex-end;
- }
- }
-
- .picker-opts-right {
- @include ltr() {
- justify-content: flex-end;
- }
-
- @include rtl() {
- justify-content: flex-start;
- }
- }
-
- .picker-above-highlight,
- .picker-below-highlight {
- display: none;
-
- pointer-events: none;
- }
|