-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Improve font configurations for global and headings #1879
Improve font configurations for global and headings #1879
Conversation
-> Add a possibility to configure them via the _config.yml file ( or data file ) -> Reflect the configuration in base.styl -> Remove hardcoded font-sizes for headings inside post-title.styl -> Improve documentation around font customization inside the _config.yml file
What about if user want to define not in |
@@ -92,6 +92,7 @@ $font-weight-bolder = 700 | |||
|
|||
// Font size | |||
$font-size-base = 14px |
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.
It seems duplicate here.
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.
Following the style of the other declaration, seems a safe "default" way in stylus. Isn't it?
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.
Yeah, but i think need to set 14px in config by default instead of reading $font-size-base
var twice.
font:
global:
size: 14
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.
Well, I will create another PR then to get rid of this double declarations. I saw a lot of them during the patch making.
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.
Hope u know what u are doing.
Also, always remember what in NexT is 4 schemes. And if on one of them (for ex on Mist) worked well, on another scheme this can be broken. Muse and Mist have aproach structure, but Pisces is very difference from them. Gemini is mirror of Pisces with some style remakes and additions. So, please, make the tests at least on two schemes (Muse || Mist && Pisces || Gemini).
@@ -1,12 +1,7 @@ | |||
.posts-expand .post-title { |
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.
No need to define variables here like font-size: $font-size-base;
?
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.
It is inherited from the global h1...h6 declaration in the scaffolding part. While this one was just overriding it always with a fixed px value.
Related to the |
Yep, need to think about |
Totally agree! Thanks for the comprehension :) |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
At the current status, generic font-sizes can't be configured by just editing the .yml configuration file. A fork of the theme is required, and an edit of some files is required.
What is the new behavior?
The new approach goes towards an easier configuration of font-size throught the yml file:
How to use?
In NexT
_config.yml
:See _config.yml inside this PR
Does this PR introduce a breaking change?