Skip to content

Commit

Permalink
fix(icons): overwrite theme stylesheet to fix font path
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Sep 6, 2024
1 parent 5e9ab2b commit 64dba3f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions assets/scss/custom/plugins/icons/_google-material.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Overwriting the theme stylesheet to fix font path

// Google Material Icon Font via
// https://github.com/marella/material-symbols/tree/main/material-symbols


@font-face {
font-family: 'Material Symbols Outlined';
font-weight: 400 700;
font-display: block;
font-style: normal;
src: local('Material Symbols Outlined'), local('Material Icons'), local('MaterialIcons-Outlined'),
url($material-icon-font-path) format('woff2'),
}
5 changes: 4 additions & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Overwriting the theme stylesheet to allow custom colors
// Overwriting the theme stylesheet to allow custom colors and set paths for icon import

/* Template Name: LotusLabs Docs
Author: Colin Wilson
Expand All @@ -13,6 +13,9 @@ $font-family-secondary: {{ .Site.Params.secondary_font | default "-apple-system
$font-family-sans-serif: {{ .Site.Params.sans_serif_font | default "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Ubuntu'" }};
$font-family-monospace: {{ .Site.Params.mono_font | default "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace" }};

//Icons
$material-icon-font-path: '{{ absURL "docs/fonts/material-symbols-outlined.woff2" }}';

//Fonts
// @import "custom/fonts/fonts";

Expand Down

0 comments on commit 64dba3f

Please sign in to comment.