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

Fix/post title borders in code editor #14771

Merged
merged 5 commits into from
Apr 3, 2019
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
14 changes: 12 additions & 2 deletions packages/edit-post/src/components/text-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,26 @@
padding: $block-padding;
}

// Hide the thick left border in the code editor.
&:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover,
&:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input {
box-shadow: none;
border-left-width: $border-width;
}

textarea:hover,
&.is-selected textarea {
box-shadow: 0 0 0 $border-width $light-gray-500;
}
}

.editor-post-permalink {
left: 0;
right: 0;
margin-top: -6px;

// Hide the thick left border in the code editor.
box-shadow: none;
border: none;
outline: $border-width solid $light-gray-800;
}

@include break-small() {
Expand Down