Skip to content

Commit

Permalink
Fix #149 Reorganization of font packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed May 25, 2019
1 parent 895f62d commit f46270a
Show file tree
Hide file tree
Showing 94 changed files with 35 additions and 33 deletions.
42 changes: 21 additions & 21 deletions _sass/external/_katex.scss
Original file line number Diff line number Diff line change
@@ -1,124 +1,124 @@
/*! KaTeX - license MIT */
$font-path: "../../assets/fonts" !default;
$katex-font-path: "../../assets/fonts/katex" !default;

/* stylelint-disable font-family-no-missing-generic-family-keyword */
@font-face {
font-family: 'KaTeX_AMS';
src: url(#{$font-path}/KaTeX_AMS-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_AMS-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_AMS-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_AMS-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_AMS-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_AMS-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Caligraphic';
src: url(#{$font-path}/KaTeX_Caligraphic-Bold.woff2) format('woff2'), url(#{$font-path}/KaTeX_Caligraphic-Bold.woff) format('woff'), url(#{$font-path}/KaTeX_Caligraphic-Bold.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Caligraphic-Bold.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Caligraphic-Bold.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Caligraphic-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Caligraphic';
src: url(#{$font-path}/KaTeX_Caligraphic-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_Caligraphic-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_Caligraphic-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Caligraphic-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Caligraphic-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Caligraphic-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Fraktur';
src: url(#{$font-path}/KaTeX_Fraktur-Bold.woff2) format('woff2'), url(#{$font-path}/KaTeX_Fraktur-Bold.woff) format('woff'), url(#{$font-path}/KaTeX_Fraktur-Bold.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Fraktur-Bold.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Fraktur-Bold.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Fraktur-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Fraktur';
src: url(#{$font-path}/KaTeX_Fraktur-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_Fraktur-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_Fraktur-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Fraktur-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Fraktur-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Fraktur-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Main';
src: url(#{$font-path}/KaTeX_Main-Bold.woff2) format('woff2'), url(#{$font-path}/KaTeX_Main-Bold.woff) format('woff'), url(#{$font-path}/KaTeX_Main-Bold.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Main-Bold.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Main-Bold.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Main-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Main';
src: url(#{$font-path}/KaTeX_Main-BoldItalic.woff2) format('woff2'), url(#{$font-path}/KaTeX_Main-BoldItalic.woff) format('woff'), url(#{$font-path}/KaTeX_Main-BoldItalic.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Main-BoldItalic.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Main-BoldItalic.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Main-BoldItalic.ttf') format('truetype');
font-weight: bold;
font-style: italic;
}
@font-face {
font-family: 'KaTeX_Main';
src: url(#{$font-path}/KaTeX_Main-Italic.woff2) format('woff2'), url(#{$font-path}/KaTeX_Main-Italic.woff) format('woff'), url(#{$font-path}/KaTeX_Main-Italic.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Main-Italic.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Main-Italic.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Main-Italic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'KaTeX_Main';
src: url(#{$font-path}/KaTeX_Main-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_Main-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_Main-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Main-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Main-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Main-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Math';
src: url(#{$font-path}/KaTeX_Math-BoldItalic.woff2) format('woff2'), url(#{$font-path}/KaTeX_Math-BoldItalic.woff) format('woff'), url(#{$font-path}/KaTeX_Math-BoldItalic.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Math-BoldItalic.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Math-BoldItalic.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Math-BoldItalic.ttf') format('truetype');
font-weight: bold;
font-style: italic;
}
@font-face {
font-family: 'KaTeX_Math';
src: url(#{$font-path}/KaTeX_Math-Italic.woff2) format('woff2'), url(#{$font-path}/KaTeX_Math-Italic.woff) format('woff'), url(#{$font-path}/KaTeX_Math-Italic.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Math-Italic.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Math-Italic.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Math-Italic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'KaTeX_SansSerif';
src: url(#{$font-path}/KaTeX_SansSerif-Bold.woff2) format('woff2'), url(#{$font-path}/KaTeX_SansSerif-Bold.woff) format('woff'), url(#{$font-path}/KaTeX_SansSerif-Bold.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_SansSerif-Bold.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_SansSerif-Bold.woff') format('woff'), url('#{$katex-font-path}/KaTeX_SansSerif-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_SansSerif';
src: url(#{$font-path}/KaTeX_SansSerif-Italic.woff2) format('woff2'), url(#{$font-path}/KaTeX_SansSerif-Italic.woff) format('woff'), url(#{$font-path}/KaTeX_SansSerif-Italic.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_SansSerif-Italic.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_SansSerif-Italic.woff') format('woff'), url('#{$katex-font-path}/KaTeX_SansSerif-Italic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'KaTeX_SansSerif';
src: url(#{$font-path}/KaTeX_SansSerif-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_SansSerif-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_SansSerif-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_SansSerif-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_SansSerif-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_SansSerif-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Script';
src: url(#{$font-path}/KaTeX_Script-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_Script-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_Script-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Script-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Script-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Script-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Size1';
src: url(#{$font-path}/KaTeX_Size1-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_Size1-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_Size1-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Size1-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Size1-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Size1-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Size2';
src: url(#{$font-path}/KaTeX_Size2-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_Size2-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_Size2-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Size2-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Size2-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Size2-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Size3';
src: url(#{$font-path}/KaTeX_Size3-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_Size3-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_Size3-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Size3-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Size3-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Size3-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Size4';
src: url(#{$font-path}/KaTeX_Size4-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_Size4-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_Size4-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Size4-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Size4-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Size4-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'KaTeX_Typewriter';
src: url(#{$font-path}/KaTeX_Typewriter-Regular.woff2) format('woff2'), url(#{$font-path}/KaTeX_Typewriter-Regular.woff) format('woff'), url(#{$font-path}/KaTeX_Typewriter-Regular.ttf) format('truetype');
src: url('#{$katex-font-path}/KaTeX_Typewriter-Regular.woff2') format('woff2'), url('#{$katex-font-path}/KaTeX_Typewriter-Regular.woff') format('woff'), url('#{$katex-font-path}/KaTeX_Typewriter-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
Expand Down
14 changes: 8 additions & 6 deletions _sass/external/_pacifico.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
$pacifico-font-path: "../../assets/fonts/pacifico" !default;

@font-face {
font-family: 'Pacifico';
src: url('../fonts/Pacifico/Pacifico.eot'); /* IE9 Compat Modes */
src: url('../fonts/Pacifico/Pacifico.eot?#iefix') format('embedded-opentype'),
url('../fonts/Pacifico/Pacifico.woff2') format('woff2'),
url('../fonts/Pacifico/Pacifico.woff') format('woff'),/* Modern Browsers */
url('../fonts/Pacifico/Pacifico.ttf') format('truetype'),/* Safari, Android, iOS */
url('../fonts/Pacifico/Pacifico.svg#Pacifico') format('svg');/* Legacy iOS */
src: url('#{$pacifico-font-path}/Pacifico.eot'); /* IE9 Compat Modes */
src: url('#{$pacifico-font-path}/Pacifico.eot?#iefix') format('embedded-opentype'),
url('#{$pacifico-font-path}/Pacifico.woff2') format('woff2'),
url('#{$pacifico-font-path}/Pacifico.woff') format('woff'),/* Modern Browsers */
url('#{$pacifico-font-path}/Pacifico.ttf') format('truetype'),/* Safari, Android, iOS */
url('#{$pacifico-font-path}/Pacifico.svg#Pacifico') format('svg');/* Legacy iOS */
font-weight: normal;
font-style: normal;
}
10 changes: 5 additions & 5 deletions _sass/external/_source-sans-pro.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* (Font: SIL OFL 1.1, CSS: MIT License)
*/

$font-path: "#{$font-path}" !default;
$ssp-font-path: "../../assets/fonts/source-sans-pro" !default;
/* latin */
@font-face {
font-family: 'Source Sans Pro';
font-style: italic;
font-display: auto;
font-weight: 400;
src: local("Source Sans Pro Italic"), local("SourceSansPro-Italic"), url(#{$font-path}/source-sans-pro-italic.woff2) format("woff2");
src: local("Source Sans Pro Italic"), local("SourceSansPro-Italic"), url('#{$ssp-font-path}/source-sans-pro-italic.woff2') format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

Expand All @@ -20,7 +20,7 @@ $font-path: "#{$font-path}" !default;
font-style: italic;
font-display: auto;
font-weight: 700;
src: local("Source Sans Pro Bold Italic"), local("SourceSansPro-BoldItalic"), url(#{$font-path}/source-sans-pro-bold-italic.woff2) format("woff2");
src: local("Source Sans Pro Bold Italic"), local("SourceSansPro-BoldItalic"), url('#{$ssp-font-path}/source-sans-pro-bold-italic.woff2') format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

Expand All @@ -30,7 +30,7 @@ $font-path: "#{$font-path}" !default;
font-style: normal;
font-display: auto;
font-weight: 400;
src: local("Source Sans Pro Regular"), local("SourceSansPro-Regular"), url(#{$font-path}/source-sans-pro-regular.woff2) format("woff2");
src: local("Source Sans Pro Regular"), local("SourceSansPro-Regular"), url('#{$ssp-font-path}/source-sans-pro-regular.woff2') format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

Expand All @@ -40,6 +40,6 @@ $font-path: "#{$font-path}" !default;
font-style: normal;
font-display: auto;
font-weight: 700;
src: local("Source Sans Pro Bold"), local("SourceSansPro-Bold"), url(#{$font-path}/source-sans-pro-bold.woff2) format("woff2");
src: local("Source Sans Pro Bold"), local("SourceSansPro-Bold"), url('#{$ssp-font-path}/source-sans-pro-bold.woff2') format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
2 changes: 1 addition & 1 deletion _sass/external/font-awesome/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Variables
// --------------------------

$fa-font-path: "../../assets/fonts" !default;
$fa-font-path: "../../assets/fonts/fontawesome" !default;
$fa-font-size-base: 14px !default;
$fa-line-height-base: 1 !default;
//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts" !default; // for referencing Bootstrap CDN font files directly
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f46270a

Please sign in to comment.