-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
t/494: Increased the specificity of CSS rules. Introduced the .ck class for editor UI components #921
Conversation
…s for editor UI components. Closes #494.
Why did you increase the specificity of content styles too? This issue was about UI's styles. Content styles are a different topic – they should be fairly simple to be overridden by the developer. |
These are the documentation styles, not user content styles. |
I didn't mean this. I meant all the changes in basic-stylers, block-quote, image, headings, etc. |
I agree, So I'm ok with adding extra |
I undid the changes in basic-styles, block-quote and image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
I reviewed all the changes and I'm unsure about these:
|
docs/assets/snippet-styles.css
Outdated
/* See https://github.com/ckeditor/ckeditor5/issues/494 */ | ||
margin-left: 0; | ||
} | ||
|
||
/* examples/builds/inline-editor.html */ | ||
.live-snippet .image-style-left, .live-snippet .image-style-right { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes don't make much sense to me. Either .ck
or .live-snippet
. The latter was used so far to bump up the specificity. Now, one of these become unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, .ck
is part of the UI, and .image-style-left
of the content. So, if anything, the selector which makes the most sense here is .ck-content .image-style-left
. But then, the content will not look good before the editor is initialised, so it'd be good to use a class which is always present. Which is... .live-snippet
;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's stick to .l-s
:P
I consider it the UI.
We used to have The icon, OTOH, is a different story. We had |
Suggested merge commit message (convention)
Docs: Increased the specificity of CSS rules. Introduced the .ck class for editor UI components. Closes #494.
Additional information
All branches in the constellation:
https://github.com/ckeditor/ckeditor5-basic-styles/compare/t/ckeditor5/494https://github.com/ckeditor/ckeditor5-block-quote/compare/t/ckeditor5/494Message for merging child branches