Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #121 from ckeditor/t/ckeditor5-font/4
Browse files Browse the repository at this point in the history
Other: Style `ck-button_with-text` instead of styling every dropdown button in toolbar. Closes #122.
  • Loading branch information
Reinmar authored Jan 15, 2018
2 parents 57d07e6 + 9a156b3 commit 93338a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions theme/ckeditor5-ui/components/editorui/editorui.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,18 @@
}

& > .ck-button,
& .ck-buttondropdown .ck-dropdown__button {
& .ck-dropdown .ck-dropdown__button {
&:not(:hover):not(:focus):not(.ck-on),
&.ck-disabled {
background: var(--ck-color-editor-toolbar-background);
}

&.ck-on {
&.ck-on:not(.ck-button_with-text) {
@mixin ck-button-colors --ck-color-editor-toolbar-button-on;
}
}

/* Exclude main button dropdown button */
& .ck-dropdown:not(.ck-buttondropdown) .ck-dropdown__button {
& .ck-dropdown .ck-dropdown__button.ck-button_with-text {
border-width: 1px;

&:not(:hover):not(:focus):not(.ck-on) {
Expand Down

0 comments on commit 93338a5

Please sign in to comment.