forked from jenil/bulmaswatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
220 lines (211 loc) · 5.73 KB
/
test.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
---
permalink: /test/
modifiers:
- ''
- primary
- link
- info
- success
- warning
- danger
- white
- black
- light
- dark
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Test </title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" />
<link href="{{ site.url }}{{ site.baseurl }}/default/bulmaswatch.min.css" id="stylesheet" rel="stylesheet" type="text/css" />
<style type="text/css">
.switcher {
position: fixed;
top: 0;
right: 0;
}
.control .control,
.control .help,
.control.has-addons,
.control.is-grouped,
.control.is-horizontal,
.control-label,
:not(.field)>.control {
background-color: red;
box-shadow: 3px 3px 3px 3px red;
}
.hero .container {
width: 95%;
}
</style>
</head>
<body>
<section class="hero is-primary">
<div class="hero-body">
<div class="container">
<h1 class="title"> Bulma </h1>
<h2 class="subtitle"> Theme preview </h2>
</div>
</div>
</section>
<div class="columns">
<div class="column is-2">
<aside class="menu section">
<p class="menu-label"> Elements </p>
<ul class="menu-list">
<li>
<a href="#typography"> Typography </a>
</li>
<li>
<a href="#box"> Box </a>
</li>
<li>
<a href="#button"> Button </a>
</li>
<li>
<a href="#content"> Content </a>
</li>
<li>
<a href="#delete"> Delete </a>
</li>
<li>
<a href="#form"> Form </a>
</li>
<li>
<a href="#icon"> Icon </a>
</li>
<li>
<a href="#images"> Images </a>
</li>
<li>
<a href="#notifications"> Notifications </a>
</li>
<li>
<a href="#progress"> Progress bars </a>
</li>
<li>
<a href="#table"> Table </a>
</li>
<li>
<a href="#tag"> Tag </a>
</li>
</ul>
<p class="menu-label"> Components </p>
<ul class="menu-list">
<li>
<a href="#breadcrumb"> Breadcrumb </a>
</li>
<li>
<a href="#dropdown"> Dropdown </a>
</li>
<li>
<a href="#card"> Card </a>
</li>
<li>
<a href="#hero"> Hero </a>
</li>
<li>
<a href="#level"> Level </a>
</li>
<li>
<a href="#media"> Media object </a>
</li>
<li>
<a href="#menu"> Menu </a>
</li>
<li>
<a href="#message"> Message </a>
</li>
<li>
<a href="#modal"> Modal </a>
</li>
<li>
<a href="#navbar"> Navbar </a>
</li>
<li>
<a href="#pagination"> Pagination </a>
</li>
<li>
<a href="#panel"> Panel </a>
</li>
<li>
<a href="#tabs"> Tabs </a>
</li>
</ul>
</aside>
</div>
<div class="column">
{% include elements/typography.html %}
{% include elements/box.html %}
{% include elements/button.html %}
{% include elements/content.html %}
{% include elements/delete.html %}
{% include elements/form.html %}
{% include elements/icon.html %}
{% include elements/images.html %}
{% include elements/notifications.html %}
{% include elements/progress.html %}
{% include elements/table.html %}
{% include elements/tag.html %}
{% include components/breadcrumb.html %}
{% include components/hero.html %}
{% include components/card.html %}
{% include components/dropdown.html %}
{% include components/level.html %}
{% include components/media.html %}
{% include components/menu.html %}
{% include components/message.html %}
{% include components/modal.html %}
{% include components/navbar.html %}
{% include components/pagination.html %}
{% include components/panel.html %}
{% include components/tabs.html %}
</div>
</div>
{% include footer.html %}
<div class="switcher select">
<select>
{% assign themes = (site.themes | sort: 'order') %}
{% for t in themes %}
<option value="{{ t.name | slugify }}"> {{ t.name }} </option>
{% endfor %}
</select>
</div>
<script type="text/javascript">
function switchTheme(t) {
var theme = t || 'default';
$('#stylesheet').attr('href', '../' + theme + '/bulmaswatch.min.css');
var title = theme.charAt(0).toUpperCase() + theme.substring(1);
window.history.replaceState(theme, title, '?' + theme);
$('.hero .title').text(title);
document.title = title;
}
$(function() {
$('.switcher select').change(function(e) {
switchTheme(e.target.value);
});
if (window.location.search) {
$('.switcher select').val(window.location.search.substring(1));
$('.switcher select').trigger('change');
}
$('.modal-background, .modal-close').click(function() {
$(this).parent().removeClass('is-active');
});
$('.nav-toggle').click(function() {
$(this).toggleClass('is-active');
$(this).siblings('.nav-menu').toggleClass('is-active');
});
$('.dropdown:not(.is-hoverable)').click(function(event) {
event.stopPropagation();
$(this).toggleClass('is-active');
});
$(document).click(function() {
$('.dropdown:not(.is-hoverable)').removeClass('is-active');
});
});
</script>
</body>
</html>