@ionic/core
Version:
Base components for Ionic
97 lines (88 loc) • 2.55 kB
CSS
:host {
/**
* @prop --background: Background of the loading dialog
*
* @prop --min-width: Minimum width of the loading dialog
* @prop --width: Width of the loading dialog
* @prop --max-width: Maximum width of the loading dialog
*
* @prop --min-height: Minimum height of the loading dialog
* @prop --height: Height of the loading dialog
* @prop --max-height: Maximum height of the loading dialog
*
* @prop --spinner-color: Color of the loading spinner
*/
--min-width: auto;
--width: auto;
--min-height: auto;
--height: auto;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
position: fixed;
align-items: center;
justify-content: center;
font-family: var(--ion-font-family, inherit);
contain: strict;
touch-action: none;
user-select: none;
z-index: 1000; }
:host(.overlay-hidden) {
display: none; }
.loading-wrapper {
display: flex;
align-items: inherit;
justify-content: inherit;
width: var(--width);
min-width: var(--min-width);
max-width: var(--max-width);
height: var(--height);
min-height: var(--min-height);
max-height: var(--max-height);
background: var(--background);
opacity: 0;
z-index: 10; }
.spinner-lines,
.spinner-lines-small,
.spinner-bubbles,
.spinner-circles,
.spinner-crescent,
.spinner-dots {
color: var(--spinner-color); }
:host {
--background: var(--ion-color-step-50, #f2f2f2);
--max-width: 270px;
--max-height: 90%;
--spinner-color: var(--ion-color-step-600, #666666);
color: var(--ion-text-color, #000);
font-size: 14px; }
.loading-wrapper {
border-radius: 8px;
padding-left: 34px;
padding-right: 34px;
padding-top: 24px;
padding-bottom: 24px; }
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
.loading-wrapper {
padding-left: unset;
padding-right: unset;
-webkit-padding-start: 34px;
padding-inline-start: 34px;
-webkit-padding-end: 34px;
padding-inline-end: 34px; } }
:host(.loading-translucent) .loading-wrapper {
background-color: rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);
backdrop-filter: saturate(180%) blur(20px); }
.loading-content {
font-weight: bold; }
.loading-spinner + .loading-content {
margin-left: 16px; }
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
.loading-spinner + .loading-content {
margin-left: unset;
-webkit-margin-start: 16px;
margin-inline-start: 16px; } }