Repository navigation
Add align-repository-header feature - #3313
Conversation
| "selector-class-pattern": null, | ||
| "selector-id-pattern": null | ||
| "selector-id-pattern": null, | ||
| "selector-max-universal": null |
There was a problem hiding this comment.
@sindresorhus this rule seems rather arbitrary
There was a problem hiding this comment.
* is very inefficient and far-reaching. I think it makes sense to limit it in normal code. RG is an expectation since it has to do a lot of overrides, that you wouldn't do in a normal codebase.
| @@ -0,0 +1,21 @@ | |||
| /* Align repo header to the content, just on the left side */ | |||
| .repohead > * { | |||
| padding-left: calc(50% - 1280px / 2) !important; | |||
There was a problem hiding this comment.
How’s that possible? The selector is less specific than ours
There was a problem hiding this comment.
@fregante * has a specificity of zero (see Specifishity), so they are equally specific and the latter overrides the former.
There was a problem hiding this comment.
That’s weird. I’ve always thought that > increased specificity.
I guess I can replace a star with a tag name and solve both reviews in this PR
There was a problem hiding this comment.
Can't, there are 2 tag types in each level (div/nav > div/ul) and :is() isn't supported by Chrome yet. I used !important
There was a problem hiding this comment.
It's still overridden. Can we use .repohead > div, .repohead > nav?
|
|
|
Looks like this breaks enterprise users: #3330 |
|
PR welcome to fix gists and #3332 Gists should be identifiable with |
|
How can I use this? I'm having |
|
@szmarczak Because it's broken now #3362 (comment) |




Fixes #3280
Replaces and closes #3250
Instead of aligning both sides and limiting the available space for the tabs, this only aligns the left side