Skip to content

Commit

Permalink
Theme sass cleanup bug fixes (#1561)
Browse files Browse the repository at this point in the history
* Theme sass cleanup bug fixes,
  • Loading branch information
cienvaras authored Jun 24, 2024
1 parent e6362c8 commit c330f85
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions docroot/themes/humsci/humsci_basic/src/scss/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ $fa-font-path: "../../humsci_basic/node_modules/@fortawesome/fontawesome-free/we
'utilities/wysiwyg-text-area',
'utilities/general',
'utilities/lists',
'utilities/card-images',
'utilities/raised-cards',
'utilities/tables',
'utilities/display-more-link-text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,21 @@
margin-bottom: hb-calculate-rems(14px);
}
}

// Warbler color pairing override.
@include hb-traditional {
.ht-pairing-warbler &:not(.hb-dark-pattern) {
a:not([class]),
a.mailto,
a[href^='mailto:'],
a.ext {
color: var(--palette--tertiary);

&:hover,
&:focus {
color: var(--palette--tertiary-darken-20);
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Loops through the number of available columns (12). Classes determine the number
// of columns that the image in cards will span.
@mixin hb-image-sizes() {
@for $i from 1 through 12 {
&-#{$i}-of-12 {
.hb-card__graphics {
@include flex-column($i);
}

@include grid-media-min($hb-horizontal-card-breakpoint) {
.hb-card--horizontal:not(.hb-card--no-image) .hb-card__content {
@include flex-column(12 - $i);
}
}
}
}
}

.hb-card-image {
// Creates the base classes that are not tied to a media query
// Example: .hb-card-image-4-of-12
@include hb-image-sizes;

// Loops though the media query breakpoints to create responsive classes
// Example: .hb-card-image-md-4-of-12
@each $bp-key, $bp-value in $hb-grid-media {
@include grid-media-min($bp-key) {
&-#{$bp-key} {
@include hb-image-sizes;
}
}
}
}

0 comments on commit c330f85

Please sign in to comment.