Skip to content

Commit 4e9aba6

Browse files
committed
Icons Showcase
1 parent 76df669 commit 4e9aba6

15 files changed

+6691
-2
lines changed

gulpfile.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,10 @@
279279
gulp.task('ks-ios-jade', function (cb) {
280280
gulp.src(paths.ks.ios.jade)
281281
.pipe(jade({
282-
pretty: true
282+
pretty: true,
283+
data: {
284+
icons: require('./manifest-icons-ios.json').icons
285+
}
283286
}))
284287
.pipe(gulp.dest(paths.ks.ios.root))
285288
.pipe(connect.reload())
@@ -304,7 +307,10 @@
304307
gulp.task('ks-material-jade', function (cb) {
305308
gulp.src(paths.ks.material.jade)
306309
.pipe(jade({
307-
pretty: true
310+
pretty: true,
311+
data: {
312+
icons: require('./manifest-icons-material.json').icons
313+
}
308314
}))
309315
.pipe(gulp.dest(paths.ks.material.root))
310316
.pipe(connect.reload())

kitchen-sink-ios/css/kitchen-sink.css

+15
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,18 @@ form .f7-icons {
395395
text-align: center;
396396
opacity: 0.5;
397397
}
398+
.ks-demo-icon {
399+
text-align: center;
400+
margin-top: 15px;
401+
margin-bottom: 15px;
402+
color: #333;
403+
}
404+
.ks-demo-icon .icon-name {
405+
margin-top: 5px;
406+
font-size: 11px;
407+
color: #666;
408+
}
409+
code {
410+
background: #f3f3f3;
411+
padding: 5px;
412+
}

kitchen-sink-ios/icons.html

+1,054
Large diffs are not rendered by default.

kitchen-sink-ios/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,14 @@
222222
<div class="item-title">Grid</div>
223223
</div>
224224
</div></a></li>
225+
<li><a href="icons.html" class="item-link">
226+
<div class="item-content">
227+
<div class="item-media"><i class="icon icon-f7"></i></div>
228+
<div class="item-inner">
229+
<div class="item-title">Icons</div>
230+
<div class="item-after"><span class="badge bg-green">256</span></div>
231+
</div>
232+
</div></a></li>
225233
<li><a href="infinite-scroll.html" class="item-link">
226234
<div class="item-content">
227235
<div class="item-media"><i class="icon icon-f7"></i></div>

kitchen-sink-ios/jade/icons.jade

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.navbar
2+
.navbar-inner
3+
.left.sliding
4+
a(href="index.html").back.link
5+
i.icon.icon-back
6+
span Back
7+
.center.sliding Icons
8+
.right
9+
a(href="#").open-panel.link.icon-only
10+
i.icon.icon-bars
11+
.pages.navbar-through
12+
.page(data-page="icons")
13+
.page-content
14+
.content-block
15+
.content-block-inner
16+
p Framework7 comes with the premium and free <a href="https://github.com/nolimits4web/Framework7-Icons" class="external" target="_blank">Framework7 Icons</a> iOS-icons font developed specially to be used with iOS theme of Framework7. As for Material theme we recommend to use great-designed <a href="https://material.io/icons/" class="external" target="_blank">Material Icons</a> font. Both of these fonts use a typographic feature called <a href="http://alistapart.com/article/the-era-of-symbol-fonts" class="external" target="_blank">ligatures</a>. It’s easy to incorporate icons into your app. Here’s a small example:
17+
p
18+
code &lt;i class="f7-icons"&gt;home&lt;/i&gt;
19+
| -
20+
i.f7-icons home
21+
p <a href="http://alistapart.com/article/the-era-of-symbol-fonts" class="external" target="_blank">Ligatures</a> allow rendering of an icon glyph simply by using its textual name. The replacement is done automatically by the web browser and provides more readable code than the equivalent numeric character reference.
22+
p With ligatures it is also possible to combine icons like:
23+
p
24+
code &lt;i class="f7-icons"&gt;person&lt;sup&gt;add&lt;/sup&gt;&lt;/i&gt;
25+
| -
26+
i.f7-icons person<sup>add</sup>
27+
28+
29+
.content-block-title iOS Icons Set (#{icons.length})
30+
.content-block
31+
.content-block-inner
32+
.row
33+
- for icon in icons
34+
.ks-demo-icon.col-25.tablet-15
35+
.icon
36+
i.f7-icons #{icon.name}
37+
.icon-name #{icon.name}

kitchen-sink-ios/jade/index.jade

+9
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,15 @@ html
213213
i.icon.icon-f7
214214
.item-inner
215215
.item-title Grid
216+
li
217+
a(href="icons.html").item-link
218+
.item-content
219+
.item-media
220+
i.icon.icon-f7
221+
.item-inner
222+
.item-title Icons
223+
.item-after
224+
span.badge.bg-green #{icons.length}
216225
li
217226
a(href="infinite-scroll.html").item-link
218227
.item-content

kitchen-sink-ios/less/kitchen-sink.less

+16
Original file line numberDiff line numberDiff line change
@@ -428,4 +428,20 @@ form .f7-icons {
428428
height: 29px;
429429
text-align: center;
430430
opacity: 0.5;
431+
}
432+
// Demo Icon
433+
.ks-demo-icon {
434+
text-align: center;
435+
margin-top: 15px;
436+
margin-bottom: 15px;
437+
color: #333;
438+
.icon-name {
439+
margin-top: 5px;
440+
font-size: 11px;
441+
color: #666;
442+
}
443+
}
444+
code {
445+
background: #f3f3f3;
446+
padding: 5px;
431447
}

kitchen-sink-material/css/kitchen-sink.css

+15
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,18 @@ div.ks-demo-lazy {
288288
form .material-icons {
289289
color: #757575;
290290
}
291+
.ks-demo-icon {
292+
text-align: center;
293+
margin-top: 15px;
294+
margin-bottom: 15px;
295+
color: #333;
296+
}
297+
.ks-demo-icon .icon-name {
298+
margin-top: 5px;
299+
font-size: 11px;
300+
color: #666;
301+
}
302+
code {
303+
background: #f3f3f3;
304+
padding: 5px;
305+
}

0 commit comments

Comments
 (0)