Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Add .container--no-padding class
Browse files Browse the repository at this point in the history
  • Loading branch information
rensatsu committed Sep 5, 2021
1 parent 2ed11c4 commit 8a68bec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scss/blueberry/components/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ $container-padding: 1rem;

.container {
--container-width: #{$container-width-normal};
width: min(var(--container-width), 100% - #{$container-padding});
--container-padding: #{$container-padding};
width: min(var(--container-width), 100% - var(--container-padding));

margin-left: auto;
margin-right: auto;
Expand All @@ -17,6 +18,10 @@ $container-padding: 1rem;
&.container-narrow {
--container-width: #{$container-width-narrow};
}

&.container--no-padding {
--container-padding: 0px;
}
}

.grid {
Expand Down

0 comments on commit 8a68bec

Please sign in to comment.