Skip to content

Commit

Permalink
fix: added fix on center layout
Browse files Browse the repository at this point in the history
  • Loading branch information
vycke committed Oct 24, 2024
1 parent 4ed9d2d commit 7f46798
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion feo.css
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
@layer layout {
.center {
--layout-threshold: 100%;
max-width: var(--layout-threshold);
max-width: min(100%, var(--layout-threshold));
width: 100%;
margin-left: auto;
margin-right: auto;
Expand Down
2 changes: 1 addition & 1 deletion feo.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build:11ty": "npx @11ty/eleventy && yarn css:docs"
},
"name": "feo-css",
"version": "5.3.0",
"version": "5.3.1",
"main": "feo.css",
"description": "A tiny CSS framework",
"repository": "https://github.com/vyckes/feo-css.git",
Expand Down
2 changes: 1 addition & 1 deletion public/feo.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/layout/center.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
margin-inline: auto;
width: 100%;
/* required to ensure certain elements that should be side-scrollable don't push out the layout at 100% */
max-width: var(--layout-threshold);
max-width: min(100%, var(--layout-threshold));
}

0 comments on commit 7f46798

Please sign in to comment.