aboutsummaryrefslogtreecommitdiff
path: root/site/assets/js/application.js
AgeCommit message (Collapse)AuthorFilesLines
2024-03-19docs: bundle assets with HugoXhmikosR1-18/+8
Also: * load any docs' third-party dependencies from node_modules (except for examples) * exclude docsearch from layouts that don't use it * preconnect to algolia only when not examples layout * switch to `RelPermalink` * refactor JS assets into partials
2024-02-05Bump copyright year to 2024Julien Déramond1-1/+1
2023-04-26Add new docsref page, fix docs border-radius issues (#38491)Mark Otto1-2/+3
* Add new docsref page, fix docs border-radius issues * Remove commented out code * Update docsref.md * Fix no-code example, fix mobile styles * Updates from review * Fix block margin, remove margin-right from pre on mobile since no clipboard icons, adjust masthead snippet * Fix errant styles for border-radius on homepage --------- Co-authored-by: XhmikosR <[email protected]>
2023-01-01Docs: remove remnants of Twitter / bump dates (#37779)Patrick H. Lauke1-2/+1
2022-05-05ref(Docs assets): Separate js assetsGeoSot1-112/+0
2022-04-21Add .show class to offcanvas example, and disable it's normal behavior in our JSMark Otto1-0/+8
2022-04-17v5.2.0 design refresh, plus responsive offcanvas classes (#35736)Mark Otto1-58/+16
* 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-12Use Babel and ES6 in docs JS files (#31607)Tiger Oakes1-45/+45
* 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-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-11Fix docs error after #35644 (#36002)GeoSot1-11/+13
2022-03-09docs: add a StackBlitz "Try It" button in code examples (#35644)Puru Vijay1-10/+17
Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2022-02-19Replace AnchorJS with a Hugo render hook (#32953)XhmikosR1-6/+1
* Replace AnchorJS with a Hugo render hook * docs(anchors): improve aria-label on anchor links * docs(anchors): show anchor link when ed * docs(anchors): add hash in pseudo-element Co-authored-by: Gaël Poupard <[email protected]>
2022-02-07Fix empty content of tooltip after 'copy' action in docs (#35773)GeoSot1-6/+5
Co-authored-by: XhmikosR <[email protected]>
2022-01-03Bump copyright year to 2022 (#35639)XhmikosR1-2/+2
2021-11-25Add a template factory helper to handle all template cases (#34519)GeoSot1-8/+10
Co-authored-by: XhmikosR <[email protected]>
2021-09-15Rename `e` to `event` (#34979)XhmikosR1-11/+11
2021-08-21Progress page: remove toggle animation button (#34787)XhmikosR1-11/+0
We don't use the same approach with a button on the Placeholders page.
2021-06-29Add dynamic, live alerts example to docs (#33866)Mark Otto1-0/+16
2021-01-18Add a live toast example to the docs (#32760)Mark Otto1-1/+11
2021-01-07Bump copyright year to 2021 (#32713)XhmikosR1-2/+2
2020-12-04Add interactive positioning widgetMartijn Cuppens1-0/+11
2020-11-14Add `bs` in data attributesRohit Sharma1-8/+8
- Add `bs` in data APIs everywhere - Update unit tests
2020-11-13application.js: remove non-existent selector (#32131)XhmikosR1-1/+1
2020-10-28Drop custom file upload plugin in favor of CSSMartijn Cuppens1-3/+1
2020-05-19Streamline application.js exampleModal code (#30819)XhmikosR1-3/+5
* use `textContent` since we only need to add text * move comments
2020-03-28docs: remove `makeArray` (#30470)XhmikosR1-13/+9
2020-03-28docs(sidenav): get rid of custom JS for active stateGaël Poupard1-13/+0
2020-03-28docs: remove duplicate code for indeterminate (#30471)XhmikosR1-10/+0
2020-03-12Use `scroll-margin-top` instead of pseudo hackMartijn Cuppens1-6/+0
2020-01-07Fix the new lint errors.XhmikosR1-1/+1
2020-01-02Bump copyright year to 2020. (#29944)XhmikosR1-2/+2
2019-11-04Move docs JS one folder up. (#29632)XhmikosR1-0/+177