-
Notifications
You must be signed in to change notification settings - Fork 97
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
resolves #320 set CSS variables for font size, font family and line height #530
Conversation
Use `--asciidoc-font-family`, `--asciidoc-font-size` and `--asciidoc-line-height` variables.
… and line height
153075e
to
e3cffb2
Compare
I will take a look this weekend :-) |
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.
Thank you for the opportunity to review this.
I have made a few comments but I don't think having full control over line height is worth much effort as a feature and making this comprehensive could be some work...
I think we should remove the duplicate line-height definition but anything else I'm not sure about.
I removed the duplicate line-height and I'm now using In my opinion, it gives a decent result. |
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 can't get a preview at all at present with either the default or the editor stylesheet. Some of it is due to incorrect line-height definitions but there is something else which I am struggling to find. I'll look for a little bit more (I don't have good tools or approach for this and my 👀 fail me).
Very nice. I like the use of Although I can't find it, somehow both CSS files are invalid and on my machine I can't receive a preview. We must have somehow slightly different environments that this is working for you or I am missing a commit (?). I don't get any useful debug information on this error in the extension host logs or the webview developer tools console. I see:
I think this means there is a CSS definition problem somewhere as nothing else has changed but I can't find it and neither can the linter or https://jigsaw.w3.org/css-validator/validator |
Not sure... for reference, I'm testing using the |
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.
Not sure... for reference, I'm testing using the test-workspace/full.adoc file.
Somehow my node_modules
were polluted and a refresh fixed it.
I have tested and I think that's a great implementation 👍
Use
--asciidoc-font-family
,--asciidoc-font-size
and--asciidoc-line-height
variables.Fix #320
Fix #365