sindresorhus/refined-github

Add option to revert aligning of repo header to content #3785

mimecry posted onGitHub

Hi, it seems that the setting to align the repo header to content on widescreen monitors is hardcoded, and overrides any other extension's attempt to move the header. I tried adding the following CSS to Refined Github but it didn't seem to have any effect

body:not(.full-width):not(.enterprise) main > .hide-full-screen > * { padding-left: 0px !important; }

Is it possible to expose this option in the UI, so that addons like Wide Github can be used in conjunction with it?

What the two addons currently look like together

image

What they should look like

image


It feels like wide-github could implement an override for us since their intent is clear and sole. Our CSS is at: https://github.com/sindresorhus/refined-github/blob/master/source/features/align-repository-header.css

If you want to override it yourself, you'll have to make the selector a little stronger, like:

:root body:not(.full-width):not(.enterprise) main > .hide-full-screen > * {
    padding-left: 0 !important;
}
posted by fregante over 4 years ago

right, i forgot to apply !important.. the css works now, thank you. i'll raise the issue with the wide-github dev and see what he thinks

posted by mimecry over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests