0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Commit Graph

201 Commits

Author SHA1 Message Date
Martijn Cuppens
8fe162d67a
Remove redundant class and line height (#30542) 2020-04-09 21:25:09 +03:00
Martijn Cuppens
83b49aa688
Create scss-docs shortcode to get some snippets from the Scs… (#30502)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-04-06 20:13:35 +02:00
Martijn Cuppens
43d866313d Fix active state dropdown 2020-03-31 22:52:57 +02:00
Martijn Cuppens
c48d89cb70 Use unordered lists in dropdown-menus 2020-03-31 22:52:57 +02:00
Martijn Cuppens
4448856038 Simplify sidebar styles 2020-03-28 17:57:22 +02:00
Gaël Poupard
9efaeba35e docs(sidenav): use class selector for active item 2020-03-28 17:57:22 +02:00
Gaël Poupard
72230091b6 docs(sidenav): get rid of custom JS for active state 2020-03-28 17:57:22 +02:00
Gaël Poupard
79dc21b22b docs(sidenav): fix struggling CSS when collapsing sidenav 2020-03-28 17:57:22 +02:00
Gaël Poupard
5f58b3df2c docs(sidenav): use collapse components 2020-03-28 17:57:22 +02:00
XhmikosR
8411c37974 Fix links after #30041 2020-03-24 22:05:26 +02:00
Gaël Poupard
9eccb3a230
Documentation skip links (#30073)
* docs(skip-links): add a skip to main navigation skip link

* docs(skip-links): revamp skip-links pattern

* docs(navs): use aria-label on navs

* docs(navs): use 'docs navigation' label in sidebar nav
2020-03-23 16:23:37 +02:00
Martijn Cuppens
25d2eac45b Use a link helper instead of the text color utility 2020-03-23 14:11:29 +01:00
XhmikosR
018a94c9c1 Remove Internet Explorer leftovers 2020-03-18 20:59:27 +02:00
XhmikosR
13b27f8a09
Update docs-navbar.html (#30418)
Open icons in a new tab like the rest of the external links
2020-03-18 20:52:58 +02:00
Christian Oliff
f59ed75ba3
Remove unneeded og:image:secure_url from social.html (#30362)
The image is always available over HTTPS anyway

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-03-08 10:06:49 +02:00
XhmikosR
7eaf7528fc
Add loading="lazy" in images (#30199) 2020-03-05 10:12:59 +02:00
XhmikosR
414314f3cb
Switch versions & docs search (#30336) 2020-03-05 10:01:15 +02: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
f1e47e24c3
scripts.html: don't load docsearch JS when it's not needed (#30205) 2020-02-17 20:52:28 +02:00
XhmikosR
b9f6c29459
homepage: reduce margin and padding for small devices (#30195) 2020-02-17 20:35:11 +02:00
XhmikosR
737308ae47
Update docs-versions.html (#29971)
Remove old versions
2020-02-16 21:55:21 +02:00
Mark Otto
22062ed9d7
Docs table of contents list style fix (#30176)
* Fix missing bullets from table of contents top level

* Add .text-muted to toc for lighter bullets
2020-02-15 09:40:27 +02:00
Mike Rogers
6933bd4a1d
Adding version number to documentation <title> (#30090)
Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
2020-02-14 20:35:08 +01:00
Martijn Cuppens
9aee71776d
Fix logo alignment for IE (#29955) 2020-02-14 14:09:46 +01:00
Martijn Cuppens
6f4784c8bb
Docs navbar tweaks (#29948) 2020-02-13 13:45:33 +01:00
Gaël Poupard
96ac6068b3
Use aria-current where appropriate (#30079) 2020-02-07 13:18:30 +02:00
Gaël Poupard
8f94ed8e30
docs(SVG placeholder): add focusable=false to placeholder SVGs (#30075)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-02-06 09:01:02 +02:00
Martijn Cuppens
b39f704954
Cleanup algolia theming (#29888) 2019-12-25 21:08:15 +01:00
XhmikosR
4dfcb035cf
Add v4.4.1 in versions (#29747) 2019-12-14 17:07:28 +02:00
XhmikosR
9894000b42
Remove the now unused docs-search.html partial (#29799) 2019-12-04 13:24:55 +02:00
XhmikosR
972369c997 Tighten regex a bit.
If we need to make this more robust in the future, we can revert this as needed.
2019-11-04 15:32:29 +02:00
XhmikosR
e40b3355f0 example.html: use double quotes 2019-11-04 15:32:29 +02:00
Christopher Morrissey
04acb679ab Example shortcode: use a regex and simplify logic. 2019-11-04 15:32:29 +02:00
XhmikosR
a28adc7666
Move docs JS one folder up. (#29632) 2019-11-04 14:44:07 +02:00
Mark Otto
1fa337cc20 Add link to Icons site in our docs (#29544) 2019-10-18 10:28:16 +03:00
XhmikosR
129bb08fc4
Use Hugo for our docs Sass and JS. (#29280)
Now there's only one command needed to run the docs: `npm run docs-serve`.

Also, simplify the npm scripts.
2019-09-17 00:22:49 +03:00
XhmikosR
fbeed6f1d9 Darken footer color. 2019-09-16 23:41:57 +03:00
Martijn Cuppens
b6b96c174b Docs tweaks
- Simplify display headings example markup
- Simplify footer styles
- Remove z-indices hacks in the docs
- Remove redundant modal styling in docs
- Use `escape-svg()` to escape docs sidebar chevron
- Simplify sidebar chevron code
- Cleanup masthead css & fix column width between `md` & `lg`
- Easier to download logo's with the `download` attribute.
- Changed some color codes into variables
- Cleanup brands css
2019-09-06 18:06:13 +03:00
XhmikosR
d6945d5e8f Move shortcodes used only once where they are needed. 2019-09-06 11:57:50 +03:00
XhmikosR
f7fe5d5bca
homepage: remove redundant class (#29357)
This broke IE11.
2019-09-06 08:51:46 +03:00
Mark Otto
eb49bd11c9 Update subnav to remove breadcrumb and just keep versions and search (#29368) 2019-09-05 21:43:31 +03:00
XhmikosR
6f1eb110e7
Docs: simplify a few Hugo ranges. (#29333) 2019-09-02 12:31:02 +03:00
XhmikosR
edf7923c8f
Fix a few redirected links. (#29352) 2019-09-02 12:21:42 +03:00
XhmikosR
919b526f17
Fix shortcodes/example.html class bug. (#29344)
It always used the first placeholder's class before.
2019-08-31 08:11:16 +03:00
XhmikosR
ae249e8f55
docs-sidebar.html: reindent. (#29337) 2019-08-30 08:01:21 +03:00
XhmikosR
4ce8eab10c
Homepage: add missing link to the versions page. (#29308) 2019-08-27 23:19:52 +03:00
XhmikosR
c463c261ed
Remove "Wall of browser bugs" page. (#29297)
While important in the past, it has become obsolete, so removing it seems the best solution.
2019-08-27 08:44:35 +03:00
Martijn Cuppens
8e26010d06 docs: fix tap targets (#29272) 2019-08-18 16:29:23 +03:00
XhmikosR
34afe84424
Use absURL so that we get consistent URLs. (#29226) 2019-08-08 18:30:43 +03:00
XhmikosR
3d8c5b9640
docs: minor simplification. (#29227) 2019-08-08 17:54:59 +03:00
XhmikosR
b316235e63
docs: Fix badges after #28458. (#29199) 2019-08-04 08:23:25 +03:00
Martijn Cuppens
81af1bf9cc Change SVG dimensions to px values (#29195) 2019-08-03 16:58:25 +03:00
XhmikosR
1ebb8e7d9b
robots.txt: adapt for Netlify. (#29192)
Since we build with `HUGO_ENV` set to `production` on Netlify, use another variable to prevent crawling.
2019-08-02 17:26:25 +03:00
XhmikosR
8570d86d79 Rename site/data/nav.yml to sidebar.yml. 2019-07-29 10:59:56 +03:00
XhmikosR
9131e3e401 docs: Move trailing URL slashes to the variables. 2019-07-29 10:59:56 +03:00
XhmikosR
756d4ec91e
config.yml: add OpenCollective. (#29143)
This was missing since the Hugo switch (d95d300).
2019-07-26 19:05:51 +03:00
Martijn Cuppens
855d763ae5 Reboot updates
- Remove unsupported browsers fixes
- More consistent comment blocks
- Reorganise order of some blocks
- Add height fix for date/month/week/time inputs (#18842)
- Remove redundant type selectors
- Additional resets and theming options for `legend`
- Add date & color inputs to reboot page
- Use the same borders for text search, text inputs, textareas and date inputs
- Move code styling to reboot
2019-07-25 19:26:27 +02:00
Martijn Cuppens
2f4f15c018 Sidebar theming tweaks 2019-07-25 10:25:39 +03: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
Mark Otto
e7890d1562 Move search styles, prep for responsive containers in docs 2019-07-21 21:44:32 -07:00
Mark Otto
0fcb0af131 no need for checks or conditions 2019-07-21 21:44:32 -07:00
Mark Otto
39e4615763 remove subnav from home and examples 2019-07-21 21:44:32 -07:00
Mark Otto
5a0be01e3e Make subnav and sidebar work on mobile too 2019-07-21 21:44:32 -07:00
Mark Otto
956cbbc6b7 make docs navbar more usable on mobile 2019-07-21 21:44:32 -07:00
Mark Otto
5027a8086a Move subnav to partial, take first pass at conditionalizing breadcrumb links 2019-07-21 21:44:32 -07:00
XhmikosR
2c5e41a95b Optimize a few SVGs. 2019-07-19 09:19:56 +03:00
XhmikosR
c0a1cfa075 SVGs: lowercase hex values. 2019-07-19 09:19:56 +03:00
XhmikosR
73c2bfc7a0 docs-navbar.html: reindent and use our classes. 2019-07-19 09:19:56 +03:00
XhmikosR
38557b2fa1 Remove unneeded div.
This is a link.
2019-07-19 09:19:56 +03:00
Martijn Cuppens
4634fd7c1a Fix ads alignment 2019-07-17 16:21:47 +03:00
XhmikosR
e09f306b6b Use has-children. 2019-07-17 16:21:47 +03:00
Mark Otto
ebcc3ff9af Move sidebar icon to CSS 2019-07-17 16:21:47 +03:00
XhmikosR
8bc6692082 Move the icon to a partial and optimize it. 2019-07-17 16:21:47 +03:00
XhmikosR
3898df1f5a Add width/height in the SVG arrow.
Fixes IE.
2019-07-17 16:21:47 +03:00
XhmikosR
5e6f5d8f38 Remove display none code. 2019-07-17 16:21:47 +03:00
XhmikosR
506282fb9e Use the responsive themes image. 2019-07-17 16:21:47 +03:00
XhmikosR
e864f65789
Fix docs search. (#29067) 2019-07-17 16:05:56 +03:00
XhmikosR
9745790514 Use the direct link to migrations page. 2019-07-17 15:27:01 +03:00
Mark Otto
aaf03bdc9e
v5: Forms update (#28450)
* Initial spike of consolidated form checks

* Stub out forms rearrangement

- Prepping to drop non-custom file and range inputs
- Prepping to merge custom and native checks and radios (with switches)
- Prepping to merge custom select with form select
- Moving docs arround so forms has it's own area given volume of CSS

* Move input group Sass file to forms subdir

* Start to split and move the docs around

* Simpler imports

* Copyediting

* delete overview file

* Remove commented out code

* remove the custom-forms import

* rewrite flex-check as form-check, replace all custom properties

* Remove old forms doc

* stub out new subpage link section

* update migration guide

* Update nav, forms overview in page nav, and descriptions

* fix check bg position

* fix margin-top calculation

* rename .custom-select to .form-select

* Update validation styles for new checks

* add some vertical margin, fix inline checks

* fix docs examples

* better way to do this contents stuff, redo the toc while i'm at it

* page restyle for docs while here

* un-callout that, edit text

* redo padding on toc

* fix toc

* start to cleanup checks docs

* Rewrite Markdown tables into HTML

* Redesign tables, redo their docs

* Replace Open Iconic icons with custom Bootstrap icons

* Redesign the docs navbar, add a subheader, redo the sidebar

* Redesign docs homepage a bit

* Simplify table style overrides for docs tables

* Simplify docs typography for page titles and reading line length

* Stub out icons page

* Part of sidebar update, remove migration from nav.yml

* Move toc CSS to separate partial

* Change appearance of overview page

* fix sidebar arrow direction

* Add footer to docs layout

* Update descriptions

* Drop the .form-group class for margin utilities

* Remove lingering form-group-margin-bottom var

* improve footer spacing

* add headings to range page

* uncomment form range css

* Rename .custom-range to .form-range

* Drop unused docs var

* Uncomment the comment

* Remove unused variable

* Fix radio image sizing

* Reboot update: reset horizontal ul and ol padding

* de-dupe IDs

* tweak toc styles

* nvm, fix dropdown versions stuff

* remove sidebar nav toggle for now

* broken html

* fix more broken html, move css

* scss linting

* comment out broken helper docs

* scope styles

* scope styles

* Fixes #25540 and fixes #26407 for v5 only

* Update sidebar once more

* Match new sidenav order

* fix syntax error

* Rename custom-file to form-file, update paths, update migration docs for previous changes in #28696

* rename back

* fix size and alignment

* rename that back too
2019-07-12 16:52:33 -05:00
Bardi Harborow
08bddb8743 Add ARIA search landmark to documentation. (#28983) 2019-07-02 21:17:42 +03:00
Martijn Cuppens
a4a04cd9ec
.sr-only & .sr-only-focusable tweaks (#28720)
* Prevent .sr-only-focusable overriding properties when being focused

* Typo
2019-05-20 10:03:51 +02:00
Martijn Cuppens
a827934f13 Documentation tweaks (#28679)
* Documentation tweaks

* Remove redundant col-12 classes
2019-05-08 19:58:29 +03:00
XhmikosR
336778f463
Examples: include favicons. (#28504) 2019-05-02 10:47:48 +03:00
Martijn Cuppens
99eff2f58f Remove top margin 2019-04-30 10:31:37 +03:00
XhmikosR
312f54fa66 Show the other navbar items on small screens too. 2019-04-30 10:31:37 +03:00
XhmikosR
952c3d3677
docs SVGs: Allow passing a custom title. (#28660) 2019-04-29 17:11:40 +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
b0f918982f Revert back to the old snippet and just add anonymize IP.
We don't need the extra bloat of gtag.
2019-03-18 12:26:50 +02:00
Mark Otto
2017eb9aed Update GA to latest script & anonymize IPs 2019-03-18 12:26:50 +02:00
Mark Otto
43eb6b1703
Revert "Don't run Google Analytics locally. (#28384)" (#28489) 2019-03-13 19:07:54 -07:00
Christian Oliff
02e0aa3b60 Don't run Google Analytics locally. (#28384) 2019-03-13 19:22:59 +02:00
Martijn Cuppens
28ad7a901e Push footer to the bottom of the page 2019-03-13 19:22:59 +02:00
XhmikosR
913f290e3d Fix 404 layout. 2019-03-13 19:22:59 +02:00
XhmikosR
e58b587a72 Add support for meta robots. 2019-03-13 19:22:59 +02:00
Bjørn Erik Pedersen
69e18b9634 Fix bugify. 2019-03-13 19:22:59 +02:00
XhmikosR
5d6e896ebb Add a docsref shortcode.
This allows for the build to fail if a reference isn't found.
2019-03-13 19:22:59 +02:00
XhmikosR
23ddfa99a3 Move this to a partial to work around the stray p issue. 2019-03-13 19:22:59 +02:00
XhmikosR
d948a3f9cb Work around the docs/ redirects.
This happens because we have the section kind enabled (needed for examples).
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