From 9866053f0ce44721c11990c9f9407e7428757c99 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 10 May 2019 14:21:36 +0200 Subject: update bootstrap to version 4.3.1 --- .../site/docs/4.3/getting-started/accessibility.md | 57 +++ .../docs/4.3/getting-started/best-practices.md | 21 + .../docs/4.3/getting-started/browsers-devices.md | 192 +++++++++ .../site/docs/4.3/getting-started/build-tools.md | 57 +++ .../site/docs/4.3/getting-started/contents.md | 140 +++++++ .../site/docs/4.3/getting-started/download.md | 108 +++++ .../site/docs/4.3/getting-started/introduction.md | 146 +++++++ .../site/docs/4.3/getting-started/javascript.md | 211 ++++++++++ .../site/docs/4.3/getting-started/theming.md | 446 +++++++++++++++++++++ .../site/docs/4.3/getting-started/webpack.md | 93 +++++ 10 files changed, 1471 insertions(+) create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/accessibility.md create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/best-practices.md create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/browsers-devices.md create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/build-tools.md create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/contents.md create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/download.md create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/introduction.md create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/javascript.md create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/theming.md create mode 100644 vendor/twbs/bootstrap/site/docs/4.3/getting-started/webpack.md (limited to 'vendor/twbs/bootstrap/site/docs/4.3/getting-started') diff --git a/vendor/twbs/bootstrap/site/docs/4.3/getting-started/accessibility.md b/vendor/twbs/bootstrap/site/docs/4.3/getting-started/accessibility.md new file mode 100644 index 000000000..edfe914df --- /dev/null +++ b/vendor/twbs/bootstrap/site/docs/4.3/getting-started/accessibility.md @@ -0,0 +1,57 @@ +--- +layout: docs +title: Accessibility +description: A brief overview of Bootstrap's features and limitations for the creation of accessible content. +group: getting-started +toc: true +--- + +Bootstrap provides an easy-to-use framework of ready-made styles, layout tools, and interactive components, allowing developers to create websites and applications that are visually appealing, functionally rich, and accessible out of the box. + +## Overview and Limitations + +The overall accessibility of any project built with Bootstrap depends in large part on the author's markup, additional styling, and scripting they've included. However, provided that these have been implemented correctly, it should be perfectly possible to create websites and applications with Bootstrap that fulfill [WCAG 2.0](https://www.w3.org/TR/WCAG20/) (A/AA/AAA), [Section 508](https://www.section508.gov/) and similar accessibility standards and requirements. + +### Structural markup + +Bootstrap's styling and layout can be applied to a wide range of markup structures. This documentation aims to provide developers with best practice examples to demonstrate the use of Bootstrap itself and illustrate appropriate semantic markup, including ways in which potential accessibility concerns can be addressed. + +### Interactive components + +Bootstrap's interactive components—such as modal dialogs, dropdown menus and custom tooltips—are designed to work for touch, mouse and keyboard users. Through the use of relevant [WAI-ARIA](https://www.w3.org/WAI/standards-guidelines/aria/) roles and attributes, these components should also be understandable and operable using assistive technologies (such as screen readers). + +Because Bootstrap's components are purposely designed to be fairly generic, authors may need to include further ARIA roles and attributes, as well as JavaScript behavior, to more accurately convey the precise nature and functionality of their component. This is usually noted in the documentation. + +### Color contrast + +Most colors that currently make up Bootstrap's default palette—used throughout the framework for things such as button variations, alert variations, form validation indicators—lead to *insufficient* color contrast (below the recommended [WCAG 2.0 color contrast ratio of 4.5:1](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html)) when used against a light background. Authors will need to manually modify/extend these default colors to ensure adequate color contrast ratios. + +### Visually hidden content + +Content which should be visually hidden, but remain accessible to assistive technologies such as screen readers, can be styled using the `.sr-only` class. This can be useful in situations where additional visual information or cues (such as meaning denoted through the use of color) need to also be conveyed to non-visual users. + +{% highlight html %} +

+ Danger: + This action is not reversible +

