-
Notifications
You must be signed in to change notification settings - Fork 2
/
Bulma.html
389 lines (360 loc) · 14.1 KB
/
Bulma.html
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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
<!-- Bulma - CSS Framework - by Beumsk -->
<!-- support -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bulma</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<style>
* {
border-radius: 0 !important;
}
</style>
</head>
<body>
<nav class="navbar nav-fixed has-background-primary" role="navigation" aria-label="main navigation" style="background: rgba(256,256,256,0.9);">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="#"><strong>BULMA</strong></a>
<a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<!-- <div class="navbar-menu" id="navMenu">
<div class="navbar-end">
<a class="navbar-item" href="#menus">Menus</a>
<a class="navbar-item" href="#hours">Opening hours</a>
<a class="navbar-item" href="#contact">Contact</a>
</div>
</div> -->
</div>
</nav>
<div class="container">
<nav class="breadcrumb container" aria-label="breadcrumbs" style="padding: 10px 0;">
<ul>
<li><a href="#0">Tutorials</a></li>
<li class="is-active"><a href="#0">Bulma</a></li>
</ul>
</nav>
</div>
<section class="section">
<div class="container">
<h1 class="title is-1">
Bulma Tutorial
</h1>
<p class="subtitle">
My first website with <strong>Bulma</strong>!
</p>
</div>
</section>
<section class="section has-background-light">
<div class="container">
<h2 class="title is-2">Text</h2>
<p class="has-text-white">Text white</p>
<p class="has-text-black">Text black</p>
<p class="has-text-light">Text light</p>
<p class="has-text-dark">Text dark</p>
<p class="has-text-primary">Text primary</p>
<p class="has-text-info">Text info</p>
<p class="has-text-success">Text success</p>
<p class="has-text-warning">Text warning</p>
<p class="has-text-danger">Text danger</p>
<p class="has-text-black-bis">Text black bis</p>
<p class="has-text-black-ter">Text black ter</p>
<p class="has-text-grey-darker">Text grey darker</p>
<p class="has-text-grey-dark">Text grey dark</p>
<p class="has-text-grey">Text grey</p>
<p class="has-text-grey-light">Text grey-light</p>
<p class="has-text-grey-lighter">Text grey-lighter</p>
<p class="has-text-white-ter">Text white ter</p>
<p class="has-text-white-bis">Text white bis</p>
</div>
</section>
<section class="section">
<div class="container">
<h2 class="title is-2">Background</h2>
<p class="has-background-white">Background white</p>
<p class="has-background-black">Background black</p>
<p class="has-background-light">Background light</p>
<p class="has-background-dark">Background dark</p>
<p class="has-background-primary">Background primary</p>
<p class="has-background-info">Background info</p>
<p class="has-background-success">Background success</p>
<p class="has-background-warning">Background warning</p>
<p class="has-background-danger">Background danger</p>
<p class="has-background-black-bis">Background black bis</p>
<p class="has-background-black-ter">Background black ter</p>
<p class="has-background-grey-darker">Background grey darker</p>
<p class="has-background-grey-dark">Background grey dark</p>
<p class="has-background-grey">Background grey</p>
<p class="has-background-grey-light">Background grey-light</p>
<p class="has-background-grey-lighter">Background grey-lighter</p>
<p class="has-background-white-ter">Background white ter</p>
<p class="has-background-white-bis">Background white bis</p>
</div>
</section>
<section class="section has-background-light">
<div class="container">
<h2 class="title is-2">Size</h2>
<p class="is-size-1">Size 1</p>
<p class="is-size-2">Size 2</p>
<p class="is-size-3">Size 3</p>
<p class="is-size-4">Size 4</p>
<p class="is-size-5">Size 5</p>
<p class="is-size-6">Size 6</p>
<p class="is-size-7">Size 7</p>
</div>
</section>
<section class="section">
<div class="container">
<h2 class="title is-2">Text alignment</h2>
<p class="has-text-centered">Text centered</p>
<p class="has-text-justified">Text justified</p>
<p class="has-text-left">Text left</p>
<p class="has-text-right">Text right</p>
</div>
</section>
<section class="section has-background-light">
<div class="container">
<h2 class="title is-2">Button</h2>
<button class="button">Button</button>
<button class="button" disabled>Button disabled</button>
<button class="button is-large">Large button</button>
<button class="button is-medium">Medium button</button>
<button class="button is-small">Small button</button>
<button class="button is-primary">Primary button</button>
<button class="button is-primary is-outlined">Primary button outlined</button>
<button class="button is-primary is-outlined is-loading">Primary button outlined loading</button>
</div>
</section>
<section class="section">
<div class="container has-text-white has-text-centered">
<h2 class="title is-2 has-text-left">Column</h2>
<div class="columns">
<div class="column"><div class="has-background-primary">auto</div></div>
<div class="column"><div class="has-background-primary">auto</div></div>
<div class="column"><div class="has-background-primary">auto</div></div>
<div class="column"><div class="has-background-primary">auto</div></div>
<div class="column"><div class="has-background-primary">auto</div></div>
</div>
<div class="columns">
<div class="column is-8"><div class="has-background-primary">is-8</div></div>
<div class="column"><div class="has-background-primary">Auto</div></div>
<div class="column"><div class="has-background-primary">Auto</div></div>
</div>
<div class="columns is-gapless">
<div class="column"><div class="has-background-primary">Auto no gap</div></div>
<div class="column"><div class="has-background-primary">Auto no gap</div></div>
</div>
<div class="columns is-vcentered">
<div class="column"><div class="has-background-primary">Auto vcentered</div></div>
<div class="column"><div class="has-background-primary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Libero magni molestias ducimus magnam possimus aperiam voluptate facilis quod vitae architecto.</div></div>
</div>
</div>
</section>
<section class="section has-background-light">
<div class="container">
<h2 class="title is-2">Images</h2>
<figure class="image is-16by9">
<img src="img/html.jpg" alt="html">
</figure>
</div>
</section>
<section class="section">
<div class="container">
<h2 class="title is-2">Table</h2>
<table class="table is-striped is-narrow is-fullwidth">
<thead>
<tr>
<th>One</th>
<th>Two</th>
</tr>
</thead>
<tbody>
<tr>
<td>Three</td>
<td>Four</td>
</tr>
<tr>
<td>Five</td>
<td>Six</td>
</tr>
<tr>
<td>Seven</td>
<td>Eight</td>
</tr>
<tr>
<td>Nine</td>
<td>Ten</td>
</tr>
<tr>
<td>Eleven</td>
<td>Twelve</td>
</tr>
</tbody>
</table>
</div>
</section>
<section class="section has-background-light">
<div class="container">
<h2 class="title is-2">Tiles</h2>
<div class="tile is-ancestor tile-wrap">
<div class="tile is-parent is-4">
<div class="tile is-child box">
<p class="title is-size-4">Lorem</p>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestiae maiores doloremque autem excepturi dignissimos! Molestias animi eligendi fuga iste ipsum!</p>
</div>
</div>
<div class="tile is-parent is-4">
<div class="tile is-child box">
<p class="title is-size-4">Lorem</p>
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Itaque dolorum repellendus adipisci neque dolorem praesentium est architecto rerum asperiores quisquam.</p>
</div>
</div>
<div class="tile is-parent is-4">
<div class="tile is-child box">
<p class="title is-size-4">Lorem</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto libero ratione delectus similique eligendi vitae rerum excepturi harum accusamus voluptatum.</p>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="container">
<h2 class="title is-2">Card</h2>
<div class="columns">
<div class="column">
<div class="card">
<div class="card-image">
<figure class="image is-16by9">
<img src="img/html.jpg" alt="Placeholder image">
</figure>
</div>
<div class="card-content">
<div class="media">
<div class="media-left">
<figure class="image is-48x48">
<img src="https://bulma.io/images/placeholders/96x96.png" alt="Placeholder image">
</figure>
</div>
<div class="media-content">
<p class="title is-4">John Smith</p>
<p class="subtitle is-6">@johnsmith</p>
</div>
</div>
<div class="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Phasellus nec iaculis mauris.
<br>
<time datetime="2020-1-1">11:09 PM - 1 Jan 2020</time>
</div>
</div>
</div>
</div>
<div class="column">
<div class="card">
<div class="card-image">
<figure class="image is-16by9">
<img src="img/html.jpg" alt="Placeholder image">
</figure>
</div>
<div class="card-content">
<div class="media">
<div class="media-left">
<figure class="image is-48x48">
<img src="https://bulma.io/images/placeholders/96x96.png" alt="Placeholder image">
</figure>
</div>
<div class="media-content">
<p class="title is-4">John Smith</p>
<p class="subtitle is-6">@johnsmith</p>
</div>
</div>
<div class="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Phasellus nec iaculis mauris.
<br>
<time datetime="2020-1-1">11:09 PM - 1 Jan 2020</time>
</div>
</div>
</div>
</div>
<div class="column">
<div class="card">
<div class="card-image">
<figure class="image is-16by9">
<img src="img/html.jpg" alt="Placeholder image">
</figure>
</div>
<div class="card-content">
<div class="media">
<div class="media-left">
<figure class="image is-48x48">
<img src="https://bulma.io/images/placeholders/96x96.png" alt="Placeholder image">
</figure>
</div>
<div class="media-content">
<p class="title is-4">John Smith</p>
<p class="subtitle is-6">@johnsmith</p>
</div>
</div>
<div class="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Phasellus nec iaculis mauris.
<br>
<time datetime="2020-1-1">11:09 PM - 1 Jan 2020</time>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="container">
</div>
</section>
<section class="section">
<div class="container">
</div>
</section>
<section class="section">
<div class="container">
<h2 class="title is-2">Extensions</h2>
<a href="https://bulma.io/extensions/">Check the Bulma extensions</a>
</div>
</section>
<footer class="footer">
<div class="content has-text-centered">
<p>© 2020 - Rémy Beumier</p>
</div>
</footer>
<script>
// burger menu script
document.addEventListener('DOMContentLoaded', function() {
// Get all "navbar-burger" elements
var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Check if there are any navbar burgers
if ($navbarBurgers.length > 0) {
// Add a click event on each of them
$navbarBurgers.forEach( function(el) {
el.addEventListener('click', function() {
// Get the target from the "data-target" attribute
var target = el.dataset.target;
var $target = document.getElementById(target);
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
</script>
</body>
</html>