UNPKG

@ionic/core

Version:

Base components for Ionic

118 lines (109 loc) • 2.84 kB
:host { /** * @prop --background: Background of the list header * @prop --color: Color of the list header text * * @prop --border-color: Color of the list header border * @prop --border-width: Width of the list header border * @prop --border-style: Style of the list header border * * @prop --inner-border-width: Width of the inner list header border */ --border-style: solid; --border-width: 0; --inner-border-width: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; border-width: var(--border-width); border-style: var(--border-style); border-color: var(--border-color); background: var(--background); color: var(--color); overflow: hidden; } :host(.ion-color) { background: var(--ion-color-base); color: var(--ion-color-contrast); } .list-header-inner { display: flex; position: relative; flex: 1; flex-direction: inherit; align-items: inherit; align-self: stretch; min-height: inherit; border-width: var(--inner-border-width); border-style: var(--border-style); border-color: var(--border-color); overflow: inherit; box-sizing: border-box; } ::slotted(ion-label) { flex: 1 1 auto; } :host(.list-header-lines-inset), :host(.list-header-lines-none) { --border-width: 0; } :host(.list-header-lines-full), :host(.list-header-lines-none) { --inner-border-width: 0; } :host { --background: transparent; --color: var(--ion-color-step-850, #262626); --border-color: var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc))); padding-left: calc(var(--ion-safe-area-left, 0px) + 20px); position: relative; align-items: flex-end; font-size: 22px; font-weight: 700; letter-spacing: 0; } @supports (margin-inline-start: 0) or (-webkit-margin-start: 0) { :host { padding-left: unset; -webkit-padding-start: calc(var(--ion-safe-area-left, 0px) + 20px); padding-inline-start: calc(var(--ion-safe-area-left, 0px) + 20px); } } ::slotted(ion-button), ::slotted(ion-label) { margin-top: 29px; margin-bottom: 6px; } ::slotted(ion-button) { margin-left: 3px; margin-right: 3px; height: 1.4em; } @supports (margin-inline-start: 0) or (-webkit-margin-start: 0) { ::slotted(ion-button) { margin-left: unset; margin-right: unset; -webkit-margin-start: 3px; margin-inline-start: 3px; -webkit-margin-end: 3px; margin-inline-end: 3px; } } :host(.list-header-lines-full) { --border-width: 0 0 0.55px 0; } :host(.list-header-lines-inset) { --inner-border-width: 0 0 0.55px 0; }