Logo color changes with theme. Fix #916 (#997)

* color changes with theme

* color changes with theme

* color changes with theme

* color changes with theme
This commit is contained in:
Apoorv Taneja 2019-03-28 23:51:43 +05:30 committed by Cassie Tarakajian
parent 3bf3fe1452
commit 391a92a1fd
2 changed files with 9 additions and 1 deletions

View file

@ -128,7 +128,7 @@ class Nav extends React.PureComponent {
<nav className="nav" title="main-navigation" ref={(node) => { this.node = node; }}>
<ul className="nav__items-left" title="project-menu">
<li className="nav__item-logo">
<InlineSVG src={logoUrl} alt="p5.js logo" />
<InlineSVG src={logoUrl} alt="p5.js logo" className="svg__logo" />
</li>
<li className={navDropdownState.file}>
<button

View file

@ -239,6 +239,14 @@ button {
position: absolute;
}
}
.svg__logo g > path {
@include themify() {
fill: getThemifyVariable('logo-color');
}
}
.svg__logo g g:first-of-type path {
fill: none;
}
.nav__keyboard-shortcut {
font-size: #{12 / $base-font-size}rem;