mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
122 lines
1.6 KiB
SCSS
122 lines
1.6 KiB
SCSS
@import "../../globals.core";
|
|
|
|
// Picker
|
|
// --------------------------------------------------
|
|
|
|
$picker-width: 100% !default;
|
|
$picker-max-width: 500px !default;
|
|
|
|
|
|
ion-picker-cmp {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: $z-index-overlay;
|
|
display: block;
|
|
|
|
width: $picker-width;
|
|
height: $picker-width;
|
|
}
|
|
|
|
.picker-toolbar {
|
|
z-index: 1;
|
|
}
|
|
|
|
.picker-wrapper {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: $z-index-overlay-wrapper;
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
flex-direction: column;
|
|
|
|
margin: auto;
|
|
|
|
width: $picker-width;
|
|
max-width: $picker-max-width;
|
|
|
|
transform: translate3d(0, 100%, 0);
|
|
}
|
|
|
|
.picker-columns {
|
|
position: relative;
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
justify-content: center;
|
|
}
|
|
|
|
.picker-col {
|
|
position: relative;
|
|
display: flex;
|
|
|
|
max-height: 100%;
|
|
}
|
|
|
|
.picker-opts {
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
min-width: 50px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.picker-prefix {
|
|
position: relative;
|
|
|
|
flex: 1;
|
|
|
|
min-width: 50px;
|
|
min-width: 45%;
|
|
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.picker-suffix {
|
|
position: relative;
|
|
|
|
flex: 1;
|
|
|
|
min-width: 50px;
|
|
min-width: 45%;
|
|
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.picker-opt {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
overflow: hidden;
|
|
|
|
flex: 1;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.picker-opts-left .button-inner {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.picker-opts-right .button-inner {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.picker-above-highlight,
|
|
.picker-below-highlight {
|
|
display: none;
|
|
|
|
pointer-events: none;
|
|
}
|