Created
May 22, 2023 06:54
-
-
Save TatuLund/6a0b25122636f95417f8a7993613dbf0 to your computer and use it in GitHub Desktop.
Vaadin Flow has built-in loading indicator which is shown when synchronous requests take long to handle. Normally it is shown on the top. If you want to show it prominently in the middle of the screen, use this CSS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vaadin-connection-indicator { | |
| position: fixed; | |
| z-index: 251; | |
| top: 50%; | |
| width: 20%; | |
| left: 40%; | |
| } | |
| .v-loading-indicator { | |
| position: unset !important; | |
| height: 10px; | |
| z-index: unset !important; | |
| left: unset !important; | |
| top: unset !important; | |
| right: unset !important; | |
| background: var(--lumo-primary-color-50pct); | |
| border-radius: var(--lumo-border-radius-m); | |
| border: 1px solid var(--lumo-primary-color); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment