mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
68 lines
1.3 KiB
SCSS
68 lines
1.3 KiB
SCSS
@import "./datetime.vars";
|
|
|
|
// Datetime
|
|
// --------------------------------------------------
|
|
|
|
:host {
|
|
/**
|
|
* @prop --padding-top: Top padding of the datetime
|
|
* @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the datetime
|
|
* @prop --padding-bottom: Bottom padding of the datetime
|
|
* @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the datetime
|
|
*
|
|
* @prop --placeholder-color: Color of the datetime placeholder
|
|
*/
|
|
@include padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start));
|
|
|
|
display: flex;
|
|
position: relative;
|
|
|
|
min-width: $datetime-min-width;
|
|
min-height: $datetime-min-height;
|
|
|
|
font-family: $font-family-base;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
z-index: $z-index-item-input;
|
|
}
|
|
|
|
:host(.in-item) {
|
|
position: static;
|
|
}
|
|
|
|
:host(.datetime-placeholder) {
|
|
color: var(--placeholder-color);
|
|
}
|
|
|
|
:host(.datetime-disabled) {
|
|
opacity: .3;
|
|
pointer-events: none;
|
|
}
|
|
|
|
:host(.datetime-readonly) {
|
|
pointer-events: none;
|
|
}
|
|
|
|
button {
|
|
@include input-cover();
|
|
}
|
|
|
|
.datetime-text {
|
|
@include text-inherit();
|
|
|
|
@include rtl() {
|
|
direction: rtl;
|
|
}
|
|
|
|
flex: 1;
|
|
|
|
min-height: inherit;
|
|
|
|
direction: ltr;
|
|
overflow: inherit;
|
|
}
|