Skip to content

Commit

Permalink
feat(shs-5568): update styles for handling secondary accordion paragr…
Browse files Browse the repository at this point in the history
…aph option
  • Loading branch information
cienvaras committed Apr 18, 2024
1 parent b22fa77 commit 9af7fd9
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 36 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docroot/themes/humsci/humsci_airy/css/humsci_airy.css

Large diffs are not rendered by default.

59 changes: 29 additions & 30 deletions docroot/themes/humsci/humsci_basic/src/scss/utilities/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -155,50 +155,49 @@
}

// Alters appearance of accordion(s) to its secondary variation
.hb-accordion-secondary {
.hb-accordion-secondary .ptype-hs-accordion details,
details.hb-accordion-secondary {
// Overriding _details.scss
.ptype-hs-accordion {
summary:not(.hb-timeline-item__summary) {
@include hb-pairing-color("border-color", "primary");
@include hb-global-color("color", "black");
summary:not(.hb-timeline-item__summary) {
@include hb-pairing-color("border-color", "primary");
@include hb-global-color("color", "black");

border-width: hb-calculate-rems(2px);
background-color: transparent;
border-width: hb-calculate-rems(2px);
background-color: transparent;

&::after {
@include hb-menu-plus-icon("black");
}
&::after {
@include hb-menu-plus-icon("black");
}

&:hover {
@include hb-pairing-color("color", "secondary");
&:hover {
@include hb-pairing-color("color", "secondary");

&::after {
@include hb-menu-minus-icon("secondary");
}
&::after {
@include hb-menu-minus-icon("secondary");
}
}
}

details[open] {
@include hb-pairing-color("border-color", "primary");
&[open] {
@include hb-pairing-color("border-color", "primary");

border-width: hb-calculate-rems(2px);
border-bottom: none;
border-width: hb-calculate-rems(2px);
border-bottom: none;

summary:not(.hb-timeline-item__summary) {
background: transparent;
border-bottom: none;
summary:not(.hb-timeline-item__summary) {
background: transparent;
border-bottom: none;

&::after {
@include hb-menu-minus-icon("black");
}
&::after {
@include hb-menu-minus-icon("black");
}
}

.revealed-details {
@include hb-pairing-color("border-color", "primary");
.revealed-details {
@include hb-pairing-color("border-color", "primary");

border-width: hb-calculate-rems(2px);
border-top: none;
}
border-width: hb-calculate-rems(2px);
border-top: none;
}
}
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 9af7fd9

Please sign in to comment.