Improve font configurations for global and headings#1879
Improve font configurations for global and headings#1879ivan-nginx merged 1 commit intoiissnan:masterfrom julianxhokaxhiu:feature/font-configuration
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.
It seems duplicate here.
There was a problem hiding this comment.
Following the style of the other declaration, seems a safe "default" way in stylus. Isn't it?
There was a problem hiding this comment.
Yeah, but i think need to set 14px in config by default instead of reading $font-size-base var twice.
font:
global:
size: 14There was a problem hiding this comment.
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.
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.
No need to define variables here like font-size: $font-size-base;?
There was a problem hiding this comment.
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 :) |
…figuration Improve font configurations for global and headings
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?