diff --git a/.circleci/config.yml b/.circleci/config.yml index 62692fd..1cd8304 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,21 +47,6 @@ back_to_dev: &back_to_dev composer global require SU-SWS/stanford-caravan:dev-8.x-2.x ~/.composer/vendor/bin/sws-caravan back-to-dev ${CIRCLE_TAG} ${CIRCLE_WORKING_DIRECTORY} -d8_codeception: &d8_codeception - <<: *defaults - steps: - - checkout: - path: /var/www/test - - run: - name: Run Codeception Tests - command: | - composer global require SU-SWS/stanford-caravan:dev-8.x-1.x - ~/.composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=/var/www/test - - store_test_results: - path: /var/www/html/artifacts/behat - - store_artifacts: - path: /var/www/html/artifacts - d9_codeception: &d9_codeception <<: *defaults steps: @@ -83,8 +68,6 @@ jobs: <<: *code_coverage run-back-to-dev: <<: *back_to_dev - run-d8-codeception: - <<: *d8_codeception run-d9-codeception: <<: *d9_codeception @@ -104,7 +87,6 @@ workflows: tests: jobs: - run-coverage - - run-d8-codeception - run-d9-codeception # Re-test every sunday in case this code becomes stale. sundays: diff --git a/CHANGELOG.md b/CHANGELOG.md index fb615b8..9cb4da2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Stanford News +8.x-2.19 +-------------------------------------------------------------------------------- +_Release Date: 2022-03-17_ + +- Updated views_infinite_scroll module (#144) +- D8CORE-5568 Fix news list template when no date is available (#143) +- D8CORE-4362: fixing the padding after a banner image on the news page. (#142) +- Removed D8 Tests + + 8.x-2.18 -------------------------------------------------------------------------------- _Release Date: 2021-11-19_ diff --git a/composer.json b/composer.json index a552e57..fe186d3 100644 --- a/composer.json +++ b/composer.json @@ -96,7 +96,7 @@ "drupal/rabbit_hole": "^1.0-beta6", "drupal/taxonomy_menu": "dev-3.x", "drupal/views_block_filter_block": "^1.0", - "drupal/views_infinite_scroll": "^1.6", + "drupal/views_infinite_scroll": "^2.0", "drupal/views_taxonomy_term_name_depth": "^7.0", "su-sws/drupal-patches": "^8.0", "su-sws/jumpstart_ui": "^8.1", diff --git a/dist/css/news-node.css b/dist/css/news-node.css index e072af8..af363dd 100644 --- a/dist/css/news-node.css +++ b/dist/css/news-node.css @@ -1 +1 @@ -.byline-social-media-wrapper>div{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}@media only screen and (min-width:0){.byline-social-media-wrapper.centered-container{margin-bottom:9.6rem}}@media only screen and (min-width:768px){.byline-social-media-wrapper.centered-container{margin-bottom:10.8rem}}@media only screen and (min-width:1500px){.byline-social-media-wrapper.centered-container{margin-bottom:11.4rem}}@media only screen and (max-width:991px) and (min-width:0){.byline-social-media-wrapper.centered-container{margin-bottom:3.2rem}}@media only screen and (max-width:991px) and (min-width:768px){.byline-social-media-wrapper.centered-container{margin-bottom:3.6rem}}@media only screen and (max-width:991px) and (min-width:1500px){.byline-social-media-wrapper.centered-container{margin-bottom:3.8rem}}.news-date-pipe-byline{font-size:1.8rem;line-height:1.3;margin:0;display:inline-block}@media (max-width:767px){.news-date-pipe-byline{font-size:1.6rem}}.news-date-pipe-byline div{display:inline-block}@media only screen and (min-width:0){.news-date-pipe-byline span:last-child{margin-right:3.2rem}}@media only screen and (min-width:768px){.news-date-pipe-byline span:last-child{margin-right:3.6rem}}@media only screen and (min-width:1500px){.news-date-pipe-byline span:last-child{margin-right:3.8rem}}@media only screen and (min-width:0){.su-news-topics{margin-top:9.6rem}}@media only screen and (min-width:768px){.su-news-topics{margin-top:10.8rem}}@media only screen and (min-width:1500px){.su-news-topics{margin-top:11.4rem}}@media only screen and (min-width:768px){.su-news-topics{font-size:2.1rem;line-height:1.7}}.su-news-topics a{color:#b1040e;text-decoration:none}.su-news-topics span:after{content:",";margin-right:5px;position:relative}.su-news-topics span:last-child:after{content:none}.section-more-topics{border-top:1px solid #e5e5e5}.section-more-topics h2{color:#2e2d29;font-weight:600;margin-bottom:0}@media only screen and (min-width:0){.section-more-topics h2{padding-top:1.6rem}}@media only screen and (min-width:768px){.section-more-topics h2{padding-top:1.8rem}}@media only screen and (min-width:1500px){.section-more-topics h2{padding-top:1.9rem}}@media only screen and (min-width:768px){.section-more-topics h2{font-size:2.1rem;line-height:1.7}}.section-more-topics .su-news-topics{margin:0}@media only screen and (min-width:768px){.section-more-topics .su-news-topics{font-size:2.1rem;line-height:1.7}}.section-more-topics .su-news-topics a{font-weight:400}@media only screen and (min-width:0){.centered-container.section-more-topics{margin-bottom:6.4rem}}@media only screen and (min-width:768px){.centered-container.section-more-topics{margin-bottom:7.2rem}}@media only screen and (min-width:1500px){.centered-container.section-more-topics{margin-bottom:7.6rem}}.stanford-news-vertical-teaser-term>h2{text-align:center}@media only screen and (min-width:0){.stanford-news-vertical-teaser-term>h2{margin-bottom:2.31rem}}@media only screen and (min-width:768px){.stanford-news-vertical-teaser-term>h2{margin-bottom:2.6rem}}@media only screen and (min-width:1500px){.stanford-news-vertical-teaser-term>h2{margin-bottom:2.74rem}}@media only screen and (min-width:0){.su-news-headline{margin-bottom:4rem}}@media only screen and (min-width:768px){.su-news-headline{margin-bottom:4.5rem}}@media only screen and (min-width:1500px){.su-news-headline{margin-bottom:4.75rem}}@media only screen and (min-width:0){.su-news-headline{margin-top:3.2rem}}@media only screen and (min-width:768px){.su-news-headline{margin-top:3.6rem}}@media only screen and (min-width:1500px){.su-news-headline{margin-top:3.8rem}}.su-news-headline h1{font-size:3.0517578125em}@media only screen and (min-width:768px){.su-news-dek{font-size:2.1rem;line-height:1.7}}@media only screen and (min-width:0){.su-news-dek{margin-bottom:2.31rem}}@media only screen and (min-width:768px){.su-news-dek{margin-bottom:2.6rem}}@media only screen and (min-width:1500px){.su-news-dek{margin-bottom:2.74rem}}.su-news-banner iframe,.su-news-banner img,.su-news-banner picture{min-width:100%;width:100%}@media only screen and (min-width:768px){.su-news-banner iframe{min-height:450px}}@media only screen and (min-width:992px){.su-news-banner iframe{min-height:550px}}@media only screen and (min-width:0){.section-banner-media{margin-bottom:5.12rem}}@media only screen and (min-width:768px){.section-banner-media{margin-bottom:5.76rem}}@media only screen and (min-width:1500px){.section-banner-media{margin-bottom:6.08rem}}.su-news-banner-media-caption{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#53565a;font-size:1.4rem;line-height:1.3;text-align:center}@media only screen and (min-width:768px){.su-news-banner-media-caption{font-size:1.6rem}}@media only screen and (min-width:0){.su-news-banner-media-caption{padding-left:1.6rem;padding-right:1.6rem}}@media only screen and (min-width:768px){.su-news-banner-media-caption{padding-left:1.8rem;padding-right:1.8rem}}@media only screen and (min-width:1500px){.su-news-banner-media-caption{padding-left:1.9rem;padding-right:1.9rem}}@media only screen and (min-width:0){.su-news-banner-media-caption{margin-top:2.31rem;margin-bottom:3.2rem}}@media only screen and (min-width:768px){.su-news-banner-media-caption{margin-top:2.6rem;margin-bottom:3.6rem}}@media only screen and (min-width:1500px){.su-news-banner-media-caption{margin-top:2.74rem;margin-bottom:3.8rem}}.news-social-media{font-size:1.8rem;line-height:1.3}@media (max-width:767px){.news-social-media{font-size:1.6rem}}@media only screen and (max-width:991px) and (min-width:0){.news-social-media{margin-bottom:3.2rem}}@media only screen and (max-width:991px) and (min-width:768px){.news-social-media{margin-bottom:3.6rem}}@media only screen and (max-width:991px) and (min-width:1500px){.news-social-media{margin-bottom:3.8rem}}@media (max-width:991px){.news-social-media div:first-of-type{padding-left:0}}.news-social-media a{color:#d2d3d4;text-decoration:none}.news-social-media a span{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.news-social-media a.su-link--external:after,.news-social-media a svg.mailto{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(100%);clip-path:inset(100%);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.news-social-media i{font-size:2.5rem}@media (max-width:767px){.news-social-media i{font-size:2rem}}.news-social-media i:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-style:normal;font-variant:normal;font-weight:400;line-height:1;color:#2e2d29;font-family:Font Awesome\ 5 Brands;font-weight:600;-webkit-transition:color .25s ease-out;transition:color .25s ease-out}.news-social-media div{padding-right:10px;padding-left:10px;display:inline-block;position:relative;top:-5px;width:auto}.news-social-media .widget-wrapper-forward img,.news-social-media .widget-wrapper-print img{height:25px;position:relative;top:4px}.su-news-header__social-facebook i:before{content:"\f39e"}.su-news-header__social-facebook:focus i:before,.su-news-header__social-facebook:hover i:before{color:#3b579d}.su-news-header__social-linkedin i:before{content:"\f0e1"}.su-news-header__social-linkedin:focus i:before,.su-news-header__social-linkedin:hover i:before{color:#0077b5}.su-news-header__social-twitter i:before{content:"\f099"}.su-news-header__social-twitter:focus i:before,.su-news-header__social-twitter:hover i:before{color:#1da1f2}.su-news-header__social-forward i:before{content:"\f0e0";font-family:unset}.su-news-header__social-forward:focus i:before,.su-news-header__social-forward:hover i:before{color:#006cb8}.su-news-header__social-print i:before{content:"\f02f";font-family:unset}.su-news-header__social-print:focus i:before,.su-news-header__social-print:hover i:before{color:#006cb8}.mailchimp-magazine-block.flex-8-of-12{margin:0 auto}.mailchimp-magazine-block #mc_embed_signup_scroll{border:0;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.25);box-shadow:0 1px 2px rgba(0,0,0,.25);background-color:#f4f4f4;text-align:center}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-bottom:4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-bottom:4.5rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-bottom:4.75rem}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-left:4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-left:4.5rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-left:4.75rem}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-right:4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-right:4.5rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-right:4.75rem}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll{margin-bottom:9.6rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll{margin-bottom:10.8rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll{margin-bottom:11.4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll p{font-size:2.1rem;line-height:1.7}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll p{margin-top:1.6rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll p{margin-top:1.8rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll p{margin-top:1.9rem}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll form{margin-bottom:1.6rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll form{margin-bottom:1.8rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll form{margin-bottom:1.9rem}}.mailchimp-magazine-block #mc_embed_signup_scroll h2{font-size:1.5625em;letter-spacing:-.012em;margin:0}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll h2{padding-top:4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll h2{padding-top:4.5rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll h2{padding-top:4.75rem}}.mailchimp-magazine-block #mc_embed_signup_scroll .mc_signup_submission_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mailchimp-magazine-block #mc_embed_signup_scroll .mc-field-group{float:none}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll .mc-field-group input{font-size:2.1rem;line-height:1.7}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll .button{margin-left:1.6rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll .button{margin-left:1.8rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll .button{margin-left:1.9rem}}.mailchimp-magazine-block #mc_embed_signup_scroll form{margin-bottom:0} \ No newline at end of file +.byline-social-media-wrapper>div{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}@media only screen and (min-width:0){.byline-social-media-wrapper.centered-container{margin-bottom:9.6rem}}@media only screen and (min-width:768px){.byline-social-media-wrapper.centered-container{margin-bottom:10.8rem}}@media only screen and (min-width:1500px){.byline-social-media-wrapper.centered-container{margin-bottom:11.4rem}}@media only screen and (max-width:991px) and (min-width:0){.byline-social-media-wrapper.centered-container{margin-bottom:3.2rem}}@media only screen and (max-width:991px) and (min-width:768px){.byline-social-media-wrapper.centered-container{margin-bottom:3.6rem}}@media only screen and (max-width:991px) and (min-width:1500px){.byline-social-media-wrapper.centered-container{margin-bottom:3.8rem}}.news-date-pipe-byline{font-size:1.8rem;line-height:1.3;margin:0;display:inline-block}@media (max-width:767px){.news-date-pipe-byline{font-size:1.6rem}}.news-date-pipe-byline div{display:inline-block}@media only screen and (min-width:0){.news-date-pipe-byline span:last-child{margin-right:3.2rem}}@media only screen and (min-width:768px){.news-date-pipe-byline span:last-child{margin-right:3.6rem}}@media only screen and (min-width:1500px){.news-date-pipe-byline span:last-child{margin-right:3.8rem}}@media only screen and (min-width:0){.su-news-topics{margin-top:9.6rem}}@media only screen and (min-width:768px){.su-news-topics{margin-top:10.8rem}}@media only screen and (min-width:1500px){.su-news-topics{margin-top:11.4rem}}@media only screen and (min-width:768px){.su-news-topics{font-size:2.1rem;line-height:1.7}}.su-news-topics a{color:#b1040e;text-decoration:none}.su-news-topics span:after{content:",";margin-right:5px;position:relative}.su-news-topics span:last-child:after{content:none}.section-more-topics{border-top:1px solid #e5e5e5}.section-more-topics h2{color:#2e2d29;font-weight:600;margin-bottom:0}@media only screen and (min-width:0){.section-more-topics h2{padding-top:1.6rem}}@media only screen and (min-width:768px){.section-more-topics h2{padding-top:1.8rem}}@media only screen and (min-width:1500px){.section-more-topics h2{padding-top:1.9rem}}@media only screen and (min-width:768px){.section-more-topics h2{font-size:2.1rem;line-height:1.7}}.section-more-topics .su-news-topics{margin:0}@media only screen and (min-width:768px){.section-more-topics .su-news-topics{font-size:2.1rem;line-height:1.7}}.section-more-topics .su-news-topics a{font-weight:400}@media only screen and (min-width:0){.centered-container.section-more-topics{margin-bottom:6.4rem}}@media only screen and (min-width:768px){.centered-container.section-more-topics{margin-bottom:7.2rem}}@media only screen and (min-width:1500px){.centered-container.section-more-topics{margin-bottom:7.6rem}}.stanford-news-vertical-teaser-term>h2{text-align:center}@media only screen and (min-width:0){.stanford-news-vertical-teaser-term>h2{margin-bottom:2.31rem}}@media only screen and (min-width:768px){.stanford-news-vertical-teaser-term>h2{margin-bottom:2.6rem}}@media only screen and (min-width:1500px){.stanford-news-vertical-teaser-term>h2{margin-bottom:2.74rem}}@media only screen and (min-width:0){.su-news-headline{margin-bottom:4rem}}@media only screen and (min-width:768px){.su-news-headline{margin-bottom:4.5rem}}@media only screen and (min-width:1500px){.su-news-headline{margin-bottom:4.75rem}}@media only screen and (min-width:0){.su-news-headline{margin-top:3.2rem}}@media only screen and (min-width:768px){.su-news-headline{margin-top:3.6rem}}@media only screen and (min-width:1500px){.su-news-headline{margin-top:3.8rem}}.su-news-headline h1{font-size:3.0517578125em}@media only screen and (min-width:768px){.su-news-dek{font-size:2.1rem;line-height:1.7}}@media only screen and (min-width:0){.su-news-dek{margin-bottom:2.31rem}}@media only screen and (min-width:768px){.su-news-dek{margin-bottom:2.6rem}}@media only screen and (min-width:1500px){.su-news-dek{margin-bottom:2.74rem}}.su-news-banner iframe,.su-news-banner img,.su-news-banner picture{min-width:100%;width:100%}@media only screen and (min-width:768px){.su-news-banner iframe{min-height:450px}}@media only screen and (min-width:992px){.su-news-banner iframe{min-height:550px}}@media only screen and (min-width:0){.section-banner-media .main-region{margin-bottom:5.12rem}}@media only screen and (min-width:768px){.section-banner-media .main-region{margin-bottom:5.76rem}}@media only screen and (min-width:1500px){.section-banner-media .main-region{margin-bottom:6.08rem}}.su-news-banner-media-caption{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#53565a;font-size:1.4rem;line-height:1.3;text-align:center}@media only screen and (min-width:768px){.su-news-banner-media-caption{font-size:1.6rem}}@media only screen and (min-width:0){.su-news-banner-media-caption{padding-left:1.6rem;padding-right:1.6rem}}@media only screen and (min-width:768px){.su-news-banner-media-caption{padding-left:1.8rem;padding-right:1.8rem}}@media only screen and (min-width:1500px){.su-news-banner-media-caption{padding-left:1.9rem;padding-right:1.9rem}}@media only screen and (min-width:0){.su-news-banner-media-caption{margin-top:2.31rem}}@media only screen and (min-width:768px){.su-news-banner-media-caption{margin-top:2.6rem}}@media only screen and (min-width:1500px){.su-news-banner-media-caption{margin-top:2.74rem}}.news-social-media{font-size:1.8rem;line-height:1.3}@media (max-width:767px){.news-social-media{font-size:1.6rem}}@media only screen and (max-width:991px) and (min-width:0){.news-social-media{margin-bottom:3.2rem}}@media only screen and (max-width:991px) and (min-width:768px){.news-social-media{margin-bottom:3.6rem}}@media only screen and (max-width:991px) and (min-width:1500px){.news-social-media{margin-bottom:3.8rem}}@media (max-width:991px){.news-social-media div:first-of-type{padding-left:0}}.news-social-media a{color:#d2d3d4;text-decoration:none}.news-social-media a span{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.news-social-media a.su-link--external:after,.news-social-media a svg.mailto{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(100%);clip-path:inset(100%);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.news-social-media i{font-size:2.5rem}@media (max-width:767px){.news-social-media i{font-size:2rem}}.news-social-media i:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-style:normal;font-variant:normal;font-weight:400;line-height:1;color:#2e2d29;font-family:Font Awesome\ 5 Brands;font-weight:600;-webkit-transition:color .25s ease-out;transition:color .25s ease-out}.news-social-media div{padding-right:10px;padding-left:10px;display:inline-block;position:relative;top:-5px;width:auto}.news-social-media .widget-wrapper-forward img,.news-social-media .widget-wrapper-print img{height:25px;position:relative;top:4px}.su-news-header__social-facebook i:before{content:"\f39e"}.su-news-header__social-facebook:focus i:before,.su-news-header__social-facebook:hover i:before{color:#3b579d}.su-news-header__social-linkedin i:before{content:"\f0e1"}.su-news-header__social-linkedin:focus i:before,.su-news-header__social-linkedin:hover i:before{color:#0077b5}.su-news-header__social-twitter i:before{content:"\f099"}.su-news-header__social-twitter:focus i:before,.su-news-header__social-twitter:hover i:before{color:#1da1f2}.su-news-header__social-forward i:before{content:"\f0e0";font-family:unset}.su-news-header__social-forward:focus i:before,.su-news-header__social-forward:hover i:before{color:#006cb8}.su-news-header__social-print i:before{content:"\f02f";font-family:unset}.su-news-header__social-print:focus i:before,.su-news-header__social-print:hover i:before{color:#006cb8}.mailchimp-magazine-block.flex-8-of-12{margin:0 auto}.mailchimp-magazine-block #mc_embed_signup_scroll{border:0;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.25);box-shadow:0 1px 2px rgba(0,0,0,.25);background-color:#f4f4f4;text-align:center}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-bottom:4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-bottom:4.5rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-bottom:4.75rem}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-left:4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-left:4.5rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-left:4.75rem}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-right:4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-right:4.5rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll{padding-right:4.75rem}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll{margin-bottom:9.6rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll{margin-bottom:10.8rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll{margin-bottom:11.4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll p{font-size:2.1rem;line-height:1.7}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll p{margin-top:1.6rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll p{margin-top:1.8rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll p{margin-top:1.9rem}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll form{margin-bottom:1.6rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll form{margin-bottom:1.8rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll form{margin-bottom:1.9rem}}.mailchimp-magazine-block #mc_embed_signup_scroll h2{font-size:1.5625em;letter-spacing:-.012em;margin:0}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll h2{padding-top:4rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll h2{padding-top:4.5rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll h2{padding-top:4.75rem}}.mailchimp-magazine-block #mc_embed_signup_scroll .mc_signup_submission_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mailchimp-magazine-block #mc_embed_signup_scroll .mc-field-group{float:none}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll .mc-field-group input{font-size:2.1rem;line-height:1.7}}@media only screen and (min-width:0){.mailchimp-magazine-block #mc_embed_signup_scroll .button{margin-left:1.6rem}}@media only screen and (min-width:768px){.mailchimp-magazine-block #mc_embed_signup_scroll .button{margin-left:1.8rem}}@media only screen and (min-width:1500px){.mailchimp-magazine-block #mc_embed_signup_scroll .button{margin-left:1.9rem}}.mailchimp-magazine-block #mc_embed_signup_scroll form{margin-bottom:0} \ No newline at end of file diff --git a/dist/js/news-node.behaviors.js b/dist/js/news-node.behaviors.js index 230a76b..0dca9e1 100644 --- a/dist/js/news-node.behaviors.js +++ b/dist/js/news-node.behaviors.js @@ -1,2 +1,2 @@ -!function(t){var a={};function n(e){if(a[e])return a[e].exports;var r=a[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=a,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(r,e){if(1&e&&(r=n(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)n.d(t,a,function(e){return r[e]}.bind(null,a));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=0)}([function(e,r,t){"use strict";t.r(r);t(1)},function(e,r,t){window.Drupal.behaviors.stanford_news={attach:function(s,e){!function(e){e(".news-social-media",s).prepend('
'+Drupal.t("Print Article")+"
"),e(".news-social-media",s).prepend('
'+Drupal.t("Forward Email")+"
"),e(".news-social-media",s).prepend('
'+Drupal.t("Stanford LinkedIn")+"
"),e(".news-social-media",s).prepend('
'+Drupal.t("Stanford Twitter")+"
"),e(".news-social-media",s).prepend('
'+Drupal.t("Stanford Facebook")+"
");var r=window.location,t=e('div[property="dc:title"] h1',s).text(),a=e(".share-sub",s).text(),n="https://twitter.com/intent/tweet?url="+encodeURI(r)+"&text="+t+" "+a,i="http://www.facebook.com/sharer.php?u="+r+"&display=popup",t="https://www.linkedin.com/shareArticle?mini=true&url="+r+"&title="+t+"&summary="+a,a="mailto:?subject="+document.title+"&body="+encodeURI(document.location);e(".share-fb",s).attr({href:i}),e(".share-twitter",s).attr({href:n}),e(".share-linkedin",s).attr({href:t}),e(".share-forward",s).attr({href:a}),e(".share-print",s).attr({onclick:"window.print();return false;"})}(jQuery)}}}]); +!function(t){var a={};function i(e){if(a[e])return a[e].exports;var r=a[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=a,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(r,e){if(1&e&&(r=i(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)i.d(t,a,function(e){return r[e]}.bind(null,a));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="",i(i.s=0)}([function(e,r,t){"use strict";t.r(r);t(1)},function(e,r,t){window.Drupal.behaviors.stanford_news={attach:function(e,r){var t,a,i,n,s,o;(t=jQuery)(".news-social-media",e).prepend('
'+Drupal.t("Print Article")+"
"),t(".news-social-media",e).prepend('
'+Drupal.t("Forward Email")+"
"),t(".news-social-media",e).prepend('
'+Drupal.t("Stanford LinkedIn")+"
"),t(".news-social-media",e).prepend('
'+Drupal.t("Stanford Twitter")+"
"),t(".news-social-media",e).prepend('
'+Drupal.t("Stanford Facebook")+"
"),a=window.location,i=t('div[property="dc:title"] h1',e).text(),n=t(".share-sub",e).text(),s="https://twitter.com/intent/tweet?url="+encodeURI(a)+"&text="+i+" "+n,o="http://www.facebook.com/sharer.php?u="+a+"&display=popup",a="https://www.linkedin.com/shareArticle?mini=true&url="+a+"&title="+i+"&summary="+n,i="mailto:?subject="+document.title+"&body="+encodeURI(document.location),t(".share-fb",e).attr({href:o}),t(".share-twitter",e).attr({href:s}),t(".share-linkedin",e).attr({href:a}),t(".share-forward",e).attr({href:i}),t(".share-print",e).attr({onclick:"window.print();return false;"})}}}]); //# sourceMappingURL=news-node.behaviors.js.map \ No newline at end of file diff --git a/lib/scss/components/news-node/_news-node.scss b/lib/scss/components/news-node/_news-node.scss index f09d248..9cc33e0 100644 --- a/lib/scss/components/news-node/_news-node.scss +++ b/lib/scss/components/news-node/_news-node.scss @@ -133,14 +133,16 @@ // Node - top banner image on article .section-banner-media { - @include modular-spacing('margin-bottom', 4); + .main-region { + @include modular-spacing('margin-bottom', 4); + } } // Node field - Featured Image Caption. .su-news-banner-media-caption { @include caption; @include modular-spacing('padding', null 0); - @include modular-spacing('margin', 1 null 2); + @include modular-spacing('margin-top', 1); text-align: center; } diff --git a/stanford_news.info.yml b/stanford_news.info.yml index 0145fca..f98e30d 100644 --- a/stanford_news.info.yml +++ b/stanford_news.info.yml @@ -3,7 +3,7 @@ type: module description: 'Stanford news items and views.' core_version_requirement: ^8.8 || ^9 package: Stanford -version: 8.x-2.18 +version: 8.x-2.19 dependencies: - allowed_formats:allowed_formats - auto_entitylabel:auto_entitylabel diff --git a/templates/components/news-list/news-item-list.twig b/templates/components/news-list/news-item-list.twig index ca7cf20..7d13808 100644 --- a/templates/components/news-list/news-item-list.twig +++ b/templates/components/news-list/news-item-list.twig @@ -78,9 +78,12 @@ {# News List Date #} {%- block block_news_list_date %} - {% if news_list_publishing_date|render|striptags('')|trim is not empty %} -

{{ news_list_publishing_date|render_clean }}

- {% endif -%} + {# Since CSS Grid is used, always render an element even if it's empty. #} +
+ {% if news_list_publishing_date|render|striptags('')|trim is not empty %} +

{{ news_list_publishing_date|render_clean }}

+ {% endif -%} +
{% endblock -%}