diff --git a/.babelrc b/.babelrc
new file mode 100644
index 000000000..eb52c30ac
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,14 @@
+{
+ "presets": [
+ [
+ "es2015",
+ {
+ "loose": true,
+ "modules": false
+ }
+ ]
+ ],
+ "plugins": [
+ "transform-es2015-modules-strip"
+ ]
+}
diff --git a/.babelrc.js b/.babelrc.js
deleted file mode 100644
index 51399697f..000000000
--- a/.babelrc.js
+++ /dev/null
@@ -1,12 +0,0 @@
-module.exports = {
- presets: [
- [
- '@babel/preset-env',
- {
- loose: true,
- bugfixes: true,
- modules: false
- }
- ]
- ]
-};
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index b8e384bc9..000000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,15 +0,0 @@
-# https://github.com/browserslist/browserslist#readme
-
->= 0.5%
-last 2 major versions
-not dead
-Chrome >= 60
-Firefox >= 60
-# needed since Legacy Edge still has usage; 79 was the first Chromium Edge version
-# should be removed in the future when its usage drops or when it's moved to dead browsers
-not Edge < 79
-Firefox ESR
-iOS >= 10
-Safari >= 10
-Android >= 6
-not Explorer <= 11
diff --git a/.bundlewatch.config.json b/.bundlewatch.config.json
deleted file mode 100644
index da47da480..000000000
--- a/.bundlewatch.config.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "files": [
- {
- "path": "./dist/css/bootstrap-grid.css",
- "maxSize": "7 kB"
- },
- {
- "path": "./dist/css/bootstrap-grid.min.css",
- "maxSize": "6 kB"
- },
- {
- "path": "./dist/css/bootstrap-reboot.css",
- "maxSize": "2.25 kB"
- },
- {
- "path": "./dist/css/bootstrap-reboot.min.css",
- "maxSize": "2 kB"
- },
- {
- "path": "./dist/css/bootstrap-utilities.css",
- "maxSize": "7.5 kB"
- },
- {
- "path": "./dist/css/bootstrap-utilities.min.css",
- "maxSize": "6.75 kB"
- },
- {
- "path": "./dist/css/bootstrap.css",
- "maxSize": "24 kB"
- },
- {
- "path": "./dist/css/bootstrap.min.css",
- "maxSize": "22 kB"
- },
- {
- "path": "./dist/js/bootstrap.bundle.js",
- "maxSize": "41 kB"
- },
- {
- "path": "./dist/js/bootstrap.bundle.min.js",
- "maxSize": "21.5 kB"
- },
- {
- "path": "./dist/js/bootstrap.esm.js",
- "maxSize": "27 kB"
- },
- {
- "path": "./dist/js/bootstrap.esm.min.js",
- "maxSize": "18 kB"
- },
- {
- "path": "./dist/js/bootstrap.js",
- "maxSize": "28 kB"
- },
- {
- "path": "./dist/js/bootstrap.min.js",
- "maxSize": "15.5 kB"
- }
- ],
- "ci": {
- "trackBranches": [
- "main",
- "v4-dev"
- ]
- }
-}
diff --git a/.editorconfig b/.editorconfig
index f29d257cc..c193ae071 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -9,3 +9,9 @@ indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
+
+[*.md]
+trim_trailing_whitespace = false
+
+[*.py]
+indent_size = 4
diff --git a/.eslintignore b/.eslintignore
index ae6baae7e..8e0f5225c 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,6 +1,3 @@
**/*.min.js
-**/dist/
-**/vendor/
-/_gh_pages/
-/js/coverage/
-/site/static/sw.js
+**/vendor/*
+**/dist/*
diff --git a/.eslintrc.json b/.eslintrc.json
deleted file mode 100644
index d5a54d46b..000000000
--- a/.eslintrc.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "root": true,
- "extends": [
- "plugin:import/errors",
- "plugin:import/warnings",
- "plugin:unicorn/recommended",
- "xo/esnext",
- "xo/browser"
- ],
- "rules": {
- "capitalized-comments": "off",
- "indent": [
- "error",
- 2,
- {
- "MemberExpression": "off",
- "SwitchCase": 1
- }
- ],
- "max-params": [
- "warn",
- 5
- ],
- "multiline-ternary": [
- "error",
- "always-multiline"
- ],
- "new-cap": [
- "error",
- {
- "properties": false
- }
- ],
- "no-console": "error",
- "object-curly-spacing": [
- "error",
- "always"
- ],
- "prefer-named-capture-group": "off",
- "semi": [
- "error",
- "never"
- ],
- "unicorn/consistent-function-scoping": "off",
- "unicorn/explicit-length-check": "off",
- "unicorn/no-array-callback-reference": "off",
- "unicorn/no-for-loop": "off",
- "unicorn/no-null": "off",
- "unicorn/no-unused-properties": "error",
- "unicorn/no-useless-undefined": "off",
- "unicorn/prefer-dom-node-append": "off",
- "unicorn/prefer-dom-node-dataset": "off",
- "unicorn/prefer-dom-node-remove": "off",
- "unicorn/prefer-optional-catch-binding": "off",
- "unicorn/prefer-query-selector": "off",
- "unicorn/prevent-abbreviations": "off"
- }
-}
diff --git a/.gitattributes b/.gitattributes
index 40b1c3742..5788b1228 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,8 +1,16 @@
# Enforce Unix newlines
-* text=auto eol=lf
-
+*.css text eol=lf
+*.html text eol=lf
+*.js text eol=lf
+*.json text eol=lf
+*.md text eol=lf
+*.py text eol=lf
+*.rb text eol=lf
+*.scss text eol=lf
+*.svg text eol=lf
+*.yml text eol=lf
# Don't diff or textually merge source maps
-*.map binary
+*.map binary
bootstrap.css linguist-vendored=false
bootstrap.js linguist-vendored=false
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
deleted file mode 100644
index 7d3fa9904..000000000
--- a/.github/CODEOWNERS
+++ /dev/null
@@ -1,3 +0,0 @@
-*.js @twbs/js-review
-*.css @twbs/css-review
-*.scss @twbs/css-review
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 32b30cdb3..6fc088d6b 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -19,14 +19,13 @@ and [submitting pull requests](#pull-requests), but please respect the following
restrictions:
* Please **do not** use the issue tracker for personal support requests. Stack
- Overflow ([`bootstrap-5`](https://stackoverflow.com/questions/tagged/bootstrap-5) tag),
- [Slack](https://bootstrap-slack.herokuapp.com/) or [IRC](README.md#community) are better places to get help.
+ Overflow ([`bootstrap-4`](https://stackoverflow.com/questions/tagged/bootstrap-4) tag), [Slack](https://bootstrap-slack.herokuapp.com/) or [IRC](README.md#community) are better places to get help.
* Please **do not** derail or troll issues. Keep the discussion on topic and
respect the opinions of others.
* Please **do not** post comments consisting solely of "+1" or ":thumbsup:".
- Use [GitHub's "reactions" feature](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
+ Use [GitHub's "reactions" feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments)
instead. We reserve the right to delete comments which violate this rule.
* Please **do not** open issues regarding the official themes offered on
+ Sleek, intuitive, and powerful front-end framework for faster and easier web development.
+
https://bugreport.apple.com | In Apple's bug reporter, choose "Safari" as the product. |
+| Google, Opera | Chrome, Chromium, Opera v15+ | Blink | https://code.google.com/p/chromium/issues/list | Click the "New issue" button. |
+| Microsoft | Edge | EdgeHTML | https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/ | |
+
+### Issues bots
+
+[@twbs-lmvtfy](https://github.com/twbs-lmvtfy) is a Bootstrap bot that hangs out in our GitHub issue tracker and automatically checks for HTML validation errors in live examples (e.g. jsFiddles, JS Bins, Bootplys, Plunks, CodePens, etc.) posted in issue comments. If it finds any errors, it will post a follow-up comment on the issue and point out the errors. If this happens with an example you've posted, please fix the errors and post an updated live example. If you opened a bug report, please check whether the bug still occurs with your revised, valid live example. If the bug no longer occurs, it was probably due to your invalid HTML rather than something in Bootstrap and we'd appreciate it if you could close out the GitHub issue.
## Feature requests
@@ -123,32 +128,30 @@ Good pull requests—patches, improvements, new features—are a fantastic
help. They should remain focused in scope and avoid containing unrelated
commits.
-**Please ask first** before embarking on any **significant** pull request (e.g.
+**Please ask first** before embarking on any significant pull request (e.g.
implementing features, refactoring code, porting to a different language),
otherwise you risk spending a lot of time working on something that the
-project's developers might not want to merge into the project. For trivial
-things, or things that don't require a lot of your time, you can go ahead and
-make a PR.
+project's developers might not want to merge into the project.
Please adhere to the [coding guidelines](#code-guidelines) used throughout the
project (indentation, accurate comments, etc.) and any other requirements
(such as test coverage).
-**Do not edit `bootstrap.css` or `bootstrap.js`, and do not commit
-any dist files (`dist/` or `js/dist`).** Those files are automatically generated by our build tools. You should
-edit the source files in [`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/main/scss)
-and/or [`/bootstrap/js/src/`](https://github.com/twbs/bootstrap/tree/main/js/src) instead.
+**Do not edit `bootstrap.css`, or `bootstrap.js`
+directly!** Those files are automatically generated. You should edit the
+source files in [`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/master/scss)
+and/or [`/bootstrap/js/`](https://github.com/twbs/bootstrap/tree/master/js) instead.
Similarly, when contributing to Bootstrap's documentation, you should edit the
documentation source files in
-[the `/bootstrap/site/content/docs/` directory of the `main` branch](https://github.com/twbs/bootstrap/tree/main/site/content/docs).
+[the `/bootstrap/docs/` directory of the `master` branch](https://github.com/twbs/bootstrap/tree/master/docs).
**Do not edit the `gh-pages` branch.** That branch is generated from the
documentation source files and is managed separately by the Bootstrap Core Team.
Adhering to the following process is the best way to get your work
included in the project:
-1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork,
+1. [Fork](https://help.github.com/fork-a-repo/) the project, clone your fork,
and configure the remotes:
```bash
@@ -163,8 +166,8 @@ included in the project:
2. If you cloned a while ago, get the latest changes from upstream:
```bash
- git checkout main
- git pull upstream main
+ git checkout master
+ git pull upstream master
```
3. Create a new topic branch (off the main project development branch) to
@@ -175,15 +178,15 @@ included in the project:
```
4. Commit your changes in logical chunks. Please adhere to these [git commit
- message guidelines](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
+ message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
or your code is unlikely be merged into the main project. Use Git's
- [interactive rebase](https://help.github.com/articles/about-git-rebase/)
+ [interactive rebase](https://help.github.com/articles/interactive-rebase)
feature to tidy up your commits before making them public.
5. Locally merge (or rebase) the upstream development branch into your topic branch:
```bash
- git pull [--rebase] upstream main
+ git pull [--rebase] upstream master
```
6. Push your topic branch up to your fork:
@@ -192,21 +195,30 @@ included in the project:
git push origin Bootstrap
+
+
+ Explore Bootstrap docs »
+
+
+ Bootstrap Themes
+ ·
+ Job Board
+ ·
+ Blog
+
- Sleek, intuitive, and powerful front-end framework for faster and easier web development.
-
- Explore Bootstrap docs »
-
-
- Report bug
- ·
- Request feature
- ·
- Themes
- ·
- Blog
-