diff --git a/images/exit.svg b/images/exit.svg new file mode 100644 index 00000000..e8bd60c0 --- /dev/null +++ b/images/exit.svg @@ -0,0 +1,12 @@ + + + + Combined Shape + Created with Sketch. + + + + + + + diff --git a/images/preferences.svg b/images/preferences.svg index 4ca0b398..86a7a614 100644 --- a/images/preferences.svg +++ b/images/preferences.svg @@ -1,20 +1,19 @@ - - - stop + + + preferences Created with Sketch. - + + + - - - - - - - - - + + + + + + - \ No newline at end of file + diff --git a/shared/components/Preferences/Preferences.jsx b/shared/components/Preferences/Preferences.jsx index cb87b969..06610dc5 100644 --- a/shared/components/Preferences/Preferences.jsx +++ b/shared/components/Preferences/Preferences.jsx @@ -1,7 +1,7 @@ import React from 'react'; var Isvg = require('react-inlinesvg'); -var preferences = require('../../../images/preferences.svg'); +var exitUrl = require('../../../images/exit.svg'); var classNames = require('classnames'); class Preferences extends React.Component { @@ -11,9 +11,9 @@ class Preferences extends React.Component { "preferences--selected": this.props.isPreferencesShowing }); return ( -
+
); diff --git a/shared/containers/App/App.jsx b/shared/containers/App/App.jsx index 7ba79f4c..cca0dba6 100644 --- a/shared/containers/App/App.jsx +++ b/shared/containers/App/App.jsx @@ -20,6 +20,9 @@ class App extends React.Component { openPreferences={this.props.openPreferences} isPreferencesShowing = {this.props.preferences.isPreferencesShowing} /> + @@ -29,9 +32,6 @@ class App extends React.Component { } isPlaying={this.props.ide.isPlaying}/> -
); } diff --git a/styles/abstracts/_placeholders.scss b/styles/abstracts/_placeholders.scss index bf21414f..710e178a 100644 --- a/styles/abstracts/_placeholders.scss +++ b/styles/abstracts/_placeholders.scss @@ -1,6 +1,4 @@ -%toolbar-button { - background-color: $light-button-background-color; - color: $light-button-color; +%button { display: inline-block; height: #{44 / $base-font-size}rem; width: #{44 / $base-font-size}rem; @@ -10,11 +8,15 @@ cursor: pointer; border: none; outline: none; +} +%toolbar-button { + @extend %button; + background-color: $light-button-background-color; + color: $light-button-color; & g { fill: $light-toolbar-button-color; } - &:hover { background-color: $light-button-background-hover-color; color: $light-button-hover-color; @@ -30,3 +32,18 @@ } } } + +%preferences-button { + @extend %button; + background-color: $light-preferences-button-background-color; + & g { + fill: $light-preferences-button-color; + } + &:hover { + background-color: $light-preferences-button-background-color; + + & g { + fill: $light-preferences-button-hover-color; + } + } +} diff --git a/styles/abstracts/_variables.scss b/styles/abstracts/_variables.scss index e4edec20..9d76f428 100644 --- a/styles/abstracts/_variables.scss +++ b/styles/abstracts/_variables.scss @@ -35,4 +35,9 @@ $dark-button-active-color: $white; $editor-border-color: #f4f4f4; $editor-selected-line-color: #f3f3f3; -$preferences-background-color: #f4f4f4; +$light-preferences-background-color: #f4f4f4; + +$light-preferences-button-color: #8e8e8f; +$light-preferences-button-hover-color: #333333; + +$light-preferences-button-background-color: #e6e6e6; diff --git a/styles/components/_preferences.scss b/styles/components/_preferences.scss index 4f54a8ec..420300f3 100644 --- a/styles/components/_preferences.scss +++ b/styles/components/_preferences.scss @@ -1,5 +1,5 @@ .preferences { - background-color: $preferences-background-color; + background-color: $light-preferences-background-color; display: none; &--selected { display: flex; @@ -7,15 +7,11 @@ } .preferences__exit-button { - background-color: $light-button-background-color; - color: $light-button-color; - display: inline-block; - height: #{44 / $base-font-size}rem; - width: #{44 / $base-font-size}rem; - text-align: center; - line-height: #{50 / $base-font-size}rem; - cursor: pointer; - border: none; - outline: none; + @extend %preferences-button; margin-left: auto; + background-color: $light-preferences-background-color; + + &:hover { + background-color: $light-preferences-background-color; + } }