:hovers and layout
Some checks failed
/ Run tests (push) Failing after 1m37s
/ Run system tests (push) Failing after 1m42s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-11-09 01:25:47 +01:00
parent c2d1cb6ce7
commit ab335decd3
2 changed files with 17 additions and 37 deletions

View file

@ -241,7 +241,7 @@ details.tree[open]>summary::before {
details.success_criterion { details.success_criterion {
summary:hover { summary:hover {
background-color: $tertiary; background-color: shade-color($tertiary, 40%);
// border-right: solid 4px $primary; // border-right: solid 4px $primary;
@ -262,7 +262,7 @@ details.success_criterion {
@include color-mode(dark) { @include color-mode(dark) {
details.success_criterion { details.success_criterion {
summary:hover { summary:hover {
background-color: $tertiary-dark; background-color: shade-color($tertiary-dark, 40%);
} }
} }
} }
@ -286,7 +286,6 @@ details.success_criterion[open] {
@include color-mode(dark) { @include color-mode(dark) {
details.success_criterion[open] { details.success_criterion[open] {
// padding-left: 8px;
border: solid 1px $tertiary-dark; border: solid 1px $tertiary-dark;
summary { summary {
@ -295,43 +294,24 @@ details.success_criterion[open] {
summary:hover { summary:hover {
background-color: shade-color($tertiary-dark, 30%); background-color: shade-color($tertiary-dark, 30%);
// border-right: solid 4px $primary;
} }
} }
} }
details.success_criterion.passed { details.tree {
// border-left: solid 2px $success;
summary:hover,
li:has(a):hover {
background-color: shade-color($tertiary, 50%);
}
} }
@include color-mode(dark) {
details.tree {
details.success_criterion.failed { summary:hover,
// border-left: solid 2px $danger li:has(a):hover {
background-color: shade-color($tertiary-dark, 40%);
} }
details.success_criterion.not_applicable {
// border-left: solid 2px $secondary;
} }
details.success_criterion[open] {
// border-left: solid 16px $warning;
// padding-left: 8px;
}
details.success_criterion[open].passed {
// border-left: solid 16px $success;
// padding-left: 8px;
}
details.success_criterion[open].failed {
// border-left: solid 16px $danger;
// padding-left: 8px;
}
details.success_criterion[open].not_applicable {
// border-left: solid 16px $secondary;
// padding-left: 8px;
} }

View file

@ -11,13 +11,13 @@ h1
.smb-4.lead.mb-3 .smb-4.lead.mb-3
= @report.comment = @report.comment
.row .row
.col-lg-4.col-md-6.col-sm-12 .col-lg-3.col-md-4.col-sm-12
.page_nav.sticky-top .page_nav.sticky-top
= render partial: "reports/page_nav", locals: { report: @report, current_page: @current_page } = render partial: "reports/page_nav", locals: { report: @report, current_page: @current_page }
- if @current_page && false - if @current_page && false
= turbo_frame_tag(dom_id(@current_page, :notes)) do = turbo_frame_tag(dom_id(@current_page, :notes)) do
= render partial: "pages/notes", locals: { page: @current_page } = render partial: "pages/notes", locals: { page: @current_page }
.col-lg-8.col-md-6.col-sm-12 .col-lg-9.col-md-7.col-sm-12
- if @current_page - if @current_page
= render @current_page = render @current_page
- else - else