rmacklin [Fri, 20 Oct 2017 07:01:29 +0000 (00:01 -0700)]
Reduce z-indexes in button-group, input-group, list-group, and pagination to the minimum necessary (#24315)
These were using `z-index: 2` to "Place active items above their
siblings for proper border styling". However, using `z-index: 1` is
sufficient for accomplishing that goal.
In input-group, there were also three `z-index: 3` rules for the
hover/focus/active states. I reduced these to `z-index: 2` since they
just needed to be "one more than normal" (i.e. one more than what is now
`z-index: 1` after my changes).
These changes can be verified by viewing the documentation pages for
Button group, Input group, List group, and Pagination before and after
this commit and observing that the active elements are still "above"
their siblings, so their borders look correct.
Mark Otto [Thu, 19 Oct 2017 16:03:33 +0000 (09:03 -0700)]
Gradients and shadows (#24429)
* Update the form focus mixin to use a manual `$enable-shadows` check so we can always ensure a focus state for accessibility and consistency
* - Add new `$input-btn-focus-width` and `$input-btn-focus-color` variables.
- Replace separate `$btn-focus-box-shadow` and `$input-focus-box-shadow`
variables with unified `$input-btn-focus-box-shadow` to match our
combined variables approach elsewhere.
* Put new focus width var to use in buttons mixins
* use new button input-box shadow var
* Add a new mixin for quickly adding linear gradient to components when $enable-gradients is set to true
* use correct var
* fix focus shadows in button mixins
* Add opt-in gradients to alerts, buttons, carousel, custom radios and checkboxes, custom file input, and dropdown items
* Generate .bg-gradient- utilities
* add headings to colors page and document bg-gradient utils
* update the button color for active status, check with yiq as it's done for basic state and hover state
Mark Otto [Thu, 19 Oct 2017 06:16:18 +0000 (23:16 -0700)]
Update docs for IE10+IE11 support of auto margins (#24427)
IE10 and IE11 do not properly support the use of margin-auto on flex parents with a justify-content value other than flex-start. This PR removes the examples showcasing those two classes at play together in favor of simpler ones with _just_ the margin-auto utilities.
More details can be found at https://stackoverflow.com/a/37535548, which has been linked to from the docs as well.
Kevin Ruscoe [Thu, 19 Oct 2017 02:49:32 +0000 (03:49 +0100)]
Update alerts.md (#24420)
This document contains the word JavaScript everywhere apart from in one place where it's abbreviated to JS. This just makes sure it's written as JavaScript consistently across the page.
Andrew Murphy [Wed, 18 Oct 2017 17:26:33 +0000 (18:26 +0100)]
#24373 : Documentation/Navbar : Refer to utility classes used. Hidden when printing. (#24380)
* Refer to utility classes uses. Add Printing section
refer to (not navbar) classes used for newbies
navbars don't print, so add example of a print-only alternative
* typos, add links
typo in {% example %}
add links to component pages
* grammar
* Add a dropdown with divider to the main example
* change id name to stop travis error
I assume id="camelCase" is the standard for id names, rather than the clearly superior id="underscore_words"
* review changes
still like to emphasise the foreign utility classes in the main example
bg-light's name is self explanatory (so its obvious where to look it up), but mr-sm-2's name isn't at first
* review changes
* grammar
* .fixed-top/bottom don't reserve space on the screen
... as they are position:fixed.
better wording welcome
* copyediting
- rewrite utils line and link to the utils pages
- restore the paragraphs to the placement section
- fix formatting and grammar
XhmikosR [Sun, 15 Oct 2017 00:54:47 +0000 (03:54 +0300)]
Update README.md (#24365)
1. Add `alt=""` for the Bootstrap logo
2. Replace the HTML entities with the unicode symbols
3. Refactor the badges to something that makes more sense to me
4. Change `Selenium Test Status` alt attribute to `Sauce Labs Test Status`
5. Use shields.io for the peerDependencies badge too
6. Add CSS and JS gzip size badges, shoutout to @ngryman
7. Add a few more trailing slashes to URLs
8. Change link to tooling setup to the website one
Gleb Mazovetskiy [Sat, 14 Oct 2017 07:29:43 +0000 (08:29 +0100)]
Escape SassScript in custom variable values (#24354)
This is required for Sass v3.5+ compatibility.
See https://github.com/sass/sass/blob/stable/doc-src/SASS_CHANGELOG.md#backwards-incompatibilities----must-read and https://github.com/sass/sass/issues/2383