From 64f4b92456fb38ffe287d9426f29cc73a6e467df Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Wed, 23 Aug 2017 20:50:21 -0300 Subject: [PATCH] Use SVG icon in footer. --- app/helpers.php | 9 +++++++++ resources/assets/images/pb.svg | 11 +---------- resources/assets/styles/layouts/_footer.scss | 4 ++++ resources/views/partials/footer.blade.php | 2 +- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index 3668092..a998192 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -79,6 +79,15 @@ function asset_path($asset) return sage('assets')->getUri($asset); } +/** + * @param $asset + * @return string + */ +function svg_path($asset) +{ + return sage('assets')->get($asset); +} + /** * @param string|string[] $templates Possible template files * @return array diff --git a/resources/assets/images/pb.svg b/resources/assets/images/pb.svg index e0d0dfd..65cc121 100644 --- a/resources/assets/images/pb.svg +++ b/resources/assets/images/pb.svg @@ -1,10 +1 @@ - - - - Untitled 5 - Created with Sketch. - - - - - \ No newline at end of file +PB diff --git a/resources/assets/styles/layouts/_footer.scss b/resources/assets/styles/layouts/_footer.scss index 1abdd3d..3f1e865 100644 --- a/resources/assets/styles/layouts/_footer.scss +++ b/resources/assets/styles/layouts/_footer.scss @@ -175,6 +175,10 @@ .pressbooks-icon { display: block; line-height: 1; + + svg path { + fill: $white; + } } .social-media { diff --git a/resources/views/partials/footer.blade.php b/resources/views/partials/footer.blade.php index aaa2999..aa78c94 100644 --- a/resources/views/partials/footer.blade.php +++ b/resources/views/partials/footer.blade.php @@ -20,7 +20,7 @@ @endif