Skip to content

Commit 394082a

Browse files
Update to use the new semantic token (renamed)
1 parent ff47620 commit 394082a

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"css-rtl": "cross-env NODE_ENV=RTL postcss --config build/postcss.config.mjs --dir \"dist/css\" --ext \".rtl.css\" \"dist/css/*.css\" \"!dist/css/*.min.css\" \"!dist/css/*.rtl.css\"",
4242
"css-lint": "npm-run-all --aggregate-output --continue-on-error --parallel css-lint-*",
4343
"css-lint-stylelint": "stylelint \"**/*.{css,scss}\" --cache --cache-location .cache/.stylelintcache",
44-
"css-lint-vars": "fusv scss/ site/assets/scss/ --ignoreFiles **/tokens/_raw.scss,**/tokens/_semantic.scss",
44+
"css-lint-vars": "fusv scss/ site/assets/scss/ --ignoreFiles **/tokens/_component.scss,**/tokens/_raw.scss,**/tokens/_semantic.scss",
4545
"css-minify": "npm-run-all --aggregate-output --parallel css-minify-*",
4646
"css-minify-main": "cleancss -O1 --format breakWith=lf --with-rebase --source-map --source-map-inline-sources --output dist/css/ --batch --batch-suffix \".min\" \"dist/css/*.css\" \"!dist/css/*.min.css\" \"!dist/css/*rtl*.css\"",
4747
"css-minify-rtl": "cleancss -O1 --format breakWith=lf --with-rebase --source-map --source-map-inline-sources --output dist/css/ --batch --batch-suffix \".min\" \"dist/css/*rtl.css\" \"!dist/css/*.min.css\"",

scss/_containers.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
.container-max-width {
6161
@include media-breakpoint-up(get-breakpoint-from-width()) {
6262
--#{$prefix}container-margin-x: #{map-get($container-fluid-margin, get-breakpoint-from-width())};
63-
max-width: $ouds-grid-max-width;
63+
max-width: $ouds-size-max-width-grid-grid;
6464

6565
.row {
6666
--#{$prefix}gutter-x: #{map-get($grid-gutter-widths, get-breakpoint-from-width())};

scss/mixins/_breakpoints.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128

129129
// OUDS mod
130130
// Get the breakpoint infix corresponding to a given width
131-
@function get-breakpoint-from-width($width: $ouds-grid-max-width, $breakpoints: $grid-breakpoints) {
131+
@function get-breakpoint-from-width($width: $ouds-size-max-width-grid-grid, $breakpoints: $grid-breakpoints) {
132132
$breakpoint-infix: "";
133133
@each $infix, $value in $grid-breakpoints {
134134
@if $width >= $value {

site/content/docs/0.0/layout/containers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ Comparison between `.container-fluid` with `.container-max-width` and `.containe
121121

122122
### Custom max width
123123

124-
If necessary, in specific cases, you can define a custom maximum width for the fluid container by overriding the `$ouds-grid-max-width` variable before importing the OUDS Web SCSS files.
124+
If necessary, in specific cases, you can define a custom maximum width for the fluid container by overriding the `$ouds-size-max-width-grid-grid` variable before importing the OUDS Web SCSS files.
125125

126-
This adjustment will apply to all containers using the `.container-max-width`class, ensuring that your layout stays within the specific width. Once the layout exceeds the `$ouds-grid-max-width` value at larger breakpoints, the container's margins and gutter values will remain unchanged.
126+
This adjustment will apply to all containers using the `.container-max-width`class, ensuring that your layout stays within the specific width. Once the layout exceeds the `$ouds-size-max-width-grid-grid` value at larger breakpoints, the container's margins and gutter values will remain unchanged.
127127

128128
```scss
129129
@import "../node_modules/ouds-web/scss/functions";
130130

131-
$ouds-grid-max-width: 3500px; // Custom container max width
131+
$ouds-size-max-width-grid-grid: 3500px; // Custom container max width
132132

133133
@import "../node_modules/ouds-web/tokens/raw";
134134
@import "../node_modules/ouds-web/tokens/semantic";

site/content/docs/0.0/migration-from-boosted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Technically, it means that you can get rid of the following things:
269269
<li><code>$ouds-grid-margin-400</code></li>
270270
<li><code>$ouds-grid-margin-500</code></li>
271271
<li><code>$ouds-grid-margin-700</code></li>
272-
<li><code>$ouds-grid-max-width</code></li>
272+
<li><code>$ouds-size-max-width-grid-grid</code></li>
273273
<li><code>$ouds-grid-md-column-gap</code></li>
274274
<li><code>$ouds-grid-md-margin</code></li>
275275
<li><code>$ouds-grid-md-min-width</code></li>

site/content/docs/0.0/migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ toc: true
212212
<li><code>$ouds-grid-margin-400</code></li>
213213
<li><code>$ouds-grid-margin-500</code></li>
214214
<li><code>$ouds-grid-margin-700</code></li>
215-
<li><code>$ouds-grid-max-width</code></li>
215+
<li><code>$ouds-size-max-width-grid-grid</code></li>
216216
<li><code>$ouds-grid-md-column-gap</code></li>
217217
<li><code>$ouds-grid-md-margin</code></li>
218218
<li><code>$ouds-grid-md-min-width</code></li>

0 commit comments

Comments
 (0)