Skip to content

Commit

Permalink
Add hover styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedex committed Oct 3, 2017
1 parent a3a90f9 commit de11ff0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export default props => (
user-select: none;
}
button:hover {
background: ${COLORS.HOVER} !important;
}
button > span {
font-size: 14px;
line-height: 1;
Expand Down
8 changes: 8 additions & 0 deletions components/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class Dropdown extends React.Component {
border-bottom: 0.5px solid ${COLORS.SECONDARY};
}
.dropdown-list-item:hover {
background: ${COLORS.HOVER};
}
.dropdown-list-item:last-of-type {
border-bottom: none;
border-radius: 0px 0px 2px 2px;
Expand Down Expand Up @@ -107,6 +111,10 @@ class Dropdown extends React.Component {
z-index: 1;
}
.dropdown-display:hover {
background: ${COLORS.HOVER};
}
.is-visible + .dropdown-list {
display: block;
}
Expand Down
4 changes: 4 additions & 0 deletions components/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ class Settings extends React.Component {
cursor: pointer;
}
.settings-display:hover {
background: ${COLORS.HOVER};
}
.is-visible + .settings-settings {
display: block;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ export const COLORS = {
BLACK: '#121212',
PRIMARY: '#F8E81C',
SECONDARY: '#fff',
GRAY: '#858585'
GRAY: '#858585',
HOVER: '#1F1F1F'
}

export const DEFAULT_CODE = `const pluckDeep = key => obj => key.split('.').reduce((accum, key) => accum[key], obj)
Expand Down

0 comments on commit de11ff0

Please sign in to comment.