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 PR screen in github #17

Merged
merged 7 commits into from
Oct 10, 2017
Merged

Conversation

jgkamat
Copy link
Collaborator

@jgkamat jgkamat commented Oct 8, 2017

Like before, please regenerate the CSS for me, I don't think I have node set up correctly.

Before:

2017-10-08-012049_1121x703_scrot

After:

2017-10-08-012037_1118x704_scrot

@jgkamat
Copy link
Collaborator Author

jgkamat commented Oct 8, 2017

I'm overloading this to fix some PR link colors as well:

Before:
2017-10-08-012524_720x233_scrot

After:
2017-10-08-012643_695x176_scrot

@The-Compiler
Copy link
Collaborator

Hey @jgkamat! 😆

This fixes at least some of the issues I mentioned in #5 🎉

@jgkamat
Copy link
Collaborator Author

jgkamat commented Oct 8, 2017

Might as well keep going then! :D
Before:
2017-10-08-153330_847x564_scrot
After:
2017-10-08-153254_826x539_scrot

Before:
2017-10-08-161635_1038x918_scrot
After:
2017-10-08-161614_1066x912_scrot

@@ -12,8 +12,8 @@

// ** Misc

.link-gray-dark
a.link-gray-dark
Copy link
Owner

Choose a reason for hiding this comment

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

Since you added the plain class selector, can we remove the a.link-gray-dark selector?

@@ -251,6 +251,9 @@ a.filter-item
> h3
background-color color-background-highlight-extra-less
color emphasized
.more-repos
background-color color-background-highlight-extra-less
box-shadow inset 0 1px 0 color-background-highlight-extra
Copy link
Owner

Choose a reason for hiding this comment

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

Do you need to add i at the end to make it !important?

@@ -269,14 +272,37 @@ a.filter-item
.branch-action-state-dirty
.branch-action-state-unstable
.branch-action-state-unknown
.branch-action-icon
.branch-action-icon
Copy link
Owner

Choose a reason for hiding this comment

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

Why did you remove the indentation here? IIUC it will now make all .branch-action-icon icons yellow.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, this is a mistake, I didn't know what the difference was, correcting!

Copy link
Owner

Choose a reason for hiding this comment

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

No prob. Indentation with selectors is equivalent to putting them on the same line separated by a space in regular CSS, so this selector only applies to .branch-action-icon classed items that are children of the -state-* selectors above it.

.text-shadow-light
.branch-group-name
.branch-summary
color color-text i
Copy link
Owner

Choose a reason for hiding this comment

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

The color mixin applies color-text i automatically, so you can change this to just color.

.State
.State:visited
.octoicon-git-pull-request
color color-background-highlight i
Copy link
Owner

@alphapapa alphapapa Oct 10, 2017

Choose a reason for hiding this comment

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

The color mixin applies i automatically, so it can be left off here, and in the other places that call color.

color white
.octicon-x
color red
.octicon-check
color green
Copy link
Owner

Choose a reason for hiding this comment

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

Without having investigated it myself, is this the best way to do this? I'm guessing that I set .octicon-check to white for when it appears on a green background, IIRC. Do we need to use a more specific selector for when it should be green?

OTOH maybe the CSS has changed and this is now the right way to do it. :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a bit finiky. Github uses the .text-green selector to make the checks green. I tried overriding it, but it seemed the .octicon general selector was still overriding it. .octicon-check was the most specific selector I could find which worked.

I don't think that the check is ever on a green background, I've only seen it on the background, like in branches.

If there was a way of 'turning off' the .octicon custom style just for a class, then we could do it this way (but I don't know if that's possible).

Copy link
Owner

Choose a reason for hiding this comment

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

Ok, sounds good, thanks!

@alphapapa
Copy link
Owner

alphapapa commented Oct 10, 2017

Hi Jay,

Thank you very much, this looks great! I made a few comments about minor changes to make it a bit more idiomatic. If you don't mind making those, I'll be glad to merge this right away!

One visual note: I like that you made the "Open"/"Closed" text more visible on the colored backgrounds in the issue labels. Did you try using white instead of black? I wonder if that might look more consistent with the overall theme. Let me know what you think.

Also, on the yellow icon next to "Changes approved", could you make the icon white against the yellow background? The contrast is kind of weak by default. :)

@jgkamat
Copy link
Collaborator Author

jgkamat commented Oct 10, 2017

Sorry about all the problems, this is my first time working with css, so I guess that's to be expected :P

Let me know if you spot anything else wrong

Did you try using white instead of black? I wonder if that might look more consistent with the overall theme. Let me know what you think.

I agree, white does look better, I'll switch it

Also, on the yellow icon next to "Changes approved", could you make the icon white against the yellow background?

Done! :)

@alphapapa
Copy link
Owner

Sorry about all the problems, this is my first time working with css, so I guess that's to be expected :P

Not at all! You did a great job. I'm very impressed for this being your first time working with CSS, I'd never have guessed, especially with your learning Stylus at the same time! Stylus is powerful but so concise that it can be confusing and require some trial-and-error to figure out.

Thank you very much, and please feel free to submit more PRs in the future!

@alphapapa alphapapa merged commit c0702b6 into alphapapa:master Oct 10, 2017
@jgkamat jgkamat deleted the jay/github-pr branch October 10, 2017 01:50
@The-Compiler The-Compiler mentioned this pull request Oct 18, 2017
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.

3 participants