2
0
mirror of https://github.com/erikflowers/weather-icons.git synced 2025-10-12 15:32:13 -06:00
erikflowers_weather-icons/less/weather-icons-classes.less

34 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-08-03 17:29:32 -06:00
@font-face {
font-family: '@{wi-font-family}';
src: url('@{wi-path}/@{wi-font-family}-regular-webfont.eot');
src: url('@{wi-path}/@{wi-font-family}-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('@{wi-path}/@{wi-font-family}-regular-webfont.woff') format('woff'),
url('@{wi-path}/@{wi-font-family}-regular-webfont.ttf') format('truetype'),
url('@{wi-path}/@{wi-font-family}-regular-webfont.svg#weathericons-regular-webfontRg') format('svg');
2013-08-03 17:29:32 -06:00
font-weight: normal;
font-style: normal;
}
.@{wi-css-prefix} {
display: inline-block;
font-family: '@{wi-font-family}';
2013-08-03 17:29:32 -06:00
font-style: normal;
font-weight: normal;
line-height: 1;
2013-08-03 17:29:32 -06:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2013-08-03 17:29:32 -06:00
}
// icon definitions
// --------------------------
// create icon definitions
.createIconClasses(@iterator: 1) when(@iterator <= length(@wi-icon-glyphs)) {
@wi-glyph-name: extract(extract(@wi-icon-glyphs, @iterator), 1);
@wi-glyph-name-unquoted: ~"@{wi-glyph-name}";
.@{wi-css-prefix}-@{wi-glyph-name-unquoted}:before {
content: extract(extract(@wi-icon-glyphs, @iterator), 2);
}
.createIconClasses((@iterator + 1));
2014-11-30 16:22:27 -08:00
}
.createIconClasses();