2016-01-18 23:43:02 +08:00
|
|
|
// Icon font elements
|
|
|
|
// ----------------------------------------------
|
|
|
|
|
2016-01-29 00:05:47 +08:00
|
|
|
// Do not import any file (variables, mixins,...) in this stylesheet.
|
2016-01-22 01:38:59 +08:00
|
|
|
|
2016-01-18 05:21:44 +08:00
|
|
|
@font-face {
|
2016-01-18 06:43:04 +08:00
|
|
|
font-family: 'CartoIcon';
|
2016-01-21 01:29:22 +08:00
|
|
|
src: url('../fonts/cartoIcon.eot');
|
|
|
|
src: url('../fonts/cartoIcon.eot?#iefix') format('embedded-opentype'),
|
|
|
|
url('../fonts/cartoIcon.woff') format('woff'),
|
|
|
|
url('../fonts/cartoIcon.ttf') format('truetype'),
|
|
|
|
url('../fonts/cartoIcon.svg?ey3vsq#cartoIcon') format('svg');
|
2016-01-18 05:21:44 +08:00
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
2016-01-20 19:58:47 +08:00
|
|
|
.CDB-IconFont {
|
2016-01-18 06:49:29 +08:00
|
|
|
display: inline-block;
|
|
|
|
font-family: 'CartoIcon';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: normal;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
2016-01-18 18:21:42 +08:00
|
|
|
|
2016-01-22 01:30:37 +08:00
|
|
|
.CDB-IconFont--center {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
.CDB-IconFont--top {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
.CDB-IconFont--small {
|
2016-01-29 00:05:47 +08:00
|
|
|
font-size: 11px;
|
2016-01-22 01:30:37 +08:00
|
|
|
}
|
|
|
|
|
2016-01-18 23:43:02 +08:00
|
|
|
/* SG
|
2016-01-19 01:42:03 +08:00
|
|
|
# Typography/Icon font
|
2016-01-19 00:51:38 +08:00
|
|
|
All available icons in CartoDB.
|
|
|
|
|
2016-01-18 05:21:44 +08:00
|
|
|
```
|
2016-01-18 18:21:42 +08:00
|
|
|
<% _.each(glyphs, function(glyph) { %>
|
2016-01-20 19:58:47 +08:00
|
|
|
<% var name = glyph.fileName.split("_")[2].toCamelCase(); %>
|
2016-01-19 00:51:38 +08:00
|
|
|
<div class="box">
|
2016-01-25 17:31:54 +08:00
|
|
|
<i class="CDB-IconFont CDB-IconFont-<%= name %> Size-large"></i>
|
2017-05-23 23:54:22 +08:00
|
|
|
<h4 class="Text Size-small u-tSpace--m"><%= name %></h4>
|
2016-01-19 00:51:38 +08:00
|
|
|
</div>
|
2016-01-18 18:21:42 +08:00
|
|
|
<% }); %>
|
2016-01-18 05:21:44 +08:00
|
|
|
```
|
2016-01-18 18:21:42 +08:00
|
|
|
*/
|
2016-01-18 06:58:52 +08:00
|
|
|
|
2016-01-18 18:21:42 +08:00
|
|
|
<% _.each(glyphs, function(glyph) { %>
|
2016-01-20 19:58:47 +08:00
|
|
|
<% var name = glyph.fileName.split("_")[2].toCamelCase(); %>
|
2016-01-25 17:31:54 +08:00
|
|
|
.CDB-IconFont-<%= name %>::before {
|
2016-01-18 05:21:44 +08:00
|
|
|
content: '\<%= glyph.codePoint %>';
|
|
|
|
}
|
|
|
|
<% }); %>
|