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

61 Commits

Author SHA1 Message Date
Mark Otto
98111214c2
Update .sr-only mixin and utility (#25197)
* Remove clip-path from .sr-only utility as it causes perf regressions in Chrome

* change snippet to example
2018-02-11 15:05:50 -08:00
Taufek Johar
2b42ef0db2 Add CSS Utility for auto width and height Properties (#24249)
Currently bootstrap only provides 4 variations of `width` and `height` css utilities, which are:

1. 25%
2. 50%
3. 75%
4. 100%.

Here, I'm adding `auto` to the list. This is useful when we need to reset the width/height value
back to the browser default value at some point.
2018-01-21 12:28:22 -08:00
Mark Otto
8374f542be Document .flex-fill class in flex utils 2018-01-21 12:16:17 -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
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
ysds
8184c649a1 Document order-0 (#25191) 2018-01-03 16:47:13 +02:00
Mark Otto
dccd0037d8 improve additive/subtractive border util docs 2018-01-01 20:51:20 -08: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
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
Andres Galante
8df34b075a Change the text color to dark on bg color warning examples (#24805) 2017-11-17 06:57:49 +02:00
XhmikosR
b67a4be8de
Minor Markdown consistency cleanup. (#24605) 2017-10-30 23:53:57 +02:00
Paweł Kuna
d51a6c8db3 Add table-row in documentation (#24551) 2017-10-26 09:33:41 +03:00
Mark Otto
6ef998628d improve visual appeal of examples 2017-10-22 19:35:42 -07:00
Mark Otto
964356464c combine 2017-10-22 19:34:24 -07:00
Mark Otto
2f8d3a3d8c line break 2017-10-22 19:34:06 -07:00
Mark Otto
58f4f1b723 Merge branch 'v4-dev' of https://github.com/aavmurphy/bootstrap into aavmurphy-v4-dev 2017-10-22 19:33:52 -07:00
XhmikosR
fbd42af6ca Reduce whitespace liquid outputs. (#24470) 2017-10-22 14:53:06 +03:00
Andrew Murphy
c600176c2a another ; 2017-10-19 21:34:45 +01:00
Andrew Murphy
b69d535822 formatting 2017-10-19 21:22:40 +01:00
Andrew Murphy
8504f68815 typo 2017-10-19 21:15:07 +01:00
Andrew Murphy
d578117c73 suggested changes 2017-10-19 21:14:08 +01:00
Mark Otto
fc94de5b8b typo 2017-10-19 12:23:29 -07:00
Gijs Boddeus
98af557842 fix missing word in colors.md (#24440) 2017-10-19 09:11:23 -07:00
Mark Otto
06641ca0b3 Gradients and shadows (#24429)
* Update the form focus mixin to use a manual `$enable-shadows` check so we can always ensure a focus state for accessibility and consistency

* - Add new `$input-btn-focus-width` and `$input-btn-focus-color` variables.

- Replace separate `$btn-focus-box-shadow` and `$input-focus-box-shadow`
variables with unified `$input-btn-focus-box-shadow` to match our
combined variables approach elsewhere.

* Put new focus width var to use in buttons mixins

* use new button input-box shadow var

* Add a new mixin for quickly adding linear gradient to components when $enable-gradients is set to true

* use correct var

* fix focus shadows in button mixins

* Add opt-in gradients to alerts, buttons, carousel, custom radios and checkboxes, custom file input, and dropdown items

* Generate .bg-gradient- utilities

* add headings to colors page and document bg-gradient utils

* update the button color for active status, check with yiq as it's done for basic state and hover state
2017-10-19 09:03:33 -07:00
Gijs Boddeus
07034cb3b0 fix typo in flex.md (#24431) 2017-10-19 01:01:48 -07:00
Mark Otto
39b144c88f Update docs for IE10+IE11 support of auto margins (#24427)
IE10 and IE11 do not properly support the use of margin-auto on flex parents with a justify-content value other than flex-start. This PR removes the examples showcasing those two classes at play together in favor of simpler ones with _just_ the margin-auto utilities.

More details can be found at https://stackoverflow.com/a/37535548, which has been linked to from the docs as well.

Closes #24319 and closes #24413.
2017-10-19 09:16:18 +03:00
Andrew Murphy
5114a4758d Use the 'spacing' template. More examples
The most important change is to say "for the named breakpoint ( `sm`, `md`, `lg`, `xl`) and above".
The existing "hiding elements para" (not yet live) is exactly what's needed.
Keep simple for "english as a second language" people (e.g. hide not hidden)
2017-10-18 22:28:09 +01:00
XhmikosR
1c24bdeca8 Remove double spaces. 2017-10-04 13:01:15 +03:00
Mark Otto
61cc1d8ca6 fix up colors, closes #23325 2017-10-02 20:57:24 -07:00
Herst
aae11ab6ab Added type="button" to <button>s without any type (#23866)
https://github.com/twbs/bootlint/wiki/W007
2017-10-02 18:59:37 -07:00
Andres Galante
2f459afb97 Adds text-muted and text-white to the examples on color utilities (#23877) 2017-10-02 18:58:33 -07:00
Ray Villalobos
87c9e3aa5d Add auto to the list of sizes (#23786)
I feel like `auto` is missing from the values here and that it should be there. Although it is mentioned below, only a single use case, whereas in other sections it appears with the option to set the left margin of an element to auto, for example.
2017-09-27 10:43:43 +03:00
Andres Galante
7e3ff772d0 Add light weight to text utility classes (#23970) 2017-09-17 09:53:05 +03:00
Rami Yushuvaev
65cb97b3d6 Add an introduction and a table with examples 2017-09-09 17:43:12 -07:00
Rami Yushuvaev
256c539e26 review updates 2017-09-09 17:43:12 -07:00
Rami Yushuvaev
0e3b90c85d Hiding Elements: new doc section in display.md
This new section will replace the `hidden-*` class. https://v4-alpha.getbootstrap.com/layout/responsive-utilities/

More info can be found here at https://getbootstrap.com/docs/4.0/migration/#responsive-utilities
2017-09-09 17:43:12 -07:00
Mark Otto
d2973b3710 remove mention of clearfix source from docs, closes #23578 2017-08-20 14:08:57 -07:00
Simon Podlipsky
b5a2441f1b Changed Typography title to Text 2017-08-20 11:32:15 -07:00
Peder Johnsen
6a49f88d8f Small typo on screenreaders page (#23416)
Just fixes small typo
2017-08-14 18:09:16 -07:00
Dillon Chanis
9706ce72c9 Add clear description and use case with example 2017-08-10 22:45:35 -07:00
Dillon Chanis
b1b8aedf0e Add use case description and example 2017-08-10 22:45:35 -07:00
Mark Otto
3fbdedbf22 Add basic property-value utils for position 2017-08-10 22:35:38 -07:00
Mark Otto
0356a1417a Merge branch 'new-home' into v4-dev 2017-08-10 20:46:25 -07:00
XhmikosR
fd113b93f6 Fix flex order generated code and a typo. 2017-08-09 08:29:52 -07:00
Mark Otto
da3185ee0a new homepage, new assets, clean out old stuff 2017-08-07 21:35:43 -07:00
XhmikosR
ef1c729156 Update docs and carousel example for order-. 2017-07-30 14:00:14 -07:00
Casper
6797e84215 fixed doc vertical-align.md "inlie" to "inline" (#22984) 2017-07-04 09:32:41 +02:00
Mark Otto
6f073edc79 Add .text-truncate class. We already had a mixin and documented the class, so this fixes that. 2017-07-01 23:05:51 -07:00