@ionic/angular
Version:
Angular specific wrappers for @ionic/core
159 lines (146 loc) • 4.53 kB
CSS
/**
* Convert a font size to a dynamic font size.
* Fonts that participate in Dynamic Type should use
* dynamic font sizes.
* @param size - The initial font size including the unit (i.e. px or pt)
* @param unit (optional) - The unit to convert to. Use this if you want to
* convert to a unit other than $baselineUnit.
*/
/**
* Convert a font size to a dynamic font size but impose
* a maximum font size.
* @param size - The initial font size including the unit (i.e. px or pt)
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
* convert to a unit other than $baselineUnit.
*/
/**
* Convert a font size to a dynamic font size but impose
* a minimum font size.
* @param size - The initial font size including the unit (i.e. px or pt)
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
* convert to a unit other than $baselineUnit.
*/
/**
* Convert a font size to a dynamic font size but impose
* maximum and minimum font sizes.
* @param size - The initial font size including the unit (i.e. px or pt)
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
* convert to a unit other than $baselineUnit.
*/
/**
* A heuristic that applies CSS to tablet
* viewports.
*
* Usage:
* @include tablet-viewport() {
* :host {
* background-color: green;
* }
* }
*/
/**
* A heuristic that applies CSS to mobile
* viewports (i.e. phones, not tablets).
*
* Usage:
* @include mobile-viewport() {
* :host {
* background-color: blue;
* }
* }
*/
/**
* A heuristic that applies CSS to tablet
* viewports.
*
* Usage:
* @include tablet-viewport() {
* :host {
* background-color: green;
* }
* }
*/
/**
* A heuristic that applies CSS to mobile
* viewports (i.e. phones, not tablets).
*
* Usage:
* @include mobile-viewport() {
* :host {
* background-color: blue;
* }
* }
*/
.ion-text-uppercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: uppercase ;
}
.ion-text-lowercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: lowercase ;
}
.ion-text-capitalize {
/* stylelint-disable-next-line declaration-no-important */
text-transform: capitalize ;
}
@media (min-width: 576px) {
.ion-text-sm-uppercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: uppercase ;
}
.ion-text-sm-lowercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: lowercase ;
}
.ion-text-sm-capitalize {
/* stylelint-disable-next-line declaration-no-important */
text-transform: capitalize ;
}
}
@media (min-width: 768px) {
.ion-text-md-uppercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: uppercase ;
}
.ion-text-md-lowercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: lowercase ;
}
.ion-text-md-capitalize {
/* stylelint-disable-next-line declaration-no-important */
text-transform: capitalize ;
}
}
@media (min-width: 992px) {
.ion-text-lg-uppercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: uppercase ;
}
.ion-text-lg-lowercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: lowercase ;
}
.ion-text-lg-capitalize {
/* stylelint-disable-next-line declaration-no-important */
text-transform: capitalize ;
}
}
@media (min-width: 1200px) {
.ion-text-xl-uppercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: uppercase ;
}
.ion-text-xl-lowercase {
/* stylelint-disable-next-line declaration-no-important */
text-transform: lowercase ;
}
.ion-text-xl-capitalize {
/* stylelint-disable-next-line declaration-no-important */
text-transform: capitalize ;
}
}
/*# sourceMappingURL=text-transformation.css.map */