Reduce the use of !important for GitHub banner#744
Reduce the use of !important for GitHub banner#744stevenjoezhang merged 6 commits intotheme-next:masterfrom stevenjoezhang:important
!important for GitHub banner#744Conversation
ivan-nginx
left a comment
There was a problem hiding this comment.
Non-relevant to GitHub banner.
|
@ivan-nginx The title of this PR is called |
| +tablet-mobile() { | ||
| > svg { | ||
| if (scheme == 'Pisces') || (scheme == 'Gemini') { | ||
| fill: #fff !important; |
There was a problem hiding this comment.
Here. Please, have a look.
There was a problem hiding this comment.
U say u fix hide() with !important. GitHub banner nothing to do with this.
Also, u brake foreground styles for GitHub banner.
There was a problem hiding this comment.
My mistake, it's not just about hide()
And I have tested, it's fine in all resolution, doesn't brake foreground styles
|
I believe this PR is ready to be merged now. No other work needs to be done |
|
|
||
| // Post delimiters. | ||
| .post-eof, | ||
| .post-spread { |
There was a problem hiding this comment.
Are we remove this class? I don't remember...
There was a problem hiding this comment.
I didn't find post-spread in NexT... seems it has been removed
There was a problem hiding this comment.
Here: https://github.com/theme-next/hexo-theme-next/pull/357/files. .post-spread no longer exist
| > svg { | ||
| if (scheme == 'Mist') { | ||
| top: inherit !important; | ||
| margin-top: -50px; |
There was a problem hiding this comment.
Oh, my fault: i forgot to checkout your pull.
| } | ||
|
|
||
| .post:last-child { | ||
| .post-eof.post-eof.post-eof { |
There was a problem hiding this comment.
Screen? Where is this class?
There was a problem hiding this comment.
Not sure. But it's same as .post-eof, no need to repeat 3 times
There was a problem hiding this comment.
This thing need to add delimeter between posts in homepage. And of course, last delimeter no needed, that's why display none on last child:
hexo-theme-next/layout/_macro/post.swig
Lines 449 to 452 in 022b9cc
There was a problem hiding this comment.
But see, in Gemini I make same feature with another way:
hexo-theme-next/source/css/_schemes/Gemini/index.styl
Lines 45 to 53 in 022b9cc
IDK which method is better, but I think need to choose only one.
There was a problem hiding this comment.
So, in Muse and Pisces – .post-eof enabled.
In Mist – disabled and in Gemini – disabled & implemented with another way.
Need to do refactor for that and join 2 spitted functions into better one.
!important!important for GitHub banner
ivan-nginx
left a comment
There was a problem hiding this comment.
source/css/_schemes/Mist/_posts-expanded.styl (11)
|
Sorry @stevenjoezhang I made test again for WIP, there's a pending status of WIP, add PR template need to update 😉 |
|
Anything else need to do with this PR? |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>


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?
Issue resolved: N/A
What is the new behavior?
How to use?
In NexT
_config.yml:Does this PR introduce a breaking change?
@wip ready for review