Skip to content

Commit

Permalink
Hotfix/FP-1338: Offset Content to be Full Width on Narrow Window (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Nov 11, 2021
1 parent 607a74c commit c23eb3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Styleguide Objects.OffsetContent
[class*="o-offset-content--"] {
--offset-distance: 8.5vw; /* NOTE: Value is from Texascale.org 2020 */
--buffer: 30px; /* double Bootstrap `.col` padding */
--max-width: initial;
}

@media only screen and (--medium-and-above) {
Expand All @@ -27,8 +26,8 @@ Styleguide Objects.OffsetContent
.o-offset-content--left + .o-offset-content--left { clear: left; }
}
@media only screen and (--medium-and-above) and (--max-wide-and-below) {
[class*="c-offset-content--"] {
--max-width: 50%;
[class*="o-offset-content--"] {
max-width: 50%;
}
/* Apply negative margin only when using offset value */
.o-offset-content--right {
Expand Down

0 comments on commit c23eb3f

Please sign in to comment.