From 2914812bcf44c92a80c76bf6d4815cc41d393bbb Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Tue, 18 May 2021 13:43:30 +0300 Subject: [PATCH] include @font-face definition in mixin so -icons variable has effect (#12309) * include @font-face definition in mixin so -icons variable has effect (#12295) --- .../fonts/vaadin-icons/_vaadin-icons.scss | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/themes/src/main/themes/VAADIN/themes/valo/fonts/vaadin-icons/_vaadin-icons.scss b/themes/src/main/themes/VAADIN/themes/valo/fonts/vaadin-icons/_vaadin-icons.scss index 88dbebb8cc..3b66d5990b 100644 --- a/themes/src/main/themes/VAADIN/themes/valo/fonts/vaadin-icons/_vaadin-icons.scss +++ b/themes/src/main/themes/VAADIN/themes/valo/fonts/vaadin-icons/_vaadin-icons.scss @@ -1,20 +1,20 @@ -$vaadin-icons-pathPrefix: null; +@mixin vaadin-icons { -@if $v-relative-paths == false { - $vaadin-icons-pathPrefix: "../valo/fonts/vaadin-icons/"; -} + $vaadin-icons-pathPrefix: null; -@font-face { - font-family: 'Vaadin-Icons'; - src: url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.eot'); - src: url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.eot?#iefix') format('embedded-opentype'), - url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.woff') format('woff'), - url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.ttf') format('truetype'), - url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.svg#icomoon') format('svg'); -} -.Vaadin-Icons { - font-family: 'Vaadin-Icons'; -} + @if $v-relative-paths == false { + $vaadin-icons-pathPrefix: "../valo/fonts/vaadin-icons/"; + } -@mixin vaadin-icons { + @font-face { + font-family: 'Vaadin-Icons'; + src: url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.eot'); + src: url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.eot?#iefix') format('embedded-opentype'), + url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.woff') format('woff'), + url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.ttf') format('truetype'), + url('#{$vaadin-icons-pathPrefix}Vaadin-Icons.svg#icomoon') format('svg'); + } + .Vaadin-Icons { + font-family: 'Vaadin-Icons'; + } } -- 2.39.5