-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addition of skeleton components for dashboard views including placeme…
…nt graphic for charts
- Loading branch information
Showing
12 changed files
with
141 additions
and
39 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
3 changes: 1 addition & 2 deletions
3
frontend/packages/console-shared/src/components/dashboard/details-card/DetailItem.tsx
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions
51
frontend/packages/console-shared/src/styles/skeleton-screen.scss
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 |
---|---|---|
@@ -1,2 +1,53 @@ | ||
$skeleton-animation: loading-skeleton 1s ease-out .15s infinite alternate; | ||
$skeleton-color: #eaedf1; | ||
$skeleton-bone-height-1line: 24px; | ||
|
||
// Dashboard Status | ||
$skeleton-status-bone-height: $skeleton-bone-height-1line; // position out of alpha | ||
$skeleton-status-bone: linear-gradient($skeleton-color $skeleton-status-bone-height, transparent 0); | ||
$skeleton-status-position: 0 10px; | ||
$skeleton-status-data-position: $skeleton-status-position; | ||
$skeleton-status-data-size: 200px; | ||
$skeleton-status-metadata-position: 45px 0; | ||
$skeleton-status-metadata-size: 80px 15px; | ||
$skeleton-status-resource-icon: radial-gradient(circle 12px at center, $skeleton-color 100%, transparent 0); | ||
$skeleton-status-resource-icon-position: $skeleton-status-position; | ||
$skeleton-status-resource-icon-size: $skeleton-bone-height-1line $skeleton-bone-height-1line; | ||
$skeleton-status-resource-position: 45px 24px; | ||
$skeleton-status-resource-size: 75%; | ||
|
||
// Dashboard Activity | ||
$skeleton-activity-bone: linear-gradient($skeleton-color $skeleton-bone-height-1line, transparent 0); | ||
$skeleton-activity-icon: radial-gradient(circle 12px at center, $skeleton-color 100%, transparent 0); | ||
$skeleton-activity-icon-position: 0 0; | ||
$skeleton-activity-icon-size: $skeleton-status-resource-icon-size; | ||
$skeleton-activity-position: 45px 0; | ||
$skeleton-activity-size: auto; | ||
|
||
|
||
.skeleton-text { | ||
animation: $skeleton-animation; | ||
background: $skeleton-color; | ||
height: $skeleton-bone-height-1line; | ||
opacity: 0; | ||
&::after { | ||
background-repeat: no-repeat; | ||
content: ""; | ||
display: block; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
} | ||
|
||
.skeleton-chart { | ||
animation: $skeleton-animation; | ||
background-image: url('../images/skeleton-chart-cpu.png'); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: 100% 100%; | ||
display: inline-block; | ||
height: 100%; | ||
opacity: 0; | ||
vertical-align: middle; | ||
width: 90%; | ||
} |
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