@@ -18,11 +18,6 @@ title: "Overflow"
18
18
19
19
<div class =" border-t border-grey-lighter " >
20
20
<table class="w-full text-left" style="border-collapse: collapse;">
21
- <colgroup>
22
- <col class="w-1/5">
23
- <col class="w-1/4">
24
- <col>
25
- </colgroup>
26
21
<thead>
27
22
<tr>
28
23
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Class</th>
@@ -32,35 +27,45 @@ title: "Overflow"
32
27
</thead>
33
28
<tbody class="align-baseline">
34
29
<tr>
35
- <td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark">.overflow-visible</td>
36
- <td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">overflow: visible;</td>
37
- <td class="p-2 border-t border-smoke text-sm text-grey-darker">Prevent content within an element from being clipped .</td>
30
+ <td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap ">.overflow-visible</td>
31
+ <td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark whitespace-no-wrap ">overflow: visible;</td>
32
+ <td class="p-2 border-t border-smoke text-sm text-grey-darker">Don't clip content that overflows the element .</td>
38
33
</tr>
39
34
<tr>
40
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.overflow-auto</td>
41
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">overflow: auto;</td>
35
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap ">.overflow-auto</td>
36
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap ">overflow: auto;</td>
42
37
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Add scrollbars to an element if needed.</td>
43
38
</tr>
44
39
<tr>
45
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.overflow-hidden</td>
46
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">overflow: hidden;</td>
40
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap ">.overflow-hidden</td>
41
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap ">overflow: hidden;</td>
47
42
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Clip any content that overflows the element.</td>
48
43
</tr>
49
44
<tr>
50
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.overflow-x-scroll</td>
51
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">overflow-x: auto;</td>
45
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap ">.overflow-x-scroll</td>
46
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap ">overflow-x: auto;</td>
52
47
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Allow horizontal scrolling if needed.</td>
53
48
</tr>
54
49
<tr>
55
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.overflow-y-scroll</td>
56
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">overflow-y: auto;</td>
50
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap ">.overflow-y-scroll</td>
51
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap ">overflow-y: auto;</td>
57
52
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Allow horizontal scrolling if needed.</td>
58
53
</tr>
59
54
<tr>
60
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.overflow-scroll</td>
61
- <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">overflow: scroll;</td>
55
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap ">.overflow-scroll</td>
56
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap ">overflow: scroll;</td>
62
57
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Add scrollbars to an element.</td>
63
58
</tr>
59
+ <tr>
60
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap">.scrolling-touch</td>
61
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap">-webkit-overflow-scrolling: touch;</td>
62
+ <td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Use momentum-based scrolling on touch devices.</td>
63
+ </tr>
64
+ <tr>
65
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap">.scrolling-auto</td>
66
+ <td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap">-webkit-overflow-scrolling: auto;</td>
67
+ <td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Use "regular" scrolling on touch devices.</td>
68
+ </tr>
64
69
</tbody>
65
70
</table>
66
71
</div >
@@ -161,6 +166,13 @@ Use `.overflow-scroll` to add scrollbars to an element. Unlike `.overflow-auto`,
161
166
@endslot
162
167
@endcomponent
163
168
169
+ ### Momentum-based scrolling on touch devices
170
+
171
+ Use ` .scrolling-touch ` to use momentum-based scrolling on touch devices. This causes content to continue scrolling for a while after finishing the scroll gesture and removing your finger from the touchscreen. The speed and duration of the continued scrolling is proportional to how vigorous the scroll gesture was.
172
+
173
+ ### Regular scrolling on touch devices
174
+
175
+ Use ` .scrolling-auto ` to use "regular" scrolling on touch devices. This causes scrolling to immediately cease when you remove your finger from the touchscreen.
164
176
165
177
## Responsive
166
178
0 commit comments