Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions __tests__/fixtures/tailwind-output.css
Original file line number Diff line number Diff line change
Expand Up @@ -2096,6 +2096,10 @@ button,
border-color: #ffebef;
}

.border-solid {
border-style: solid;
}

.border-dashed {
border-style: dashed;
}
Expand Down Expand Up @@ -5060,6 +5064,10 @@ button,
border-color: #ffebef;
}

.sm\:border-solid {
border-style: solid;
}

.sm\:border-dashed {
border-style: dashed;
}
Expand Down Expand Up @@ -8025,6 +8033,10 @@ button,
border-color: #ffebef;
}

.md\:border-solid {
border-style: solid;
}

.md\:border-dashed {
border-style: dashed;
}
Expand Down Expand Up @@ -10990,6 +11002,10 @@ button,
border-color: #ffebef;
}

.lg\:border-solid {
border-style: solid;
}

.lg\:border-dashed {
border-style: dashed;
}
Expand Down Expand Up @@ -13955,6 +13971,10 @@ button,
border-color: #ffebef;
}

.xl\:border-solid {
border-style: solid;
}

.xl\:border-dashed {
border-style: dashed;
}
Expand Down
23 changes: 14 additions & 9 deletions docs/source/docs/border-style.blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,24 @@ features:
</thead>
<tbody class="align-baseline">
<tr>
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark">.border-dashed</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">border-style: dashed;</td>
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Sets the border style on an element to dashed.</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark">.border-solid</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">border-style: solid;</td>
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Sets the border style on an element to solid.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.border-dotted</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">border-style: dotted;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Sets the border style on an element to dotted.</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark">.border-dashed</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">border-style: dashed;</td>
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Sets the border style on an element to dashed.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.border-none</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">border-style: none;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Disables the border on an element.</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.border-dotted</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">border-style: dotted;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Sets the border style on an element to dotted.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.border-none</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">border-style: none;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Disables the border on an element.</td>
</tr>
</tbody>
</table>
Expand Down
3 changes: 3 additions & 0 deletions src/generators/borderStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import defineClasses from '../util/defineClasses'

export default function() {
return defineClasses({
'border-solid': {
'border-style': 'solid',
},
'border-dashed': {
'border-style': 'dashed',
},
Expand Down