-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbadges.html
226 lines (211 loc) · 8.57 KB
/
badges.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
<!DOCTYPE html>
<html lang="en">
<head>
{{> head }}
</head>
<body>
{{> navbar }}
<main>
{{> intro}}
<div class="container">
<div class="row">
<div class="col s12 m8 offset-m1 xl7 offset-xl1">
<!-- Badges Section -->
<div id="collections" class="section scrollspy">
<div class="row">
<div class="col s12">
<p class="caption">
Badges can notify you that there are new or unread messages or notifications. Add the
<code class="language-html">new</code> class to the badge to give it the background.
</p>
<h3 class="header">Collections</h3>
<div class="collection">
<a href="#!" class="collection-item"><span class="badge">1</span>Alan</a>
<a href="#!" class="collection-item"><span class="new badge">4</span>Alan</a>
<a href="#!" class="collection-item">Alan</a>
<a href="#!" class="collection-item"><span class="badge">14</span>Alan</a>
</div>
<pre style="padding-top: 0px">
<span class="copyMessage">Copied!</span>
<i class="material-icons copyButton">content_copy</i>
<code class="language-html copiedText">
<xmp>
<div class="collection">
<a href="#!" class="collection-item"><span class="badge">1</span>Alan</a>
<a href="#!" class="collection-item"><span class="new badge">4</span>Alan</a>
<a href="#!" class="collection-item">Alan</a>
<a href="#!" class="collection-item"><span class="badge">14</span>Alan</a>
</div>
</xmp>
</code>
</pre>
</div>
</div>
</div>
<div id="dropdown" class="section scrollspy">
<div class="row">
<div class="col s12">
<h3 class="header">Badges in Dropdown</h3>
<ul id="dropdown2" class="dropdown-content">
<li>
<a href="#!">one<span class="badge">1</span></a>
</li>
<li>
<a href="#!">two<span class="new badge">1</span></a>
</li>
<li><a href="#!">three</a></li>
</ul>
<a class="btn dropdown-trigger" href="#!" data-target="dropdown2">Dropdown<i class="material-icons right">arrow_drop_down</i></a>
<pre><code class="language-html">
<xmp>
<ul id="dropdown2" class="dropdown-content">
<li><a href="#!">one<span class="badge">1</span></a></li>
<li><a href="#!">two<span class="new badge">1</span></a></li>
<li><a href="#!">three</a></li>
</ul>
<a class="btn dropdown-trigger" href="#!" data-target="dropdown2">Dropdown<i class="material-icons right">arrow_drop_down</i></a>
</xmp></code></pre>
</div>
</div>
</div>
<div id="navbar" class="section scrollspy">
<div class="row">
<div class="col s12">
<h3 class="header">Badges in Navbar</h3>
<nav>
<div class="nav-wrapper">
<a href="" class="brand-logo">Logo</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="">sass</a></li>
<li>
<a href="">sass <span class="new badge">4</span></a>
</li>
<li><a href="">sass</a></li>
</ul>
</div>
</nav>
<pre><code class="language-html">
<xmp>
<nav>
<div class="nav-wrapper">
<a href="" class="brand-logo">Logo</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="">sass</a></li>
<li><a href="">sass <span class="new badge">4</span></a></li>
<li><a href="">sass</a></li>
</ul>
</div>
</nav></xmp></code></pre>
</div>
</div>
</div>
<div id="collapsible" class="section scrollspy">
<div class="row">
<div class="col s12">
<h3 class="header">Badges in Collapsibles</h3>
<ul class="collapsible">
<li>
<div class="collapsible-header"><i class="material-icons">filter_drama</i>First<span class="new badge">4</span></div>
<div class="collapsible-body">
<p>Lorem ipsum dolor sit amet.</p>
</div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">place</i>Second<span class="badge">1</span></div>
<div class="collapsible-body">
<p>Lorem ipsum dolor sit amet.</p>
</div>
</li>
</ul>
<pre><code class="language-html">
<xmp>
<ul class="collapsible">
<li>
<div class="collapsible-header">
<i class="material-icons">filter_drama</i>
First
<span class="new badge">4</span></div>
<div class="collapsible-body"><p>Lorem ipsum dolor sit amet.</p></div>
</li>
<li>
<div class="collapsible-header">
<i class="material-icons">place</i>
Second
<span class="badge">1</span></div>
<div class="collapsible-body"><p>Lorem ipsum dolor sit amet.</p></div>
</li>
</ul>
</xmp></code></pre>
</div>
</div>
</div>
<div id="options" class="section scrollspy">
<div class="row">
<div class="col s12">
<h3 class="header">Options</h3>
<p class="caption">You can customize captions in many ways.</p>
</div>
</div>
<div class="row">
<div class="col s12 m3">
<h5 class="light">Custom Caption</h5>
</div>
<div class="col s12 m9">
<div class="collection">
<a href="#!" class="collection-item">Custom Badge Captions<span class="new badge" data-badge-caption="custom caption">4</span></a>
<a href="#!" class="collection-item">Custom Badge Captions<span class="badge" data-badge-caption="custom caption">4</span></a>
</div>
</div>
<div class="col s12 m9 offset-m3">
<p>
You can explicitly set the caption in a badge using the
<code class="language-html">data-badge-caption</code>
attribute.
</p>
<pre><code class="language-html">
<xmp>
<span class="new badge" data-badge-caption="custom caption">4</span>
<span class="badge" data-badge-caption="custom caption">4</span>
</xmp></code></pre>
</div>
</div>
<div class="row">
<div class="col s12 m3"><h5 class="light">Colors</h5></div>
<div class="col s12 m9">
<div class="collection">
<a href="#!" class="collection-item">Red<span class="new badge red" data-badge-caption="red">4</span></a>
<a href="#!" class="collection-item">Blue<span class="new badge blue" data-badge-caption="blue">4</span></a>
</div>
</div>
<div class="col s12 m9 offset-m3">
<p>You can use our color classes to set the background-color of the badge.</p>
<pre><code class="language-html"><xmp>
<span class="new badge red">4</span>
<span class="new badge blue">4</span>
</xmp>
</code></pre>
</div>
</div>
</div>
<!-- End badges -->
</div>
<div class="col hide-on-small-only m3 xl3">
<div class="toc-wrapper">
<div style="height: 1px">
<ul class="section table-of-contents">
<li><a href="#collections">Collections</a></li>
<li><a href="#dropdown">Dropdown</a></li>
<li><a href="#navbar">Navbar</a></li>
<li><a href="#collapsible">Collapsible</a></li>
<li><a href="#options">Options</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
{{> footer }}
<script type="module" src="/src/main.ts"></script>
</body>
</html>