-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstates.html
More file actions
69 lines (63 loc) · 2.05 KB
/
states.html
File metadata and controls
69 lines (63 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>States | Tailwind</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="flex justify-center h-screen items-center">
<!-- Hover States -->
<div class="space-y-4">
<button
class="block capitalize bg-blue-500 px-4 py-2 text-white rounded hover:bg-blue-700"
>
hover me
</button>
<input
type="text"
class="block p-2 border border-gray-300 focus:border-blue-500 focus:ring-2 focus:ring-blue-800"
placeholder="Focus on me"
/>
<button
class="block px-4 py-2 bg-purple-500 text-white rounded-lg active:bg-purple-600"
>
Click Me
</button>
<button
class="block px-4 py-2 bg-sky-600 text-white rounded-lg disabled:opacity-50"
disabled
>
Disabled
</button>
<div
class="block group block p-4 border border-gray-300 w-48 text-center"
>
<p class="text-gray-500 group-hover:text-blue-700">Hover over me</p>
</div>
<div class="block">
<table class="border-collapse border border-gray-400 w-40 text-center">
<tr class="odd:bg-gray-200 even:bg-gray-100">
<td class="p-2">Row1</td>
</tr>
<tr class="odd:bg-gray-200 even:bg-gray-100">
<td class="p-2">Row2</td>
</tr>
<tr class="odd:bg-gray-200 even:bg-gray-100">
<td class="p-2">Row3</td>
</tr>
</table>
</div>
<div class="flex space-x-3">
<button class="px-4 py-2 first:bg-red-500 last:bg-blue-500">One</button>
<button class="px-4 py-2 first:bg-red-500 last:bg-blue-500">Two</button>
<button class="px-4 py-2 first:bg-red-500 last:bg-blue-500">
Three
</button>
<button class="px-4 py-2 first:bg-red-500 last:bg-blue-500">
Four
</button>
</div>
</div>
</body>
</html>