-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Block styles in the editor.scss #8094
Comments
Same with subhead styles. I'm not sure why these styles need to be in the |
I'm afk for another week. I can't recall the exact circumstances but I think there was a good reason. @mtias had some thoughts. |
To the initial question about quote styles in the editor, it seems it was added b763387#diff-b11180e4d3335febb0b76d7038a7ad0a, in response to #6947. I don't personally have a super strong opinion on the stylings of quote citations, but I think I know the reason the font size rule was added back, and I believe it was the same reason why caption styles were added back (see d677a7a):
Similarly, the Flagging this so Tammie can take a look too. |
Makes totally sense but should these live in |
That's just it though, if they live in theme.css, you have to opt-in to them, which means few older WordPress themes will have citation styles. Again, I don't think that's a big issue because the default browser provided styling is just italic: https://codepen.io/joen/pen/wxyBvy — but I do agree it's an issue with captions for images. But let's wait and hear what Tammie thinks. |
True but now those styles are in the I guess I'm trying to say that nothing front-end related should live in |
The editor view, by default, aims to look like "a vanilla theme with no styles that has opted in to That's why some theme styles are placed in A theme that wants to modify how blocks look can overwrite the default in the editor, and avoid opting-in to styles on the front-end. Hope this helps clarify things a bit. |
Thanks, that clarifies the issue. I just don't like to overwrite anything in the editor since it breaks the CSS architecture in the theme. But not huge issue, just annoying. |
There are Quote styles in the editor.
I don't see any reason why they are there. @jasmussen Can you perhaps take a look.
The text was updated successfully, but these errors were encountered: