Browse Source

Rework outline and brand icons to load from overrides, not define icons if not loaded (except brand which would require a refactor) #6226

fa5-icon
Jack 6 years ago
parent
commit
7fab7974a7
12 changed files with 524 additions and 467 deletions
  1. 0
      src/themes/default/assets/fonts/icons.eot
  2. 0
      src/themes/default/assets/fonts/icons.svg
  3. 0
      src/themes/default/assets/fonts/icons.ttf
  4. 0
      src/themes/default/assets/fonts/icons.woff
  5. 0
      src/themes/default/assets/fonts/icons.woff2
  6. 0
      src/themes/default/assets/fonts/outline-icons.eot
  7. 0
      src/themes/default/assets/fonts/outline-icons.svg
  8. 0
      src/themes/default/assets/fonts/outline-icons.ttf
  9. 0
      src/themes/default/assets/fonts/outline-icons.woff
  10. 0
      src/themes/default/assets/fonts/outline-icons.woff2
  11. 946
      src/themes/default/elements/icon.overrides
  12. 45
      src/themes/default/elements/icon.variables

src/themes/default/assets/fonts/solid-icons.eot → src/themes/default/assets/fonts/icons.eot

src/themes/default/assets/fonts/solid-icons.svg → src/themes/default/assets/fonts/icons.svg

src/themes/default/assets/fonts/solid-icons.ttf → src/themes/default/assets/fonts/icons.ttf

src/themes/default/assets/fonts/solid-icons.woff → src/themes/default/assets/fonts/icons.woff

src/themes/default/assets/fonts/solid-icons.woff2 → src/themes/default/assets/fonts/icons.woff2

src/themes/default/assets/fonts/regular-icons.eot → src/themes/default/assets/fonts/outline-icons.eot

src/themes/default/assets/fonts/regular-icons.svg → src/themes/default/assets/fonts/outline-icons.svg

src/themes/default/assets/fonts/regular-icons.ttf → src/themes/default/assets/fonts/outline-icons.ttf

src/themes/default/assets/fonts/regular-icons.woff → src/themes/default/assets/fonts/outline-icons.woff

src/themes/default/assets/fonts/regular-icons.woff2 → src/themes/default/assets/fonts/outline-icons.woff2

946
src/themes/default/elements/icon.overrides
File diff suppressed because it is too large
View File

45
src/themes/default/elements/icon.variables

@ -2,35 +2,39 @@
Icon
*******************************/
/*-------------------
Icon Variables
--------------------*/
/*--------------
Font Files
---------------*/
@importSolidIcons: true;
@fontName: 'solid-icons';
@solidFallbackSRC: url("@{fontPath}/@{fontName}.eot");
@solidSrc:
@fontName: 'icons';
@src:
url("@{fontPath}/@{fontName}.eot?#iefix") format('embedded-opentype'),
url("@{fontPath}/@{fontName}.woff2") format('woff2'),
url("@{fontPath}/@{fontName}.woff") format('woff'),
url("@{fontPath}/@{fontName}.ttf") format('truetype'),
url("@{fontPath}/@{fontName}.svg#icons") format('svg')
;
@fallbackSRC: url("@{fontPath}/@{fontName}.eot");
@importRegularIcons: true;
@regularFontName: 'regular-icons';
@regularFallbackSRC: url("@{fontPath}/@{regularFontName}.eot");
@regularSrc:
url("@{fontPath}/@{regularFontName}.eot?#iefix") format('embedded-opentype'),
url("@{fontPath}/@{regularFontName}.woff2") format('woff2'),
url("@{fontPath}/@{regularFontName}.woff") format('woff'),
url("@{fontPath}/@{regularFontName}.ttf") format('truetype'),
url("@{fontPath}/@{regularFontName}.svg#icons") format('svg')
/*--------------
Optional Files
---------------*/
/* Outline Icons */
@importOutlineIcons: false;
@outlineFontName: 'outline-icons';
@outlineSrc:
url("@{fontPath}/@{outlineFontName}.eot?#iefix") format('embedded-opentype'),
url("@{fontPath}/@{outlineFontName}.woff2") format('woff2'),
url("@{fontPath}/@{outlineFontName}.woff") format('woff'),
url("@{fontPath}/@{outlineFontName}.ttf") format('truetype'),
url("@{fontPath}/@{outlineFontName}.svg#icons") format('svg')
;
@outlineFallbackSRC: url("@{fontPath}/@{outlineFontName}.eot");
/* Brand Icons */
@importBrandIcons: true;
@brandFontName: 'brand-icons';
@brandFallbackSRC: url("@{fontPath}/@{brandFontName}.eot");
@brandSrc:
url("@{fontPath}/@{brandFontName}.eot?#iefix") format('embedded-opentype'),
url("@{fontPath}/@{brandFontName}.woff2") format('woff2'),
@ -38,7 +42,13 @@
url("@{fontPath}/@{brandFontName}.ttf") format('truetype'),
url("@{fontPath}/@{brandFontName}.svg#icons") format('svg')
;
@brandFallbackSRC: url("@{fontPath}/@{brandFontName}.eot");
/*--------------
Definition
---------------*/
/* Icon Variables */
@opacity: 1;
@width: @iconWidth;
@height: 1em;
@ -46,7 +56,6 @@
/* Variations */
@linkOpacity: 0.8;
@linkDuration: 0.3s;
@loadingDuration: 2s;

Loading…
Cancel
Save