@ionic/core
Version:
Base components for Ionic
110 lines (105 loc) • 3.15 kB
CSS
:host {
height: 100%;
}
/**
* 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;
* }
* }
*/
/**
* 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;
* }
* }
*/
ion-list ion-radio::part(container) {
display: none;
}
ion-list ion-radio::part(label) {
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
}
ion-item {
--inner-border-width: 0;
}
.item-radio-checked {
--background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);
--background-focused: var(--ion-color-primary, #0054e9);
--background-focused-opacity: 0.2;
--background-hover: var(--ion-color-primary, #0054e9);
--background-hover-opacity: 0.12;
}
.item-checkbox-checked {
--background-activated: var(--ion-item-color, var(--ion-text-color, #000));
--background-focused: var(--ion-item-color, var(--ion-text-color, #000));
--background-hover: var(--ion-item-color, var(--ion-text-color, #000));
--color: var(--ion-color-primary, #0054e9);
}