Skip to content

Commit fb13801

Browse files
authored
Merge pull request #879 from benface/bg-round-and-space
Add `round` and `space` background-repeat utilities
2 parents f46022a + ce1812a commit fb13801

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed

__tests__/fixtures/tailwind-output-important.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,14 @@ video {
17861786
background-repeat: repeat-y !important;
17871787
}
17881788

1789+
.bg-repeat-round {
1790+
background-repeat: round !important;
1791+
}
1792+
1793+
.bg-repeat-space {
1794+
background-repeat: space !important;
1795+
}
1796+
17891797
.bg-auto {
17901798
background-size: auto !important;
17911799
}
@@ -8671,6 +8679,14 @@ video {
86718679
background-repeat: repeat-y !important;
86728680
}
86738681

8682+
.sm\:bg-repeat-round {
8683+
background-repeat: round !important;
8684+
}
8685+
8686+
.sm\:bg-repeat-space {
8687+
background-repeat: space !important;
8688+
}
8689+
86748690
.sm\:bg-auto {
86758691
background-size: auto !important;
86768692
}
@@ -15533,6 +15549,14 @@ video {
1553315549
background-repeat: repeat-y !important;
1553415550
}
1553515551

15552+
.md\:bg-repeat-round {
15553+
background-repeat: round !important;
15554+
}
15555+
15556+
.md\:bg-repeat-space {
15557+
background-repeat: space !important;
15558+
}
15559+
1553615560
.md\:bg-auto {
1553715561
background-size: auto !important;
1553815562
}
@@ -22395,6 +22419,14 @@ video {
2239522419
background-repeat: repeat-y !important;
2239622420
}
2239722421

22422+
.lg\:bg-repeat-round {
22423+
background-repeat: round !important;
22424+
}
22425+
22426+
.lg\:bg-repeat-space {
22427+
background-repeat: space !important;
22428+
}
22429+
2239822430
.lg\:bg-auto {
2239922431
background-size: auto !important;
2240022432
}
@@ -29257,6 +29289,14 @@ video {
2925729289
background-repeat: repeat-y !important;
2925829290
}
2925929291

29292+
.xl\:bg-repeat-round {
29293+
background-repeat: round !important;
29294+
}
29295+
29296+
.xl\:bg-repeat-space {
29297+
background-repeat: space !important;
29298+
}
29299+
2926029300
.xl\:bg-auto {
2926129301
background-size: auto !important;
2926229302
}

__tests__/fixtures/tailwind-output.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,14 @@ video {
17861786
background-repeat: repeat-y;
17871787
}
17881788

1789+
.bg-repeat-round {
1790+
background-repeat: round;
1791+
}
1792+
1793+
.bg-repeat-space {
1794+
background-repeat: space;
1795+
}
1796+
17891797
.bg-auto {
17901798
background-size: auto;
17911799
}
@@ -8671,6 +8679,14 @@ video {
86718679
background-repeat: repeat-y;
86728680
}
86738681

8682+
.sm\:bg-repeat-round {
8683+
background-repeat: round;
8684+
}
8685+
8686+
.sm\:bg-repeat-space {
8687+
background-repeat: space;
8688+
}
8689+
86748690
.sm\:bg-auto {
86758691
background-size: auto;
86768692
}
@@ -15533,6 +15549,14 @@ video {
1553315549
background-repeat: repeat-y;
1553415550
}
1553515551

15552+
.md\:bg-repeat-round {
15553+
background-repeat: round;
15554+
}
15555+
15556+
.md\:bg-repeat-space {
15557+
background-repeat: space;
15558+
}
15559+
1553615560
.md\:bg-auto {
1553715561
background-size: auto;
1553815562
}
@@ -22395,6 +22419,14 @@ video {
2239522419
background-repeat: repeat-y;
2239622420
}
2239722421

22422+
.lg\:bg-repeat-round {
22423+
background-repeat: round;
22424+
}
22425+
22426+
.lg\:bg-repeat-space {
22427+
background-repeat: space;
22428+
}
22429+
2239822430
.lg\:bg-auto {
2239922431
background-size: auto;
2240022432
}
@@ -29257,6 +29289,14 @@ video {
2925729289
background-repeat: repeat-y;
2925829290
}
2925929291

29292+
.xl\:bg-repeat-round {
29293+
background-repeat: round;
29294+
}
29295+
29296+
.xl\:bg-repeat-space {
29297+
background-repeat: space;
29298+
}
29299+
2926029300
.xl\:bg-auto {
2926129301
background-size: auto;
2926229302
}

src/plugins/backgroundRepeat.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default function() {
66
'.bg-no-repeat': { 'background-repeat': 'no-repeat' },
77
'.bg-repeat-x': { 'background-repeat': 'repeat-x' },
88
'.bg-repeat-y': { 'background-repeat': 'repeat-y' },
9+
'.bg-repeat-round': { 'background-repeat': 'round' },
10+
'.bg-repeat-space': { 'background-repeat': 'space' },
911
},
1012
variants('backgroundRepeat')
1113
)

0 commit comments

Comments
 (0)