-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (73 loc) · 1.95 KB
/
index.html
File metadata and controls
82 lines (73 loc) · 1.95 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
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Button Pattern - Scales</title>
<meta name="viewport" content="initial-scale=1,width=device-width">
<style>
.btn {
-webkit-appearance: none;
background-color: #d3d3d3;
border-width: 0;
border-color: #000;
border-style: solid;
border-radius: 0;
color: inherit;
cursor: pointer;
display: inline-block;
font: inherit;
line-height: normal;
margin: 0;
overflow: visible;
padding: 0.5em 0.75em;
text-align: center;
text-decoration: none;
vertical-align: middle;
white-space: normal;
}
.btn:hover, .btn:active, .btn:focus {
text-decoration: none;
}
.btn:hover {
background-color: #c6c6c6;
color: inherit;
}
.btn.is-disabled,
.btn[disabled] {
opacity: 0.5;
pointer-events: none;
background-color: #d3d3d3;
border-width: 0;
border-color: #000;
border-style: solid;
color: inherit;
}
.btn::-moz-focus-inner {
border: 0;
padding: 0;
}
</style>
</head>
<body>
<header role="banner">
<h1>Button Pattern for Scales</h1>
</header>
<main role="main">
<p>This page includes the default button pattern styles</p>
<h2>Button usage</h2>
<p>Buttons should be used with links, buttons, and submit inputs for best results</p>
<h3>Default styles</h3>
<a href="" class="btn">Link Button</a>
<button class="btn">Button Button</button>
<input class="btn" type="submit" value="Input Button">
<h3>Disabled styles (disabled attribute)</h3>
<a href="" class="btn" disabled>Link Button</a>
<button class="btn" disabled>Button Button</button>
<input class="btn" disabled type="submit" value="Input Button">
<h3>Disabled styles (.is-disabled class)</h3>
<a href="" class="btn is-disabled">Link Button</a>
<button class="btn is-disabled">Button Button</button>
<input class="btn is-disabled" type="submit" value="Input Button">
</main>
</body>
</html>