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

Fix tinted background color option #1091

Merged
merged 4 commits into from
Apr 11, 2020
Merged

Fix tinted background color option #1091

merged 4 commits into from
Apr 11, 2020

Conversation

fregante
Copy link
Contributor

This PR is untested, but the screenshot is taken with a real reproduction via the custom background

Before

before

After

after

@the-j0k3r the-j0k3r self-requested a review March 30, 2020 07:11
Copy link
Member

@the-j0k3r the-j0k3r left a comment

Choose a reason for hiding this comment

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

Hi @fregante adding color here actually breaks the intended design of this. To affect this you must change the color at the body entry.

background-color: #222;

So instead of #222222 change it to your #202020 Which is what none actually falls back to.

@xt0rted
Copy link
Member

xt0rted commented Mar 30, 2020

Is this meant to adjust the background so the tabs match the rest of the page when not using a background image? If so I've been running this in a separate style for this very reason.

I'm not sure if this is up to date still, been awhile since I last checked.

/* Tabs - set color to BG color so they blend fully */
.pagehead-tabs-item.selected,
.reponav-item.selected,
.tabnav-tab.selected {
  background-color: #222 !important;
  border-bottom-color: #222 !important;
}
/* pending review comment tabs */
.is-pending .tabnav-tab.selected {
  background-color: #181818 !important;
}
/* https://github.com/settings/replies */
.saved-reply-form .tabnav-tab.selected {
  background-color: #181818 !important;
  border-bottom-color: #181818 !important
}

@fregante
Copy link
Contributor Author

I don’t think all of that is needed, in my case I just had to change the main background color once

@xt0rted
Copy link
Member

xt0rted commented Mar 30, 2020

Yea, it looks like some of this has since been updated. The pending review comment is still needed but the saved reply rule isn't needed at all now

@fregante
Copy link
Contributor Author

@the-j0k3r like this?

@silverwind
Copy link
Member

silverwind commented Mar 30, 2020

Changing body is fine with me. I want these tabs to somewhat work with the default crosshatch background (thought CSS can not cleanly fix that).

image

@xt0rted
Copy link
Member

xt0rted commented Mar 30, 2020

This change is inside of @-moz-document domain("stylishthemes.github.io") { which doesn't seem right to me.

@the-j0k3r
Copy link
Member

This change is inside of @-moz-document domain("stylishthemes.github.io") { which doesn't seem right to me.

that also needed to be changed.

See #1091 (comment)

@the-j0k3r
Copy link
Member

the-j0k3r commented Mar 31, 2020

Is this meant to adjust the background so the tabs match the rest of the page when not using a background image? If so I've been running this in a separate style for this very reason.

I'm not sure if this is up to date still, been awhile since I last checked.

/* Tabs - set color to BG color so they blend fully */
.pagehead-tabs-item.selected,
.reponav-item.selected,
.tabnav-tab.selected {
  background-color: #222 !important;
  border-bottom-color: #222 !important;
}
/* pending review comment tabs */
.is-pending .tabnav-tab.selected {
  background-color: #181818 !important;
}
/* https://github.com/settings/replies */
.saved-reply-form .tabnav-tab.selected {
  background-color: #181818 !important;
  border-bottom-color: #181818 !important
}

Perhaps only the #222222 ones as clearly the rest are separate colors on purpose.

@xt0rted
Copy link
Member

xt0rted commented Mar 31, 2020

The .is-pending .tabnav-tab.selected rule fixes the tabs on the pending pr review ui.

image

The .saved-reply-form .tabnav-tab.selected rule doesn't look to be needed anymore, the ui there changed slightly and is styled correctly now.

@fregante
Copy link
Contributor Author

fregante commented Mar 31, 2020

The .is-pending .tabnav-tab.selected rule fixes the tabs on the pending pr review ui.

That sounds like an unrelated issue, it appears even with the regular background. Please open another issue

@fregante
Copy link
Contributor Author

@silverwind is there anything else that needs to be fixed?

@the-j0k3r
Copy link
Member

The .is-pending .tabnav-tab.selected rule fixes the tabs on the pending pr review ui.

Yep unrelated area.

@silverwind silverwind merged commit b15ae95 into StylishThemes:master Apr 11, 2020
@fregante fregante deleted the patch-1 branch April 11, 2020 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants