-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Primer 3 #151
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
Conversation
also tighten up line-height
…of those everywhere
…use of non-markdown bodies of text elsewhere
- Remove the element and attribute selectors to reduce specificity elsewhere - Use a singular class for all text inputs, textareas, and selects (.form-control) - Update modifier classes to use .input-* - More consisitent modifier classes now available (no more element prefixes in selectors, .input-mini is now .input-sm, .input-large is now .input-lg) - Port some additional styling to custom .select controls since we're not longer styling the default select element with the move to a class
- Break apart buttons and forms files a bit for granularity - Move entire utility file to the end of the import stack (should always be there for specificity reasons)
scss/_input-group.scss
Outdated
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.
Merge rule .form-control + .btn with rule on line 4
scss/_utility.scss
Outdated
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.
Colon after property should be followed by one space
scss/_form-group.scss
Outdated
| } | ||
|
|
||
| &.warn { | ||
| dd.warning { |
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.
Avoid qualifying class selectors with an element.
|
This pull feels like it's in a pretty good place now. Here's what I want to do. Merge it into master, (but not tag the new version yet) I need to create a pull on github/github https://github.com/github/github/pull/51212 that pulls in the master branch here and uses it to make updates to the .com codebase. When I get everything fixed and shipped there. I'll come back and tag the new version 3.0.0. |
This is a heavily WIP effort to rewrite large chunks of Primer as part of a major update.
Summary
The goal here is to rewrite several components for simpler styling, reduce specificity of selectors, reduce overrides elsewhere in GitHub's CSS, and more.
Changelog
margin-topandmargin-bottomoverrides ingithub/github. (This won't affect our Markdown styles as those are scoped under a parent class and override this all.)Todo
Additional changes still to be determined.
/cc @jonrohan @josh @aroben