Skip to content

Commit

Permalink
renaming --#{$prefix}margin-x to --#{$prefix}container-margin-x
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahiss committed Oct 10, 2024
1 parent f33d68a commit a86f0bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scss/_containers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

.max-width-public-website {
@include media-breakpoint-up(2xl) {
--#{$prefix}margin-x: #{$ouds-grid-2xl-margin};
--#{$prefix}container-margin-x: #{$ouds-grid-2xl-margin};
max-width: $ouds-grid-2xl-max-width-public-website;

.row {
Expand Down
6 changes: 3 additions & 3 deletions scss/mixins/_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
--#{$prefix}gutter-x: #{$gutter};
--#{$prefix}gutter-y: 0;
width: 100%;
padding-right: var(--#{$prefix}margin-x); // OUDS mod: instead of `calc(var(--#{$prefix}gutter-x) * .5)`
padding-left: var(--#{$prefix}margin-x); // OUDS mod: instead of `calc(var(--#{$prefix}gutter-x) * .5)`
padding-right: var(--#{$prefix}container-margin-x); // OUDS mod: instead of `calc(var(--#{$prefix}gutter-x) * .5)`
padding-left: var(--#{$prefix}container-margin-x); // OUDS mod: instead of `calc(var(--#{$prefix}gutter-x) * .5)`
margin-right: auto;
margin-left: auto;

// OUDS mod: gutter depends on breakpoints
@each $breakpoint, $container-fluid-marg in $container-fluid-margin {
@include media-breakpoint-up($breakpoint) {
--#{$prefix}margin-x: #{$container-fluid-marg};
--#{$prefix}container-margin-x: #{$container-fluid-marg};
}
}
// End mod
Expand Down

0 comments on commit a86f0bf

Please sign in to comment.