+{% endhighlight %} + +For visually hidden interactive controls, such as traditional "skip" links, `.sr-only` can be combined with the `.sr-only-focusable` class. This will ensure that the control becomes visible once focused (for sighted keyboard users). + +{% highlight html %} +Skip to main content +{% endhighlight %} + +### Reduced motion + +Bootstrap includes support for the [`prefers-reduced-motion` media feature](https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-motion). In browsers/environments that allow the user to specify their preference for reduced motion, most CSS transition effects in Bootstrap (for instance, when a modal dialog is opened or closed, or the sliding animation in carousels) will be disabled. + +## Additional resources + +- [Web Content Accessibility Guidelines (WCAG) 2.0](https://www.w3.org/TR/WCAG20/) +- [The A11Y Project](https://a11yproject.com/) +- [MDN accessibility documentation](https://developer.mozilla.org/en-US/docs/Web/Accessibility) +- [Tenon.io Accessibility Checker](https://tenon.io/) +- [Colour Contrast Analyser (CCA)](https://developer.paciellogroup.com/resources/contrastanalyser/) +- ["HTML Codesniffer" bookmarklet for identifying accessibility issues](https://github.com/squizlabs/HTML_CodeSniffer) diff --git a/vendor/twbs/bootstrap/site/docs/4.3/getting-started/best-practices.md b/vendor/twbs/bootstrap/site/docs/4.3/getting-started/best-practices.md new file mode 100644 index 000000000..1e7af39ee --- /dev/null +++ b/vendor/twbs/bootstrap/site/docs/4.3/getting-started/best-practices.md @@ -0,0 +1,21 @@ +--- +layout: docs +title: Best practices +description: Learn about some of the best practices we've gathered from years of working on and using Bootstrap. +group: getting-started +--- + +We've designed and developed Bootstrap to work in a number of environments. Here are some of the best practices we've gathered from years of working on and using it ourselves. + +{% capture callout %} +**Heads up!** This copy is a work in progress. +{% endcapture %} +{% include callout.html content=callout type="info" %} + +### General outline + +- Working with CSS +- Working with Sass files +- Building new CSS components +- Working with flexbox +- Ask in [Slack](https://bootstrap-slack.herokuapp.com/) diff --git a/vendor/twbs/bootstrap/site/docs/4.3/getting-started/browsers-devices.md b/vendor/twbs/bootstrap/site/docs/4.3/getting-started/browsers-devices.md new file mode 100644 index 000000000..078d9912d --- /dev/null +++ b/vendor/twbs/bootstrap/site/docs/4.3/getting-started/browsers-devices.md @@ -0,0 +1,192 @@ +--- +layout: docs +title: Browsers and devices +description: Learn about the browsers and devices, from modern to old, that are supported by Bootstrap, including known quirks and bugs for each. +group: getting-started +toc: true +--- + +## Supported browsers + +Bootstrap supports the **latest, stable releases** of all major browsers and platforms. On Windows, **we support Internet Explorer 10-11 / Microsoft Edge**. + +Alternative browsers which use the latest version of WebKit, Blink, or Gecko, whether directly or via the platform's web view API, are not explicitly supported. However, Bootstrap should (in most cases) display and function correctly in these browsers as well. More specific support information is provided below. + +You can find our supported range of browsers and their versions [in our `.browserslistrc file`]({{ site.repo }}/blob/v{{ site.current_version }}/.browserslistrc): + +``` +# https://github.com/browserslist/browserslist#readme + +>= 1% +last 1 major version +not dead +Chrome >= 45 +Firefox >= 38 +Edge >= 12 +Explorer >= 10 +iOS >= 9 +Safari >= 9 +Android >= 4.4 +Opera >= 30 +``` + +We use [Autoprefixer](https://github.com/postcss/autoprefixer) to handle intended browser support via CSS prefixes, which uses [Browserslist](https://github.com/browserslist/browserslist) to manage these browser versions. Consult their documentation for how to integrate these tools into your projects. + +### Mobile devices + +Generally speaking, Bootstrap supports the latest versions of each major platform's default browsers. Note that proxy browsers (such as Opera Mini, Opera Mobile's Turbo mode, UC Browser Mini, Amazon Silk) are not supported. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ChromeFirefoxSafariAndroid Browser & WebViewMicrosoft Edge
AndroidSupportedSupportedN/AAndroid v5.0+ supportedSupported
iOSSupportedSupportedSupportedN/ASupported
Windows 10 MobileN/AN/AN/AN/ASupported
+ +### Desktop browsers + +Similarly, the latest versions of most desktop browsers are supported. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ChromeFirefoxInternet ExplorerMicrosoft EdgeOperaSafari
MacSupportedSupportedN/AN/ASupportedSupported
WindowsSupportedSupportedSupported, IE10+SupportedSupportedNot supported
+ +For Firefox, in addition to the latest normal stable release, we also support the latest [Extended Support Release (ESR)](https://www.mozilla.org/en-US/firefox/organizations/#faq) version of Firefox. + +Unofficially, Bootstrap should look and behave well enough in Chromium and Chrome for Linux, Firefox for Linux, and Internet Explorer 9, though they are not officially supported. + +For a list of some of the browser bugs that Bootstrap has to grapple with, see our [Wall of browser bugs]({{ site.baseurl }}/docs/{{ site.docs_version }}/browser-bugs/). + +## Internet Explorer + +Internet Explorer 10+ is supported; IE9 and down is not. Please be aware that some CSS3 properties and HTML5 elements are not fully supported in IE10, or require prefixed properties for full functionality. Visit [Can I use...](https://caniuse.com/) for details on browser support of CSS3 and HTML5 features. **If you require IE8-9 support, use Bootstrap 3.** + +## Modals and dropdowns on mobile + +### Overflow and scrolling + +Support for `overflow: hidden;` on the `` element is quite limited in iOS and Android. To that end, when you scroll past the top or bottom of a modal in either of those devices' browsers, the `` content will begin to scroll. See [Chrome bug #175502](https://bugs.chromium.org/p/chromium/issues/detail?id=175502) (fixed in Chrome v40) and [WebKit bug #153852](https://bugs.webkit.org/show_bug.cgi?id=153852). + +### iOS text fields and scrolling + +As of iOS 9.2, while a modal is open, if the initial touch of a scroll gesture is within the boundary of a textual `` or a `