mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
Merge branch 'master' of github.com:twbs/bootstrap
This commit is contained in:
commit
cc1f95652b
28
Gruntfile.js
28
Gruntfile.js
@ -40,6 +40,21 @@ module.exports = function(grunt) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
jscs: {
|
||||||
|
options: {
|
||||||
|
config: 'js/.jscs.json',
|
||||||
|
},
|
||||||
|
gruntfile: {
|
||||||
|
src: ['Gruntfile.js']
|
||||||
|
},
|
||||||
|
src: {
|
||||||
|
src: ['js/*.js']
|
||||||
|
},
|
||||||
|
test: {
|
||||||
|
src: ['js/tests/unit/*.js']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
concat: {
|
concat: {
|
||||||
options: {
|
options: {
|
||||||
banner: '<%= banner %><%= jqueryCheck %>',
|
banner: '<%= banner %><%= jqueryCheck %>',
|
||||||
@ -72,6 +87,16 @@ module.exports = function(grunt) {
|
|||||||
bootstrap: {
|
bootstrap: {
|
||||||
src: ['<%= concat.bootstrap.dest %>'],
|
src: ['<%= concat.bootstrap.dest %>'],
|
||||||
dest: 'dist/js/<%= pkg.name %>.min.js'
|
dest: 'dist/js/<%= pkg.name %>.min.js'
|
||||||
|
},
|
||||||
|
customize: {
|
||||||
|
src: [
|
||||||
|
'docs-assets/js/less.js',
|
||||||
|
'docs-assets/js/jszip.js',
|
||||||
|
'docs-assets/js/uglify.js',
|
||||||
|
'docs-assets/js/filesaver.js',
|
||||||
|
'docs-assets/js/customizer.js'
|
||||||
|
],
|
||||||
|
dest: 'docs-assets/js/customize.js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -278,6 +303,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
grunt.loadNpmTasks('grunt-html-validation');
|
grunt.loadNpmTasks('grunt-html-validation');
|
||||||
grunt.loadNpmTasks('grunt-jekyll');
|
grunt.loadNpmTasks('grunt-jekyll');
|
||||||
|
grunt.loadNpmTasks('grunt-jscs-checker');
|
||||||
grunt.loadNpmTasks('grunt-recess');
|
grunt.loadNpmTasks('grunt-recess');
|
||||||
grunt.loadNpmTasks('grunt-saucelabs');
|
grunt.loadNpmTasks('grunt-saucelabs');
|
||||||
grunt.loadNpmTasks('grunt-sed');
|
grunt.loadNpmTasks('grunt-sed');
|
||||||
@ -286,7 +312,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.registerTask('validate-html', ['jekyll', 'validation']);
|
grunt.registerTask('validate-html', ['jekyll', 'validation']);
|
||||||
|
|
||||||
// Test task.
|
// Test task.
|
||||||
var testSubtasks = ['dist-css', 'jshint', 'qunit', 'validate-html'];
|
var testSubtasks = ['dist-css', 'jshint', 'jscs', 'qunit', 'validate-html'];
|
||||||
// Only run Sauce Labs tests if there's a Sauce access key
|
// Only run Sauce Labs tests if there's a Sauce access key
|
||||||
if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined') {
|
if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined') {
|
||||||
testSubtasks.push('connect');
|
testSubtasks.push('connect');
|
||||||
|
@ -2,19 +2,15 @@
|
|||||||
================================================== -->
|
================================================== -->
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||||
<script src="{{ page.base_url }}dist/js/bootstrap.js"></script>
|
<script src="{{ page.base_url }}dist/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
<script src="{{ page.base_url }}docs-assets/js/holder.js"></script>
|
<script src="{{ page.base_url }}docs-assets/js/holder.js"></script>
|
||||||
|
|
||||||
<script src="{{ page.base_url }}docs-assets/js/application.js"></script>
|
<script src="{{ page.base_url }}docs-assets/js/application.js"></script>
|
||||||
|
|
||||||
{% if page.slug == "customize" %}
|
{% if page.slug == "customize" %}
|
||||||
<script src="{{ page.base_url }}docs-assets/js/less.js"></script>
|
|
||||||
<script src="{{ page.base_url }}docs-assets/js/jszip.js"></script>
|
|
||||||
<script src="{{ page.base_url }}docs-assets/js/uglify.js"></script>
|
|
||||||
<script src="{{ page.base_url }}docs-assets/js/filesaver.js"></script>
|
|
||||||
<script src="{{ page.base_url }}docs-assets/js/raw-files.js"></script>
|
<script src="{{ page.base_url }}docs-assets/js/raw-files.js"></script>
|
||||||
<script src="{{ page.base_url }}docs-assets/js/customizer.js"></script>
|
<script src="{{ page.base_url }}docs-assets/js/customize.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% comment %}
|
{% comment %}
|
||||||
|
@ -88,6 +88,7 @@ base_url: "../"
|
|||||||
<li><a href="http://www.oneskyapp.com/docs/bootstrap/ru">Bootstrap по-русски (Russian)</a></li>
|
<li><a href="http://www.oneskyapp.com/docs/bootstrap/ru">Bootstrap по-русски (Russian)</a></li>
|
||||||
<li><a href="http://www.oneskyapp.com/docs/bootstrap/es">Bootstrap en Español (Spanish)</a></li>
|
<li><a href="http://www.oneskyapp.com/docs/bootstrap/es">Bootstrap en Español (Spanish)</a></li>
|
||||||
<li><a href="http://twbs.site-konstruktor.com.ua">Bootstrap ua Українською (Ukrainian)</a></li>
|
<li><a href="http://twbs.site-konstruktor.com.ua">Bootstrap ua Українською (Ukrainian)</a></li>
|
||||||
|
<li><a href="http://www.oneskyapp.com/docs/bootstrap/fr">Bootstrap en Français (French)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Have another language to add, or perhaps a different or better translation? Let us know by <a href="https://github.com/twbs/bootstrap/issues/new">opening an issue</a>.</p>
|
<p>Have another language to add, or perhaps a different or better translation? Let us know by <a href="https://github.com/twbs/bootstrap/issues/new">opening an issue</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
"CNAME",
|
"CNAME",
|
||||||
"CONTRIBUTING.md",
|
"CONTRIBUTING.md",
|
||||||
"Gruntfile.js",
|
"Gruntfile.js",
|
||||||
"browserstack.json",
|
|
||||||
"composer.json",
|
"composer.json",
|
||||||
"package.json",
|
"package.json",
|
||||||
"*.html"
|
"*.html"
|
||||||
|
@ -1056,7 +1056,7 @@ base_url: "../"
|
|||||||
<p class="help-block">Hovered dropdown menu entry text color</p>
|
<p class="help-block">Hovered dropdown menu entry text color</p>
|
||||||
<label>@dropdown-link-hover-bg</label>
|
<label>@dropdown-link-hover-bg</label>
|
||||||
<input type="text" class="form-control" placeholder="#f5f5f5" data-var="@dropdown-link-hover-bg">
|
<input type="text" class="form-control" placeholder="#f5f5f5" data-var="@dropdown-link-hover-bg">
|
||||||
<p class="help-block">Hovered dropdown menu entry text color</p>
|
<p class="help-block">Hovered dropdown menu entry background color</p>
|
||||||
|
|
||||||
<label>@dropdown-link-active-color</label>
|
<label>@dropdown-link-active-color</label>
|
||||||
<input type="text" class="form-control" placeholder="@component-active-color" data-var="@dropdown-link-active-color">
|
<input type="text" class="form-control" placeholder="@component-active-color" data-var="@dropdown-link-active-color">
|
||||||
|
2
dist/css/bootstrap.css
vendored
2
dist/css/bootstrap.css
vendored
@ -4754,7 +4754,7 @@ textarea.input-group-sm > .input-group-btn > .btn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar-default .navbar-toggle .icon-bar {
|
.navbar-default .navbar-toggle .icon-bar {
|
||||||
background-color: #cccccc;
|
background-color: #888888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-default .navbar-collapse,
|
.navbar-default .navbar-collapse,
|
||||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
11
docs-assets/js/customize.js
Normal file
11
docs-assets/js/customize.js
Normal file
File diff suppressed because one or more lines are too long
@ -687,6 +687,16 @@ bootstrap/
|
|||||||
<td><code>.tabs-left</code> <code>.tabs-right</code> <code>.tabs-below</code></td>
|
<td><code>.tabs-left</code> <code>.tabs-right</code> <code>.tabs-below</code></td>
|
||||||
<td class="text-muted">N/A</td>
|
<td class="text-muted">N/A</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Pill-based tabbable area</td>
|
||||||
|
<td><code>.pill-content</code></td>
|
||||||
|
<td><code>.tab-content</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Pill-based tabbable area pane</td>
|
||||||
|
<td><code>.pill-pane</code></td>
|
||||||
|
<td><code>.tab-pane</code></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Nav lists</td>
|
<td>Nav lists</td>
|
||||||
<td><code>.nav-list</code> <code>.nav-header</code></td>
|
<td><code>.nav-list</code> <code>.nav-header</code></td>
|
||||||
|
@ -1123,7 +1123,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
|
|||||||
<td>animation</td>
|
<td>animation</td>
|
||||||
<td>boolean</td>
|
<td>boolean</td>
|
||||||
<td>true</td>
|
<td>true</td>
|
||||||
<td>apply a CSS fade transition to the tooltip</td>
|
<td>apply a CSS fade transition to the popover</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>html</td>
|
<td>html</td>
|
||||||
@ -1141,7 +1141,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
|
|||||||
<td>selector</td>
|
<td>selector</td>
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
<td>if a selector is provided, tooltip objects will be delegated to the specified targets. in practice, this is used to enable dynamic HTML content to have popovers added. See <a href="https://github.com/twbs/bootstrap/issues/4215">this</a> and <a href="http://jsfiddle.net/fScua/">an informative example</a>.</td>
|
<td>if a selector is provided, tooltip objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added. See <a href="https://github.com/twbs/bootstrap/issues/4215">this</a> and <a href="http://jsfiddle.net/fScua/">an informative example</a>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>trigger</td>
|
<td>trigger</td>
|
||||||
@ -1941,7 +1941,7 @@ $('#myCarousel').on('slide.bs.carousel', function () {
|
|||||||
<ol>
|
<ol>
|
||||||
<li>To start, the plugin adds <code>.affix-top</code> to indicate the element is in it's top-most position. At this point no CSS positioning is required.</li>
|
<li>To start, the plugin adds <code>.affix-top</code> to indicate the element is in it's top-most position. At this point no CSS positioning is required.</li>
|
||||||
<li>Scrolling past the element you want affixed should trigger the actual affixing. This is where <code>.affix</code> replaces <code>.affix-top</code> and sets <code>position: fixed;</code> (provided by Bootstrap's code CSS).</li>
|
<li>Scrolling past the element you want affixed should trigger the actual affixing. This is where <code>.affix</code> replaces <code>.affix-top</code> and sets <code>position: fixed;</code> (provided by Bootstrap's code CSS).</li>
|
||||||
<li>If a bottom offset is defined, scrolling past that should replace <code>.affix</code> with <code>.affix-bottom</code>. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add <code>position: absolute;</code> when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the elemtn from there.</li>
|
<li>If a bottom offset is defined, scrolling past that should replace <code>.affix</code> with <code>.affix-bottom</code>. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add <code>position: absolute;</code> when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.</li>
|
||||||
</ol>
|
</ol>
|
||||||
<p>Follow the above steps to set your CSS for either of the usage options below.</p>
|
<p>Follow the above steps to set your CSS for either of the usage options below.</p>
|
||||||
|
|
||||||
|
14
js/.jscs.json
Normal file
14
js/.jscs.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return"],
|
||||||
|
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
||||||
|
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
||||||
|
"requireRightStickedOperators": ["!"],
|
||||||
|
"disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
||||||
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
||||||
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
||||||
|
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
||||||
|
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
||||||
|
"disallowKeywords": ["with"],
|
||||||
|
"validateLineBreaks": "LF",
|
||||||
|
"requireLineFeedAtFileEnd": true
|
||||||
|
}
|
@ -347,7 +347,7 @@ $(function () {
|
|||||||
.tooltip('show')
|
.tooltip('show')
|
||||||
, tooltip = container.find(".tooltip")
|
, tooltip = container.find(".tooltip")
|
||||||
|
|
||||||
ok( Math.round(target.offset().top + target[0].offsetHeight/2 - tooltip[0].offsetHeight/2) === Math.round(tooltip.offset().top) )
|
ok( Math.round(target.offset().top + (target[0].offsetHeight / 2) - (tooltip[0].offsetHeight / 2)) === Math.round(tooltip.offset().top) )
|
||||||
target.tooltip('hide')
|
target.tooltip('hide')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@
|
|||||||
|
|
||||||
// Navbar toggle
|
// Navbar toggle
|
||||||
@navbar-default-toggle-hover-bg: #ddd;
|
@navbar-default-toggle-hover-bg: #ddd;
|
||||||
@navbar-default-toggle-icon-bar-bg: #ccc;
|
@navbar-default-toggle-icon-bar-bg: #888;
|
||||||
@navbar-default-toggle-border-color: #ddd;
|
@navbar-default-toggle-border-color: #ddd;
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
, "grunt-contrib-watch": "~0.5.3"
|
, "grunt-contrib-watch": "~0.5.3"
|
||||||
, "grunt-html-validation": "~0.1.6"
|
, "grunt-html-validation": "~0.1.6"
|
||||||
, "grunt-jekyll": "~0.4.0"
|
, "grunt-jekyll": "~0.4.0"
|
||||||
|
, "grunt-jscs-checker": "~0.2.5"
|
||||||
, "grunt-recess": "~0.5.0"
|
, "grunt-recess": "~0.5.0"
|
||||||
, "grunt-saucelabs": "~4.1.2"
|
, "grunt-saucelabs": "~4.1.2"
|
||||||
, "grunt-sed": "~0.1.1"
|
, "grunt-sed": "~0.1.1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user