Skip to content

Commit

Permalink
Tweak the hover style props to @shaunandrews
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 11, 2018
1 parent 5528b1b commit c37270d
Showing 1 changed file with 31 additions and 13 deletions.
44 changes: 31 additions & 13 deletions editor/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,29 +87,42 @@ input[type="search"].editor-inserter__search {
.editor-inserter__item {
display: inline-flex;
flex-direction: column;
width: calc( 33% - 2px );
margin: 1px;
width: calc( 33.3% - 4px );
margin: 0 2px 8px 2px;//1px;
font-size: $default-font-size;
color: $dark-gray-500;
padding: 8px 6px;
padding: 0;//8px 6px;
align-items: stretch;
justify-content: center;
cursor: pointer;
border: none;
line-height: 1em;
//line-height: 1em;
background: transparent;
min-height: 5em;
//min-height: 5em;
overflow: hidden;
word-break: break-word;
border-radius: 3px;
border: 1px solid transparent;
transition: all 0.03s ease-in-out;

&:disabled {
@include button-style__disabled;
}

&:not(:disabled) {
&:hover {
//background: $light-gray-200;
border-color: $light-gray-300;
box-shadow: 0 1px 0 $light-gray-300;
transform: scale( 1.1 );

.editor-inserter__item-icon {
border: 1px solid $dark-gray-800;
//background: $light-gray-400;
color: $dark-gray-800;

svg {
//transform: scale( 1.1 );
}
}

.editor-inserter__item-title {
Expand All @@ -122,20 +135,25 @@ input[type="search"].editor-inserter__search {
&.is-active {
@include button-style__focus-active;
position: relative;
outline: 1px solid $dark-gray-500;
}
}
}

.editor-inserter__item-icon {
padding: 7px 20px;
background: $light-gray-400;
border-radius: 3px;
margin-bottom: 5px;
color: $dark-gray-800;
border: 1px solid transparent;
background: $light-gray-200;
border-radius: 3px 3px 0 0;
color: $dark-gray-500;
transition: all 0.05s ease-in-out;

svg {
width: 25px;
height: 25px;
width: 22px;
height: 22px;
transition: all 0.2s ease-out;
}
}

.editor-inserter__item-title {
padding: 4px 2px;
}

0 comments on commit c37270d

Please sign in to comment.