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

8021 Commits

Author SHA1 Message Date
Mark Otto
0a420124ea
Restyle code element, remove docs example overflow, improve docs examples (#25054)
* Restyle code element, clean up variables

- Removes the padding and background-color
- Changes the color to a brand color ()
- Add new variables to kbd element styles to account for removing the code ones
- Remove overrides that were needed previously

* only break between words, and override it in the pre

* make file inputs 100% wide

* scope custom file changes in input group for sizing

* shorter button labels for responsive

* narrower cards

* button was too wide

* downsize

* fewer links in pagination

* redo cell text

* improve overflow docs
2017-12-22 16:49:57 -08:00
Mark Otto
16f1417240
Form check markup v2 (#25050)
* match layout behaviors

* ditch the indicator as separate element for psuedo-elements on the label

* move disabled to attribute only on input

* redo default inline check to support new markup

* redo inline forms

* clean up vars

* update validation mixin to new structure

* update checks in docs

* linting for for/id attributes
2017-12-22 16:13:01 -08:00
Mark Otto
13150872c6
Rewrite input group component (#25020)
* Rewrite input group component

* Set the feedback to 100% width for input group

* Move from .row to .form-row for tighter layout

* no need for custom feedback here, we're using browser messaging

* add input group to validation examples

* add note about validating multiple

* migration note added
2017-12-22 15:29:49 -08:00
XhmikosR
383221b21b
Link to BootstrapCDN and fix its name. (#24987) 2017-12-16 10:38:51 +02:00
Troy Morehouse
6f1e746d70 tooltip+popover: add boundary config option (#24979) 2017-12-12 11:36:54 +02:00
Troy Morehouse
8839c03865 dropdown: add boundary config option (#24976) 2017-12-12 11:28:30 +02:00
Christian Oliff
a2a4e632c2 Update link to Font Awesome
They have a shiny new site for v5 - https://fontawesome.com/
2017-12-08 10:15:57 +01:00
Mark Otto
2a12115759 Document breaking change from #24932 2017-12-02 11:53:42 -08:00
Troy Morehouse
9de141f428 Remove .col-form-legend in favor of .col-form-label (#24932)
* chore: sync with twbs (#1)

* Make styling of grouped option buttons class-based

Referencing #23728, styling grouped radio and checkbox buttons should not require the data-toggle attribute.

* Fix installing deps in our webpack docs

* Fix nested cards on card group (#24766)

* Update popper.js to v1.12.9. (#24797)

* Don't run postcss for `dist/css/*.min.css` files. (#24676)

* Change the text color to dark on bg color warning examples (#24805)

* Remove unused file and bundle ie-emulation-modes-warning.js with docs.min.js (#24825)

* Remove the unused assets/js/ie10-viewport-bug-workaround.js.

* Combine ie-emulation-modes-warning.js with docs.min.js.

* Typos in grid.md (#24828)

Fixed typos in offsetting section of grid.md

* Fix dropup example code

* Update devDependencies. (#24829)

* Add support for fractional viewport widths (zoom/high-dpi displays) (#24299)

* Change breakpoint  max- calculation to fractional values
* Update docs to reflect fractional max-width breakpoint values
* Add fractional max-width to offcanvas example
* Add documentation and SCSS comment for fractional viewport support

* Add a simple script to generate SRI hashes for our assets. (#24814)

* Allow us to run our unit test on differents jquery version

* Run karma tests in parallel.

* Update typography docs (#24863)

* closes #24450

* Rewrite custom form check backgrounds (#24697)

* Rewrite custom form check backgrounds

Previously, this was all just a background-color and background-image. When we restored the gradients though, we had two background-images competing on the same element, causing rendering glitches. This refactors that code, creating a mixin to simplify things, so we can we easily use two background-images (SVG icon and gradient) when -gradients is set to true.

Fixes #24598

* restore default vars

* Revamp custom check and radio backgrounds

Instead of applying multiple background-image's to the same element, we're adding a new ::before pseudo-element to layer the background-images. Gradients go on the .custom-control-indicator while their icons go on the ::before element. This allows us to shave some bytes from when we compile and we previously needed to redeclare the background-image for the icon if you changed the gradient.

* remove now unused mixin

* mention change in migration docs

* lets the centered modal have any height (#24803)

* Custom select updates (#24699)

* Add support for size attribute on custom selects

* Add large custom select, document it and the small variant

* fix custom select focus state

* fix custom file input focus styles

* remove empty line

* Update package.json. (#24582)

1. Use the same jQuery version in jspm
2. Update the files to only include the source and dist folders

* Use Jekyll's `smartify` filter when possible. (#24866)

* Darken outline hover color to match default button hover (#24150)

* Fix Issue #24144

Alter button-outline-variant mixin to darken hover and active background in same fashion as filled button.

* Fix Issue #24144

Filled button on hover should utilize the same color-yiq mixin so that theme buttons match

* default values, fix mixin

* rename it

* document it

* add migration note

* fixes #24728

* Remove unused CSS. (#24872)

* tab.js: do not remove fade class if there's no initial active pane

* Restore currently unused variables (#24891)

* Replace lint-vars.sh with a Node.js script. (#24860)

Also, include it in the `css` npm script since it's instant.

* Fix docs horizontal scrollbar (#24878)

* Fix docs horizontal scrollbar in Components > Modal

* Add overflow to docs example class

* Drop the handleUpdate() variant

While I understand the variant covers the "get a particular plugin instance" case from http://getbootstrap.com/docs/4.0/getting-started/javascript/#programmatic-api it seems weird that we do it here but not everywhere else in the docs (randomly checking other pages, we seem to stick to the documented methods as written on those pages). As this isn't properly explained as is, and as it adds nothing (more of a preference for authors), it would be easier to just drop the variant and stick with the documented method as outlined later on in the same page (avoids having to go off on a "why should you use this instead of that" tangent here).

* Combine path and remove variable used in one place. (#24873)

* Update devDependencies and gems. (#24876)

* Override padding on radio input label (#24899)

We could tell folks to nix the class, we could tell them to override it, or we could add another modifier of some kind to address this. None of them seem particularly useful, but the padding override feels the most approachable and clearly documentable. Added this here to close #24844.

* Update README.md (#24912)

* Work around Travis failures.

Note that we should revert this when the issue is fixed.

* Revert the Travis workaround. (#24926)

The issue has been fixed.

* add .col-form-legend-lg and .col-form-legend-sm classes

* document .col-form-legend-{size}

* trash .col-form-legend completely

One class fits all

* Update forms.md

* consolidate copy

* property order
2017-12-02 11:51:38 -08:00
Mark Otto
a649c7f208 Override padding on radio input label (#24899)
We could tell folks to nix the class, we could tell them to override it, or we could add another modifier of some kind to address this. None of them seem particularly useful, but the padding override feels the most approachable and clearly documentable. Added this here to close #24844.
2017-11-29 13:05:01 +02:00
Patrick H. Lauke
05d88ca285 Fix docs horizontal scrollbar (#24878)
* Fix docs horizontal scrollbar in Components > Modal

* Add overflow to docs example class

* Drop the handleUpdate() variant

While I understand the variant covers the "get a particular plugin instance" case from http://getbootstrap.com/docs/4.0/getting-started/javascript/#programmatic-api it seems weird that we do it here but not everywhere else in the docs (randomly checking other pages, we seem to stick to the documented methods as written on those pages). As this isn't properly explained as is, and as it adds nothing (more of a preference for authors), it would be easier to just drop the variant and stick with the documented method as outlined later on in the same page (avoids having to go off on a "why should you use this instead of that" tangent here).
2017-11-27 11:23:05 -08:00
Mark Otto
87509520fb fixes #24728 2017-11-24 19:12:35 -08:00
Mark Otto
babdf36c42 Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev 2017-11-24 17:02:01 -08:00
Mark Otto
643f5482a4 add migration note 2017-11-24 17:00:21 -08:00
Mark Otto
79cfd56947 document it 2017-11-24 16:58:36 -08:00
XhmikosR
02e4f6e513
Use Jekyll's smartify filter when possible. (#24866) 2017-11-25 02:13:39 +02:00
XhmikosR
3de46286b2
Update package.json. (#24582)
1. Use the same jQuery version in jspm
2. Update the files to only include the source and dist folders
2017-11-25 02:02:25 +02:00
Mark Otto
2ec1606ab7
Custom select updates (#24699)
* Add support for size attribute on custom selects

* Add large custom select, document it and the small variant

* fix custom select focus state

* fix custom file input focus styles

* remove empty line
2017-11-24 14:29:59 -08:00
Andres Galante
b29e3f2a4c lets the centered modal have any height (#24803) 2017-11-24 14:28:58 -08:00
Mark Otto
4829350a46
Rewrite custom form check backgrounds (#24697)
* Rewrite custom form check backgrounds

Previously, this was all just a background-color and background-image. When we restored the gradients though, we had two background-images competing on the same element, causing rendering glitches. This refactors that code, creating a mixin to simplify things, so we can we easily use two background-images (SVG icon and gradient) when -gradients is set to true.

Fixes #24598

* restore default vars

* Revamp custom check and radio backgrounds

Instead of applying multiple background-image's to the same element, we're adding a new ::before pseudo-element to layer the background-images. Gradients go on the .custom-control-indicator while their icons go on the ::before element. This allows us to shave some bytes from when we compile and we previously needed to redeclare the background-image for the icon if you changed the gradient.

* remove now unused mixin

* mention change in migration docs
2017-11-24 14:26:56 -08:00
Mark Otto
fff0116f70 closes #24450 2017-11-24 12:40:56 -08:00
ysds
3506ae97bf Update typography docs (#24863) 2017-11-24 14:35:16 +02:00
Patrick H. Lauke
dcb761350c
Add support for fractional viewport widths (zoom/high-dpi displays) (#24299)
* Change breakpoint  max- calculation to fractional values
* Update docs to reflect fractional max-width breakpoint values
* Add fractional max-width to offcanvas example
* Add documentation and SCSS comment for fractional viewport support
2017-11-20 05:13:37 -05:00
ysds
eeb3ce0138 Fix dropup example code 2017-11-20 09:18:17 +01:00
Rychu
1449ec0d7c Typos in grid.md (#24828)
Fixed typos in offsetting section of grid.md
2017-11-19 13:33:05 -05:00
Andres Galante
8df34b075a Change the text color to dark on bg color warning examples (#24805) 2017-11-17 06:57:49 +02:00
Johann-S
615c995080 Fix installing deps in our webpack docs 2017-11-16 11:30:55 +01:00
Federico Zivolo
7fd265034c Use UMD and fix build to properly load deps (#24783) 2017-11-15 14:13:33 +01:00
Edward Betts
ffc5965f2c Correct spelling mistakes. (#24778) 2017-11-15 04:12:38 -05:00
Daniel Niccoli
c81ce9fdf4 Removed .col-form-label from vertical form example (#24771)
Fixes #24739
2017-11-15 03:37:23 +02:00
Gijs Boddeus
c7a2689a31 fix typo grid.md (#24757)
fixes #24744
2017-11-11 08:10:47 -03:00
Patrick Yeo
031695e2f3 Add missing role="button" in collapse examples. (#24725) 2017-11-09 07:56:07 +02:00
Vasilii Artemchuk
5a2d6c70f4 Use native pseudo-selectors instead of jQuery selectors (#24713) 2017-11-09 07:51:19 +02:00
Vasilii Artemchuk
9deb1c677c Use correct jQuery name in docs (#24712) 2017-11-08 01:11:04 +02:00
m5o
09ae92a0a0 descriptive docs variable naming (#24521)
* use descriptive docs btn naming

* rename `btn-bd-yellow` to `btn-bd-download`

* sort state vars

* sort state vars
  * info, warning, danger

* rename btn-bd-purple

* rename `.btn-bd-purple` to `.btn-bd-primary`

* align docs color variables

* generate $bd-purple-light color

* with http://razorltd.github.io/sasscolourfunctioncalculator/

* allow overide of docs variables
2017-11-06 14:21:03 -08:00
XhmikosR
1524837af2 getting-started.md: Redirect from /getting-started/ too. (#24669) 2017-11-06 12:11:25 -08:00
XhmikosR
ed374d1ee9 Remove a few extra newlines. 2017-11-03 14:12:47 +02:00
XhmikosR
c13faac04d Highlight snippet as CSS. 2017-11-03 14:12:47 +02:00
XhmikosR
c26ef89add getting-started/introduction.md: move title below the retired meta tags. 2017-11-03 14:12:47 +02:00
Johann-S
c52a13d395 Update our Webpack documentation for Webpack 3 (#24656) 2017-11-03 13:53:24 +02:00
patrickhlauke
f9188de4af Fix invalid <nav ... role="tablist"> in docs. 2017-10-31 21:36:17 +02:00
patrickhlauke
e80f61623b Remove datetime-local warning from vnu ignore list, change reboot example. 2017-10-31 21:36:17 +02:00
XhmikosR
95025a992f Remove the redundant role=navigation from navs. 2017-10-31 21:36:17 +02:00
Giovanni Totaro - aka Vanni
165c0f15b2 Add display utilities link in 'Utilities for layout' docs page (#24615) 2017-10-31 13:17:16 +02:00
XhmikosR
b67a4be8de
Minor Markdown consistency cleanup. (#24605) 2017-10-30 23:53:57 +02:00
Mark Otto
b7a153b2eb redesign these tables, fix headings, add intro paragraphs 2017-10-30 13:08:37 -07:00
Giovanni Totaro
a1e2a27632 Add missing trailing slashes to URLs in docs 2017-10-30 17:42:41 +01:00
Giovanni Totaro - aka Vanni
8f1540d16a
Merge branch 'v4-dev' into docs-bundle-js 2017-10-30 17:23:05 +01:00
Johann-S
10773f45d4 Fix bad title for our dispose method in our documentation 2017-10-30 15:46:39 +01:00
Giovanni Totaro
8776e80ffa Explain contents of bundled JS files in docs (#23735) 2017-10-30 12:27:23 +01:00