-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbutton.php
185 lines (169 loc) · 6.23 KB
/
button.php
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!doctype html>
<html lang="en">
<?php include ('part-head.php') ?>
<body>
<?php include ('part-header.php') ?>
<div class="container">
<div class="wrapper">
<h1 class="title">Button</h1>
<p>Button in Naked Css look like this :</p>
<hr>
<h4 class="sub-title">Button</h4>
<div class="row">
<div class="span-3">
<p><b>Button</b></p>
<a href="#" class="button">Button</a>
</div>
<div class="span-3">
<p><b>Button Alert</b></p>
<a href="#" class="button alert">Alert</a>
</div>
<div class="span-3">
<p><b>Button Success</b></p>
<a href="#" class="button success">Success</a>
</div>
<div class="span-3">
<p><b>Button Warning</b></p>
<a href="#" class="button warning">Warning</a>
</div>
</div>
<div class="html">
<div class="highlight">
<pre class="prettyprint">
<a href="#" class="button">Button</a>
<a href="#" class="button alert">Alert</a>
<a href="#" class="button success">Success</a>
<a href="#" class="button warning">Warning</a>
</pre>
</div>
</div>
<hr>
<h4 class="sub-title">Button Round</h4>
<div class="row">
<div class="span-3">
<p><b>Button</b></p>
<a href="#" class="button round">Button</a>
</div>
<div class="span-3">
<p><b>Button Alert</b></p>
<a href="#" class="button round alert">Alert</a>
</div>
<div class="span-3">
<p><b>Button Success</b></p>
<a href="#" class="button round success">Success</a>
</div>
<div class="span-3">
<p><b>Button Warning</b></p>
<a href="#" class="button round warning">Warning</a>
</div>
</div>
<div class="html">
<div class="highlight">
<pre class="prettyprint">
<a href="#" class="button round">Button</a>
<a href="#" class="button round alert">Alert</a>
<a href="#" class="button round success">Success</a>
<a href="#" class="button round warning">Warning</a>
</pre>
</div>
</div>
<hr>
<h4 class="sub-title">Button Group</h4>
<p>
Button groups are great when you need to display a group of actions in a bar. These build off the button styles and work perfectly with the grid.
There are two ways to build button groups in Naked CSS: with our predefined HTML classes or with our structure and mixins. Building button groups using our predefined classes is a breeze, you'll just wrap a button inside an <code><ul></code>. <br><br>
The button styles will work the same as they do when building a single button, but they'll float next to each other to create a group. You also have access to the same radius classes as buttons, only they'll go on the unordered list instead of the button. You can even make sure the buttons take up even space within the container you put them in.
</p>
<ul class="button-group">
<li><a href="#" class="button">Button 1</a></li>
<li><a href="#" class="button">Button 2</a></li>
<li><a href="#" class="button">Button 3</a></li>
</ul>
<div class="html">
<div class="highlight">
<pre class="prettyprint">
<ul class="button-group">
<li><a href="#" class="button">Button 1</a></li>
<li><a href="#" class="button">Button 2</a></li>
<li><a href="#" class="button">Button 3</a></li>
</ul>
</pre>
</div>
</div>
<hr>
<h4 class="sub-title">Button Group Round</h4>
<div class="row">
<div class="span-6">
<ul class="button-group round">
<li><a href="#" class="button">Button 1</a></li>
<li><a href="#" class="button alert">Button 2</a></li>
</ul>
</div>
<div class="span-6">
<ul class="button-group round">
<li><a href="#" class="button">Button 1</a></li>
<li><a href="#" class="button warning">Button 2</a></li>
</ul>
</div>
</div>
<div class="html">
<div class="highlight">
<pre class="prettyprint">
<ul class="button-group round">
<li><a href="#" class="button">Button 1</a></li>
<li><a href="#" class="button alert">Button 2</a></li>
</ul>
<ul class="button-group round">
<li><a href="#" class="button">Button 1</a></li>
<li><a href="#" class="button warning">Button 2</a></li>
</ul>
</pre>
</div>
</div>
<hr>
<h4 class="sub-title">Button Bar</h4>
<p>
A button bar is a group of button groups (I N C E P T I O N), perfect for situations where you want groups of actions that are all related to a similar element or page. Simply wrap two or more button groups in a <code>.button-bar</code>.
</p>
<div class="button-bar">
<ul class="button-group left">
<li><a href="#" class="button">Cancel</a></li>
<li><a href="#" class="button">Submit</a></li>
</ul>
<ul class="button-group centered">
<li><a href="#" class="button">Cancel</a></li>
<li><a href="#" class="button">Submit</a></li>
</ul>
<ul class="button-group right">
<li><a href="#" class="button">Cancel</a></li>
<li><a href="#" class="button">Submit</a></li>
</ul>
<div style="clear: both;"></div>
</div>
<div class="html">
<div class="highlight">
<pre class="prettyprint">
<div class="button-bar">
<ul class="button-group left">
<li><a href="#" class="button">Cancel</a></li>
<li><a href="#" class="button">Submit</a></li>
</ul>
<ul class="button-group centered">
<li><a href="#" class="button">Cancel</a></li>
<li><a href="#" class="button">Submit</a></li>
</ul>
<ul class="button-group right">
<li><a href="#" class="button">Cancel</a></li>
<li><a href="#" class="button">Submit</a></li>
</ul>
</div>
</pre>
</div>
</div>
<hr>
</div>
</div>
<?php include ('part-footer.php') ?>
<?php include ('part-script.php') ?>
</body>
</html>