UNPKG

@ionic/core

Version:
189 lines (179 loc) 5.8 kB
:host { /** * @prop --background: Background of the button * * @prop --color: Text color of the button * * @prop --min-width: Minimum width of the button * @prop --min-height: Minimum height of the button * * @prop --transition: Transition of the button * * @prop --border-radius: Border radius of the button * * @prop --ripple-color: Color of the button ripple effect * * @prop --opacity: Opacity of the button * * @prop --margin-top: Margin top of the button * @prop --margin-end: Margin end of the button * @prop --margin-bottom: Margin bottom of the button * @prop --margin-start: Margin start of the button * * @prop --padding-top: Padding top of the button * @prop --padding-end: Padding end of the button * @prop --padding-bottom: Padding bottom of the button * @prop --padding-start: Padding start of the button * * @prop --icon-margin-top: Margin top of the button icon * @prop --icon-margin-end: Margin end of the button icon * @prop --icon-margin-bottom: Margin bottom of the button icon * @prop --icon-margin-start: Margin start of the button icon * * @prop --icon-padding-top: Padding top of the button icon * @prop --icon-padding-end: Padding end of the button icon * @prop --icon-padding-bottom: Padding bottom of the button icon * @prop --icon-padding-start: Padding start of the button icon * * @prop --icon-font-size: Font size of the button icon * @prop --icon-font-weight: Font weight of the button icon */ --background: transparent; --ripple-color: currentColor; --transition: background-color, opacity 100ms linear; --opacity: 1; display: none; color: var(--color); font-family: var(--ion-font-family, inherit); text-align: center; text-decoration: none; text-overflow: ellipsis; text-transform: none; white-space: nowrap; user-select: none; font-kerning: none; } :host(.ion-color) .button-native { color: var(--ion-color-base); } :host(.activated) .button-native { opacity: .4; } :host-context(.can-go-back > ion-header), :host(.show-back-button) { display: block; } .button-native { border-radius: var(--border-radius); -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; margin-left: var(--margin-start); margin-right: var(--margin-end); margin-top: var(--margin-top); margin-bottom: var(--margin-bottom); padding-left: var(--padding-start); padding-right: var(--padding-end); padding-top: var(--padding-top); padding-bottom: var(--padding-bottom); font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit; letter-spacing: inherit; text-decoration: inherit; text-overflow: inherit; text-transform: inherit; text-align: inherit; white-space: inherit; color: inherit; display: block; position: relative; min-width: var(--min-width); min-height: var(--min-height); transition: var(--transition); border: 0; outline: none; background: var(--background); line-height: 1; cursor: pointer; opacity: var(--opacity); user-select: none; z-index: 0; appearance: none; } @supports (margin-inline-start: 0) or (-webkit-margin-start: 0) { .button-native { margin-left: unset; margin-right: unset; -webkit-margin-start: var(--margin-start); margin-inline-start: var(--margin-start); -webkit-margin-end: var(--margin-end); margin-inline-end: var(--margin-end); } } @supports (margin-inline-start: 0) or (-webkit-margin-start: 0) { .button-native { padding-left: unset; padding-right: unset; -webkit-padding-start: var(--padding-start); padding-inline-start: var(--padding-start); -webkit-padding-end: var(--padding-end); padding-inline-end: var(--padding-end); } } .button-inner { display: flex; flex-flow: row nowrap; flex-shrink: 0; align-items: center; justify-content: center; width: 100%; height: 100%; } ion-icon { padding-left: var(--icon-padding-start); padding-right: var(--icon-padding-end); padding-top: var(--icon-padding-top); padding-bottom: var(--icon-padding-bottom); margin-left: var(--icon-margin-start); margin-right: var(--icon-margin-end); margin-top: var(--icon-margin-top); margin-bottom: var(--icon-margin-bottom); display: inherit; font-size: var(--icon-font-size); font-weight: var(--icon-font-weight); pointer-events: none; } @supports (margin-inline-start: 0) or (-webkit-margin-start: 0) { ion-icon { padding-left: unset; padding-right: unset; -webkit-padding-start: var(--icon-padding-start); padding-inline-start: var(--icon-padding-start); -webkit-padding-end: var(--icon-padding-end); padding-inline-end: var(--icon-padding-end); } } @supports (margin-inline-start: 0) or (-webkit-margin-start: 0) { ion-icon { margin-left: unset; margin-right: unset; -webkit-margin-start: var(--icon-margin-start); margin-inline-start: var(--icon-margin-start); -webkit-margin-end: var(--icon-margin-end); margin-inline-end: var(--icon-margin-end); } } :host { --color: currentColor; --margin-top: 1px; --margin-end: 6px; --margin-bottom: 0; --margin-start: 0; --padding-top: 0; --padding-end: 5px; --padding-bottom: 0; --padding-start: 5px; --min-height: 32px; --min-width: 44px; --icon-padding-end: .3em; --icon-padding-start: .3em; --icon-margin-top: 0; --icon-margin-end: 6px; --icon-margin-bottom: 0; --icon-margin-start: 6px; --icon-font-size: 24px; --icon-font-weight: normal; font-size: 14px; font-weight: 500; text-transform: uppercase; } .button-native { box-shadow: none; } ion-icon { line-height: .67; text-align: start; }