aboutsummaryrefslogtreecommitdiff
path: root/site/assets
AgeCommit message (Collapse)AuthorFilesLines
2022-12-29Darken some text emphasis and syntax colorsMark Otto1-0/+2
2022-12-29Use scrollspy on docs pages (#33428)GeoSot3-10/+22
* use scrollspy on docs pages * Update colors by taking into account new dark mode * Restyle it * Update colors once more * Fix some color contrast issues Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2022-12-27Docs: handle light/dark mode in Algolia search modal (#37738)Julien Déramond2-2/+31
* Docs: handle light/dark mode in Algolia search modal * Improve scopes
2022-12-26Few miscellaneous docs fixes (#37625)Mark Otto2-7/+8
* Update hero button color * Fix link color on examples index * Move .bd-btn-lg to docs buttons partial, move larger border-radius to that class so medium buttons don't look odd * Undo the markup split * Round padding up to whole number
2022-12-21Fix Sass compilation when `$color-mode-type` is set to `media-query` (#37687)Julien Déramond2-2/+2
* Fix Sass compilation when `$color-mode-type` is set to `media-query` * Update mixin names, fix docs color modes for using media queries by using mixin Co-authored-by: Mark Otto <[email protected]>
2022-12-20Follow upMark Otto1-1/+0
2022-12-18docs: move color-mode script (#37658)XhmikosR1-62/+0
* docs: move color-mode script * Move color-modes.js in static folder * Async load color-modes.js * Switch to DOMContentLoaded * Revert async loading
2022-12-18Docs: replace some `--#{$prefix}` by `--bs` in Sass files (#37617)Louis-Maxime Piton2-3/+3
Co-authored-by: Julien Déramond <[email protected]>
2022-12-01code-examples.js: switch to `firstElementChild` (#37570)XhmikosR1-1/+1
This ensures that we will get the first element child and not text
2022-11-28Docs: rewrite/reorganise carousel docs page (#37354)Patrick H. Lauke1-0/+9
* Instantiate/initialize all non-autoplaying carousels in docs pages * Rewrite/reorganise carousel docs page * start with static/non-autoplaying examples * explicitly mention that carousels currently need to be manually initialized * split out and explain autoplaying and the weird "autoplay after first interaction" behaviour, as well as the pause on hover/focus * Add callout about autoplaying and accessibility * Don't have the dark variant example autoplay * Add "autoplaying" to cspell custom dictionary * Tweal wording, move Page Visibility API to autoplay section * Tweak explanation for methods, add line break in js code for consistency with last code block on the page * Tweak method descriptions * Tweak headings (plural "carousels") * Move some paragraphs out of intro and into basic example, reword the nested and accessibility paragraph * Tweak warning about `.active` slide * Tweak callout wording * Further prose tweaks move the sentence about not double-initialising autoplaying carousels to the callout right at the top instead of talking about `data-bs...` attributes, talk about the "option" instead, as authors may be setting these not via data attributes, but at instatiation time with options in the constructor remove the incorrect statement about pausing when keyboard focus is in the carousel * Instantiate/initialize all non-autoplaying carousels in docs pages * Rewrite/reorganise carousel docs page * start with static/non-autoplaying examples * explicitly mention that carousels currently need to be manually initialized * split out and explain autoplaying and the weird "autoplay after first interaction" behaviour, as well as the pause on hover/focus * Add callout about autoplaying and accessibility * Don't have the dark variant example autoplay * Add "autoplaying" to cspell custom dictionary * Tweal wording, move Page Visibility API to autoplay section * Tweak explanation for methods, add line break in js code for consistency with last code block on the page * Tweak method descriptions * Tweak headings (plural "carousels") * Move some paragraphs out of intro and into basic example, reword the nested and accessibility paragraph * Tweak warning about `.active` slide * Tweak callout wording * Further prose tweaks move the sentence about not double-initialising autoplaying carousels to the callout right at the top instead of talking about `data-bs...` attributes, talk about the "option" instead, as authors may be setting these not via data attributes, but at instatiation time with options in the constructor remove the incorrect statement about pausing when keyboard focus is in the carousel * Fix relative link * Update site/assets/js/snippets.js Co-authored-by: GeoSot <[email protected]> * Fix snippet.js * Tweak content organisation just a bit Co-authored-by: GeoSot <[email protected]> Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2022-11-28Add dark mode support (#35857)Mark Otto15-73/+283
* Add dark mode to docs * Minor fix: missing space indentation * Minor fix: revert utilities/z-index added-in modification * Remove prev: and next: from doc because extracted to another PR * Use .bg-body-tertiary in all Utilities > Overflow examples * fix example * Fix up spacing examples * Update box-shadow Sass variables and utilities to auto-adjust to color modes * Remove unused docs class * Refactor form styles to use CSS variable for background images on .form-check and .form-switch * Fix docs selector * Rename shortcut for clarity * Heading consistency * Reintroduce missing 4th grid item in Utilities > Spacing example * Fix bundlewatch * .bd-callout* rendering is OK so removing comments in the code * Update scss/_utilities.scss Co-authored-by: Julien Déramond <[email protected]> * Fix gutters example styling * Fix text colors on background utils docs * redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken * fix some color utils examples * Deprecate mixin notice * Deprecate notice for list-group-item-variant() mixin * Revamp new link CSS vars * Use map-keys in some each Sass files * Remove list-group-item-variant mixin ref in sass loop desc * Display CSS vars scoped to our built-in dark mode * Revert previous commit * Fix list group variant link * Fix typo * Remove imports of alert/list-group mixins in scss/_mixins.scss * Small formatting + comments removal in scss/_content.scss * Fix alert links colors * fix dropdown border-radius mixin * fix link color and underline again, this time using CSS var override for color var and fallback value for the underline * fix colors on docs navbar for dark mode * remove two changes * missing ref * another link underline fix, just use sass vars for link decoration for now * missing color bg docs, plus move dropdown override to scss * more changes from review * fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin * Few fixes around type - Restored CSS variable for color on headings, this time with a fallback value - In conjunction, restored and wrapped the default CSS var with a null value check - Split headings and paragraphs docs in Reboot, elaborated on them * Restyle custom details > summary element in docs * Rewrite some migration docs * fix form checks * Fix up some navbar styling, tweak docs callout * Fix select images, mostly for validation styling * Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs * Update site/content/docs/5.2/components/scrollspy.md Co-authored-by: Julien Déramond <[email protected]> * Apply suggestions from code review Co-authored-by: Julien Déramond <[email protected]> * mention form control css vars in migration guide * Tweak grid and flex docs background examples * clarify some docs * fix some more things Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
2022-11-14Docs: add margin between buttons in tooltip examplesJulien Déramond1-2/+8
2022-10-22Add `z-index` utilities, `.z-*` (#37317)Mark Otto1-0/+26
* Add z-index utilities, .z-* * Fix missing comma in _utilities.scss * Fix bundlewatch * Fix lint * Update site/content/docs/5.2/utilities/z-index.md Co-authored-by: Julien Déramond <[email protected]> * custom appearance * linter Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
2022-10-22Home imports (#37318)Mark Otto1-0/+10
* Update docs homepage to use separate partials for each section Also modifies the homepage code snippets under getting started to remove the code comments, making copy-pasting easier. * Update some copy and examples * newlines * type button * more code review, bring back interactive components * fix hover
2022-08-31v5/docs: reintroduce `outline` for docs code samples, buttons when ↵Patrick H. Lauke1-5/+1
`:not(:focus-visible)` (#36507) * Remove outline suppression for focused `<pre>` Sighted keyboard users rely on knowing where their focus is. If the `<pre>` receives focus (so that it can be scrolled by keyboard users, for instance) then it's essential that they know this is the case * Only suppress outline for buttons when `:not(:focus-visible)` * Add right-hand margin to pre avoids having the focus outline awkwardly clipped by the copy button
2022-08-31Add a comment for track the bug.louismaximepiton1-1/+1
2022-08-31Set cursor to auto instead of pointer on `.DocSearch-Container`louismaximepiton1-0/+1
2022-07-27Move DocSearch out of offcanvas to always show it on mobile (#36824)Mark Otto2-1/+26
2022-07-17Fix typos in `snippets.js` (#36758)Marc Wrobel1-4/+4
2022-07-06Docs: add indeterminate disabled checkbox example (#36674)Julien Déramond1-1/+3
2022-06-28Fix search modal z-index to be on top of all docs showcased components (#36627)Julien Déramond1-1/+1
2022-06-25Docs: update clipboard.js to v2.0.11Julien Déramond1-2/+2
2022-06-15Add example of dark navbar and offcanvas to docs (#36510)Mark Otto1-4/+6
2022-06-01Docs: remove unused _algolia.scssJulien Déramond2-97/+0
2022-05-26Fix StackBlitz examples by embedding snippets.js when needed (#36352)Julien Déramond1-8/+38
* Fix StackBlitz examples by embedding snippets.js when needed * Fix Popovers * Fix tooltips * Fix Toasts * Add comment sections * Fix Alerts * Indeterminate heckboxes + classes handling * Nothing to do for links * Fix modals * Nothing to do for Offcanvas * Remove correctly .bd-example * Add body .p-3 for all StackBlitz examples
2022-05-24CSS: doc fixes (#36425)Louis-Maxime Piton3-12/+1
* Remove unused attributes * Use utilities rather than using new CSS * Removed unused class * Change StackBlitz icon `aria-label` + small inconsistency
2022-05-20Rewrite Webpack guide (#36382)Mark Otto1-1/+1
* Rewrite Webpack guide Co-Authored-By: GeoSot <[email protected]> Co-Authored-By: Julien Déramond <[email protected]> * rewrite some pieces * eslint-skip Co-authored-by: GeoSot <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
2022-05-20CSS: few proposals (#36406)Louis-Maxime Piton1-8/+2
* Something to try about `!important` in color-bg helper * Better understanding border utility `.border-*-0` * Having rounded numbers of px
2022-05-15Update search box styling and positionMark Otto1-3/+3
2022-05-13Fix homepage npm install snippetMark Otto1-3/+12
2022-05-06Docs(Scrollspy): minor changes to be aligned with new version of javascript ↵GeoSot1-10/+1
(#36260) * Docs(Scrollspy): minor changes to be aligned with new version of javascript code * first example: add proper root-margin * 'nested nav' example: add more content to sections & enable smooth-scroll * fix typo * Changes after feedback * Update examples and docs to streamline some things and improve how it works section Co-authored-by: Mark Otto <[email protected]>
2022-05-06docs: add proper markup on modal's page tooltips ands popoversGeoSot1-15/+3
2022-05-06v5.2.0: Migrate to DocSearch 3 (#36176)Mark Otto4-69/+118
* Migrate to DocSearch v3 Fixes #33338 * initialize `siteDocsVersion` const after the proper check * Update site/layouts/partials/stylesheet.html Co-authored-by: GeoSot <[email protected]> * Update header.html * code review changes * Update search.js * Fix contrast issue, tweak some styles * Fix some navbar changes * temporary safari fix for docsearch3 Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2022-05-05ref(Docs assets): Separate js assetsGeoSot2-112/+132
2022-04-28Clean up last `$variable-prefix` usagesJulien Déramond1-3/+3
2022-04-21Add .show class to offcanvas example, and disable it's normal behavior in our JSMark Otto1-0/+8
2022-04-20Minor fixeslouismaxime.piton1-0/+4
2022-04-19Refactor some docs examples CSS (#36194)Mark Otto1-113/+77
* Fix some more borders and margins * Flex utilities docs: remove .bd-highlight class from snippets * Explicit close target * Reorder to keep base class up top * Fix custom position example * Tooltips: add code snippet, use scss-docs ref for custom tooltip * Tweak text for pagination examples * Modals: move custom styles to utilities * Grid docs: Combine selectors and share coloring * Refactor tons of little things
2022-04-18One more code snippet fixMark Otto1-1/+17
2022-04-18Do some CSS and Migration guide cleanup (#36191)Mark Otto3-5/+15
* Do some CSS and Migration guide cleanup - More code snippet tweaks - Fix some homepage hero bugs - Do a cleanup on Migration guide content to highlight more changes and fix some issues from merge conflicts
2022-04-18Fix spacing of code snippetsMark Otto1-18/+13
2022-04-17v5.2.0 design refresh, plus responsive offcanvas classes (#35736)Mark Otto20-318/+523
* Add responsive offcanvas classes - Updates navbar-expand classes to de-dupe some styles—these shouldn't interfere now. - Adds some JS to the offcanvas component to help with responsiveness Co-Authored-By: GeoSot <[email protected]> * Redesign homepage, docs, and examples Homepage: - New Bootstrap purple navbar - Redesigned masthead - Rewrote and redesigned homepage content - Replace Copy text with icons like Bootstrap Icons site across all ClipboardJS instances - Fixed padding issues in site footer - Match homepage button styles to examples page, use gap instead of tons of responsive margin utils Docs: - New navbar, no more subnav. Migrated search and version picker into the main navbar and refreshed the design of it all, including the responsive toggles. - New sidebar navigation is always expanded, and now features Bootstrap Icons alongside section headings - Sidebar navigation autoscrolls to active link for better usability - Subnav and navbar padding issues ironed out - Enhanced the version picker in anticipation of v5.2: we can now link right to the same page in the previous version. - Redesign callouts to add more color to our pages - Collapse table of contents on mobile - Cleanup and redesign button styles with CSS variables - Update design for subnav version dropdown - Update highlight and example to be full-width until md - Improve the Added In badges - Turn the ToC into a well on mobile - Redesign code snippets to better house two action buttons Examples: - Redesign Examples page layout - Add new example for responsive offcanvases in navbars * Convert offcanvas to CSS vars * Feat: add resize handler to Offcanvas.js. If we could use as default the `.offcanvas` class without modifiers, we then, could add a simplified selector The selector itself, ignores the .offcanvas class as it doesn't have any responsive behavior The `aria-modal` addon is to protect us, selection backdrop elements * Separate examples code, Add some selectors, fix stackblitz btn Co-authored-by: GeoSot <[email protected]>
2022-04-14Fix Chroma line highlight styleJulien Déramond1-1/+1
2022-04-13Revamp Scrollspy using Intersection observer (#33421)GeoSot1-2/+16
* Revamp scrollspy to use IntersectionObserver * Add smooth scroll support * Update scrollspy.js/md * move functionality to method * Update scrollspy.js * Add SmoothScroll to docs example * Refactor Using `Maps` and smaller methods * Update scrollspy.md/js * Update scrollspy.spec.js * Support backwards compatibility * minor optimizations * Merge activation functionality * Update scrollspy.md * Update scrollspy.js * Rewording some of the documentation changes * Update scrollspy.js * Update scrollspy.md * tweaking calculation functionality & drop text that suggests, to deactivate target when wrapper is not visible * tweak calculation * Fix lint * Support scrollspy in body & tests * change doc example to a more valid solution Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Patrick H. Lauke <[email protected]>
2022-04-12Use Babel and ES6 in docs JS files (#31607)Tiger Oakes2-53/+53
* Pass docs js through Babel * Use ES6 in docs js * Only run babel on src files * Allow babel in Hugo * Update scripts.html * Inherit from the root .eslintrc.json * Use `Array.from` * Drop Babel from docs * Prefer template * replace IIFE with arrow functions Co-authored-by: XhmikosR <[email protected]> Co-authored-by: GeoSot <[email protected]>
2022-04-11Update docs syntax colors head of dark mode (#35984)Mark Otto2-84/+97
* update syntax colors in preparation for dark mode changes * Improve color contrast
2022-04-08Update devDependencies (#36120)XhmikosR1-1/+1
* Update devDependencies * @babel/core ^7.17.8 → ^7.17.9 * @popperjs/core ^2.11.4 → ^2.11.5 * clean-css-cli ^5.5.2 → ^5.6.0 * eslint-plugin-import ^2.25.4 → ^2.26.0 * find-unused-sass-variables ^4.0.3 → ^4.0.4 * karma-rollup-preprocessor ^7.0.8 → ^7.0.7 * sass ^1.49.11 → ^1.50.0 * stylelint 14.2.0 → ^14.6.1 * Fix currentcolor case
2022-04-01Changing to btnTitle and btnEditlouismaxime.piton1-2/+3
2022-03-29Fix typo for StackBlitz edit button's tooltip (#36073)Julien Déramond1-1/+1
2022-03-14Rewrite docs tables in Markdown with table shortcode (#31337)Mark Otto1-5/+3
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: GeoSot <[email protected]>