Skip to content
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

Shrink tab padding when 7+ tabs exist on Profile #1763

Merged
merged 2 commits into from Feb 15, 2019

Conversation

busches
Copy link
Member

@busches busches commented Feb 10, 2019

Fixes #1757

@@ -1079,3 +1079,9 @@ body > .footer li a {
.dropdown-menu-sw {
transform-origin: 90% top;
}

/* Fix wrapping text on tabs when gists tab is enabled on profile #1757 */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to mention the name of the gists tab feature


/* Fix wrapping text on tabs when gists tab is enabled on profile #1757 */
nav.UnderlineNav-body a:nth-last-child(n+7).UnderlineNav-item,
nav.UnderlineNav-body a:nth-last-child(n+7).UnderlineNav-item ~ * {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably don’t need nav.UnderlineNav-body a in both. Use .UnderlineNav-item:nth-last-child(n+7)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sindresorhus is there a stylelint rule to enforce the order in compound selectors? e.g. .hello:nth-child(1) instead of :nth-child(1).hello

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with something specific as I wasn't sure everywhere this class was used, I can see it both ways.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a stylelint rule to enforce the order in compound selectors? e.g. .hello:nth-child(1) instead of :nth-child(1).hello

No, but you should request it. That would be a useful rule.

@fregante fregante added the bug label Feb 12, 2019
@ZYSzys
Copy link

ZYSzys commented Feb 13, 2019

ping @busches .

Thanks for your effort, could you please land @bfred-it suggestion so that this can be merged ?

The bug is really annoying for me.

Thanks again :)

@busches
Copy link
Member Author

busches commented Feb 13, 2019

@ZYSzys I will hopefully get back to this tonight, if you want to finish it, you are more than welcome to.

@busches busches force-pushed the tab-wrapping-on-profile branch 2 times, most recently from ebfe2b9 to e87bd97 Compare February 14, 2019 02:42
@sindresorhus
Copy link
Member

This doesn't solve it for me. It still looks buggy:

screen shot 2019-02-14 at 13 10 41

I had to reduce it to 6px for it to look ok for me. macOS 10.14.3.

@busches
Copy link
Member Author

busches commented Feb 15, 2019

@sindresorhus your profile looks fine on Windows 10 at 8px. Do you want me to make it 6px globally or detect OSX and make it 6px then?

@sindresorhus
Copy link
Member

Make it 6px globally. System detection is a slippery slope. Maybe Linux needs 7px. And maybe the next Windows version changes the font so it now needs 6px too.

@fregante fregante merged commit 5b5ed7d into refined-github:master Feb 15, 2019
@busches busches deleted the tab-wrapping-on-profile branch April 23, 2019 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants