Skip to content

Commit

Permalink
Correct some CSS linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtrussler committed Aug 15, 2024
1 parent 5cc45a4 commit 419f02c
Showing 1 changed file with 50 additions and 51 deletions.
101 changes: 50 additions & 51 deletions app/assets/stylesheets/publisher-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,78 +6,77 @@
font-size: 1.1875rem;
}

.govuk-table {
border-top: 2px solid $govuk-text-colour;

.govuk-table__header {
white-space: nowrap;
.govuk-tag {
&--amends_needed {
@extend .govuk-tag--red; // stylelint-disable-line scss/at-extend-no-missing-placeholder
}

.govuk-table__cell__updated {
white-space: nowrap;
&--archived {
@extend .govuk-tag--blue; // stylelint-disable-line scss/at-extend-no-missing-placeholder
}

.govuk-tag {
&--amends_needed {
@extend .govuk-tag--red;
}
&--draft {
@extend .govuk-tag--yellow; // stylelint-disable-line scss/at-extend-no-missing-placeholder
}

&--archived {
@extend .govuk-tag--blue;
}
&--fact_check {
@extend .govuk-tag--purple; // stylelint-disable-line scss/at-extend-no-missing-placeholder
}

&--draft {
@extend .govuk-tag--yellow;
}
&--fact_check_received {
@extend .govuk-tag--pink; // stylelint-disable-line scss/at-extend-no-missing-placeholder
}

&--fact_check {
@extend .govuk-tag--purple;
}
&--ready {
@extend .govuk-tag--green; // stylelint-disable-line scss/at-extend-no-missing-placeholder
}

&--fact_check_received {
@extend .govuk-tag--pink;
}
&--scheduled_for_publishing {
@extend .govuk-tag--turquoise; // stylelint-disable-line scss/at-extend-no-missing-placeholder
}

&--ready {
@extend .govuk-tag--green;
}
&--published {
@extend .govuk-tag--orange; // stylelint-disable-line scss/at-extend-no-missing-placeholder
}

&--scheduled_for_publishing {
@extend .govuk-tag--turquoise;
}
&--in_review {
@extend .govuk-tag--grey; // stylelint-disable-line scss/at-extend-no-missing-placeholder
}
}

&--published {
@extend .govuk-tag--orange;
}
.govuk-table {
border-top: 2px solid $govuk-text-colour;

&--in_review {
@extend .govuk-tag--grey;
}
.govuk-table__header {
white-space: nowrap;
}

.govuk-details {
margin-top: govuk-spacing(2);
margin-bottom: 0 !important;
.govuk-table__cell__updated {
white-space: nowrap;
}
}

.govuk-summary-list {
width: auto;
}
.govuk-details {
margin-top: govuk-spacing(2);
}

.govuk-details__summary {
&:before {
color: $govuk-text-colour;
}
}
.govuk-summary-list {
width: auto;
}

.govuk-details__summary-text {
.govuk-details__summary {
&::before {
color: $govuk-text-colour;
}
}

.govuk-details__summary-text {
color: $govuk-text-colour;
}

.govuk-details__text {
dd {
word-break: break-word;
}
.govuk-details__text {
dd {
word-break: break-word;
}
}
}

0 comments on commit 419f02c

Please sign in to comment.