blob: c97cbd68ffdc0e351aa460d7d7902a6aad7f820d (
plain)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Buttons</title>
<meta name="description" content="You can use button tag or also anchor tag with role button">
<link rel="stylesheet" href="../buttons.css">
<!--
- This <style> and <link> is only used for the example preview,
- it isn't needed for the real use case.
-->
<style>
html, body {
margin: 0;
padding: 0;
font-size: 10px;
background-color: #fff;
}
h2.bb-docs {
font-size: 1.8rem;
font-family: "MozTT", Sans-serif;
font-weight: lighter;
color: #666;
margin: -0.1rem 0 0;
background-color: #f5f5f5;
padding: 0.4rem 0.4rem 0.4rem 3rem;
border: solid 0.1rem #e8e8e8;
}
div.bb-docs {
padding: 1rem;
}
div.bb-docs.dark {
background: #000;
}
ul {
padding: 0;
margin: 0;
list-style: none;
}
body[role="application"] > [role="region"] {
height: 100%;
position: relative;
}
</style>
</head>
<body role="application">
<h2 class="bb-docs">Normal</h2>
<div class="bb-docs">
<button>Default</button>
<button class="recommend">Recommend</button>
<button class="danger">Danger</button>
</div>
<h2 class="bb-docs">Disabled</h2>
<div class="bb-docs">
<button disabled>Default</button>
<a href="#" role="button" aria-disabled="true" class="recommend">Recommend</a>
<button disabled class="danger">Danger</button>
</div>
<h2 class="bb-docs">Disabled with dark background</h2>
<div class="bb-docs dark">
<button disabled>Default</button>
<a href="#" role="button" aria-disabled="true" class="recommend">Recommend</a>
<button disabled class="danger">Danger</button>
</div>
<h2 class="bb-docs">Button List </h2>
<div class="bb-docs">
<ul>
<li>
<button>Default</button>
</li>
<li>
<button disabled="disabled">Disabled</button>
</li>
<li>
<button class="icon icon-view">
View Name
</button>
</li>
<li>
<button disabled="disabled" class="icon icon-view">
View Name
</button>
</li>
<li>
<a role="button" class="icon icon-dialog">
Tuesday September 18, 2012
</a>
</li>
<li>
<a role="button" aria-disabled="true" class="icon icon-dialog">
Tuesday September 18, 2012
</a>
</li>
</ul>
</div>
<h2 class="bb-docs">Button list (compact mode)</h2>
<div class="bb-docs">
<ul class="compact">
<li><button>Action 1</button></li>
<li><button>Action 2</button></li>
<li><button disabled >Action 3 (disabled)</button></li>
<li><button>Action 4</button></li>
<li><button>Action 5</button></li>
<li>
<button>
<span class="end tick"></span>
Action 6
</button>
</li>
</ul>
</div>
</body>
</html>
|