Skip to content

Commit

Permalink
Merge pull request #486 from gemini-testing/sp.colorScheme
Browse files Browse the repository at this point in the history
chore(css): sync colors for components
  • Loading branch information
sipayRT authored Aug 10, 2023
2 parents 7904417 + 0a6bd0b commit 0791d99
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 24 deletions.
12 changes: 6 additions & 6 deletions lib/static/components/header/summary/summary.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
}

.summary__key_passed {
color: #169737;
color: var(--report-color-success);
}

.summary__key_failed {
color: #cf0c3d;
color: var(--report-color-fail);
}

.summary__key_retries {
color: #ff9a9a;
}

.summary__key_skipped {
color: #8c8c8c;
color: var(--report-color-skip);
}

.summary__value {
Expand Down Expand Up @@ -54,7 +54,7 @@
}

.ui.db-info.db-info_failed {
color: #cf0c3d !important;
color: var(--report-color-fail) !important;
}

.ui.basic.db-info.db-info_failed:hover {
Expand All @@ -67,11 +67,11 @@
}

.db-info__row_success {
color: #038035;
color: var(--report-color-success);
font-weight: bold;
}

.db-info__row_fail {
color: #c00;
color: var(--report-color-fail);
font-weight: bold;
}
8 changes: 4 additions & 4 deletions lib/static/gui.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@

.section_status_success > .section__title .bullet_type-simple:before,
.state-title_success:before {
color: #038035;
color: var(--report-color-success);
}

.section_status_fail > .section__title .bullet_type-simple:before,
.section_status_error > .section__title .bullet_type-simple:before,
.state-title_fail:before,
.state-title_error:before {
color: #c00;
color: var(--report-color-fail);
}

.section_status_skipped > .section__title .bullet_type-simple:before,
Expand Down Expand Up @@ -74,8 +74,8 @@
.section_status_updated > .section__title .bullet_type-simple::before,
.section_status_updated > .section__title .ui.checkbox label:before,
.section_status_updated > .section__title .ui.checkbox label:after {
color: #038035 !important;
border-color: #038035 !important;
color: var(--report-color-success) !important;
border-color: var(--report-color-success) !important;
}

.report_show-only-errors .section_status_updated {
Expand Down
24 changes: 12 additions & 12 deletions lib/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -398,21 +398,21 @@ details[open] > .details__summary:before {
}

.section_status_skipped > .section__title {
color: #8c8c8c;
color: var(--report-color-skip);
}

.section_status_skipped > .section__title .ui.checkbox label:before,
.section_status_skipped > .section__title .ui.checkbox label:after {
color: #8c8c8c !important;
border-color: #8c8c8c !important;
color: var(--report-color-skip) !important;
border-color: var(--report-color-skip) !important;
}

.section_status_skipped > .section__title:hover {
color: #c6c6c6;
}

.section__title_skipped {
color: #8c8c8c;
color: var(--report-color-skip);
cursor: default;
margin-left: 5px;
font-weight: normal;
Expand All @@ -421,7 +421,7 @@ details[open] > .details__summary:before {
}

.section__title.section__title_skipped:hover {
color: #8c8c8c;
color: var(--report-color-skip);
}

.section__title_skipped:before {
Expand All @@ -431,15 +431,15 @@ details[open] > .details__summary:before {
.section_status_success > .section__title,
.state-title_success,
.state-title_updated {
color: #038035;
color: var(--report-color-success);
}

.section_status_success > .section__title .ui.checkbox label:before,
.section_status_success > .section__title .ui.checkbox label:after,
.section_status_updated > .section__title .ui.checkbox label:before,
.section_status_updated > .section__title .ui.checkbox label:after {
color: #038035 !important;
border-color: #038035 !important;
color: var(--report-color-success) !important;
border-color: var(--report-color-success) !important;
}

.section_status_success > .section__title:hover,
Expand All @@ -452,15 +452,15 @@ details[open] > .details__summary:before {
.section_status_error > .section__title,
.state-title_fail,
.state-title_error {
color: #c00;
color: var(--report-color-fail);
}

.section_status_fail > .section__title .ui.checkbox label:before,
.section_status_fail > .section__title .ui.checkbox label:after,
.section_status_error > .section__title .ui.checkbox label:before,
.section_status_error > .section__title .ui.checkbox label:after {
color: #c00 !important;
border-color: #c00 !important;
color: var(--report-color-fail) !important;
border-color: var(--report-color-fail) !important;
}

.section_status_fail > .section__title:hover,
Expand Down Expand Up @@ -668,7 +668,7 @@ details[open] > .details__summary:before {

.skipped__list {
margin: 10px 0;
color: #8c8c8c;
color: var(--report-color-skip);
}

.skipped-test__title {
Expand Down
5 changes: 5 additions & 0 deletions lib/static/variables.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:root {
--report-color-fail: rgba(255, 4, 0, 0.9);
--report-color-skip: #8c8c8c;
--report-color-success: #169737;
}
4 changes: 2 additions & 2 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const staticPath = path.resolve(__dirname, 'build', 'lib', 'static');

module.exports = {
entry: {
report: ['./index.jsx', './styles.css'],
gui: ['./gui.jsx', './styles.css', './gui.css']
report: ['./index.jsx', './variables.css', './styles.css'],
gui: ['./gui.jsx', './variables.css', './styles.css', './gui.css']
},
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx']
Expand Down

0 comments on commit 0791d99

Please sign in to comment.