mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-22 05:03:16 +02:00
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap's Gruntfile
|
* Bootstrap's Gruntfile
|
||||||
* http://getbootstrap.com
|
* http://getbootstrap.com
|
||||||
* Copyright 2013-2014 Twitter, Inc.
|
* Copyright 2013-2015 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -336,6 +336,7 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
jekyll: {
|
jekyll: {
|
||||||
options: {
|
options: {
|
||||||
|
bundleExec: true,
|
||||||
config: '_config.yml'
|
config: '_config.yml'
|
||||||
},
|
},
|
||||||
docs: {},
|
docs: {},
|
||||||
@@ -350,7 +351,6 @@ module.exports = function (grunt) {
|
|||||||
options: {
|
options: {
|
||||||
ignore: [
|
ignore: [
|
||||||
'Element “img” is missing required attribute “src”.',
|
'Element “img” is missing required attribute “src”.',
|
||||||
'Bad value “X-UA-Compatible” for attribute “http-equiv” on element “meta”.',
|
|
||||||
'Attribute “autocomplete” not allowed on element “input” at this point.',
|
'Attribute “autocomplete” not allowed on element “input” at this point.',
|
||||||
'Attribute “autocomplete” not allowed on element “button” at this point.',
|
'Attribute “autocomplete” not allowed on element “button” at this point.',
|
||||||
'Element “div” not allowed as child of element “progress” in this context. (Suppressing further errors from this subtree.)',
|
'Element “div” not allowed as child of element “progress” in this context. (Suppressing further errors from this subtree.)',
|
||||||
@@ -438,7 +438,7 @@ module.exports = function (grunt) {
|
|||||||
require('time-grunt')(grunt);
|
require('time-grunt')(grunt);
|
||||||
|
|
||||||
// Docs HTML validation task
|
// Docs HTML validation task
|
||||||
grunt.registerTask('validate-html', ['jekyll:docs']);
|
grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);
|
||||||
|
|
||||||
var runSubset = function (subset) {
|
var runSubset = function (subset) {
|
||||||
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
|
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
|
||||||
|
@@ -3,8 +3,8 @@
|
|||||||
<ul class="bd-footer-links">
|
<ul class="bd-footer-links">
|
||||||
<li><a href="{{ site.repo }}">GitHub</a></li>
|
<li><a href="{{ site.repo }}">GitHub</a></li>
|
||||||
<li><a href="https://twitter.com/getbootstrap">Twitter</a></li>
|
<li><a href="https://twitter.com/getbootstrap">Twitter</a></li>
|
||||||
<li><a href="../getting-started/#examples">Examples</a></li>
|
<li><a href="{{ site.baseurl }}/examples/">Examples</a></li>
|
||||||
<li><a href="../about/">About</a></li>
|
<li><a href="{{ site.baseurl }}/about/history/">About</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Designed and built with all the love in the world by <a href="https://twitter.com/mdo" target="_blank">@mdo</a> and <a href="https://twitter.com/fat" target="_blank">@fat</a>. Maintained by the <a href="https://github.com/orgs/twbs/people">core team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>.</p>
|
<p>Designed and built with all the love in the world by <a href="https://twitter.com/mdo" target="_blank">@mdo</a> and <a href="https://twitter.com/fat" target="_blank">@fat</a>. Maintained by the <a href="https://github.com/orgs/twbs/people">core team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>.</p>
|
||||||
<p>Currently v{{ site.current_version }}. Code licensed <a rel="license" href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank">MIT</a>, docs <a rel="license" href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.</p>
|
<p>Currently v{{ site.current_version }}. Code licensed <a rel="license" href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank">MIT</a>, docs <a rel="license" href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.</p>
|
||||||
|
@@ -4,7 +4,7 @@ title: Dropdowns
|
|||||||
group: components
|
group: components
|
||||||
---
|
---
|
||||||
|
|
||||||
Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They're made interactive with the included Bootstrap dropdown JavaScript plugin.
|
Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They're made interactive with the included Bootstrap dropdown JavaScript plugin. They're toggled by clicking, not by hovering; this is [an intentional design decision.](http://markdotto.com/2012/02/27/bootstrap-explained-dropdowns/)
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
|
26
js/.eslintrc
26
js/.eslintrc
@@ -15,8 +15,8 @@
|
|||||||
"no-dupe-args": 2,
|
"no-dupe-args": 2,
|
||||||
"no-dupe-keys": 2,
|
"no-dupe-keys": 2,
|
||||||
"no-duplicate-case": 2,
|
"no-duplicate-case": 2,
|
||||||
"no-empty-character-class": 2,
|
|
||||||
"no-empty": 2,
|
"no-empty": 2,
|
||||||
|
"no-empty-character-class": 2,
|
||||||
"no-ex-assign": 2,
|
"no-ex-assign": 2,
|
||||||
"no-extra-boolean-cast": 2,
|
"no-extra-boolean-cast": 2,
|
||||||
"no-extra-parens": 0,
|
"no-extra-parens": 0,
|
||||||
@@ -29,11 +29,11 @@
|
|||||||
"no-obj-calls": 2,
|
"no-obj-calls": 2,
|
||||||
"no-regex-spaces": 2,
|
"no-regex-spaces": 2,
|
||||||
"no-sparse-arrays": 2,
|
"no-sparse-arrays": 2,
|
||||||
|
"no-unexpected-multiline": 2,
|
||||||
"no-unreachable": 2,
|
"no-unreachable": 2,
|
||||||
"use-isnan": 2,
|
"use-isnan": 2,
|
||||||
"valid-jsdoc": 0,
|
"valid-jsdoc": 0,
|
||||||
"valid-typeof": 2,
|
"valid-typeof": 2,
|
||||||
"no-unexpected-multiline": 2,
|
|
||||||
|
|
||||||
//Best Practices
|
//Best Practices
|
||||||
"accessor-pairs": 2,
|
"accessor-pairs": 2,
|
||||||
@@ -41,8 +41,8 @@
|
|||||||
"consistent-return": 2,
|
"consistent-return": 2,
|
||||||
"curly": 2,
|
"curly": 2,
|
||||||
"default-case": 2,
|
"default-case": 2,
|
||||||
"dot-notation": 0,
|
|
||||||
"dot-location": 0,
|
"dot-location": 0,
|
||||||
|
"dot-notation": 0,
|
||||||
"eqeqeq": 2,
|
"eqeqeq": 2,
|
||||||
"guard-for-in": 2,
|
"guard-for-in": 2,
|
||||||
"no-alert": 2,
|
"no-alert": 2,
|
||||||
@@ -66,11 +66,11 @@
|
|||||||
"no-multi-spaces": 0,
|
"no-multi-spaces": 0,
|
||||||
"no-multi-str": 0,
|
"no-multi-str": 0,
|
||||||
"no-native-reassign": 2,
|
"no-native-reassign": 2,
|
||||||
|
"no-new": 2,
|
||||||
"no-new-func": 0,
|
"no-new-func": 0,
|
||||||
"no-new-wrappers": 2,
|
"no-new-wrappers": 2,
|
||||||
"no-new": 2,
|
|
||||||
"no-octal-escape": 2,
|
|
||||||
"no-octal": 2,
|
"no-octal": 2,
|
||||||
|
"no-octal-escape": 2,
|
||||||
"no-param-reassign": 0,
|
"no-param-reassign": 0,
|
||||||
"no-process-env": 2,
|
"no-process-env": 2,
|
||||||
"no-proto": 2,
|
"no-proto": 2,
|
||||||
@@ -95,11 +95,11 @@
|
|||||||
"no-catch-shadow": 2,
|
"no-catch-shadow": 2,
|
||||||
"no-delete-var": 2,
|
"no-delete-var": 2,
|
||||||
"no-label-var": 2,
|
"no-label-var": 2,
|
||||||
"no-shadow-restricted-names": 2,
|
|
||||||
"no-shadow": 0,
|
"no-shadow": 0,
|
||||||
"no-undef-init": 2,
|
"no-shadow-restricted-names": 2,
|
||||||
"no-undef": 0,
|
"no-undef": 0,
|
||||||
"no-undefined": 0,
|
"no-undefined": 0,
|
||||||
|
"no-undef-init": 2,
|
||||||
"no-unused-vars": 2,
|
"no-unused-vars": 2,
|
||||||
"no-use-before-define": 0,
|
"no-use-before-define": 0,
|
||||||
|
|
||||||
@@ -117,11 +117,11 @@
|
|||||||
"func-style": 0,
|
"func-style": 0,
|
||||||
"indent": 0,
|
"indent": 0,
|
||||||
"key-spacing": 0,
|
"key-spacing": 0,
|
||||||
"lines-around-comment": 0,
|
|
||||||
"linebreak-style": 2,
|
"linebreak-style": 2,
|
||||||
|
"lines-around-comment": 0,
|
||||||
"new-cap": 0,
|
"new-cap": 0,
|
||||||
"new-parens": 2,
|
|
||||||
"newline-after-var": 0,
|
"newline-after-var": 0,
|
||||||
|
"new-parens": 2,
|
||||||
"no-array-constructor": 2,
|
"no-array-constructor": 2,
|
||||||
"no-continue": 0,
|
"no-continue": 0,
|
||||||
"no-inline-comments": 0,
|
"no-inline-comments": 0,
|
||||||
@@ -142,17 +142,17 @@
|
|||||||
"padded-blocks": 0,
|
"padded-blocks": 0,
|
||||||
"quote-props": 0,
|
"quote-props": 0,
|
||||||
"quotes": 0,
|
"quotes": 0,
|
||||||
"semi-spacing": 0,
|
|
||||||
"semi": [2, "never"],
|
"semi": [2, "never"],
|
||||||
|
"semi-spacing": 0,
|
||||||
"sort-vars": 2,
|
"sort-vars": 2,
|
||||||
"space-after-keywords": 2,
|
"space-after-keywords": 2,
|
||||||
"space-before-blocks": 2,
|
"space-before-blocks": 2,
|
||||||
"space-before-function-paren": 0,
|
"space-before-function-paren": 0,
|
||||||
"space-in-parens": 2,
|
"spaced-comment": 2,
|
||||||
"space-infix-ops": 2,
|
"space-infix-ops": 2,
|
||||||
|
"space-in-parens": 2,
|
||||||
"space-return-throw-case": 2,
|
"space-return-throw-case": 2,
|
||||||
"space-unary-ops": 2,
|
"space-unary-ops": 2,
|
||||||
"spaced-comment": 2,
|
|
||||||
|
|
||||||
// es6
|
// es6
|
||||||
"arrow-parens": 2,
|
"arrow-parens": 2,
|
||||||
@@ -167,8 +167,8 @@
|
|||||||
"object-shorthand": 2,
|
"object-shorthand": 2,
|
||||||
"prefer-arrow-callback": 2,
|
"prefer-arrow-callback": 2,
|
||||||
"prefer-const": 0,
|
"prefer-const": 0,
|
||||||
"prefer-spread": 2,
|
|
||||||
"prefer-reflect": 0,
|
"prefer-reflect": 0,
|
||||||
|
"prefer-spread": 2,
|
||||||
"prefer-template": 2,
|
"prefer-template": 2,
|
||||||
"require-yield": 2
|
"require-yield": 2
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user