Skip to content

Commit

Permalink
Restore auto margins
Browse files Browse the repository at this point in the history
  • Loading branch information
colepeters committed Jun 27, 2024
1 parent 03ea3f3 commit add4f11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions v7/classes/custom/margin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ export default function margin(state = {}) {
output += `.m${dir[0]}${breakpoint}-none { margin-${dir[1]}: 0; }`
})

// Auto margins
output += '\n'
output += `.m-auto${breakpoint} { margin: auto; }`
directionEntries.forEach(dir => {
output += '\n'
output += `.m${dir[0]}${breakpoint}-auto { margin-${dir[1]}: auto; }`
})

// Margin scale
if (sizes.length) {
sizes.forEach(size => {
Expand Down

0 comments on commit add4f11

Please sign in to comment.