diff --git a/package.json b/package.json index 9af3b111dc96d0c9d5d4a9df4a55d050094baed1..5676cd6733da5c516a01267dee8b7fa9a6c2c279 100644 --- a/package.json +++ b/package.json @@ -18,21 +18,21 @@ ], "scripts": { "start": "npm-run-all --parallel watch docs-serve", - "blc": "blc --exclude-external --filter-level 3 --get --ordered --recursive --host-requests 4 --input http://localhost:3000/", + "blc": "blc --filter-level 3 --get --ordered --recursive --host-requests 4 --input http://localhost:3000/", "http-server": "http-server --silent -p 3000", "bundlesize": "bundlesize", "check-broken-links": "npm-run-all --parallel --race \"http-server -- _gh_pages/\" blc", "css": "npm-run-all --parallel css-lint* css-compile* --sequential css-prefix* css-minify*", "css-main": "npm-run-all --parallel css-lint css-compile --sequential css-prefix css-minify css-copy", "css-docs": "npm-run-all --parallel css-lint-docs css-compile-docs --sequential css-prefix-docs css-minify-docs", - "css-compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap.scss dist/css/bootstrap.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-grid.scss dist/css/bootstrap-grid.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-reboot.scss dist/css/bootstrap-reboot.css", + "css-compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap.scss dist/css/bootstrap.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-grid.scss dist/css/bootstrap-grid.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-reboot.scss dist/css/bootstrap-reboot.css && npm run css-copy", "css-compile-docs": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 site/docs/4.1/assets/scss/docs.scss site/docs/4.1/assets/css/docs.min.css", "css-copy": "shx mkdir -p site/docs/4.1/dist/ && shx cp -r dist/css/ site/docs/4.1/dist/", "css-lint": "stylelint --syntax scss \"scss/**/*.scss\"", "css-lint-docs": "stylelint --syntax scss \"site/docs/4.1/assets/scss/*.scss\" && stylelint \"site/docs/**/*.css\"", - "css-lint-vars": "node build/lint-vars.js scss/ site/docs/4.1/assets/scss/", + "css-lint-vars": "node build/lint-vars.js scss/ site/docs/", "css-prefix": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.min.css\"", - "css-prefix-docs": "postcss --config build/postcss.config.js --replace \"site/docs/4.1/assets/css/docs.min.css\" \"site/docs/**/*.css\"", + "css-prefix-docs": "postcss --config build/postcss.config.js --replace \"site/docs/**/*.css\" \"site/docs/**/*.css\"", "css-minify": "cleancss --level 1 --format breaksWith=lf --source-map --source-map-inline-sources --output dist/css/bootstrap.min.css dist/css/bootstrap.css && cleancss --level 1 --format breaksWith=lf --source-map --source-map-inline-sources --output dist/css/bootstrap-grid.min.css dist/css/bootstrap-grid.css && cleancss --level 1 --format breaksWith=lf --source-map --source-map-inline-sources --output dist/css/bootstrap-reboot.min.css dist/css/bootstrap-reboot.css", "css-minify-docs": "cleancss --level 1 --format breaksWith=lf --source-map --source-map-inline-sources --output site/docs/4.1/assets/css/docs.min.css site/docs/4.1/assets/css/docs.min.css", "js": "npm-run-all js-lint* js-compile js-minify js-copy", @@ -72,7 +72,7 @@ "release-version": "node build/change-version.js", "release-zip": "cd dist/ && zip -r9 bootstrap-$npm_package_version-dist.zip * && shx mv bootstrap-$npm_package_version-dist.zip ..", "saucelabs-test": "node build/saucelabs-unit-test.js", - "dist": "npm-run-all --parallel css-main js", + "dist": "npm-run-all --parallel css js", "test": "npm-run-all dist js-test docs-compile docs-lint bundlesize", "watch": "npm-run-all --parallel watch-*", "watch-css-main": "nodemon --watch scss/ --ext scss --exec \"npm run css-main\"", diff --git a/site/_data/translations.yml b/site/_data/translations.yml index 38b5771c480eead52c93c57548272dc1df612025..65bf6b53a319db3e8c6b3bc6ef476c6e50bb748e 100644 --- a/site/_data/translations.yml +++ b/site/_data/translations.yml @@ -8,11 +8,6 @@ description: Bootstrap 4 · å…¨çƒæœ€æµè¡Œçš„ HTMLã€CSS å’Œ JS 工具库。 url: https://code.z01.com/v4 -- name: Chinese - code: zh - description: Bootstrap 4 ä¸æ–‡æ–‡æ¡£æ•™ç¨‹ - url: https://wiki.jikexueyuan.com/project/bootstrap4/ - - name: Brazilian Portuguese code: pt-BR description: Bootstrap 4 Português do Brasil diff --git a/site/docs/4.1/components/forms.md b/site/docs/4.1/components/forms.md index f0db3f7195b4585efbaecf50f6222fbeb27de9cc..9d095cae40219cdf0e5849922391d3d32c5704a5 100644 --- a/site/docs/4.1/components/forms.md +++ b/site/docs/4.1/components/forms.md @@ -1111,7 +1111,7 @@ We use the sibling selector (`~`) for all our `<input>` states—like `:checked` We hide the default `<input>` with `opacity` and use the `.custom-control-label` to build a new custom form indicator in its place with `::before` and `::after`. Unfortunately we can't build a custom one from just the `<input>` because CSS's `content` doesn't work on that element. -In the checked states, we use **base64 embedded SVG icons** from [Open Iconic](https://useiconic.com/open). This provides us the best control for styling and positioning across browsers and devices. +In the checked states, we use **base64 embedded SVG icons** from [Open Iconic](https://github.com/iconic/open-iconic). This provides us the best control for styling and positioning across browsers and devices. #### Checkboxes diff --git a/site/docs/4.1/examples/.eslintrc.json b/site/docs/4.1/examples/.eslintrc.json index f04fd6ae131d974e02e01b72aba49381bfacb86d..7461ae627b341e84c708b88b9939920ad0adbadc 100644 --- a/site/docs/4.1/examples/.eslintrc.json +++ b/site/docs/4.1/examples/.eslintrc.json @@ -7,5 +7,5 @@ "ecmaVersion": 5, "sourceType": "script" }, - "extends": "../../../js/tests/unit/.eslintrc.json" + "extends": "../../../../js/tests/unit/.eslintrc.json" } diff --git a/site/docs/4.1/examples/.stylelintrc b/site/docs/4.1/examples/.stylelintrc index 6a77dcedb652626fbd30582ddf2639de41b32387..06c67b5ff3ab039ec6fca107b4a3234f4a51cabb 100644 --- a/site/docs/4.1/examples/.stylelintrc +++ b/site/docs/4.1/examples/.stylelintrc @@ -1,5 +1,5 @@ { - "extends": "../../../.stylelintrc", + "extends": "../../../../.stylelintrc", "rules": { "at-rule-no-vendor-prefix": null, "comment-empty-line-before": null,