-
Notifications
You must be signed in to change notification settings - Fork 20
Conversation
@ldez Font smoothing now seems to be handled on an editor-level (which seems to make more sense): atom/atom#1650 So I guess the rendering feature can be removed, and the code should be updated to the latest branch before the merge. Adhering to upstream stylesheets certainly seems to make more sense, especially if custom styles aren't regarded as improvements (as mentioned in issue #26 ) |
b78f001
to
6e7ecb9
Compare
Font smoothing and legibility settings always seem to bite us since browsers can't seem to agree on what the defaults are. I'm fine with letting the browser/environment decided on the font-smoothing at least. Changes to the stylesheet right now are incremental since we still need to resolve asciidoctor/asciidoctor-stylesheet-factory#18 before we have the right level of control. It shouldn't be necessary for the Atom plugin to be undoing styles that it doesn't want. Instead, we should be able to generate exactly the styles we need. But again, there are steps to getting there. |
I'm fine with this change, though it will need to be rebased to be merged. |
6da714d
to
2bd3e7c
Compare
I've rebase. |
There seem to be several styles that are being removed. Is this intentional? |
2bd3e7c
to
2020a2b
Compare
It's a mistake, sorry. I've correct errors. |
Thanks @ldez! @nicorikken can you confirm these changes look good to you? |
2020a2b
to
8beec1d
Compare
I've reviewed the changes, and in general they look good. I'm however a bit weary of dropping any form of styling for |
8beec1d
to
1e4eaa5
Compare
Looks good to me. Similar to the bold styling but without the boldness I assume? |
It's between 'url' color and 'bold' color. |
1e4eaa5
to
a365abb
Compare
This is good, but at some point we're going to need to look at all these color choices and make sure that they work well with all themes. Just mixing colors against the theme colors doesn't always lead to the best result. In fact, we probably shouldn't be wiring colors directly into the language. This seems to be something that is done in an editor theme. However, I'm not sure if it's possible to apply multiple themes, so if the provided themes don't support AsciiDoc, then we are back to having to add our own styling. The best approach is probably to merge these theme changes now, continue to refine our naming conventions for syntax, then eventually get theme authors to incorporate styling for AsciiDoc. So it's an incremental process. |
font-weight: bold; | ||
} | ||
.markup{ | ||
-webkit-font-smoothing: auto; |
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.
I think we should remove this line. This is something that should be provided by the base editor theme.
a365abb
to
d635255
Compare
LESS have a very powerful syntax and Atom provide theme variables like All colors are relative to the editor theme variables and the editor compute then on launch. @import 'syntax-variables'; Before my proposal I've test with some others theme like white themes. |
- use `&` instead of repeat `.markup` - fix font smoothing
d635255
to
4e8b488
Compare
To your credit, I do appreciate that the colors you've selected are tinted from the theme colors. I still think we'd need to do an overall review once we get all the syntax accounted for to make sure that we following a consistent pattern that is cohesive with the overall theme. Then we should document what pattern we're following so that others contributors know how to follow it when adding or updating rules. |
|
@ldez I thought so, but was misled by the comment by @mojavelinux I'll do a final check and merge your contributions. Nice work! |
@ldez I've merged it. I get the sense you have more experience with styling. Can you provide some reference info to act as a primer into styling in Atom? It could improve this project as well. |
The primary references: Atom theme variables:
Some others references: |
Sorry for causing confusion. 👍 on getting it merged! |
&
instead of repeat.markup