From: Bill Erickson Date: Wed, 29 May 2019 14:37:27 +0000 (-0400) Subject: LP1830912 Locally servered material icons X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fberick%2Flp1830912-local-mat-icons;p=working%2FEvergreen.git LP1830912 Locally servered material icons Adds the material-icons NPM package and teaches the Angular code to import the icons at build time instead of fetching the icons from the Google servers. Two existing icons were swapped with alternate icons to avoid odd spacing issues with the locally served versions. Note 'npm install' is required to pick up the new icons package. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/package.json b/Open-ILS/src/eg2/package.json index 98b52939e5..45fa93c6ed 100644 --- a/Open-ILS/src/eg2/package.json +++ b/Open-ILS/src/eg2/package.json @@ -28,6 +28,7 @@ "bootstrap-css-only": "^4.2.1", "core-js": "^2.6.3", "file-saver": "^2.0.0", + "material-design-icons": "^3.0.1", "ngx-cookie": "^4.1.2", "rxjs": "^6.4.0", "zone.js": "^0.8.29" diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index 8034f4174e..8e561e8ad2 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -143,11 +143,11 @@ Staff Catalog (Experimental) - list_alt + list Record Buckets - list_alt + list Copy Buckets @@ -352,7 +352,7 @@ Booking Administration - insert_chart_outlined + insert_chart Reports diff --git a/Open-ILS/src/eg2/src/index.html b/Open-ILS/src/eg2/src/index.html index f705dba34e..9ecb4c51fb 100644 --- a/Open-ILS/src/eg2/src/index.html +++ b/Open-ILS/src/eg2/src/index.html @@ -6,8 +6,6 @@ - - diff --git a/Open-ILS/src/eg2/src/styles.css b/Open-ILS/src/eg2/src/styles.css index 10424f2722..81aa6e38e6 100644 --- a/Open-ILS/src/eg2/src/styles.css +++ b/Open-ILS/src/eg2/src/styles.css @@ -3,16 +3,8 @@ /* bootstrap CSS only -- JS bits come from ng-bootstrap */ @import '~bootstrap-css-only/css/bootstrap.min.css'; -/* Locally served material icon fonts. - * Note when I first tested these after installing the fonts - * via: npm install --save material-design-icons - * some of the icons exhibited odd behavior, adding a lot of - * excess space to the left or right. It only affected certain - * icons. More research needed. - * / -/* -@import '~material-design-icons/iconfont/material-icons.css'; -*/ +/* Locally served material icon fonts */ +@import '~material-design-icons/iconfont/material-icons.css'; /** BS default fonts are huge */ body, .form-control, .btn, .input-group-text {