mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
93 lines
1.3 KiB
SCSS
93 lines
1.3 KiB
SCSS
@import "../../themes/ionic.globals";
|
|
|
|
// Picker Internal
|
|
// --------------------------------------------------
|
|
|
|
:host {
|
|
@include padding(0px, 16px, 0px, 16px);
|
|
|
|
height: 200px;
|
|
|
|
outline: none;
|
|
|
|
font-size: 22px;
|
|
scroll-snap-type: y mandatory;
|
|
|
|
/**
|
|
* Need to explicitly set overflow-x: hidden
|
|
* for older implementations of scroll snapping.
|
|
*/
|
|
overflow-x: hidden;
|
|
overflow-y: scroll;
|
|
|
|
// Hide scrollbars on Firefox
|
|
scrollbar-width: none;
|
|
|
|
text-align: center;
|
|
}
|
|
|
|
/**
|
|
* Hide scrollbars on Chrome and Safari
|
|
*/
|
|
:host::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
:host .picker-item {
|
|
@include padding(0);
|
|
@include margin(0);
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 34px;
|
|
|
|
border: 0px;
|
|
|
|
outline: none;
|
|
|
|
background: transparent;
|
|
|
|
color: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: 34px;
|
|
|
|
text-align: inherit;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
|
|
|
overflow: hidden;
|
|
|
|
scroll-snap-align: center;
|
|
}
|
|
|
|
:host .picker-item-empty,
|
|
:host .picker-item.picker-item-disabled {
|
|
scroll-snap-align: none;
|
|
|
|
cursor: default;
|
|
}
|
|
|
|
:host .picker-item.picker-item-disabled {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
:host(.picker-column-active) .picker-item.picker-item-active {
|
|
color: current-color(base);
|
|
}
|
|
|
|
@media (any-hover: hover) {
|
|
:host(:focus) {
|
|
outline: none;
|
|
|
|
background: current-color(base, 0.2);
|
|
}
|
|
}
|