Skip to content

Commit 0026690

Browse files
committed
Formatting
1 parent 4577691 commit 0026690

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

src/pages/docs/caption-side.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: "Utilities for controlling the alignment of a caption element insid
44
---
55

66
import utilities from 'utilities?plugin=captionSide'
7-
import { ArbitraryValues } from '@/components/ArbitraryValues'
87
import { BreakpointsAndMediaQueries } from '@/components/BreakpointsAndMediaQueries'
98
import { HoverFocusAndOtherStates } from '@/components/HoverFocusAndOtherStates'
109

@@ -13,6 +12,7 @@ export const classes = { utilities }
1312
## Basic usage
1413

1514
### Top
15+
1616
Use `caption-top` to position a caption element at the top of a table.
1717

1818
<Example p="none">
@@ -50,7 +50,7 @@ Use `caption-top` to position a caption element at the top of a table.
5050
<caption class="**caption-top**">
5151
Table 3.1: Professional wrestlers and their signature moves.
5252
</caption>
53-
<thead >
53+
<thead>
5454
<tr>
5555
<th>Wrestler</th>
5656
<th>Signature Move(s)</th>
@@ -74,6 +74,7 @@ Use `caption-top` to position a caption element at the top of a table.
7474
```
7575

7676
### Bottom
77+
7778
Use `caption-bottom` to position a caption element at the bottom of a table.
7879

7980
<Example p="none">
@@ -111,7 +112,7 @@ Use `caption-bottom` to position a caption element at the bottom of a table.
111112
<caption class="**caption-bottom**">
112113
Table 3.1: Professional wrestlers and their signature moves.
113114
</caption>
114-
<thead >
115+
<thead>
115116
<tr>
116117
<th>Wrestler</th>
117118
<th>Signature Move(s)</th>
@@ -145,5 +146,3 @@ Use `caption-bottom` to position a caption element at the bottom of a table.
145146
### <Heading ignore>Breakpoints and media queries</Heading>
146147

147148
<BreakpointsAndMediaQueries defaultClass="caption-top" featuredClass="caption-bottom" element="table" />
148-
149-
---

src/pages/docs/hyphens.mdx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,27 @@ export const classes = { utilities }
1212
## Basic usage
1313

1414
### None
15-
Use `hyphens-none` to prevent words from being hyphenated even if the line break suggestion `&shy;` is used:
1615

16+
Use `hyphens-none` to prevent words from being hyphenated even if the line break suggestion `&shy;` is used:
1717

1818
<Example p="none">
1919
<div class="overflow-x-scroll sm:overflow-x-visible px-4">
20-
<div class="mx-auto max-w-xs bg-white shadow-xl p-12 text-slate-500 dark:bg-slate-800 dark:text-slate-400">
20+
<div class="mx-auto max-w-xs bg-white shadow-xl p-12 text-slate-500 dark:bg-slate-800 dark:text-slate-400">
2121
<p class="hyphens-none">Officially recognized by the Duden dictionary as the longest word in German, <span class="text-slate-900 font-medium dark:text-slate-200" lang="de"> Kraftfahrzeug&shy;Haftpflichtversicherung</span> is a 36 letter word for motor vehicle liability insurance.</p>
2222
</div>
2323
</div>
2424
</Example>
2525

2626
```html
2727
<p class="**hyphens-none** ...">
28-
... Kraftfahrzeug**&shy;**Haftpflichtversicherung is a ...
28+
... Kraftfahrzeug**&shy;**Haftpflichtversicherung is a ...
2929
</p>
3030
```
3131

3232
### Manual
3333

3434
Use `hyphens-manual` to only set hyphenation points where the line break suggestion `&shy;` is used:
3535

36-
3736
<Example p="none">
3837
<div class="overflow-x-scroll sm:overflow-x-visible px-4">
3938
<div class="mx-auto max-w-xs bg-white shadow-xl p-12 text-slate-500 dark:bg-slate-800 dark:text-slate-400">
@@ -44,15 +43,14 @@ Use `hyphens-manual` to only set hyphenation points where the line break suggest
4443

4544
```html
4645
<p class="**hyphens-manual** ...">
47-
... Kraftfahrzeug**&shy;**Haftpflichtversicherung is a ...
46+
... Kraftfahrzeug**&shy;**Haftpflichtversicherung is a ...
4847
</p>
4948
```
5049

5150
### Auto
5251

5352
Use `hyphens-auto` to allow the browser to automatically choose hyphenation points based on the language. The line break suggestion `&shy;` will be preferred over automatic hyphenation points.
5453

55-
5654
<Example p="none">
5755
<div class="overflow-x-scroll sm:overflow-x-visible px-4">
5856
<div class="mx-auto max-w-xs bg-white shadow-xl p-12 text-slate-500 dark:bg-slate-800 dark:text-slate-400 ">
@@ -63,11 +61,10 @@ Use `hyphens-auto` to allow the browser to automatically choose hyphenation poin
6361

6462
```html
6563
<p class="**hyphens-auto** ..." **lang**="de">
66-
... KraftfahrzeugHaftpflichtversicherung is a ...
64+
... KraftfahrzeugHaftpflichtversicherung is a ...
6765
</p>
6866
```
6967

70-
7168
---
7269

7370
## <Heading ignore>Applying conditionally</Heading>
@@ -78,4 +75,4 @@ Use `hyphens-auto` to allow the browser to automatically choose hyphenation poin
7875

7976
### <Heading ignore>Breakpoints and media queries</Heading>
8077

81-
<BreakpointsAndMediaQueries defaultClass="hyphens-none" featuredClass="hyphens-auto" element="p" />
78+
<BreakpointsAndMediaQueries defaultClass="hyphens-none" featuredClass="hyphens-auto" element="p" />

0 commit comments

Comments
 (0)