Skip to content

Commit 831b9c3

Browse files
committed
Clips cols with backgrounds to content box on desktop, then shifts to padding box upon collapse for mobile
1 parent b4ced7b commit 831b9c3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/scss/components/_grid.scss

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// bg clipping at gutter for cols
2+
[class*="col"] {
3+
&[class*="bg-"] {
4+
background-clip:content-box;
5+
}
16
}
27

38
// Pulls information for each breakpoint
@@ -22,6 +27,10 @@
2227
padding:0;
2328
}
2429

30+
// switches bg clipping back to the edge of padding
31+
[class^="col-#{$size}"] {
32+
&[class*="bg-"] {
33+
background-clip:padding-box !important;
2534
}
2635
}
2736
}

0 commit comments

Comments
 (0)