diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2017-02-01 19:13:08 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-02-01 19:13:08 +0200 |
commit | 6c624e86e39d8dc59452a2ce3e182d78b1f9eaeb (patch) | |
tree | add20750a4ee6a729cf828af25e685b1981b76b7 /themes/src/main | |
parent | 53674a7cafc22e8e21f5a7d46df0f5c126fb76c6 (diff) | |
download | vaadin-framework-6c624e86e39d8dc59452a2ce3e182d78b1f9eaeb.tar.gz vaadin-framework-6c624e86e39d8dc59452a2ce3e182d78b1f9eaeb.zip |
Replace FontAwesome with Vaadin Icons (#8208)
* Include FontAwesome by default for easier migration
* Fix JSComponentLoadingIndicatorTest
Fixes #7979
Addresses part of #8219
Diffstat (limited to 'themes/src/main')
-rw-r--r-- | themes/src/main/themes/VAADIN/themes/valo/fonts/_fonts.scss | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/themes/src/main/themes/VAADIN/themes/valo/fonts/_fonts.scss b/themes/src/main/themes/VAADIN/themes/valo/fonts/_fonts.scss index 8a51b765b9..9c45d6deda 100644 --- a/themes/src/main/themes/VAADIN/themes/valo/fonts/_fonts.scss +++ b/themes/src/main/themes/VAADIN/themes/valo/fonts/_fonts.scss @@ -4,20 +4,36 @@ @import "roboto/roboto"; @import "lato/lato"; @import "lora/lora"; +@import "../../../VAADIN/addons/vaadin-icons/vaadin-icons.scss"; +/// Include VaadinIcons. They are included in Valo +/// since Vaadin Framework version 8.0 (#7979) +/// https://vaadin.com/icons + +$v-icons: true !default; + +/// Set the value of this variable to `false` if you want to exclude the Font Awesome icons. +/// Only included to ease migration, and will not be updated in the future. +/// We encourage you to use the FontAwesomeLabel add-on from the Directory instead: +/// https://vaadin.com/directory/#!addon/fontawesomelabel $v-font-awesome: true !default; -$fontawesome-pathPrefix: null; +$font-icons-pathPrefix: null; @if $v-relative-paths == true { - $fontawesome-pathPrefix: "../../../"; + $font-icons-pathPrefix: "../../../"; } @mixin valo-fonts { // Valo Icons - @include v-font(ThemeIcons, "#{$fontawesome-pathPrefix}../valo/fonts/themeicons-webfont/themeicons-webfont"); + @include v-font(ThemeIcons, "#{$font-icons-pathPrefix}../valo/fonts/themeicons-webfont/themeicons-webfont"); + // Vaadin Icons + @if $v-icons { + @include vaadin-icons; + } + // FontAwesome @if $v-font-awesome { - @include v-font(FontAwesome, "#{$fontawesome-pathPrefix}../valo/fonts/fontawesome-webfont/fontawesome-webfont"); + @include v-font(FontAwesome, "#{$font-icons-pathPrefix}../valo/fonts/fontawesome-webfont/fontawesome-webfont"); } } |