Skip to content

Commit

Permalink
add caption-side utilities (#10470)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Warner <michaelwarner@Michaels-MacBook-Pro.local>
  • Loading branch information
MichaelAllenWarner and Michael Warner committed Feb 7, 2023
1 parent 8bd2846 commit f395cc4
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,13 @@ export let corePlugins = {
})
},

captionSide: ({ addUtilities }) => {
addUtilities({
'.caption-top': { 'caption-side': 'top' },
'.caption-bottom': { 'caption-side': 'bottom' },
})
},

borderCollapse: ({ addUtilities }) => {
addUtilities({
'.border-collapse': { 'border-collapse': 'collapse' },
Expand Down
6 changes: 6 additions & 0 deletions tests/basic-usage.oxide.test.css
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@
.table-fixed {
table-layout: fixed;
}
.caption-top {
caption-side: top;
}
.caption-bottom {
caption-side: bottom;
}
.border-collapse {
border-collapse: collapse;
}
Expand Down
6 changes: 6 additions & 0 deletions tests/basic-usage.test.css
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@
.table-fixed {
table-layout: fixed;
}
.caption-top {
caption-side: top;
}
.caption-bottom {
caption-side: bottom;
}
.border-collapse {
border-collapse: collapse;
}
Expand Down
2 changes: 2 additions & 0 deletions tests/basic-usage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ crosscheck(({ stable, oxide }) => {
<div class="stroke-current"></div>
<div class="stroke-2"></div>
<div class="table-fixed"></div>
<div class="caption-top"></div>
<div class="caption-bottom"></div>
<div class="text-center"></div>
<div class="indent-6 -indent-12"></div>
<div class="text-indigo-500"></div>
Expand Down
6 changes: 6 additions & 0 deletions tests/raw-content.oxide.test.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
.table-fixed {
table-layout: fixed;
}
.caption-top {
caption-side: top;
}
.caption-bottom {
caption-side: bottom;
}
.border-collapse {
border-collapse: collapse;
}
Expand Down
6 changes: 6 additions & 0 deletions tests/raw-content.test.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
.table-fixed {
table-layout: fixed;
}
.caption-top {
caption-side: top;
}
.caption-bottom {
caption-side: bottom;
}
.border-collapse {
border-collapse: collapse;
}
Expand Down
2 changes: 2 additions & 0 deletions tests/raw-content.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ crosscheck(({ stable, oxide }) => {
<div class="stroke-current"></div>
<div class="stroke-2"></div>
<div class="table-fixed"></div>
<div class="caption-top"></div>
<div class="caption-bottom"></div>
<div class="text-center"></div>
<div class="text-indigo-500"></div>
<div class="underline"></div>
Expand Down

0 comments on commit f395cc4

Please sign in to comment.