Skip to content

Commit 9877816

Browse files
authored
Merge branch 'v4-dev' into yiq-function-update
2 parents 8f483dc + 3ccb7ef commit 9877816

38 files changed

+1129
-848
lines changed

.hound.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ fail_on_violations: true
22

33
stylelint:
44
config_file: build/.stylelintrc
5+
enabled: true
6+
ignore_file: .houndignore
7+
8+
eslint:
9+
config_file: js/.eslintrc.json
10+
ignore_file: .houndignore
511

612
scss:
713
enabled: false
814

915
jshint:
1016
enabled: false
1117

12-
eslint:
13-
config_file: js/.eslintrc.json
14-
ignore_file: .houndignore
15-
1618
ruby:
1719
enabled: false

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ group :development, :test do
44
gem 'jekyll', '~> 3.6.0'
55
gem 'jekyll-redirect-from', '~> 0.12.1'
66
gem 'jekyll-sitemap', '~> 1.1.1'
7-
gem 'jekyll-toc', '~> 0.3.0'
7+
gem 'jekyll-toc', '~> 0.4.0.rc2'
88
end

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GEM
2424
sass (~> 3.4)
2525
jekyll-sitemap (1.1.1)
2626
jekyll (~> 3.3)
27-
jekyll-toc (0.3.0)
27+
jekyll-toc (0.4.0.rc2)
2828
nokogiri (~> 1.6)
2929
jekyll-watch (1.5.0)
3030
listen (~> 3.0, < 3.1)
@@ -39,15 +39,15 @@ GEM
3939
mini_portile2 (~> 2.3.0)
4040
nokogiri (1.8.1-x64-mingw32)
4141
mini_portile2 (~> 2.3.0)
42-
pathutil (0.14.0)
42+
pathutil (0.16.0)
4343
forwardable-extended (~> 2.6)
4444
public_suffix (3.0.0)
4545
rb-fsevent (0.10.2)
4646
rb-inotify (0.9.10)
4747
ffi (>= 0.5.0, < 2)
4848
rouge (2.2.1)
4949
safe_yaml (1.0.4)
50-
sass (3.5.1)
50+
sass (3.5.2)
5151
sass-listen (~> 4.0.0)
5252
sass-listen (4.0.0)
5353
rb-fsevent (~> 0.9, >= 0.9.4)
@@ -61,7 +61,7 @@ DEPENDENCIES
6161
jekyll (~> 3.6.0)
6262
jekyll-redirect-from (~> 0.12.1)
6363
jekyll-sitemap (~> 1.1.1)
64-
jekyll-toc (~> 0.3.0)
64+
jekyll-toc (~> 0.4.0.rc2)
6565

6666
BUNDLED WITH
6767
1.15.4

README.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<p align="center">
22
<a href="https://getbootstrap.com/">
3-
<img src="https://getbootstrap.com/assets/brand/bootstrap-solid.svg" width=72 height=72>
3+
<img src="https://getbootstrap.com/assets/brand/bootstrap-solid.svg" alt="" width=72 height=72>
44
</a>
55

66
<h3 align="center">Bootstrap</h3>
77

