-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global: Fix repository invitations, fixes #315
- Loading branch information
1 parent
9bef194
commit 529462d
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
529462d
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.
These new classes:
.border
,.bg-white
are worrysome. Soon, they'll implement https://github.com/marmelab/universal.css 😆. Also, styling a<input>
as a link is also pretty horrid 😢.529462d
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.
They are defined in primer: https://github.com/primer/primer/blob/master/scss/utilities/_colors.scss & https://github.com/primer/primer/blob/master/scss/utilities/_border.scss
Almost all of those definitions include
!important
.529462d
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.
At least those things make it easier for us so we don't have to style hundreds of different border classes. They appear to switch over to Primer gradually, so we probably should at some point check if we cover all classes.
529462d
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.
I was trying to get primer to work as a base, but it's missing a lot of GitHub specific definitions. So instead, I started working on a method to allow us to grab the two css files GitHub serves with each page, strip out all non-color definitions, then build a dark script from there (see Gruntfile.js).
It's still a work-in-progress, and doesn't cover everything. I'll push the work I have done so far to the "working" branch of this repo if you want to check it out. So far the resulting, non-minified file (github-darkv2.css) is a little bigger than our current "github-dark.css" file. I'm sure it'll get smaller if we use something like cssnano.
Update: added link to working branch files.
529462d
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, working branch added... it may not work out, but I thought it would be interesting to at least test out this method.