-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Risk level indicator styling (#1810)
Co-authored-by: Patrick <[email protected]> Co-authored-by: Jeroen Dekkers <[email protected]>
- Loading branch information
1 parent
6baf7e3
commit 9387222
Showing
8 changed files
with
68 additions
and
27 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...ts/css/components/form-inline-column.scss → rocky/assets/css/components/form-inline.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,3 +1,7 @@ | ||
form.inline.column { | ||
flex-direction: column; | ||
} | ||
|
||
form.inline.layout-wide { | ||
width: 100%; | ||
} |
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,61 @@ | ||
/* Risk level indicator */ | ||
|
||
table .critical, | ||
table .high, | ||
table .medium, | ||
table .low, | ||
table .informational, | ||
table .recommendation, | ||
table .pending, | ||
table .unknown { | ||
--risk-level-critical: #f84638; | ||
--risk-level-high: #ff9a4d; | ||
--risk-level-medium: #fbe366; | ||
--risk-level-low: #a6e5b7; | ||
--risk-level-informational: #c6e6fa; | ||
--risk-level-pending: #a4a4a4; | ||
--risk-level-unkown: #a4a4a4; | ||
|
||
display: flex; | ||
align-items: center; | ||
gap: 0.5rem; | ||
padding: 0; | ||
|
||
&::before { | ||
content: ""; | ||
display: block; | ||
width: 0.75rem; | ||
height: 0.75rem; | ||
border-radius: 50%; | ||
margin: 0; | ||
} | ||
} | ||
|
||
table .critical::before { | ||
background-color: var(--risk-level-critical); | ||
} | ||
|
||
table .high::before { | ||
background-color: var(--risk-level-high); | ||
} | ||
|
||
table .medium::before { | ||
background-color: var(--risk-level-medium); | ||
} | ||
|
||
table .low::before { | ||
background-color: var(--risk-level-low); | ||
} | ||
|
||
table .informational::before, | ||
table .recommendation::before { | ||
background-color: var(--risk-level-informational); | ||
} | ||
|
||
table .pending::before { | ||
background-color: var(--risk-level-pending); | ||
} | ||
|
||
table .unknown::before { | ||
background-color: var(--risk-level-unkown); | ||
} |
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
19 changes: 0 additions & 19 deletions
19
rocky/assets/css/themes/soft/manon/critical-informational-labels.scss
This file was deleted.
Oops, something went wrong.
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