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

Auto-width calculation, and other related bootstrap improvements #1158

Closed
wants to merge 1 commit into from
Closed

Auto-width calculation, and other related bootstrap improvements #1158

wants to merge 1 commit into from

Conversation

scotteh
Copy link
Contributor

@scotteh scotteh commented Mar 30, 2016

Bootstrap Improvements:

  • Auto-width calculation for floated and inline-block elements.
  • Fix style specificity based on the origin of the stylesheet.
  • Add :focus psudo-class to stylesheet parser.
  • Modify default UA stylesheet to reflect auto-width changes.
  • Fix 'content' css property being set to 'normal' for all :before/:after selectors before determining their specificity.
  • Add extra check to prevent Helpers::build_url() from throwing a warning for URIs of 1 character (eg: '#').

Visually improves the usability of bootstrap (and most likely any other inline-block/float heavy CSS) substantially. Included PDF examples of the documentation both pre and post changes (see below).

Auto-width appears to work OK based on my testing so far, any feedback on the implementation is welcome.

Included quite a few changes in this PR, if you would prefer these (or some of) individually I can split them up.

badges-pre-changes.pdf
buttons-pre-changes.pdf
buttons-post-changes.pdf
badges-post-changes.pdf

 * Auto-width calculation for floated and inline-block elements.
 * Fix style specificity based on the origin of the stylesheet.
 * Add :focus psudo-class to stylesheet parser.
 * Modify default UA stylesheet to reflect auto-width changes.
 * Fix 'content' css property being set to 'normal' for all :before/:after selectors before determining their specificity.
 * Add extra check to prevent Helpers::build_url() from throwing a warning for URIs of 1 character (eg: '#').
@bsweeney bsweeney added this to the 0.7.1 milestone Mar 31, 2016
@bsweeney
Copy link
Member

Very nice!

The changes do not appear to be so complex that it will be a problem to review as a single commit.

@bsweeney bsweeney closed this in 542483a Dec 11, 2016
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.

None yet

2 participants