Skip to content

Commit

Permalink
fix: fix wrapper__wide element
Browse files Browse the repository at this point in the history
The wrapper wide was smaller than the actual wrapper on screens less than xl
  • Loading branch information
Jamiewarb committed Dec 28, 2020
1 parent bb5f974 commit c4380b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/objects/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ module.exports = function ({ addComponents, config, theme, variants, e }) {
...generatePaddingFor(0),

'&__wide': {
marginLeft: 'calc(-75vw / 2 + 100% / 2)',
marginRight: 'calc(-75vw / 2 + 100% / 2)',
maxWidth: 'none',
maxWidth: '100vw',
'@screen xl': {
marginLeft: 'calc(-90vw / 2 + 100% / 2)',
marginRight: 'calc(-90vw / 2 + 100% / 2)',
},
},
'&__bleed': {
marginLeft: 'calc(-100vw / 2 + 100% / 2)',
Expand Down
2 changes: 2 additions & 0 deletions test/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h1 class="u-text-blue-500 u-mb-4">Lorem Ipsum</h1>
eleifend, tempus est eu, facilisis turpis. Duis quis sagittis libero. Donec vitae eros ac turpis mattis
vulputate.</p>
</div>
<div class="u-p-12 u-bg-indigo-300 u-wrapper__wide">This is a wide wrapper</div>
<div class="u-p-12 u-bg-blue-300 u-wrapper__bleed">This is a bleed wrapper</div>
</div>
</div>
</body>
Expand Down

0 comments on commit c4380b3

Please sign in to comment.