88
<p align="center">
99
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
1010
<br>
11-
<a href="https://getbootstrap.com/docs/4.0/"><strong>Explore Bootstrap docs &raquo;</strong></a>
11+
<a href="https://getbootstrap.com/docs/4.0/"><strong>Explore Bootstrap docs »</strong></a>
1212
<br>
1313
<br>
1414
<a href="https://themes.getbootstrap.com/">Bootstrap Themes</a>
15-
&middot;
15+
·
1616
<a href="https://jobs.getbootstrap.com/">Job Board</a>
17-
&middot;
17+
·
1818
<a href="https://blog.getbootstrap.com/">Blog</a>
1919
</p>
2020
</p>
@@ -50,16 +50,18 @@ Read the [Getting started page](https://getbootstrap.com/getting-started/) for i
5050
## Status
5151

5252
[![Slack](https://bootstrap-slack.herokuapp.com/badge.svg)](https://bootstrap-slack.herokuapp.com/)
53+
[![Build Status](https://img.shields.io/travis/twbs/bootstrap/v4-dev.svg)](https://travis-ci.org/twbs/bootstrap)
5354
[![npm version](https://img.shields.io/npm/v/bootstrap.svg)](https://www.npmjs.com/package/bootstrap)
5455
[![Gem version](https://img.shields.io/gem/v/bootstrap.svg)](https://rubygems.org/gems/bootstrap)
55-
[![Build Status](https://img.shields.io/travis/twbs/bootstrap/v4-dev.svg)](https://travis-ci.org/twbs/bootstrap)
56-
[![peerDependencies Status](https://david-dm.org/twbs/bootstrap/peer-status.svg)](https://david-dm.org/twbs/bootstrap?type=peer)
57-
[![devDependency Status](https://img.shields.io/david/dev/twbs/bootstrap.svg)](https://david-dm.org/twbs/bootstrap?type=dev)
5856
[![Meteor Atmosphere](https://img.shields.io/badge/meteor-twbs%3Abootstrap-blue.svg)](https://atmospherejs.com/twbs/bootstrap)
5957
[![Packagist Prerelease](https://img.shields.io/packagist/vpre/twbs/bootstrap.svg)](https://packagist.org/packages/twbs/bootstrap)
6058
[![NuGet](https://img.shields.io/nuget/vpre/bootstrap.svg)](https://www.nuget.org/packages/bootstrap/absoluteLatest)
59+
[![peerDependencies Status](https://img.shields.io/david/peer/twbs/bootstrap.svg)](https://david-dm.org/twbs/bootstrap?type=peer)
60+
[![devDependency Status](https://img.shields.io/david/dev/twbs/bootstrap.svg)](https://david-dm.org/twbs/bootstrap?type=dev)
61+
[![CSS gzip size](http://img.badgesize.io/twbs/bootstrap/v4-dev/dist/css/bootstrap.min.css?compression=gzip&label=CSS+gzip+size)](https://github.com/twbs/bootstrap/tree/v4-dev/dist/css/bootstrap.min.css)
62+
[![JS gzip size](http://img.badgesize.io/twbs/bootstrap/v4-dev/dist/js/bootstrap.min.js?compression=gzip&label=JS+gzip+size)](https://github.com/twbs/bootstrap/tree/v4-dev/dist/js/bootstrap.min.js)
6163

62-
[![Selenium Test Status](https://saucelabs.com/browser-matrix/bootstrap.svg)](https://saucelabs.com/u/bootstrap)
64+
[![Sauce Labs Test Status](https://saucelabs.com/browser-matrix/bootstrap.svg)](https://saucelabs.com/u/bootstrap)
6365

6466
## What's included
6567

@@ -71,7 +73,15 @@ bootstrap/
7173
│ ├── bootstrap.css
7274
│ ├── bootstrap.css.map
7375
│ ├── bootstrap.min.css
74-
│ └── bootstrap.min.css.map
76+
│ ├── bootstrap.min.css.map
77+
│ ├── bootstrap-grid.css
78+
│ ├── bootstrap-grid.css.map
79+
│ ├── bootstrap-grid.min.css
80+
│ ├── bootstrap-grid.min.css.map
81+
│ ├── bootstrap-reboot.css
82+
│ ├── bootstrap-reboot.css.map
83+
│ ├── bootstrap-reboot.min.css
84+
│ └── bootstrap-reboot.min.css.map
7585
└── js/
7686
├── bootstrap.js
7787
└── bootstrap.min.js
@@ -87,13 +97,13 @@ Have a bug or a feature request? Please first read the [issue guidelines](https:
8797

8898
## Documentation
8999

90-
Bootstrap's documentation, included in this repo in the root directory, is built with [Jekyll](https://jekyllrb.com) and publicly hosted on GitHub Pages at <https://getbootstrap.com>. The docs may also be run locally.
100+
Bootstrap's documentation, included in this repo in the root directory, is built with [Jekyll](https://jekyllrb.com/) and publicly hosted on GitHub Pages at <https://getbootstrap.com/>. The docs may also be run locally.
91101

92102
Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in the `_scripts.html` include.
93103

94104
### Running documentation locally
95105

96-
1. Run through the [tooling setup](https://github.com/twbs/bootstrap/blob/v4-dev/docs/4.0/getting-started/build-tools.md#tooling-setup) to install Jekyll (the site builder) and other Ruby dependencies with `bundle install`.
106+
1. Run through the [tooling setup](https://getbootstrap.com/docs/4.0/getting-started/build-tools/#tooling-setup) to install Jekyll (the site builder) and other Ruby dependencies with `bundle install`.
97107
2. Run `npm install` to install Node.js dependencies.
98108
3. Run `npm run test` (or a specific NPM script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
99109
4. From the root `/bootstrap` directory, run `npm run docs-serve` in the command line.
@@ -109,15 +119,13 @@ Learn more about using Jekyll by reading its [documentation](https://jekyllrb.co
109119
[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
110120

111121

112-
113122
## Contributing
114123

115124
Please read through our [contributing guidelines](https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
116125

117126
Moreover, if your pull request contains JavaScript patches or features, you must include [relevant unit tests](https://github.com/twbs/bootstrap/tree/master/js/tests). All HTML and CSS should conform to the [Code Guide](https://github.com/mdo/code-guide), maintained by [Mark Otto](https://github.com/mdo).
118127

119-
Editor preferences are available in the [editor config](https://github.com/twbs/bootstrap/blob/master/.editorconfig) for easy use in common text editors. Read more and download plugins at <http://editorconfig.org>.
120-
128+
Editor preferences are available in the [editor config](https://github.com/twbs/bootstrap/blob/master/.editorconfig) for easy use in common text editors. Read more and download plugins at <http://editorconfig.org/>.
121129

122130

123131
## Community
@@ -132,7 +140,6 @@ Get updates on Bootstrap's development and chat with the project maintainers and
132140
- Developers should use the keyword `bootstrap` on packages which modify or add to the functionality of Bootstrap when distributing through [npm](https://www.npmjs.com/browse/keyword/bootstrap) or similar delivery mechanisms for maximum discoverability.
133141

134142

135-
136143
## Versioning
137144

138145
For transparency into our release cycle and in striving to maintain backward compatibility, Bootstrap is maintained under [the Semantic Versioning guidelines](http://semver.org/). Sometimes we screw up, but we'll adhere to those rules whenever possible.
@@ -153,7 +160,6 @@ See [the Releases section of our GitHub project](https://github.com/twbs/bootstr
153160
- <https://github.com/fat>
154161

155162

156-
157163
## Copyright and license
158164

159165
Code and documentation copyright 2011-2017 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/master/LICENSE). Docs released under [Creative Commons](https://github.com/twbs/bootstrap/blob/master/docs/LICENSE).

_data/colors.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
- name: blue
2-
hex: "#007aff"
2+
hex: "#007bff"
33
- name: indigo
4-
hex: "#2b29bb"
4+
hex: "#6610f2"
55
- name: purple
6-
hex: "#882ae0"
6+
hex: "#6f42c1"
77
- name: pink
8-
hex: "#f14095"
8+
hex: "#e83e8c"
99
- name: red
10-
hex: "#ea0242"
10+
hex: "#dc3545"
1111
- name: orange
12-
hex: "#ff8d00"
12+
hex: "#fd7e14"
1313
- name: yellow
14-
hex: "#ffec00"
14+
hex: "#ffc107"
1515
- name: green
16-
hex: "#34da36"
16+
hex: "#28a745"
1717
- name: teal
18-
hex: "#1dde8e"
18+
hex: "#20c997"
1919
- name: cyan
20-
hex: "#08eff3"
20+
hex: "#17a2b8"
2121
- name: white
2222
hex: "#fff"
2323
- name: gray
24-
hex: "#464a4c"
24+
hex: "#868e96"
2525
- name: gray-dark
26-
hex: "#292b2c"
26+
hex: "#343a40"

_data/grays.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
- name: 100
22
hex: "#f8f9fa"
33
- name: 200
4-
hex: "#ebedef"
4+
hex: "#e9ecef"
55
- name: 300
6-
hex: "#ced3d8"
6+
hex: "#dee2e6"
77
- name: 400
8-
hex: "#abb3bd"
8+
hex: "#ced4da"
99
- name: 500
10-
hex: "#7c8a99"
10+
hex: "#adb5bd"
1111
- name: 600
12-
hex: "#55626f"
12+
hex: "#868e96"
1313
- name: 700
14-
hex: "#4a5560"
14+
hex: "#495057"
1515
- name: 800
16-
hex: "#384048"
16+
hex: "#343a40"
1717
- name: 900
18-
hex: "#131619"
18+
hex: "#212529"

_data/theme-colors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- name: primary
2-
hex: "#007aff"
2+
hex: "#007bff"
33
- name: secondary
44
hex: "#868e96"
55
- name: success

_includes/icons/import.svg

Lines changed: 1 addition & 1 deletion
Loading

assets/scss/_brand.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// stylelint-disable no-duplicate-selectors
2+
13
//
24
// Brand guidelines
35
//

assets/scss/_component-examples.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// stylelint-disable selector-no-qualifying-type
1+
// stylelint-disable no-duplicate-selectors, selector-no-qualifying-type
22

33
//
44
// Grid examples

assets/scss/_content.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// stylelint-disable selector-max-combinators, selector-max-compound-selectors, selector-max-type, selector-no-qualifying-type
1+
// stylelint-disable no-duplicate-selectors, selector-max-combinators, selector-max-compound-selectors, selector-max-type, selector-no-qualifying-type
22

33
//
44
// Automatically style Markdown-based tables like a Bootstrap `.table`.

build/.stylelintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"declaration-block-semicolon-space-after": "always-single-line",
2020
"declaration-empty-line-before": null,
2121
"declaration-no-important": true,
22-
"font-family-name-quotes": "always-where-required",
22+
"font-family-name-quotes": "always-where-recommended",
2323
"font-weight-notation": "numeric",
2424
"function-comma-space-after": null,
2525
"function-url-no-scheme-relative": true,
@@ -32,7 +32,7 @@
3232
"media-feature-range-operator-space-after": "always",
3333
"media-feature-range-operator-space-before": "never",
3434
"no-descending-specificity": null,
35-
"no-duplicate-selectors": null,
35+
"no-duplicate-selectors": true,
3636
"number-leading-zero": "never",
3737
"order/properties-order": [
3838
"position",

build/htmllint.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env node
2+
3+
/*!
4+
* Script to run vnu-jar if Java is available.
5+
* Copyright 2017 The Bootstrap Authors
6+
* Copyright 2017 Twitter, Inc.
7+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
8+
*/
9+
10+
'use strict'
11+
12+
const childProcess = require('child_process')
13+
const vnu = require('vnu-jar')
14+
15+
childProcess.exec('java -version', function (error) {
16+
if (error) {
17+
console.error('Skipping HTML lint test; Java is missing.')
18+
return
19+
}
20+
21+
const ignores = [
22+
'Attribute “autocomplete” is only allowed when the input type is “color”, “date”, “datetime-local”, “email”, “hidden”, “month”, “number”, “password”, “range”, “search”, “tel”, “text”, “time”, “url”, or “week”.',
23+
'Attribute “autocomplete” not allowed on element “button” at this point.',
24+
'Attribute “title” not allowed on element “circle” at this point.',
25+
'Bad value “tablist” for attribute “role” on element “nav”.',
26+
'Element “img” is missing required attribute “src”.',
27+
'Element “legend” not allowed as child of element “div” in this context.*'
28+
].join('|')
29+
30+
const args = [
31+
'-jar',
32+
vnu,
33+
'--asciiquotes',
34+
'--errors-only',
35+
'--skip-non-html',
36+
`--filterpattern "${ignores}"`,
37+
'_gh_pages/',
38+
'js/tests/'
39+
]
40+
41+
return childProcess.spawn('java', args, {
42+
shell: true,
43+
stdio: 'inherit'
44+
})
45+
.on('exit', process.exit)
46+
})

build/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = (ctx) => ({
4-
map: ctx.file.dirname.startsWith('docs') ? false : {
4+
map: ctx.file.dirname.includes('examples') ? false : {
55
inline: false,
66
annotation: true,
77
sourcesContent: true

0 commit comments

Comments
 (0)