Skip to content

Commit

Permalink
8.2.18
Browse files Browse the repository at this point in the history
- D8CORE-4864: making the selector more specific to only get the /news list  page and not the paragraph lists (#137)
- D8CORE-4342: removing the extra size classes to the dek (#139)
- D8CORE-3496: fixing spacing around the related 3 across cards (#138)
  • Loading branch information
pookmish authored Nov 19, 2021
2 parents bca7ac2 + 1cf855e commit 29740d4
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 13 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Stanford News


8.x-2.18
--------------------------------------------------------------------------------
_Release Date: 2021-11-19_

- D8CORE-4864: making the selector more specific to only get the /news list page and not the paragraph lists (#137)
- D8CORE-4342: removing the extra size classes to the dek (#139)
- D8CORE-3496: fixing spacing around the related 3 across cards (#138)


8.x-2.17
--------------------------------------------------------------------------------
_Release Date: 2021-10-08_
Expand Down
2 changes: 1 addition & 1 deletion dist/css/news-list-item.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/news-node.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/news-vertical-teaser.css

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions lib/scss/components/news-list-item/_list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,12 @@

// Changing the layout for the news filtered page.
@include grid-media-max('lg') {
.left-region {
&.flex-lg-3-of-12 {
flex: auto;
max-width: 100%;
.section-news-views-views {
.left-region {
&.flex-lg-3-of-12 {
flex: auto;
max-width: 100%;
}
}
}
}
4 changes: 2 additions & 2 deletions lib/scss/components/news-node/_news-node.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@
// More news topics.
.centered-container {
&.section-more-topics {
@include modular-spacing('margin-bottom', 2);
@include modular-spacing('margin-bottom', 5);
}
}

// Node View - More news 3 across cards.
.stanford-news-vertical-teaser-term {
> h2 {
@include modular-spacing('margin-bottom', 2);
@include modular-spacing('margin-bottom', 1);

text-align: center;
}
Expand Down
2 changes: 1 addition & 1 deletion stanford_news.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Stanford news items and views.'
core_version_requirement: ^8.8 || ^9
package: Stanford
version: 8.x-2.17
version: 8.x-2.18
dependencies:
- allowed_formats:allowed_formats
- auto_entitylabel:auto_entitylabel
Expand Down
4 changes: 1 addition & 3 deletions stanford_news.module
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ function stanford_news_theme() {
* Implements hook_preprocess_HOOK().
*/
function stanford_news_preprocess_field__su_news_dek(&$variables) {
$variables['attributes']['class'][] = 'flex-12-of-12';
$variables['attributes']['class'][] = 'flex-md-10-of-12';
$variables['attributes']['class'][] = 'flex-xl-7-of-12';
$variables['attributes']['class'][] = 'flex-10-of-12';
}

/**
Expand Down

0 comments on commit 29740d4

Please sign in to comment.