UNPKG

@ionic/core

Version:
80 lines (63 loc) 2.25 kB
ion-refresher { left: 0; top: 0; display: none; position: absolute; width: 100%; height: 60px; z-index: -1; } :host-context([dir=rtl]) ion-refresher { right: 0; } ion-refresher.refresher-active { display: block; } ion-refresher-content { display: flex; flex-direction: column; justify-content: center; height: 100%; } .refresher-pulling, .refresher-refreshing { display: none; width: 100%; } .refresher-pulling-icon, .refresher-refreshing-icon { transform-origin: center; transition: 200ms; font-size: 30px; text-align: center; } :host-context([dir=rtl]) .refresher-pulling-icon, :host-context([dir=rtl]) .refresher-refreshing-icon { transform-origin: calc(100% - center); } .refresher-pulling-text, .refresher-refreshing-text { font-size: 16px; text-align: center; } .refresher-pulling ion-refresher-content .refresher-pulling { display: block; } .refresher-ready ion-refresher-content .refresher-pulling { display: block; } .refresher-ready ion-refresher-content .refresher-pulling-icon { transform: rotate(180deg); } .refresher-refreshing ion-refresher-content .refresher-refreshing { display: block; } .refresher-cancelling ion-refresher-content .refresher-pulling { display: block; } .refresher-cancelling ion-refresher-content .refresher-pulling-icon { transform: scale(0); } .refresher-completing ion-refresher-content .refresher-refreshing { display: block; } .refresher-completing ion-refresher-content .refresher-refreshing-icon { transform: scale(0); } .refresher-md .refresher-pulling-icon, .refresher-md .refresher-refreshing-icon { color: var(--ion-text-color, #000); } .refresher-md .refresher-pulling-text, .refresher-md .refresher-refreshing-text { color: var(--ion-text-color, #000); } .refresher-md .refresher-refreshing .spinner-lines-md line, .refresher-md .refresher-refreshing .spinner-lines-small-md line, .refresher-md .refresher-refreshing .spinner-crescent circle { stroke: var(--ion-text-color, #000); } .refresher-md .refresher-refreshing .spinner-bubbles circle, .refresher-md .refresher-refreshing .spinner-circles circle, .refresher-md .refresher-refreshing .spinner-dots circle { fill: var(--ion-text-color, #000); }