-
Notifications
You must be signed in to change notification settings - Fork 667
Update Inventory card design #2601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,32 @@ | ||
| .co-inventory-card__item { | ||
| align-items: center; | ||
| border-bottom: 1px solid $pf-color-black-300; | ||
| display: flex; | ||
| font-size: 1rem; | ||
| justify-content: space-between; | ||
| padding: 1em var(--pf-c-card--child--PaddingRight) 1em var(--pf-c-card--child--PaddingLeft); | ||
| line-height: 1.5rem; | ||
| padding: 1rem var(--pf-c-card--child--PaddingRight) 1rem var(--pf-c-card--child--PaddingLeft); | ||
|
||
| } | ||
|
|
||
| .co-inventory-card__item--border { | ||
| border-bottom: 1px solid $pf-color-black-300; | ||
| } | ||
|
|
||
| .co-inventory-card__item-status { | ||
| align-items: center; | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
|
|
||
| :last-child { | ||
| margin-right: 0; | ||
| } | ||
| } | ||
|
|
||
| .co-inventory-card__item-title { | ||
| margin-right: 0.5em; | ||
| display: flex; | ||
| margin-right: 0.5rem; | ||
| } | ||
|
|
||
| .co-inventory-card__status { | ||
| align-items: center; | ||
| display: flex; | ||
| flex-shrink: 0; | ||
| margin-right: 0.5em; | ||
| margin-left: 1.8rem; | ||
| } | ||
|
|
||
| .co-inventory-card__status-icon--question { | ||
|
|
@@ -36,10 +37,51 @@ | |
| color: $pf-color-black-600; | ||
| } | ||
|
|
||
| .co-inventory-card__status-icon--warn { | ||
| color: $pf-color-gold-400; | ||
| .co-inventory-card__status-text { | ||
| margin-left: 0.25rem; | ||
| } | ||
|
|
||
| .co-inventory-card__status-text { | ||
| margin-left: 0.25em; | ||
| .co-inventory-card__accordion.pf-c-accordion { | ||
| border-bottom: 1px solid $pf-color-black-300; | ||
| box-shadow: none; | ||
| padding: 0; | ||
|
|
||
| h5 { | ||
| font-size: var(--pf-c-card__body--FontSize); | ||
| font-weight: var(--pf-global--FontWeight--normal); | ||
| margin: 0; | ||
| } | ||
|
|
||
| .co-inventory-card__accordion-toggle.pf-c-accordion__toggle { | ||
| border-left: none; | ||
| padding: 0 var(--pf-c-card--child--PaddingRight) 0 0; | ||
|
|
||
| .pf-c-accordion__toggle-text { | ||
| width: 100%; | ||
| } | ||
| } | ||
|
|
||
| .co-inventory-card__accordion-body.pf-c-accordion__expanded-content { | ||
| border-left: none; | ||
|
|
||
| .pf-c-accordion__expanded-content-body { | ||
| padding: 1rem var(--pf-c-card--child--PaddingRight) 1rem var(--pf-c-card--child--PaddingLeft); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .skeleton-inventory { | ||
| animation: $skeleton-animation; | ||
| background: $skeleton-color; | ||
| height: 20px; | ||
| width: 20px; | ||
| opacity: 0; | ||
| margin-right: 0.5rem; | ||
| &::after { | ||
| background-repeat: no-repeat; | ||
| content: ""; | ||
| display: block; | ||
| height: 100%; | ||
| width: 100%; | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a brief description here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added