Less agressive grayscale/opacity (#4688)

This commit is contained in:
Jaco Greeff 2017-02-27 22:28:21 +01:00 committed by GitHub
parent b13a446d82
commit 5e480e9fc0
2 changed files with 16 additions and 5 deletions

View File

@ -16,6 +16,7 @@
*/ */
.item { .item {
border: 2px solid transparent;
display: flex; display: flex;
flex: 1; flex: 1;
height: 100%; height: 100%;
@ -23,7 +24,9 @@
width: 100%; width: 100%;
&:hover { &:hover {
box-shadow: inset 0 0 0 2px rgb(255, 255, 255); border-color: transparent;
filter: none;
opacity: 1;
} }
.content { .content {
@ -31,7 +34,7 @@
width: 100%; width: 100%;
&:hover { &:hover {
background: rgba(255, 255, 255, 0.25); background-color: rgba(255, 255, 255, 0.5);
} }
} }
@ -43,13 +46,17 @@
} }
.selected { .selected {
box-shadow: inset 0 0 0 2px rgb(255, 255, 255); border-color: rgba(255, 255, 255, 0.25);
filter: none; filter: none;
&.default {
border-color: rgba(255, 255, 255, 0.75);
}
} }
.unselected { .unselected {
filter: grayscale(100%); filter: grayscale(10%);
opacity: 0.5; opacity: 0.75;
} }
.iconDisabled { .iconDisabled {

View File

@ -71,6 +71,10 @@ export default class SelectionList extends Component {
? [styles.item, styles.selected] ? [styles.item, styles.selected]
: [styles.item, styles.unselected]; : [styles.item, styles.unselected];
if (item.default) {
classes.push(styles.default);
}
return ( return (
<div className={ classes.join(' ') }> <div className={ classes.join(' ') }>
<div <div