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:
Bernardo Cardoso
2025-02-12 16:14:05 +00:00
committed by GitHub
parent 839969e3b5
commit 7be7c08cb0
2 changed files with 44 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}