Skip to content

Commit

Permalink
Fix OUDS mod comments in some Sass files
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Oct 24, 2024
1 parent e3b0c10 commit 2c3c07d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ $grid-breakpoints: (
) !default;
// scss-docs-end grid-breakpoints

// This weird change is here to have the map in the correct ascending order for the checks right after.
// This change implies that the `$enbale-bootstrap-compatibility` is set before the import of this file.
// This adjustment ensures the map is in the correct ascending order for the checks that follow.
// Note: This requires `$enable-bootstrap-compatibility` to be set before importing this file.
@if $enable-bootstrap-compatibility {
$breakpoint-2xl: map-get($grid-breakpoints, 2xl);
$breakpoint-3xl: map-get($grid-breakpoints, 3xl);
Expand Down
2 changes: 1 addition & 1 deletion scss/mixins/_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// scss-docs-start container-mixins
@mixin make-container($gutter: $container-padding-x) {
// OUDS mod: no gutter definition inside containers
// OUDS mod: no CSS variable gutter definition inside containers
width: 100%;
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)`
Expand Down
6 changes: 3 additions & 3 deletions scss/mixins/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Generate semantic grid columns with these mixins.

@mixin make-row($gutter: $grid-gutter-width) {
// OUDS mod: definition of this variable is handled differently, see below.
// OUDS mod: `--#{$prefix}gutter-x` is handled below
--#{$prefix}gutter-y: 0;
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -122,12 +122,12 @@
@each $key, $value in $gutters {
.g#{$infix}-#{$key},
.gx#{$infix}-#{$key} {
--#{$prefix}gutter-x: #{$value if($enable-important-utilities, !important, null)};
--#{$prefix}gutter-x: #{$value if($enable-important-utilities, !important, null)}; // OUDS mod: `$enable-important-utilities` check is added
}

.g#{$infix}-#{$key},
.gy#{$infix}-#{$key} {
--#{$prefix}gutter-y: #{$value if($enable-important-utilities, !important, null)};
--#{$prefix}gutter-y: #{$value if($enable-important-utilities, !important, null)}; // OUDS mod: `$enable-important-utilities` check is added
}
}
}
Expand Down

0 comments on commit 2c3c07d

Please sign in to comment.