Commit Graph

29 Commits

Author SHA1 Message Date
XhmikosR d1636a7540
Move theme toggler to a partial (#39807)
---------

Co-authored-by: Julien Déramond <juderamond@gmail.com>
2024-03-20 19:05:43 +02:00
XhmikosR 1401722f7e
docs: move examples icons to a partial (#39808) 2024-03-19 21:31:49 +02:00
XhmikosR 45fe28c5a6 docs: use defer when possible for JS 2024-03-19 11:25:15 +02:00
XhmikosR 930740afbc
Switch to using `hugo.IsProduction` (#39763) 2024-03-08 12:41:17 +02:00
XhmikosR b3bca581f1 templates: use `urls.JoinPath` when handling URLs 2024-03-06 15:50:18 +02:00
XhmikosR 58880cfbac Remove useless crossorigin="anonymous" attributes 2024-03-05 20:34:45 +02:00
XhmikosR b0ce89229b examples.html: Move color mode JS lower 2024-03-05 20:34:45 +02:00
Julien Déramond 240b78e2d0
Docs: drop unused `.theme-icon` class (#39520) 2023-12-21 17:34:16 +01:00
Julien Déramond 8df9899e98
Fix: make theme selector tick icon visible when active in examples layout (#39177) 2023-09-14 17:01:50 +03:00
Julien Déramond b5772d4ec2 Use `.d-none` instead of inline styling 2023-05-31 19:28:32 -07:00
Mark Otto e468daac25
More darkmode examples (#38058)
* WIP darkmode examples

* Fix product css error, redo parts of blog

* wip dashboard

* updated rtl generated

* fix up some examples, namely dashboard

* jumbotron and sign-in fixes

* more fixes

* more

* Fixes from code review

* Remove duplicate `data-bs-target` in dashboard/index.html

* Modify `blog-rtl/index.html`

* Modify `dashboard-rtl/index.html`

* Modify `carousel-rtl/index.html`

* Keep JS on all pages for switcher

* Remove Feather from dashboard examples

---------

Co-authored-by: Julien Déramond <juderamond@gmail.com>
2023-04-27 18:13:35 -07:00
Louis-Maxime Piton b26233c1ab
Examples: color mode enhancement (#38144)
* Tool bar proposal inside examples

* Some examples fixes

* Change appearance and position of the color mode toggler

* Proposal

* .

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
2023-03-04 11:49:07 -08:00
Mark Otto f40e76d1f7
Update snippet examples for dark mode (#37834)
* Update snippet examples for dark mode

* Fix markup

* Review comments

* undo colored links docs from this PR
2023-01-10 16:33:33 -08:00
Julien Déramond 8befabbde9
Docs: display examples based on the docs current color mode (#37562)
* Docs: display examples based on the docs current color mode

* Fix _default/examples.html
2022-12-28 22:58:35 -08:00
Julien Déramond 16711ff5b1 Fix duplicate `.rounded-*` and `.fw-semibold` defs in examples 2022-03-31 14:00:10 -07:00
Julien Déramond 333d89e498
Docs: replace CSS by utilities in examples (#35699)
* Drop .opacity-50 and .opacity-75 redefinition in examples

* Drop unused .card-img-right from blog example CSS files

* Use line-height utilities when possible

* Use rounded-* utilities in examples

* Replace .nav-underline by .nav-scroller and use it in examples.html default

* Use .mb-1 for .blog-post-title

* Remove unused CSS rule and use .fw-* utilities for carousels examples

* Use utilities for cheatsheet examples

* Extract some CSS to utilities for .nav-masthead .nav-link in cover example

* Dashboard group of minor modifications

* Dropdowns example: refactoring

* Dropdowns example refactoring: fix linting by removing selector by id

* Features example refactoring

* Headers example refactoring

* List groups example refactoring

* Sidebars example refactoring

* Sign-in example refactoring

* Starter template refactoring

* Fix RTL examples

Co-authored-by: Mark Otto <markd.otto@gmail.com>
2022-02-23 10:31:18 -08:00
Julien Déramond 520cc8de92
Docs: group together reusable CSS for examples in a single stylesheet (#35649)
* Docs: group together examples reusable CSS in a stylesheet

* Use pointer-events utility in sidebars example

* Remove @import and move the content into _default/examples.html. Handle 2 sorts of dividers

* Remove footers.css extra css declaration

* Fix modals example

* Review: remove .b-example-hr

Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
2022-01-19 13:27:57 +02:00
Gaël Poupard aaff11a0b3 docs(examples): new cheatsheet and RTL examples 2020-12-04 07:52:03 +02:00
XhmikosR 64a864075c
examples: add the version number in `title` (#32198) 2020-11-19 13:38:48 +02:00
XhmikosR e8f1709adf Drop Legacy Edge support.
This allows us to move forward without being held back. Microsoft already replaces the Legacy Edge with the new one on supported Windows versions.
2020-11-05 15:37:34 +02:00
XhmikosR 2bd3bd842d Use `safeHTMLAttr` in the `integrity` attributes. 2020-05-07 20:53:21 +03:00
XhmikosR b8ffcdf9a4
Use `hugo.Environment` instead of `getenv` (#29240)
This is set automatically to "development" when the local server is running, and to "production" when Hugo builds the site.
2020-02-22 08:54:43 +02:00
XhmikosR d7a62b505c
Don't add the crossorigin attribute unless we pass integrity. (#29112) 2019-07-23 17:47:33 +03:00
XhmikosR 4ba4cc2e79 Simplify code. 2019-07-22 16:08:58 +03:00
Martijn Cuppens 3b73dfc44b Allow to pass integrity & async attribute to extra js 2019-07-22 16:08:58 +03:00
XhmikosR 336778f463
Examples: include favicons. (#28504) 2019-05-02 10:47:48 +03:00
XhmikosR 80dfee9dc1
Update hugo-bin to v0.43.1 (Hugo 0.55.1). (#28631) 2019-04-15 11:49:24 +03:00
XhmikosR e58b587a72 Add support for meta robots. 2019-03-13 19:22:59 +02:00
XhmikosR d95d30029f Switch to Hugo.
No more Ruby dependency and most important more than 10 times less build time (at least on Windows)!
2019-03-13 19:22:59 +02:00