From 543d2219c455419ea25173156770780b1b1db019 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 17 Jun 2021 08:38:54 -0700 Subject: Remove a leftover sass:math module call (#34280) --- scss/mixins/_grid.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss index f108b447b..152d91413 100644 --- a/scss/mixins/_grid.scss +++ b/scss/mixins/_grid.scss @@ -1,5 +1,3 @@ -@use "sass:math"; - /// Grid system // // Generate semantic grid columns with these mixins. -- cgit v1.2.3 From bef9ec88986dbb4a8d34e9f01ffc0183c8b7ded0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 17 Jun 2021 09:15:59 -0700 Subject: Fix lingering Sass math (#34281) --- scss/mixins/_grid.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss index 152d91413..cf5ab7fa2 100644 --- a/scss/mixins/_grid.scss +++ b/scss/mixins/_grid.scss @@ -1,4 +1,4 @@ -/// Grid system +// Grid system // // Generate semantic grid columns with these mixins. @@ -55,7 +55,7 @@ @mixin row-cols($count) { > * { flex: 0 0 auto; - width: 100% / $count; + width: divide(100%, $count); } } -- cgit v1.2.3 From 9c1bc2f041075e728d8ac3ecbba1f0d3389c06e3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 18 Jun 2021 09:02:46 +0300 Subject: Bump globby from 11.0.3 to 11.0.4 (#34286) Bumps [globby](https://github.com/sindresorhus/globby) from 11.0.3 to 11.0.4. - [Release notes](https://github.com/sindresorhus/globby/releases) - [Commits](https://github.com/sindresorhus/globby/compare/v11.0.3...v11.0.4) --- updated-dependencies: - dependency-name: globby dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index be8ed4175..b6780bf83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4947,9 +4947,9 @@ "dev": true }, "globby": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", - "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", "dev": true, "requires": { "array-union": "^2.1.0", diff --git a/package.json b/package.json index 385290230..8a8053282 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,7 @@ "eslint-plugin-unicorn": "^31.0.0", "find-unused-sass-variables": "^3.1.0", "glob": "^7.1.7", - "globby": "^11.0.3", + "globby": "^11.0.4", "hammer-simulator": "0.0.1", "hugo-bin": "^0.71.1", "ip": "^1.1.5", -- cgit v1.2.3 From c6d6156e42dc8deb16b88356baa5c968fe54064c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 18 Jun 2021 09:08:48 +0300 Subject: Bump postcss from 8.3.4 to 8.3.5 (#34287) Bumps [postcss](https://github.com/postcss/postcss) from 8.3.4 to 8.3.5. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.3.4...8.3.5) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b6780bf83..40374aefa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7964,9 +7964,9 @@ "optional": true }, "postcss": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.3.4.tgz", - "integrity": "sha512-/tZY0PXExXXnNhKv3TOvZAOUYRyuqcCbBm2c17YMDK0PlVII3K7/LKdt3ScHL+hhouddjUWi+1sKDf9xXW+8YA==", + "version": "8.3.5", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.3.5.tgz", + "integrity": "sha512-NxTuJocUhYGsMiMFHDUkmjSKT3EdH4/WbGF6GCi1NDGk+vbcUTun4fpbOqaPtD8IIsztA2ilZm2DhYCuyN58gA==", "dev": true, "requires": { "colorette": "^1.2.2", diff --git a/package.json b/package.json index 8a8053282..ee7f7126d 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "lockfile-lint": "^4.6.2", "nodemon": "^2.0.7", "npm-run-all": "^4.1.5", - "postcss": "^8.3.4", + "postcss": "^8.3.5", "postcss-cli": "^8.3.1", "rollup": "^2.51.2", "rollup-plugin-istanbul": "^3.0.0", -- cgit v1.2.3 From d16a799217281e79a4fe7679e3aa15612161dc8f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 18 Jun 2021 09:14:44 +0300 Subject: Bump rollup from 2.51.2 to 2.52.1 (#34288) Bumps [rollup](https://github.com/rollup/rollup) from 2.51.2 to 2.52.1. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v2.51.2...v2.52.1) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 40374aefa..ea88e170b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8896,12 +8896,12 @@ } }, "rollup": { - "version": "2.51.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.51.2.tgz", - "integrity": "sha512-ReV2eGEadA7hmXSzjxdDKs10neqH2QURf2RxJ6ayAlq93ugy6qIvXMmbc5cWMGCDh1h5T4thuWO1e2VNbMq8FA==", + "version": "2.52.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.52.1.tgz", + "integrity": "sha512-/SPqz8UGnp4P1hq6wc9gdTqA2bXQXGx13TtoL03GBm6qGRI6Hm3p4Io7GeiHNLl0BsQAne1JNYY+q/apcY933w==", "dev": true, "requires": { - "fsevents": "~2.3.1" + "fsevents": "~2.3.2" } }, "rollup-plugin-istanbul": { diff --git a/package.json b/package.json index ee7f7126d..8e2da517c 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,7 @@ "npm-run-all": "^4.1.5", "postcss": "^8.3.5", "postcss-cli": "^8.3.1", - "rollup": "^2.51.2", + "rollup": "^2.52.1", "rollup-plugin-istanbul": "^3.0.0", "rtlcss": "^3.2.0", "sass": "1.32.13", -- cgit v1.2.3 From 34db122ecce249c81a519dbcb4caf42dac58460e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 19 Jun 2021 16:30:31 -0700 Subject: Small typos, closes #34249 --- scss/_variables.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scss/_variables.scss b/scss/_variables.scss index 75d126d7b..06dfa4a4d 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -422,8 +422,8 @@ $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberati $font-family-base: var(--#{$variable-prefix}font-sans-serif) !default; $font-family-code: var(--#{$variable-prefix}font-monospace) !default; -// $font-size-root effects the value of `rem`, which is used for as well font sizes, paddings and margins -// $font-size-base effects the font size of the body text +// $font-size-root affects the value of `rem`, which is used for as well font sizes, paddings, and margins +// $font-size-base affects the font size of the body text $font-size-root: null !default; $font-size-base: 1rem !default; // Assumes the browser default, typically `16px` $font-size-sm: $font-size-base * .875 !default; -- cgit v1.2.3 From 40373eb773105a56fd254db2c603af4adbed05ec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 12:31:29 +0300 Subject: Bump hugo-bin from 0.71.1 to 0.72.1 (#34327) Bumps [hugo-bin](https://github.com/fenneclab/hugo-bin) from 0.71.1 to 0.72.1. - [Release notes](https://github.com/fenneclab/hugo-bin/releases) - [Commits](https://github.com/fenneclab/hugo-bin/compare/v0.71.1...v0.72.1) --- updated-dependencies: - dependency-name: hugo-bin dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ea88e170b..923d18826 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5229,9 +5229,9 @@ } }, "hugo-bin": { - "version": "0.71.1", - "resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.71.1.tgz", - "integrity": "sha512-H+aBkwtR6oSMcu1kCyzQlan+lcQ45k70JGX4v72h8mb0e4AbvaF58kAy6EDRK/U+/hD6ghTf0a6eLr5sENjaAg==", + "version": "0.72.1", + "resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.72.1.tgz", + "integrity": "sha512-jwQPTv6ZNgm31awjujmaQU2E+DOuG0swS5JQc/ZU9rSnvDVux6TWooVKFEdaxUHXSpH86ER5OT9bMDsEsuRY9A==", "dev": true, "requires": { "bin-wrapper": "^4.1.0", diff --git a/package.json b/package.json index 8e2da517c..d4f17f825 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "glob": "^7.1.7", "globby": "^11.0.4", "hammer-simulator": "0.0.1", - "hugo-bin": "^0.71.1", + "hugo-bin": "^0.72.1", "ip": "^1.1.5", "jquery": "^3.6.0", "karma": "^6.3.4", -- cgit v1.2.3 From 15c040a32ab1233c6f38e8eae9308b7f2d2236cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 12:34:54 +0300 Subject: Bump eslint from 7.28.0 to 7.29.0 (#34324) Bumps [eslint](https://github.com/eslint/eslint) from 7.28.0 to 7.29.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.28.0...v7.29.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 923d18826..bcefae5c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3630,9 +3630,9 @@ "dev": true }, "eslint": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz", - "integrity": "sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.29.0.tgz", + "integrity": "sha512-82G/JToB9qIy/ArBzIWG9xvvwL3R86AlCjtGw+A29OMZDqhTybz/MByORSukGxeI+YPCR4coYyITKk8BFH9nDA==", "dev": true, "requires": { "@babel/code-frame": "7.12.11", @@ -8702,9 +8702,9 @@ "dev": true }, "regexpp": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", - "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true }, "regexpu-core": { diff --git a/package.json b/package.json index d4f17f825..c444f9eee 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "bundlewatch": "^0.3.2", "clean-css-cli": "^5.3.0", "cross-env": "^7.0.3", - "eslint": "^7.28.0", + "eslint": "^7.29.0", "eslint-config-xo": "^0.36.0", "eslint-plugin-import": "^2.23.4", "eslint-plugin-unicorn": "^31.0.0", -- cgit v1.2.3 From 58a373146b37010d95dbc356986c0cc84120cb90 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 12:41:32 +0300 Subject: Bump rollup from 2.52.1 to 2.52.2 (#34325) Bumps [rollup](https://github.com/rollup/rollup) from 2.52.1 to 2.52.2. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v2.52.1...v2.52.2) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index bcefae5c7..e572a6088 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8896,9 +8896,9 @@ } }, "rollup": { - "version": "2.52.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.52.1.tgz", - "integrity": "sha512-/SPqz8UGnp4P1hq6wc9gdTqA2bXQXGx13TtoL03GBm6qGRI6Hm3p4Io7GeiHNLl0BsQAne1JNYY+q/apcY933w==", + "version": "2.52.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.52.2.tgz", + "integrity": "sha512-4RlFC3k2BIHlUsJ9mGd8OO+9Lm2eDF5P7+6DNQOp5sx+7N/1tFM01kELfbxlMX3MxT6owvLB1ln4S3QvvQlbUA==", "dev": true, "requires": { "fsevents": "~2.3.2" diff --git a/package.json b/package.json index c444f9eee..6c2acbe2d 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,7 @@ "npm-run-all": "^4.1.5", "postcss": "^8.3.5", "postcss-cli": "^8.3.1", - "rollup": "^2.52.1", + "rollup": "^2.52.2", "rollup-plugin-istanbul": "^3.0.0", "rtlcss": "^3.2.0", "sass": "1.32.13", -- cgit v1.2.3 From 0fa84e8c8e2c51cb21f3a707a2aafa6d507af4a6 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 22 Jun 2021 12:42:49 +0300 Subject: build/vnu-jar.js: clean up ignores (#34279) --- build/vnu-jar.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build/vnu-jar.js b/build/vnu-jar.js index d031cc89b..6c3517ca5 100644 --- a/build/vnu-jar.js +++ b/build/vnu-jar.js @@ -26,10 +26,7 @@ execFile('java', ['-version'], (error, stdout, stderr) => { // "autocomplete" is included in + June + + + +
+
Sun
+
Mon
+
Tue
+
Wed
+
Thu
+
Fri
+
Sat
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + \ No newline at end of file diff --git a/site/content/docs/5.0/examples/footers/footers.css b/site/content/docs/5.0/examples/footers/footers.css new file mode 100644 index 000000000..4e826827e --- /dev/null +++ b/site/content/docs/5.0/examples/footers/footers.css @@ -0,0 +1,12 @@ +.b-example-divider { + height: 3rem; + background-color: rgba(0, 0, 0, .1); + border: solid rgba(0, 0, 0, .15); + border-width: 1px 0; + box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15); +} + +.bi { + vertical-align: -.125em; + fill: currentColor; +} diff --git a/site/content/docs/5.0/examples/footers/index.html b/site/content/docs/5.0/examples/footers/index.html new file mode 100644 index 000000000..b26909574 --- /dev/null +++ b/site/content/docs/5.0/examples/footers/index.html @@ -0,0 +1,188 @@ +--- +layout: examples +title: Footers +extra_css: + - "footers.css" +body_class: "" +--- + + + + Bootstrap + + + + + + + + + + + + + +
+ +
+ +
+ +
+
+
+ + + + © {{< year >}} Company, Inc +
+ + +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + +
+ +
diff --git a/site/content/docs/5.0/examples/list-groups/index.html b/site/content/docs/5.0/examples/list-groups/index.html new file mode 100644 index 000000000..c16bad944 --- /dev/null +++ b/site/content/docs/5.0/examples/list-groups/index.html @@ -0,0 +1,186 @@ +--- +layout: examples +title: List groups +extra_css: + - "list-groups.css" +body_class: "" +--- + + + + Bootstrap + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+ +
+ + + +
+
+ +
+ +
+ + + + +
+ +
+ +
+ + + + + + + + + + + +
\ No newline at end of file diff --git a/site/content/docs/5.0/examples/list-groups/list-groups.css b/site/content/docs/5.0/examples/list-groups/list-groups.css new file mode 100644 index 000000000..11351f87e --- /dev/null +++ b/site/content/docs/5.0/examples/list-groups/list-groups.css @@ -0,0 +1,61 @@ +.b-example-divider { + height: 3rem; + background-color: rgba(0, 0, 0, .1); + border: solid rgba(0, 0, 0, .15); + border-width: 1px 0; + box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15); +} + +.bi { + vertical-align: -.125em; + fill: currentColor; +} + +.opacity-50 { opacity: .5; } +.opacity-75 { opacity: .75; } + +.list-group { + width: auto; + max-width: 460px; + margin: 4rem auto; +} + +.form-check-input:checked + .form-checked-content { + opacity: .5; +} + +.form-check-input-placeholder { + pointer-events: none; + border-style: dashed; +} +[contenteditable]:focus { + outline: 0; +} + +.list-group-checkable { + display: grid; + gap: .5rem; + border: 0; +} +.list-group-checkable .list-group-item { + cursor: pointer; + border-radius: .5rem; +} +.list-group-item-check { + position: absolute; + clip: rect(0, 0, 0, 0); + pointer-events: none; +} +.list-group-item-check:hover + .list-group-item { + background-color: var(--bs-light); +} +.list-group-item-check:checked + .list-group-item { + color: #fff; + background-color: var(--bs-blue); +} +.list-group-item-check[disabled] + .list-group-item, +.list-group-item-check:disabled + .list-group-item { + pointer-events: none; + filter: none; + opacity: .5; +} diff --git a/site/content/docs/5.0/examples/modals/index.html b/site/content/docs/5.0/examples/modals/index.html new file mode 100644 index 000000000..cc0feff87 --- /dev/null +++ b/site/content/docs/5.0/examples/modals/index.html @@ -0,0 +1,173 @@ +--- +layout: examples +title: Modals +extra_css: + - "modals.css" +body_class: "" +--- + + + + Bootstrap + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
diff --git a/site/content/docs/5.0/examples/modals/modals.css b/site/content/docs/5.0/examples/modals/modals.css new file mode 100644 index 000000000..8fda8212a --- /dev/null +++ b/site/content/docs/5.0/examples/modals/modals.css @@ -0,0 +1,34 @@ +.b-example-divider { + height: 3rem; + background-color: rgba(0, 0, 0, .1); + border: solid rgba(0, 0, 0, .15); + border-width: 1px 0; + box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15); +} + +.bi { + vertical-align: -.125em; + fill: currentColor; +} + +.rounded-4 { border-radius: .5rem; } +.rounded-5 { border-radius: .75rem; } +.rounded-6 { border-radius: 1rem; } + +.modal-sheet .modal-dialog { + width: 380px; + transition: bottom .75s ease-in-out; +} +.modal-sheet .modal-footer { + padding-bottom: 2rem; +} + +.modal-alert .modal-dialog { + width: 380px; +} + +.border-right { border-right: 1px solid #eee; } + +.modal-tour .modal-dialog { + width: 380px; +} diff --git a/site/data/examples.yml b/site/data/examples.yml index 9898363d6..6d6419d21 100644 --- a/site/data/examples.yml +++ b/site/data/examples.yml @@ -9,6 +9,14 @@ description: "Explain the features, benefits, or other details in your marketing content." - name: Sidebars description: "Common navigation patterns ideal for offcanvas or multi-column layouts." + - name: Footers + description: "Finish every page strong with an awesome footer, big or small." + - name: Dropdowns + description: "Enhance your dropdowns with filters, icons, custom styles, and more." + - name: List groups + description: "Extend list groups with utilities and custom styles for any content." + - name: Modals + description: "Transform modals to serve any purpose, from feature tours to dialogs." - category: Custom Components description: "Brand new components and templates to help folks quickly get started with Bootstrap and demonstrate best practices for adding onto the framework." diff --git a/site/static/docs/5.0/assets/img/examples/dropdowns.png b/site/static/docs/5.0/assets/img/examples/dropdowns.png new file mode 100644 index 000000000..46444814a Binary files /dev/null and b/site/static/docs/5.0/assets/img/examples/dropdowns.png differ diff --git a/site/static/docs/5.0/assets/img/examples/dropdowns@2x.png b/site/static/docs/5.0/assets/img/examples/dropdowns@2x.png new file mode 100644 index 000000000..7ac8e1ecc Binary files /dev/null and b/site/static/docs/5.0/assets/img/examples/dropdowns@2x.png differ diff --git a/site/static/docs/5.0/assets/img/examples/footers.png b/site/static/docs/5.0/assets/img/examples/footers.png new file mode 100644 index 000000000..4f083748a Binary files /dev/null and b/site/static/docs/5.0/assets/img/examples/footers.png differ diff --git a/site/static/docs/5.0/assets/img/examples/footers@2x.png b/site/static/docs/5.0/assets/img/examples/footers@2x.png new file mode 100644 index 000000000..dc06aef79 Binary files /dev/null and b/site/static/docs/5.0/assets/img/examples/footers@2x.png differ diff --git a/site/static/docs/5.0/assets/img/examples/list-groups.png b/site/static/docs/5.0/assets/img/examples/list-groups.png new file mode 100644 index 000000000..67be951c5 Binary files /dev/null and b/site/static/docs/5.0/assets/img/examples/list-groups.png differ diff --git a/site/static/docs/5.0/assets/img/examples/list-groups@2x.png b/site/static/docs/5.0/assets/img/examples/list-groups@2x.png new file mode 100644 index 000000000..000eb3328 Binary files /dev/null and b/site/static/docs/5.0/assets/img/examples/list-groups@2x.png differ diff --git a/site/static/docs/5.0/assets/img/examples/modals.png b/site/static/docs/5.0/assets/img/examples/modals.png new file mode 100644 index 000000000..ac3bdd0b8 Binary files /dev/null and b/site/static/docs/5.0/assets/img/examples/modals.png differ diff --git a/site/static/docs/5.0/assets/img/examples/modals@2x.png b/site/static/docs/5.0/assets/img/examples/modals@2x.png new file mode 100644 index 000000000..49163c80a Binary files /dev/null and b/site/static/docs/5.0/assets/img/examples/modals@2x.png differ -- cgit v1.2.3 From a816615efa9d4fbd311c58d79b096c5672a406a1 Mon Sep 17 00:00:00 2001 From: harishhalodoc <80090779+harishhalodoc@users.noreply.github.com> Date: Wed, 23 Jun 2021 07:50:01 +0530 Subject: Add utility classes for opacity (#33781) * Add responsive utility classes for opacity - fix for #33483 * remove responsive opacity utils as it has impact on bootstrap.css bundle size * Update opacity.md * Update site/content/docs/5.0/utilities/opacity.md Co-authored-by: Mark Otto * Update site/content/docs/5.0/utilities/opacity.md Co-authored-by: Mark Otto Co-authored-by: Harish Co-authored-by: XhmikosR Co-authored-by: Mark Otto Co-authored-by: Mark Otto Co-authored-by: alpadev <2838324+alpadev@users.noreply.github.com> --- scss/_utilities.scss | 13 +++++++++++++ site/content/docs/5.0/utilities/opacity.md | 30 ++++++++++++++++++++++++++++++ site/data/sidebar.yml | 1 + 3 files changed, 44 insertions(+) create mode 100644 site/content/docs/5.0/utilities/opacity.md diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 3c927cf59..74f8a3a01 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -24,6 +24,19 @@ $utilities: map-merge( ) ), // scss-docs-end utils-float + // Opacity utilities + // scss-docs-start utils-opacity + "opacity": ( + property: opacity, + values: ( + 0: 0, + 25: .25, + 50: .5, + 75: .75, + 100: 1, + ) + ), + // scss-docs-end utils-opacity // scss-docs-start utils-overflow "overflow": ( property: overflow, diff --git a/site/content/docs/5.0/utilities/opacity.md b/site/content/docs/5.0/utilities/opacity.md new file mode 100644 index 000000000..a2fdc3807 --- /dev/null +++ b/site/content/docs/5.0/utilities/opacity.md @@ -0,0 +1,30 @@ +--- +layout: docs +title: Opacity +description: Control the opacity of elements. +group: utilities +--- + +The `opacity` property sets the opacity level for an element. The opacity level describes the transparency level, where `1` is not transparent at all, `.5` is 50% visible, and `0` is completely transparent. + +Set the `opacity` of an element using `.opacity-{value}` utilities. + +
+
100%
+
75%
+
50%
+
25%
+
+ +```html +
...
+
...
+
...
+
...
+``` + +### Utilities API + +Opacity utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]({{< docsref "/utilities/api#using-the-api" >}}) + +{{< scss-docs name="utils-opacity" file="scss/_utilities.scss" >}} diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index 4e43255a3..70652afd8 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -101,6 +101,7 @@ - title: Flex - title: Float - title: Interactions + - title: Opacity - title: Overflow - title: Position - title: Shadows -- cgit v1.2.3 From f94f497ad5c3108b7f95242af586592cf274b9bd Mon Sep 17 00:00:00 2001 From: GeoSot Date: Tue, 8 Jun 2021 10:38:27 +0300 Subject: ScrollSpy: Make Proper use of the SelectorEngine * avoid extra work, creating ids * simplify selectors and constrain search inside `config.target` --- js/src/scrollspy.js | 29 ++++++++--------------------- js/tests/unit/scrollspy.spec.js | 15 --------------- 2 files changed, 8 insertions(+), 36 deletions(-) diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index e2c432ca3..25fcd5ad2 100644 --- a/js/src/scrollspy.js +++ b/js/src/scrollspy.js @@ -7,9 +7,8 @@ import { defineJQueryPlugin, + getElement, getSelectorFromElement, - getUID, - isElement, typeCheckConfig } from './util/index' import EventHandler from './dom/event-handler' @@ -52,6 +51,7 @@ const SELECTOR_NAV_LIST_GROUP = '.nav, .list-group' const SELECTOR_NAV_LINKS = '.nav-link' const SELECTOR_NAV_ITEMS = '.nav-item' const SELECTOR_LIST_ITEMS = '.list-group-item' +const SELECTOR_LINK_ITEMS = `${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}, .${CLASS_NAME_DROPDOWN_ITEM}` const SELECTOR_DROPDOWN = '.dropdown' const SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle' @@ -69,7 +69,6 @@ class ScrollSpy extends BaseComponent { super(element) this._scrollElement = this._element.tagName === 'BODY' ? window : this._element this._config = this._getConfig(config) - this._selector = `${this._config.target} ${SELECTOR_NAV_LINKS}, ${this._config.target} ${SELECTOR_LIST_ITEMS}, ${this._config.target} .${CLASS_NAME_DROPDOWN_ITEM}` this._offsets = [] this._targets = [] this._activeTarget = null @@ -110,7 +109,7 @@ class ScrollSpy extends BaseComponent { this._targets = [] this._scrollHeight = this._getScrollHeight() - const targets = SelectorEngine.find(this._selector) + const targets = SelectorEngine.find(SELECTOR_LINK_ITEMS, this._config.target) targets.map(element => { const targetSelector = getSelectorFromElement(element) @@ -150,15 +149,7 @@ class ScrollSpy extends BaseComponent { ...(typeof config === 'object' && config ? config : {}) } - if (typeof config.target !== 'string' && isElement(config.target)) { - let { id } = config.target - if (!id) { - id = getUID(NAME) - config.target.id = id - } - - config.target = `#${id}` - } + config.target = getElement(config.target) || document.documentElement typeCheckConfig(NAME, config, DefaultType) @@ -225,20 +216,16 @@ class ScrollSpy extends BaseComponent { this._clear() - const queries = this._selector.split(',') + const queries = SELECTOR_LINK_ITEMS.split(',') .map(selector => `${selector}[data-bs-target="${target}"],${selector}[href="${target}"]`) - const link = SelectorEngine.findOne(queries.join(',')) + const link = SelectorEngine.findOne(queries.join(','), this._config.target) + link.classList.add(CLASS_NAME_ACTIVE) if (link.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) { SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE, link.closest(SELECTOR_DROPDOWN)) .classList.add(CLASS_NAME_ACTIVE) - - link.classList.add(CLASS_NAME_ACTIVE) } else { - // Set triggered link as active - link.classList.add(CLASS_NAME_ACTIVE) - SelectorEngine.parents(link, SELECTOR_NAV_LIST_GROUP) .forEach(listGroup => { // Set triggered links parents as active @@ -261,7 +248,7 @@ class ScrollSpy extends BaseComponent { } _clear() { - SelectorEngine.find(this._selector) + SelectorEngine.find(SELECTOR_LINK_ITEMS, this._config.target) .filter(node => node.classList.contains(CLASS_NAME_ACTIVE)) .forEach(node => node.classList.remove(CLASS_NAME_ACTIVE)) } diff --git a/js/tests/unit/scrollspy.spec.js b/js/tests/unit/scrollspy.spec.js index 8724b8369..ad44d5b3c 100644 --- a/js/tests/unit/scrollspy.spec.js +++ b/js/tests/unit/scrollspy.spec.js @@ -65,21 +65,6 @@ describe('ScrollSpy', () => { expect(sSpyByElement._element).toEqual(sSpyEl) }) - it('should generate an id when there is not one', () => { - fixtureEl.innerHTML = [ - '', - '
' - ].join('') - - const navEl = fixtureEl.querySelector('nav') - const scrollSpy = new ScrollSpy(fixtureEl.querySelector('.content'), { - target: navEl - }) - - expect(scrollSpy).toBeDefined() - expect(navEl.getAttribute('id')).not.toEqual(null) - }) - it('should not process element without target', () => { fixtureEl.innerHTML = [ '