-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabels.html
More file actions
311 lines (231 loc) · 12.1 KB
/
Copy pathlabels.html
File metadata and controls
311 lines (231 loc) · 12.1 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
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Metadata for the Webpage -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrapr · Labels</title>
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="57x57" href="img/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="img/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="img/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="img/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="img/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon/favicon-16x16.png">
<link rel="manifest" href="img/favicon/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="img/favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- Bootstrap CSS files-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery UI CSS (optional) -->
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<!-- Google web fonts -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:500,600" rel="stylesheet">
<link rel="stylesheet" href="https://use.typekit.net/cti7nio.css">
<!-- CSS Animations --> <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<!-- Font Awesome Web Icons -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Main local stylesheet -->
<link rel="stylesheet" href="css/main.css">
<!-- Prettify theme -->
<link rel="stylesheet" href="css/prettify-theme.css">
</head>
<body id="top">
<!-- Navbar include -->
<div w3-include-html="navbar.html"></div>
<div class="container main-content">
<div class="row add-100">
<div class="col-sm-6">
<ol class="breadcrumb">
<li><a href="index.html">Bootstrapr</a></li>
<li class="active">Labels</li>
</ol>
</div>
<!-- col-sm-6 -->
<div class="col-sm-6">
<p class="pull-right">
<i class="fa fa-fw fa-bookmark gray" aria-hidden="true"></i>
<a href="https://getbootstrap.com/docs/3.3/" target="_blank">Bootstrap 3.3.7</a> | <a href="https://getbootstrap.com/docs/3.3/components/#labels" target="_blank"><span id="docs-link">Labels</span></a>
</p>
</div>
<!-- col-sm-4-->
</div>
<!-- .row -->
<div class="row">
<div class="col-sm-12">
<h1>Labels</h1>
<p class="lead">Labels pop! When not overused, they add meaning contextually.</p>
<p>Use labels to supplement standard text and foreground important information.</p>
</div>
</div>
<!-- .row -->
<hr class="divider">
<div class="row">
<div class="col-sm-3">
<form>
<div class="form-group">
<label for="label-text">Label Text</label>
<input type="text" class="form-control" id="label-text">
</div>
<div class="form-group">
<label for="label-color">Color</label>
<select class="form-control" id="label-color">
<option value=" label-default" selected="selected">Default — grey</option>
<option value=" label-primary">Primary — standard blue</option>
<option value=" label-info">Information — light blue</option>
<option value=" label-success">Success — green</option>
<option value=" label-warning">Warning — yellow</option>
<option value=" label-danger">Danger — red</option>
</select>
</div>
<div class="form-group">
<label for="label-size">Size</label>
<select class="form-control" id="label-size">
<option value="large-sized">Large</option>
<option value="normal-sized" selected="selected">Normal</option>
<option value="small-sized">Small</option>
</select>
</div>
</form>
<div class="push-down-3" id="action-buttons">
<button type="button" class="btn btn-primary pull-right" id="build-button"><i class="fa fa-fw fa-cogs" aria-hidden="true"></i> Build </button>
<button type="button" class="btn btn-default pull-right" id="clear-form"><i class="fa fa-refresh fa-fw" aria-hidden="true"></i> <span class="hidden-xs hidden-sm">Reset</span></button>
</div>
</div>
<!-- col-sm-3 -->
<div class="col-sm-9">
<div class="example" id="simple-example">
<p><span class='label label-danger label-large'>Large</span></p>
<p><span class='label label-info'>Normal</span></p>
<p><span class='label label-success label-small'>Small</span></p>
</div>
<div class="well" contenteditable="true">
<!-- Copier-->
<button class="btn btn-code-well pull-right copier" type="button" data-clipboard-demo="" data-clipboard-target="#simple-code" data-toggle="tooltip" data-placement="bottom" title="Copy to Clipboard"><i class="fa fa-fw fa-clipboard"
aria-hidden="true"></i> Copy</button>
<!-- Beautifier -->
<button id="beautify" class="btn btn-code-well pull-left" type="button" data-clipboard-demo="" data-toggle="tooltip" data-placement="bottom" title="Indent code"><i class="fa fa-indent fa-fw" aria-hidden="true"></i> Prettify
</button>
<!-- Update Example Panel-->
<button id="update-preview" class="btn btn-code-well pull-left" type="button" data-clipboard-demo="" data-toggle="tooltip" data-placement="bottom" title="Update Example window"><i class="fa fa-fw fa-arrows-v" aria-hidden="true"></i>
Update Example</button>
<hr class="well-separator">
<pre class="prettyprint" id="simple-code">
<span class='label label-danger label-large'>Large</span>
<span class='label label-info'>Normal</span>
<span class='label label-success label-small'>Small</span>
</pre>
</div>
<!-- example closes -->
<h4 class="sub-header">Custom CSS</h4>
<p>Bootstrap labels typically assume the size of their containing elements. You may need to add custom CSS of <code>.label-large"</code> or <code>.label-small</code> if you wish to allow bigger or smaller labels.</p>
<div class="well">
<!-- Copier-->
<button class="btn btn-code-well pull-right copier" type="button" data-clipboard-demo="" data-clipboard-target="#custom-css-code" data-toggle="tooltip" data-placement="bottom" title="Copy to Clipboard"><i class="fa fa-fw fa-clipboard"
aria-hidden="true"></i> Copy</button>
<!-- Update Example Panel-->
<a id="download-all-css" class="btn btn-code-well pull-left" type="button" data-toggle="tooltip" data-placement="bottom" title="View all Bootstrapr CSS" role="button" href="css/all-bootstrapr-css.css" target="_blank"><i class="fa fa-fw fa-css3"
aria-hidden="true"></i> View all Bootstrapr CSS</a>
<hr class="well-separator">
<pre class="prettyprint lang-css" id="custom-css-code">
.label-large {
font-size: large;
}
.label-small {
font-size: xx-small;
}
</pre>
</div>
<!-- .well -->
</div>
<!-- .col-sm-9 -->
</div>
</div>
<!-- .container-fluid -->
<!-- Navbar include -->
<div w3-include-html="footer.html"></div>
<!-- Back-to-top button -->
<a role="button" id="topper" class="btn scroll-link" href="#top"><i class="fa fa-fw fa-2x fa-caret-up" aria-hidden="true"></i></a>
<!-- jQuery Javascript Library (required by Bootstrap) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
<!-- jQuery UI Library (optional) -->
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<!-- Bootstrap Library -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>window.jQuery.fn.modal || document.write('<script src="js/bootstrap.min.js"><\/script>')</script>
<script>
(function($) {
$(function() {
if ($('body').css('color') !== 'rgb(246, 247, 251)') {
$('head').prepend('<link rel="stylesheet" href="css/bootstrap.min.css">');
$('head').prepend('<link rel="stylesheet" href="css/fontawesome-local.css">');
}
});
})(window.jQuery);
</script>
<!-- Main local script file -->
<script src="js/main.js"></script>
<!-- includes for Google's code highlighter 'prettyprint' -->
<link rel="stylesheet" type="text/css" href="css/prettify.css">
<script type="text/javascript" src="js/prettify.js"></script>
<script type="text/javascript" src="js/lang-css.js"></script>
<!-- html file include script | used for navbar -->
<script src="js/w3data.js"></script>
<script>
w3IncludeHTML();
</script>
<!-- clipboard.js include -->
<script src="js/clipboard.min.js"></script>
<!-- Animations JS -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
$(document).ready(function() {
// tooltips function
$(function() {
$('[data-toggle="tooltip"]').tooltip()
})
$('#build-button').click(function() {
var labelColor = $('#label-color').val();
var labelSize = $('#label-size').val();
var labelText = $('#label-text').val();
var smallSized = '';
var largeSized = '';
var realSize = '';
if (labelSize == "normal-sized") {
var realSize = "";
} else if (labelSize == "small-sized") {
realSize = " label-small";
} else {
realSize = " label-large";
}
var bsLabel = "<span class='label" + realSize + labelColor + "'>" + labelText + "</span>";
// write the table
$("#simple-example").html(bsLabel);
$('#simple-code').text(bsLabel);
$('pre').removeClass('prettyprinted');
prettyPrint();
});
// Add active class to navmenu selection
$("li#labels").addClass("active");
$("#features-dropdown").addClass("activated");
// clipboard button
new Clipboard('.btn');
});
</script>
<!-- Confirmation modal -->
<div id="dialog-confirm" title="Reset Form">
<p>This will reset the form. Are you sure?</p>
</div>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5e46f4c0e8e8fb44"></script>
</body>
</html>