Skip to content

Commit

Permalink
Merge branch 'fk-stnfd-sprint-48' of github.com:SU-HSDO/suhumsci into…
Browse files Browse the repository at this point in the history
… shs-5568
  • Loading branch information
cienvaras committed Apr 18, 2024
2 parents 4cc4227 + bba5a7d commit b22fa77
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endif %}

{% set timeline_content = timeline %}
{% if timeline['field_hs_time_title'] is defined %}
{% if timeline['field_hs_time_title'] is defined and timeline['field_hs_time_title'][0] is defined %}
{% set timeline_content %}
<{{ heading_tag }} class="hb-timeline__title">
{{ timeline['field_hs_time_title'] }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Stanford HumSci'
type: profile
description: 'Installation profile for HumSci Drupal'
version: 10.1.9
version: 10.2.1
core_version_requirement: '^9.4 || ^10'
themes:
- material_admin
Expand Down
2 changes: 1 addition & 1 deletion docroot/themes/humsci/humsci_airy/css/humsci_airy.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ const restrictHeight = () => {
textBoxes.forEach(
(textBox) => isSpotlightTextBox(textBox) && setMinHeight(textBox, maxBoxHeight),
);

// Find images inside each slider.
const imageWrapper = slide.querySelector('.hb-spotlight__image-wrapper');
if (slide.classList.contains('paragraph--type--hs-sptlght-slder') && !imageWrapper) {
slide.classList.add('paragraph--type--hs-sptlght-slder--no-image');
}
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,14 @@
@include hb-pairing-color('border-color', 'secondary-darken-12');

&:hover {
@include hb-pairing-color('background-color', 'secondary-darken-12');
@include hb-pairing-color('border-color', 'secondary-darken-12');
@include hb-pairing-color(
'background-color',
'secondary-darken-12'
);
@include hb-pairing-color(
'border-color',
'secondary-darken-12'
);
@include hb-global-color('color', 'white');
}
}
Expand Down Expand Up @@ -149,3 +155,40 @@
}
}
}

.paragraph--type--hs-sptlght-slder.paragraph--type--hs-sptlght-slder--no-image {
@media only screen and (max-width: 767px) {
.hb-spotlight {
height: 100%;
}

.slick-track {
bottom: 0;
height: 100%;
}

.slick__slide > div:first-child {
height: 100%;
}

.slick-prev {
@include hb-traditional {
bottom: 15% !important;
}

@include hb-themes(('colorful', 'airy')) {
bottom: 25% !important;
}
}

.slick-next {
@include hb-traditional {
bottom: 55% !important;
}

@include hb-themes(('colorful', 'airy')) {
bottom: 55% !important;
}
}
}
}

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docroot/themes/humsci/humsci_colorful/js/index.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docroot/themes/humsci/humsci_traditional/js/index.js

Large diffs are not rendered by default.

0 comments on commit b22fa77

Please sign in to comment.