Skip to content

Commit

Permalink
Style selected layout with grey color when focused / hovered so it ca…
Browse files Browse the repository at this point in the history
…n be visually identified
  • Loading branch information
Razvan Papadopol committed Jan 6, 2020
1 parent 50a7ff9 commit 9234d31
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ $deisgn-selector-selection-space: 175px;
overflow: hidden;
padding: 2px;

&:hover,
&:focus {
border: 3px solid var( --color-neutral-dark );
padding: 0;
}

&.is-selected {
border: 3px solid $blue-medium-focus;
padding: 0;
Expand All @@ -152,6 +146,20 @@ $deisgn-selector-selection-space: 175px;
transform: translate3d( 0, 0, 0 );
}
}

&:hover,
&:focus {
border: 3px solid var( --color-neutral-dark );
padding: 0;
.page-layout-selector__selected-indicator {
background: linear-gradient(
to bottom left,
var( --color-neutral-dark ),
var( --color-neutral-dark ) 50%,
transparent 51% /* 1% difference helps prevent a rough edge */
);
}
}
}

.page-layout-selector__selected-indicator {
Expand Down

0 comments on commit 9234d31

Please sign in to comment.