Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-5919 Make consistency with showing + icon on block library #6090

Merged
merged 2 commits into from
Apr 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions editor/components/default-block-appender/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,23 @@ $empty-paragraph-height: $text-editor-font-size * 4;
}

// Show quick insertion icons faded until hover
.editor-inserter-with-shortcuts {
.editor-inserter-with-shortcuts,
.editor-inserter {
.components-icon-button {
color: $light-gray-700;
transition: color 0.2s;
}
}

// Don't show inserter until mousing
.editor-inserter {
opacity: 0;
}

&:hover {
.editor-inserter-with-shortcuts {
.editor-inserter-with-shortcuts,
.editor-inserter {
opacity: 1;

.components-icon-button {
color: $dark-gray-500;
}
}

.editor-inserter {
opacity: 1;
}
}

// Dropzone
Expand All @@ -57,8 +50,8 @@ $empty-paragraph-height: $text-editor-font-size * 4;
.editor-block-list__empty-block-inserter,
.editor-default-block-appender .editor-inserter {
position: absolute;
top: $item-spacing;
right: $item-spacing; // show on the right on mobile
top: $item-spacing;
right: $item-spacing; // show on the right on mobile
transition: opacity 0.2s;

@include break-small {
Expand Down