Skip to content

Commit

Permalink
Update: Control content max width via variable (fixes adaptlearning#379
Browse files Browse the repository at this point in the history
  • Loading branch information
guywillis authored Dec 7, 2022
1 parent aba0d60 commit d4b3f99
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions less/_defaults/_spacing-containers.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

@max-width: 90rem;

@max-content-width: @device-width-large;
@max-page-width: @max-width;

// Navigation height
// --------------------------------------------------
@navigation-height: @icon-size + (@icon-padding * 2);
Expand Down
2 changes: 1 addition & 1 deletion less/project/columns.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
.make-columns(sm, @device-width-small, 12);
.make-columns(md, @device-width-medium, 12);
.make-columns(lg, @device-width-large, 12);
.make-columns(xl, @max-width, 12);
.make-columns(xl, @max-page-width, 12);
2 changes: 1 addition & 1 deletion less/project/theme-extras.less
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
// Extend width of block to max page width
// --------------------------------------------------
.block.extend-container .block__inner {
max-width: @max-width;
max-width: @max-page-width;
}

// DEPRECATED in favour of bg-color-mixin
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "adapt-contrib-vanilla",
"version": "9.0.0",
"framework": ">=5.22.9",
"framework": ">=5.24.2",
"homepage": "https://github.com/adaptlearning/adapt-contrib-vanilla",
"bugs": "https://github.com/adaptlearning/adapt-contrib-vanilla/issues",
"theme": "vanilla",
Expand Down

0 comments on commit d4b3f99

Please sign in to comment.