File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 11@use " sass:map" ;
22
33@each $font , $config in $fonts {
4- $src : " / webfonts/ " + map-get ( $config , " src " ) ;
4+ $dir : " webfonts" ;
55 $previewDir : " webfonts-preview" ;
66 @if variable-exists (previewFontsPath ) {
77 $previewDir : $previewFontsPath ;
88 }
99
1010 @font-face {
11- font-family : $font ;
11+ font-family : " #{ $font } " ;
1212 font-style : normal ;
1313 font-weight : map-get ($config , " weight" );
1414 font-display : block ;
15- src : url ($ src ) format (" woff2" );
15+ src : url (" / #{ $dir } / #{ map-get ( $config , ' src' )} " ) format (" woff2" );
1616 }
1717
1818 @font-face {
19- font-family : $font + " Preview" ;
19+ font-family : " #{ $font } Preview" ;
2020 font-style : normal ;
2121 font-weight : map-get ($config , " weight" );
2222 font-display : block ;
23- src : url (" /" + $previewDir + " / " + map-get ($config , " src" ) ) format (" woff2" );
23+ src : url (" /#{ $previewDir } / #{ map-get ($config , ' src' )} " ) format (" woff2" );
2424 }
2525}
Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ async function showCommands(): Promise<void> {
525525 fontFamily += " Preview" ;
526526 }
527527
528- html += `<div class="command" data-command-id="${ command . id } " data-index="${ index } " style="font-family: ${ fontFamily } "><div class="icon">${ finalIconHtml } </div><div>${ display } </div></div>` ;
528+ html += `<div class="command" data-command-id="${ command . id } " data-index="${ index } " style="font-family: ' ${ fontFamily } ' "><div class="icon">${ finalIconHtml } </div><div>${ display } </div></div>` ;
529529 }
530530 } else {
531531 html += `<div class="command" data-command-id="${ command . id } " data-index="${ index } " style="${ customStyle } "><div class="icon">${ finalIconHtml } </div><div>${ display } </div></div>` ;
Original file line number Diff line number Diff line change @@ -590,7 +590,7 @@ async function fillSettingsPage(): Promise<void> {
590590 const activeClass = Config . fontFamily === name ? " active" : "" ;
591591 const display = font . display ?? name . replace ( / _ / g, " " ) ;
592592
593- fontsElHTML += `<button class="${ activeClass } " style="font-family:${ fontFamily } " data-config-value="${ name } ">${ display } </button>` ;
593+ fontsElHTML += `<button class="${ activeClass } " style="font-family:' ${ fontFamily } ' " data-config-value="${ name } ">${ display } </button>` ;
594594 }
595595
596596 fontsElHTML +=
Original file line number Diff line number Diff line change 99 --error-extra-color : # 2e7dde ;
1010 --colorful-error-color : # 2e7dde ;
1111 --colorful-error-extra-color : # 2e7dde ;
12- --font : Roboto Mono;
1312}
You can’t perform that action at this time.
0 commit comments