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

8143 Commits

Author SHA1 Message Date
XhmikosR
91d584636a Improve examples' screenshots compression.
Convert them to 8-bit and compress them with optipng and zopflipng.

Before: 902 KB (923,969 bytes)
After:  431 KB (441,372 bytes)
2018-01-17 17:35:48 -08:00
Mark Otto
6902219573 Consistently sized 960x600 wide images. 2018-01-17 17:35:48 -08:00
Mark Otto
b00bbf0a56 Only 2-col on sm+ 2018-01-17 17:35:48 -08:00
Mark Otto
9b0fcbf9c3
Prevent print utils from overriding all other display utils (#25269)
* Prevent print utils from overriding all other display utils

Fixes #25221.

I agree with the referenced issue—this is unexpected and also causes a serious bug when mixed with other utility classes. This wasn't an issue in v3 given we had different utilities for hiding that weren't focused on display property.

* Add printing changes to migration docs

* unrelated heading sentence case change

* List out all .d-print- classes
2018-01-17 17:29:28 -08:00
Casper Bornebusch
f4132dba07 Add order-last grid class (#24915)
* Add order-*-last grid class

* copy updates
2018-01-16 09:10:40 -08:00
Mark Otto
d16eb10e49
Mention .input-group-text in migration docs (#25325)
Closes #25231
2018-01-15 21:44:04 -08:00
Mark Otto
2f4e785a8c Adjust language 2018-01-15 21:42:33 -08:00
Mark Otto
c8d9c0efcd Merge branch 'form-check-input-validation' of https://github.com/supergibbs/bootstrap into supergibbs-form-check-input-validation 2018-01-15 21:39:27 -08:00
Mark Otto
b5039d594b closes #25280 2018-01-15 19:41:07 -08:00
Mark Otto
fa3de5cbd8 Add example of a Spanish translation for custom file input (#25302) 2018-01-15 09:19:12 +02:00
Mark Otto
0d110c8f91
Update copyright for 2k18 (#25303)
* Update copyright range to include 2018

* Extend copyright date range on new files from 2017 to include 2018
2018-01-14 20:08:58 -08:00
ysds
bcccfaa5f3 Fixes dropdown snippets (#25301)
* Make dropright snippet the same as demo

* Add missing .dropdown-toggle-split class

* Make clear the split button label the same as demo
2018-01-14 20:08:33 -08:00
Mark Otto
eb6db8a3f9
Theming docs update (#25300)
* heading for better linking

* tell folks where to start

* more headings

* required keys section added, closes #25293
2018-01-14 20:07:57 -08:00
Mark Otto
ed286e0f3d one more img compression 2018-01-14 16:58:18 -08:00
Mark Otto
e946348eca
Examples updates (#24898)
* fix cover nav

* Improve signin visuals and alignment with that flexbox love

* rewrite cover example in flexbox

* lighten signin bg

* first pass at pricing example

* redo examples index with data file

* tighten up spacing a bit

* update navbar descriptions

* link pricing

* move that back

* property order

* Fix test errors.

* Compress pricing.png.

* add form validation example

* remove that

* rename that

* restyle and space out

* fix errors

* change order

* cleanup album css and styles

* tweak examples index

* make it a badge

* options

* improve sticky footer alignment

* redesign example index

* brand new blog layout

* start new screenshots

* new product example page a la apple

* add email field

* fix linter, remove unused blog css

* hook up feather icons to start

* redo dashboard

* fix linting

* add floating labels example

* formatting

* formatting

* lint

* fix values on select

* optional input, plus input group

* new dashboard image

* start to reboot the offcanvas example

* updated images

* new offcanvas mostly implemented

* linting

* edit description

* more description changes

* - Add vertical margin to album hero buttons for when they're stacked
- Adjust font-size and padding for pricing header and hero
- Fix checkout's stacked column margins, plus update their check/radio
markup
- Update product's utilities to be responsive
- Made blog cards somewhat responsive (needs a bit more work tbh)

* drop leading zero

* more linting

* swap empty images for holder, fix border

* dist the docs

* navbars have no margin-bottom to begin

* add css var, tweak padding for mobile

* comment headers

* nix commented out code

* nix the navbar structure for a custom one, stack it on mobile

* tweak heading button group for mobile

* Removed narrow jumbotron and justified nav examples as these are easily accomplished with new components in v4

* improve card sizing on pricing

* update and compress
2018-01-14 16:06:52 -08:00
Jason Korth
638953e119 add List Group Flush to List Group docs (#25289)
fixes #25288
2018-01-14 15:46:58 -08:00
Mark Otto
71550d3c9c Add new Approach docs page (#25165) 2018-01-14 02:34:31 +02:00
XhmikosR
6d336502c7 Clean up and tweak ESLint rules.
Also, refactor ESLint and stylelint config files; now everything will work from our root dir.
2018-01-11 18:48:46 +02:00
Mark Otto
92cc0aba7b Deprecate hover media query shim and mixins (#25270)
* Deprecate hover media query shim and mixins

Fixes #25195.

This never was completed or fully implemented, and the docs are inaccurate as to what browsers are currently affected by this stickied hover problem. This PR aims to update the docs and deprecate the shim from our mixins and only return the pseudo-classes. To reflect the order of these states used elsewhere (e.g., our button styles), I've also updated the order of each within the mixin.

* Mention in docs and variables that it's deprecated
2018-01-11 10:12:15 +00:00
Patrick H. Lauke
2e15b94888
Remove touch-action:manipulation click optimization (#25250)
Due to a severe performance bug in Chrome (see https://bugs.chromium.org/p/chromium/issues/detail?id=800522) and due to the fact that (with the exception of IE/Edge on Windows desktop with touchscreen) all modern browsers now optimize the click delay away anyway, this optimization is not needed.

Closes https://github.com/twbs/bootstrap/issues/24670
2018-01-11 09:51:44 +00:00
Vytas
bea31472ea Fix invalid "constraint validation API" URL in docs (#25244) 2018-01-11 10:36:16 +02:00
Christian Oliff
d015ab9099 Update browser compatibility note for position: sticky since Edge supports it now (#25229)
The latest shipping version of Edge supports position: sticky and I've successfully tested it with Bootstrap 4 and it works as intended. I added IE10 in place of Edge in that note as I assume that IE10 also has the `position: relative` fallback.
REF: https://caniuse.com/#search=sticky
2018-01-11 10:31:03 +02:00
Vytas
5c53c8e647 Fix variable name in display utility class naming (#25261) 2018-01-11 10:26:32 +02:00
Jesse Mandel
20a251a597 Added required checkbox example 2018-01-05 12:24:19 -08:00
ysds
8184c649a1 Document order-0 (#25191) 2018-01-03 16:47:13 +02:00
Patrick H. Lauke
7044ea82c1 Patch fractional viewport widths to work around Safari rounding bug (#25177)
Includes simplifying the prose in `tables.md` and adding the bug to the list of browser bugs.

Closes https://github.com/twbs/bootstrap/issues/25166
2018-01-03 09:42:03 +02:00
Mark Otto
1cfbb8305a
Add some documentation on using CSS vars (#25176)
* Add some documentation on using CSS vars

Fixes #25147

* link to MDN doc
2018-01-02 22:58:40 -08:00
Mark Otto
460849ddcd
Validation tooltip example (#25143)
* Add additional form validation examples

Fixes #24811.

This adds .valid-feedback to our custom styles and server side examples; previously we ommitted this to suggest you don't always need valid feedback. In addition, this adds examples of the .{valid|invalid}-tooltip classes with a new subsection in the Validation docs.

* Update validation tooltip styles to remove fixed width; instead should retain itself to the parent element

* update ids

* finish docs paragraph, mention position: relative
2018-01-02 21:57:56 -08:00
Mark Otto
1e6a0f4ff3 add example of textarea to docs 2018-01-02 21:18:14 -08:00
Patrick H. Lauke
8462cc2a19
Expand keyboard advice for tooltips, clarify what manual trigger does in table 2018-01-02 19:35:13 +00:00
Patrick H. Lauke
8bb39f27bd
Remove incorrect roles from accordion, tweak/expand accessibility info, use buttons for accordion
* Remove incorrect roles from accordion, tweak/expand accessibility info
* Use `<button>` elements rather than links for the accordion
2018-01-02 18:19:47 +00:00
Andres Galante
c0246e926f improves accordion styles 2018-01-02 09:46:07 -03:00
Mark Otto
dccd0037d8 improve additive/subtractive border util docs 2018-01-01 20:51:20 -08:00
Mark Otto
7acfa61ec0 Merge branch 'docs-border-utilities' of https://github.com/ysds/bootstrap into ysds-docs-border-utilities 2018-01-01 20:32:44 -08:00
patrickhlauke
987ae5b8c8 Use <button> elements rather than links for the accordion 2018-01-01 21:59:05 +00:00
patrickhlauke
04bffc36dd Remove incorrect roles from accordion, tweak/expand accessibility info 2018-01-01 21:43:41 +00:00
Martijn Cuppens
ae71e71fe1 Allow nested structure for accordions (#25121)
This commit allows nested structures for accordions. Also a part of
the documentation about data-children is removed because this
functionality didn't work and it's not applicable anymore.

Tests with the collapse accordion are also a bit adjusted to the new
situation.
2017-12-31 14:53:33 +02:00
ysds
e290d8f527 Add description about positive border 2017-12-31 15:09:43 +09:00
ysds
863cb131c9 Add positive border utilities 2017-12-31 14:52:02 +09:00
ysds
6b5a2ff626 Apply of #25068 to input group 2017-12-30 20:59:57 -08:00
Kramb
8c87e019a5 Add modal-dialog-centered class to vertically centered modal example. 2017-12-30 20:57:22 -08:00
Mark Otto
fc942ce310 Mention -file-text change in Migration docs (#25144)
Fixes #25127.
2017-12-31 02:38:09 +02:00
Raaj Trambadia
2b41526b4f Remove Entypo from "Preferred Icon Sets". (#25141)
The download link for Entypo (on its website) is invalid. It's a Dropbox link which now results in a 403 error. The website was last updated in 2015 (as seen in the footer).
2017-12-31 02:22:46 +02:00
XhmikosR
e0e9bc8b58
Move inline JS outside of HTML. (#25140) 2017-12-31 02:11:59 +02:00
XhmikosR
6a17e639d6 Remove trailing spaces. 2017-12-31 01:42:19 +02:00
XhmikosR
a6996ef38e layout/overview.md: fix double copy button. 2017-12-31 01:42:19 +02:00
Mark Otto
3ab82e58e6 drop "simply" and tweak a few other bits 2017-12-30 18:01:36 +02:00
Alberto
bcc62232d8 Updated docs for translating "Browse" text into other languages
"Choose file ..." text is now written inside the label tag, so the translation is outside the css scope. 
$custom-file-text variable should only contain "Browse" translations.
2017-12-30 18:01:36 +02:00
Mark Otto
7adaa2f6ef Update Theming docs for removing map items (#25108) 2017-12-30 17:29:36 +02:00
Andres Galante
d62a6d32ca Remove unnecessary align-middle class from Navbar docs (#25116) 2017-12-30 17:19:27 +02:00
Mark Otto
3e0dd5a5d7 Add examples of disabled tooltip and popover triggers 2017-12-28 10:26:43 -08:00
ysds
b97cb2aa74 Remove blank line 2017-12-28 10:21:14 -08:00
ysds
0b771174d5 Add docs about active menu items (#24993) 2017-12-28 10:21:14 -08:00
Mark Otto
be3aa437a1 add note about single vs group 2017-12-28 10:19:27 -08:00
Mark Otto
1171e175c0 Update JS-powered buttons docs to include single button example
Closes #25067
2017-12-28 10:19:27 -08:00
Andres Galante
a5232abefc Set cursor:pointer for <summary> 2017-12-28 02:08:10 +00:00
Mark Otto
921c4cb78b extra space 2017-12-27 13:41:15 -08:00
Mark Otto
26d7a939cd closes #24929 2017-12-27 13:41:06 -08:00
Mark Otto
42e881f590 improve docs tables 2017-12-27 13:40:51 -08:00
Mark Otto
cf5e99e172 Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev 2017-12-26 22:28:14 -08:00
Mark Otto
572193524f remove popover static example 2017-12-26 21:50:23 -08:00
Mark Otto
acee8a00d6 remove broken static demo 2017-12-26 21:45:53 -08:00
Mark Otto
b01e81ed36 Rewrite custom file input
- Changes the wrapping label to a div so we can style the label instead of another element while also supporting form validation.
- Fixes form validation styles for custom file input (closes #24831).
- Updates docs with validation styles (also adding example feedback text while I was there) and new how it works section.
2017-12-26 16:14:08 -08:00
ysds
8c6011ab4f Fix input group border radius issue (#25075) (#25076)
* Fix input group border radius issue (#25075)

* Remove migration note

- All buttons In input group do not have to be the same element now.

* lint
2017-12-26 14:23:07 -08:00
Mark Otto
878e5c5910 Closes #25039
Adds some additional context on `.form-group` usage
2017-12-26 13:21:08 -08:00
Mark Otto
2435afe4e6 Move from h4s and misc to h5s so headings from example snippets don't show in our table of contents 2017-12-26 13:18:19 -08:00
Mark Otto
73ca04df53 space custom select sizing examples 2017-12-23 17:50:52 -08:00
Mark Otto
28b9b40faa
closes #24973 2017-12-23 16:47:33 -08:00
Mark Otto
1fbf531e07 prefix those 2017-12-23 16:19:49 -08:00
Mark Otto
b3e9547c59 further clarify z-index docs, fix #24999 2017-12-23 13:17:23 -08:00
Mark Otto
eb60521c03 Move .table-responsive to a parent class instead of a modifier 2017-12-22 20:09:58 -08:00
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