mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(label): move label css to the correct scss files
references #5651
This commit is contained in:
@@ -5,13 +5,14 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
$label-ios-text-color: #7f7f7f !default;
|
||||
$label-ios-margin: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom 0 !default;
|
||||
|
||||
|
||||
// iOS Default Label
|
||||
// --------------------------------------------------
|
||||
|
||||
ion-label {
|
||||
margin: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom 0;
|
||||
margin: $label-ios-margin;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -6,15 +6,20 @@
|
||||
|
||||
$label-md-text-color: #999 !default;
|
||||
$label-md-text-color-focused: map-get($colors-md, primary) !default;
|
||||
$label-md-margin: $item-md-padding-top ($item-md-padding-right / 2) $item-md-padding-bottom 0 !default;
|
||||
|
||||
|
||||
// Material Design Default Label
|
||||
// --------------------------------------------------
|
||||
|
||||
ion-label {
|
||||
margin: $item-md-padding-top ($item-md-padding-right / 2) $item-md-padding-bottom 0;
|
||||
margin: $label-md-margin;
|
||||
}
|
||||
|
||||
[text-wrap] ion-label {
|
||||
font-size: $item-md-body-text-font-size;
|
||||
line-height: $item-md-body-text-line-height;
|
||||
}
|
||||
|
||||
// Material Design Default Label Inside An Input Item
|
||||
// --------------------------------------------------
|
||||
|
||||
@@ -7,15 +7,22 @@ ion-label {
|
||||
display: block;
|
||||
font-size: inherit;
|
||||
white-space: nowrap;
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
.item-input ion-label {
|
||||
max-width: 200px;
|
||||
flex: initial;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
[text-wrap] ion-label {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
|
||||
// Stacked & Floating Inputs
|
||||
// --------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user