Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(icons): overwrite theme stylesheet to fix font path #161

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading