Skip to content

Commit

Permalink
Update list and teaser max-width for full-width pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw committed Oct 13, 2023
1 parent 6269a65 commit bfa0411
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 41 additions & 9 deletions src/scss/theme/_list-paragraphs.scss
Original file line number Diff line number Diff line change
@@ -1,35 +1,67 @@
@charset "UTF-8";

// .layout-paragraphs-two-column,
// .layout--layout-paragraphs-three-column,
.layout--layout-paragraphs-one-column {
.ptype-stanford-lists,
.paragraph--type--stanford-lists,
.ptype-stanford-entity,
.paragraph--type--stanford-entity {
max-width: calc(100vw - 40px);

// layout full width
@include grid-media-max('2xl') {
max-width: 1500px;
max-width: calc(83.33333% - 8px);
}

@include grid-media-max('xl') {
max-width: calc(100vw - 200px);
max-width: calc(83.33333% - 6.66667px);
}

@include grid-media-max('lg') {
max-width: calc(100vw - 160px);
max-width: calc(83.33333% - 6px);
}

@include grid-media-max('md') {
max-width: calc(100vw - 100px);
}
// @include grid-media-max('md') {
// max-width: calc(83.33333% - 3.33333px);
// }

@include grid-media-max('sm') {
max-width: calc(100vw - 60px);
max-width: calc(83.33333% - 3.33333px);
}


// layout none page
// max-width: calc(100vw - 40px);

// @include grid-media-max('2xl') {
// max-width: 1500px;
// }

// @include grid-media-max('xl') {
// max-width: calc(100vw - 200px);
// }

// @include grid-media-max('lg') {
// max-width: calc(100vw - 160px);
// }

// @include grid-media-max('md') {
// max-width: calc(100vw - 100px);
// }

// @include grid-media-max('sm') {
// max-width: calc(100vw - 60px);
// }

// Individual teaser max-width
.su-card {
max-width: 100%;
}
}
}

// Remove padding so lists and teasers are aligned with h1
// .flex-container {
// .main-region {
// padding-left: 0;
// }
// }

0 comments on commit bfa0411

Please sign in to comment.