-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(loading): add loading indicator component and styles
this is the initial commit - still needs work references #5426
- Loading branch information
1 parent
9a23a92
commit a485cd0
Showing
15 changed files
with
733 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@import "../../globals.core"; | ||
@import "./loading"; | ||
|
||
// iOS Loading Indicator | ||
// -------------------------------------------------- | ||
|
||
$loading-ios-padding: 24px 34px !default; | ||
$loading-ios-max-height: 90% !default; | ||
$loading-ios-border-radius: 8px !default; | ||
$loading-ios-text-color: #000 !default; | ||
$loading-ios-background: #f8f8f8 !default; | ||
|
||
$loading-ios-content-font-weight: bold !default; | ||
|
||
$loading-ios-spinner-color: #69717d !default; | ||
|
||
$loading-ios-spinner-ios-color: $loading-ios-spinner-color !default; | ||
$loading-ios-spinner-bubbles-color: $loading-ios-spinner-color !default; | ||
$loading-ios-spinner-circles-color: $loading-ios-spinner-color !default; | ||
$loading-ios-spinner-crescent-color: $loading-ios-spinner-color !default; | ||
$loading-ios-spinner-dots-color: $loading-ios-spinner-color !default; | ||
|
||
|
||
.loading-wrapper { | ||
padding: $loading-ios-padding; | ||
|
||
max-height: $loading-ios-max-height; | ||
|
||
border-radius: $loading-ios-border-radius; | ||
color: $loading-ios-text-color; | ||
background: $loading-ios-background; | ||
} | ||
|
||
|
||
// iOS Loading Content | ||
// ----------------------------------------- | ||
|
||
.loading-content { | ||
font-weight: $loading-ios-content-font-weight; | ||
} | ||
|
||
.loading-spinner + .loading-content { | ||
margin-left: 16px; | ||
} | ||
|
||
|
||
// iOS Loading Spinner fill colors | ||
// ----------------------------------------- | ||
|
||
.loading-spinner { | ||
.spinner-ios line, | ||
.spinner-ios-small line { | ||
stroke: $loading-ios-spinner-ios-color; | ||
} | ||
|
||
.spinner-bubbles circle { | ||
fill: $loading-ios-spinner-bubbles-color; | ||
} | ||
|
||
.spinner-circles circle { | ||
fill: $loading-ios-spinner-circles-color; | ||
} | ||
|
||
.spinner-crescent circle { | ||
stroke: $loading-ios-spinner-crescent-color; | ||
} | ||
|
||
.spinner-dots circle { | ||
fill: $loading-ios-spinner-dots-color; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@import "../../globals.core"; | ||
@import "./loading"; | ||
|
||
// Material Design Loading Indicator | ||
// -------------------------------------------------- | ||
|
||
$loading-md-padding: 24px !default; | ||
$loading-md-max-height: 90% !default; | ||
$loading-md-border-radius: 2px !default; | ||
$loading-md-text-color: rgba(0, 0, 0, .5) !default; | ||
$loading-md-background: #fafafa !default; | ||
$loading-md-box-shadow-color: rgba(0, 0, 0, .4) !default; | ||
$loading-md-box-shadow: 0 16px 20px $loading-md-box-shadow-color !default; | ||
|
||
$loading-md-spinner-color: color($colors-md, primary) !default; | ||
|
||
$loading-md-spinner-ios-color: $loading-md-spinner-color !default; | ||
$loading-md-spinner-bubbles-color: $loading-md-spinner-color !default; | ||
$loading-md-spinner-circles-color: $loading-md-spinner-color !default; | ||
$loading-md-spinner-crescent-color: $loading-md-spinner-color !default; | ||
$loading-md-spinner-dots-color: $loading-md-spinner-color !default; | ||
|
||
|
||
.loading-wrapper { | ||
padding: $loading-md-padding; | ||
|
||
max-height: $loading-md-max-height; | ||
|
||
border-radius: $loading-md-border-radius; | ||
color: $loading-md-text-color; | ||
background: $loading-md-background; | ||
|
||
box-shadow: $loading-md-box-shadow; | ||
} | ||
|
||
|
||
// Material Design Loading Content | ||
// ----------------------------------------- | ||
|
||
.loading-spinner + .loading-content { | ||
margin-left: 16px; | ||
} | ||
|
||
|
||
// Material Design Loading Spinner fill colors | ||
// ----------------------------------------- | ||
|
||
.loading-spinner { | ||
.spinner-ios line, | ||
.spinner-ios-small line { | ||
stroke: $loading-md-spinner-ios-color; | ||
} | ||
|
||
.spinner-bubbles circle { | ||
fill: $loading-md-spinner-bubbles-color; | ||
} | ||
|
||
.spinner-circles circle { | ||
fill: $loading-md-spinner-circles-color; | ||
} | ||
|
||
.spinner-crescent circle { | ||
stroke: $loading-md-spinner-crescent-color; | ||
} | ||
|
||
.spinner-dots circle { | ||
fill: $loading-md-spinner-dots-color; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@import "../../globals.core"; | ||
|
||
// Loading Indicator | ||
// -------------------------------------------------- | ||
|
||
|
||
ion-loading { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
z-index: $z-index-overlay; | ||
|
||
display: flex; | ||
|
||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.loading-wrapper { | ||
z-index: $z-index-overlay-wrapper; | ||
display: flex; | ||
|
||
align-items: center; | ||
|
||
opacity: 0; | ||
} | ||
|
||
// Loading Backdrop | ||
// ----------------------------------------- | ||
|
||
.hide-backdrop { | ||
display: none; | ||
} |
Oops, something went wrong.