mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 20:55:50 +02:00
Merge branch 'v4-dev' into custom-check-disabled
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
sudo: false
|
||||
sudo: required
|
||||
dist: trusty
|
||||
addons:
|
||||
chrome: stable
|
||||
language: node_js
|
||||
git:
|
||||
depth: 3
|
||||
|
2
Gemfile
2
Gemfile
@@ -1,7 +1,7 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
group :development, :test do
|
||||
gem 'jekyll', '~> 3.6.2'
|
||||
gem 'jekyll', '~> 3.7.0'
|
||||
gem 'jekyll-redirect-from', '~> 0.13.0'
|
||||
gem 'jekyll-sitemap', '~> 1.1.1'
|
||||
gem 'jekyll-toc', '~> 0.5.1'
|
||||
|
25
Gemfile.lock
25
Gemfile.lock
@@ -4,19 +4,30 @@ GEM
|
||||
addressable (2.5.2)
|
||||
public_suffix (>= 2.0.2, < 4.0)
|
||||
colorator (1.1.0)
|
||||
concurrent-ruby (1.0.5)
|
||||
em-websocket (0.5.1)
|
||||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0.6.0)
|
||||
eventmachine (1.2.5)
|
||||
eventmachine (1.2.5-x64-mingw32)
|
||||
ffi (1.9.18)
|
||||
ffi (1.9.18-x64-mingw32)
|
||||
forwardable-extended (2.6.0)
|
||||
jekyll (3.6.2)
|
||||
http_parser.rb (0.6.0)
|
||||
i18n (0.9.1)
|
||||
concurrent-ruby (~> 1.0)
|
||||
jekyll (3.7.0)
|
||||
addressable (~> 2.4)
|
||||
colorator (~> 1.0)
|
||||
em-websocket (~> 0.5)
|
||||
i18n (~> 0.7)
|
||||
jekyll-sass-converter (~> 1.0)
|
||||
jekyll-watch (~> 1.1)
|
||||
jekyll-watch (~> 2.0)
|
||||
kramdown (~> 1.14)
|
||||
liquid (~> 4.0)
|
||||
mercenary (~> 0.3.3)
|
||||
pathutil (~> 0.9)
|
||||
rouge (>= 1.7, < 3)
|
||||
rouge (>= 1.7, < 4)
|
||||
safe_yaml (~> 1.0)
|
||||
jekyll-redirect-from (0.13.0)
|
||||
jekyll (~> 3.3)
|
||||
@@ -26,7 +37,7 @@ GEM
|
||||
jekyll (~> 3.3)
|
||||
jekyll-toc (0.5.1)
|
||||
nokogiri (~> 1.6)
|
||||
jekyll-watch (1.5.1)
|
||||
jekyll-watch (2.0.0)
|
||||
listen (~> 3.0)
|
||||
kramdown (1.16.2)
|
||||
liquid (4.0.0)
|
||||
@@ -46,10 +57,10 @@ GEM
|
||||
rb-fsevent (0.10.2)
|
||||
rb-inotify (0.9.10)
|
||||
ffi (>= 0.5.0, < 2)
|
||||
rouge (2.2.1)
|
||||
rouge (3.1.0)
|
||||
ruby_dep (1.5.0)
|
||||
safe_yaml (1.0.4)
|
||||
sass (3.5.4)
|
||||
sass (3.5.5)
|
||||
sass-listen (~> 4.0.0)
|
||||
sass-listen (4.0.0)
|
||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||
@@ -60,7 +71,7 @@ PLATFORMS
|
||||
x64-mingw32
|
||||
|
||||
DEPENDENCIES
|
||||
jekyll (~> 3.6.2)
|
||||
jekyll (~> 3.7.0)
|
||||
jekyll-redirect-from (~> 0.13.0)
|
||||
jekyll-sitemap (~> 1.1.1)
|
||||
jekyll-toc (~> 0.5.1)
|
||||
|
@@ -39,7 +39,9 @@ childProcess.exec('java -version', (error, stdout, stderr) => {
|
||||
'The “time” input type is not supported in all browsers.*',
|
||||
// IE11 doesn't recognise <main> / give the element an implicit "main" landmark.
|
||||
// Explicit role="main" is redundant for other modern browsers, but still valid.
|
||||
'The “main” role is unnecessary for element “main”.'
|
||||
'The “main” role is unnecessary for element “main”.',
|
||||
// For some reason, the validator thinks the dashboard example is written in Danish
|
||||
'This document appears to be written in Danish.*'
|
||||
].join('|')
|
||||
|
||||
const args = [
|
||||
|
@@ -711,7 +711,7 @@ Here's how form validation works with Bootstrap:
|
||||
- Bootstrap scopes the `:invalid` and `:valid` styles to parent `.was-validated` class, usually applied to the `<form>`. Otherwise, any required field without a value shows up as invalid on page load. This way, you may choose when to activate them (typically after form submission is attempted).
|
||||
- As a fallback, `.is-invalid` and `.is-valid` classes may be used instead of the pseudo-classes for [server side validation](#server-side). They do not require a `.was-validated` parent class.
|
||||
- Due to constraints in how CSS works, we cannot (at present) apply styles to a `<label>` that comes before a form control in the DOM without the help of custom JavaScript.
|
||||
- All modern browsers support the [constraint validation API](https://www.w3.org/TR/html5/forms.html#the-constraint-validation-api), a series of JavaScript methods for validating form controls.
|
||||
- All modern browsers support the [constraint validation API](https://www.w3.org/TR/html5/sec-forms.html#the-constraint-validation-api), a series of JavaScript methods for validating form controls.
|
||||
- Feedback messages may utilize the [browser defaults](#browser-defaults) (different for each browser, and unstylable via CSS) or our custom feedback styles with additional HTML and CSS.
|
||||
- You may provide custom validity messages with `setCustomValidity` in JavaScript.
|
||||
|
||||
|
@@ -19,7 +19,7 @@ As such, the classes are named using the format:
|
||||
* `.d-{value}` for `xs`
|
||||
* `.d-{breakpoint}-{value}` for `sm`, `md`, `lg`, and `xl`.
|
||||
|
||||
Where *display* is one of:
|
||||
Where *value* is one of:
|
||||
|
||||
* `none`
|
||||
* `inline`
|
||||
|
@@ -38,7 +38,7 @@ Position an element at the bottom of the viewport, from edge to edge. Be sure yo
|
||||
|
||||
Position an element at the top of the viewport, from edge to edge, but only after you scroll past it. The `.sticky-top` utility uses CSS's `position: sticky`, which isn't fully supported in all browsers.
|
||||
|
||||
**Microsoft Edge and IE11 will render `position: sticky` as `position: relative`.** As such, we wrap the styles in a `@supports` query, limiting the stickiness to only browsers that properly can render it.
|
||||
**IE11 and IE10 will render `position: sticky` as `position: relative`.** As such, we wrap the styles in a `@supports` query, limiting the stickiness to only browsers that can render it properly.
|
||||
|
||||
{% highlight html %}
|
||||
<div class="sticky-top">...</div>
|
||||
|
1811
package-lock.json
generated
1811
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
20
package.json
20
package.json
@@ -85,16 +85,16 @@
|
||||
"popper.js": "^1.12.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "7.0.0-beta.36",
|
||||
"@babel/core": "7.0.0-beta.36",
|
||||
"@babel/preset-env": "7.0.0-beta.36",
|
||||
"autoprefixer": "^7.2.3",
|
||||
"babel-eslint": "^8.1.2",
|
||||
"@babel/cli": "7.0.0-beta.37",
|
||||
"@babel/core": "7.0.0-beta.37",
|
||||
"@babel/preset-env": "7.0.0-beta.37",
|
||||
"autoprefixer": "^7.2.4",
|
||||
"babel-eslint": "^8.2.1",
|
||||
"babel-plugin-transform-es2015-modules-strip": "^0.1.1",
|
||||
"bundlesize": "^0.15.3",
|
||||
"clean-css-cli": "^4.1.10",
|
||||
"cross-env": "^5.1.3",
|
||||
"eslint": "^4.14.0",
|
||||
"eslint": "^4.15.0",
|
||||
"eslint-plugin-compat": "^2.1.0",
|
||||
"glob": "^7.1.2",
|
||||
"htmllint-cli": "^0.0.6",
|
||||
@@ -105,14 +105,14 @@
|
||||
"karma-firefox-launcher": "^1.1.0",
|
||||
"karma-qunit": "^1.2.1",
|
||||
"node-sass": "^4.7.2",
|
||||
"nodemon": "^1.14.6",
|
||||
"nodemon": "^1.14.10",
|
||||
"npm-run-all": "^4.1.2",
|
||||
"popper.js": "^1.12.9",
|
||||
"postcss-cli": "^4.1.1",
|
||||
"qunitjs": "^2.4.1",
|
||||
"rollup": "^0.53.2",
|
||||
"rollup": "^0.53.4",
|
||||
"rollup-plugin-babel": "4.0.0-beta.0",
|
||||
"rollup-plugin-node-resolve": "^3.0.0",
|
||||
"rollup-plugin-node-resolve": "^3.0.2",
|
||||
"shelljs": "^0.7.8",
|
||||
"shx": "^0.2.2",
|
||||
"sri-toolbox": "^0.2.0",
|
||||
@@ -121,7 +121,7 @@
|
||||
"stylelint-config-standard": "^18.0.0",
|
||||
"stylelint-order": "^0.8.0",
|
||||
"stylelint-scss": "^2.2.0",
|
||||
"uglify-js": "^3.3.4",
|
||||
"uglify-js": "^3.3.5",
|
||||
"vnu-jar": "^17.11.1",
|
||||
"workbox-build": "^2.1.2"
|
||||
},
|
||||
|
Reference in New Issue
Block a user