-
Notifications
You must be signed in to change notification settings - Fork 44
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
Conversation
sites/github.styl
Outdated
@@ -12,8 +12,8 @@ | |||
|
|||
// ** Misc | |||
|
|||
.link-gray-dark | |||
a.link-gray-dark |
There was a problem hiding this comment.
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?
sites/github.styl
Outdated
@@ -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 |
There was a problem hiding this comment.
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
?
sites/github.styl
Outdated
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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.
sites/github.styl
Outdated
.text-shadow-light | ||
.branch-group-name | ||
.branch-summary | ||
color color-text i |
There was a problem hiding this comment.
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
.
sites/github.styl
Outdated
.State | ||
.State:visited | ||
.octoicon-git-pull-request | ||
color color-background-highlight i |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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. :)
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, sounds good, thanks!
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. :) |
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
I agree, white does look better, I'll switch it
Done! :) |
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! |
Like before, please regenerate the CSS for me, I don't think I have node set up correctly.
Before:
After: