blob: d85b43d9558ae953a1b077ffacc5e2e1e2472443 [file] [log] [blame]
////
/// @group layout/iconfont
////
/* fixed icons (not related to other elements)
* having distinctive css classnames
*/
/* Custom-theme related fonts */
@font-face {
font-family: 'Vaadin-Icons';
src: url('../fonts/Vaadin-Icons.eot');
src: url('../fonts/Vaadin-Icons.eot?#iefix') format('embedded-opentype'),
url('../fonts/Vaadin-Icons.woff') format('woff'),
url('../fonts/Vaadin-Icons.ttf') format('truetype'),
url('../fonts/Vaadin-Icons.svg#icomoon') format('svg');
}
@font-face {
font-family: 'fontello';
src: url('../fonts/fontello.eot');
src: url('../fonts/fontello.eot?#iefix') format('embedded-opentype'),
url('../fonts/fontello.woff') format('woff'),
url('../fonts/fontello.ttf') format('truetype'),
url('../fonts/fontello.svg#icomoon') format('svg');
}
@import "../legacy/icons/fontello.scss";
/* /!\ Fonts included in Vaadin theme sources (like base/fonts)
need to be copied to the respective theme-directories under
VAADIN/themes
*/
@font-face {
font-family: 'ThemeIcons';
src: url('../fonts/themeicons-webfont.eot');
src: url('../fonts/themeicons-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/themeicons-webfont.woff') format('woff'),
url('../fonts/themeicons-webfont.ttf') format('truetype'),
url('../fonts/themeicons-webfont.svg#icomoon') format('svg');
}
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot');
src: url('../fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/fontawesome-webfont.woff') format('woff'),
url('../fonts/fontawesome-webfont.ttf') format('truetype'),
url('../fonts/fontawesome-webfont.svg#icomoon') format('svg');
}
[class^="fa-"], [class*=" fa-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'FontAwesome'/* !important*/;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
text-shadow: $os-text-shadow;
text-shadow: valo-text-shadow();
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[class^="vi-"], [class*=" vi-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'Vaadin-Icons' /*!important*/;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
text-shadow: $os-text-shadow;
text-shadow: valo-text-shadow();
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* import stylename-unicode reference */
@import "../external/font-awesome-reference.scss";
@import "../external/vaadin-icons-reference.scss";
/* FontAwesome icons replacing fontello icons */
/// Specific classnames are replaced by specific font icons here.
@mixin os-icons {
.icon-download {
@include os-icon-font ($content: '\f019');
}
.icon-upload {
@include os-icon-font ($content: '\f093');
}
.icon-chart {
@include os-icon-font ($content: '\f080');
@include os-icon-font ($content: '\f201'); //Requires Fontawesome v4
}
.icon-user {
@include os-icon-font ($content: '\f007');
}
.icon-attention {
@include os-icon-font ($content: '\f071');
}
.icon-cancel {
@include os-icon-font ($content: '\f08b');
}
.icon-cog {
@include os-icon-font ($content: '\f013');
}
}