-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path06-forms-buttons.html
More file actions
50 lines (46 loc) · 1.36 KB
/
Copy path06-forms-buttons.html
File metadata and controls
50 lines (46 loc) · 1.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>06 — button variants</title>
<style>
body { font-family: sans-serif; margin: 2em; }
.row { margin-bottom: 14px; }
button, input[type=button], input[type=submit], input[type=reset] { margin-right: 6px; }
button.custom {
background: linear-gradient(#4f46e5, #3730a3);
color: white;
border: 1px solid #312e81;
padding: 6px 14px;
border-radius: 6px;
font-weight: 600;
}
button.custom:disabled { opacity: .5; cursor: not-allowed; }
</style>
</head>
<body>
<h1><button> and button-like <input></h1>
<div class="row">
<button type="submit">submit button</button>
<button type="reset">reset button</button>
<button type="button">plain button</button>
<button disabled>disabled button</button>
</div>
<div class="row">
<input type="submit" value="input[type=submit]">
<input type="reset" value="input[type=reset]">
<input type="button" value="input[type=button]">
<input type="button" value="disabled input button" disabled>
</div>
<div class="row">
<button>
<strong>Rich</strong> content: <em>button</em> can contain flow-ish
<span style="color:#dc2626">inline</span> content.
</button>
</div>
<div class="row">
<button class="custom">Styled primary button</button>
<button class="custom" disabled>Styled, disabled</button>
</div>
</body>
</html>