mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
feat(css): add new utility-classes (#30186)
Issue number: internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> Added new utility-classes related to: - flex - position - size ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
This commit is contained in:
@ -37,3 +37,23 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Size
|
||||
// --------------------------------------------------
|
||||
.ion-full-height {
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
.ion-full-width {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
// Position
|
||||
// --------------------------------------------------
|
||||
.ion-position-absolute {
|
||||
position: absolute !important;
|
||||
}
|
||||
|
||||
.ion-position-relative {
|
||||
position: relative !important;
|
||||
}
|
||||
|
@ -94,3 +94,27 @@
|
||||
.ion-align-items-baseline {
|
||||
align-items: baseline !important;
|
||||
}
|
||||
|
||||
// Flex Direction
|
||||
// --------------------------------------------------
|
||||
.ion-flex-direction-column {
|
||||
flex-direction: column !important;
|
||||
}
|
||||
|
||||
.ion-flex-direction-column-reverse {
|
||||
flex-direction: column-reverse !important;
|
||||
}
|
||||
|
||||
.ion-flex-direction-row {
|
||||
flex-direction: row !important;
|
||||
}
|
||||
|
||||
.ion-flex-direction-row-reverse {
|
||||
flex-direction: row-reverse !important;
|
||||
}
|
||||
|
||||
// Flex Container
|
||||
// --------------------------------------------------
|
||||
.ion-flex-1 {
|
||||
flex: 1 !important;
|
||||
}
|
||||
|
Reference in New Issue
Block a user