From ebd2a7034fbdb10ad3966c3fed245d0db837cf5f Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Sun, 10 Apr 2016 01:55:36 -0400 Subject: [PATCH] Use an SVG sprite for the p5 logo. --- css/style.css | 7 ++++++- lib/toolbar.tsx | 4 +++- static/img/p5js-beta.svg | 9 ++++++--- typings/react.d.ts | 1 + 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/css/style.css b/css/style.css index ab96f8a..990d26c 100644 --- a/css/style.css +++ b/css/style.css @@ -56,8 +56,13 @@ a.p5-logo { justify-content: center; } -a.p5-logo img { +a.p5-logo svg { height: 25px; + width: 55px; +} + +a.p5-logo svg use { + fill: $darkPink; } .media-play, .media-stop { diff --git a/lib/toolbar.tsx b/lib/toolbar.tsx index 60f9556..06c0506 100644 --- a/lib/toolbar.tsx +++ b/lib/toolbar.tsx @@ -27,7 +27,9 @@ export default class Toolbar extends React.Component { return (
- p5js.org + + +