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

398 Commits

Author SHA1 Message Date
Mark Otto
2f90be3150 Merge branch 'input-group-custom-forms' into v4-dev 2017-10-22 19:39:47 -07:00
Mark Otto
2d0399e4ea clarify 2017-10-22 19:39:32 -07: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
Mark Otto
bc175e2a6a mention spacing in card docs, fixes part of #24373 2017-10-22 19:33:27 -07:00
Mark Otto
8e81e69d30 copy edit 2017-10-22 19:31:59 -07:00
Mark Otto
137b680c69 Merge branch 'input-group-custom-forms' of https://github.com/twbs/bootstrap into input-group-custom-forms 2017-10-22 14:07:11 -07:00
Mark Otto
8f9e8569ae add ids, add for attributes, and fix dupe ids 2017-10-22 14:04:46 -07:00
XhmikosR
29d58fb758 Enable stylelint's function-comma-space-after. (#24501)
The option is set to `always-single-line` in stylelint-config-standard which we extend.
2017-10-23 00:00:00 +03:00
XhmikosR
44278f89e3 New examples screenshots. (#24395)
The images are PNG 8-bit optimized with optipng, zopflipng and pngout.
2017-10-22 13:49:01 -07:00
Mark Otto
a1a4e12bcc start beta 3 migration docs, mention removed var 2017-10-22 12:23:40 -07:00
XhmikosR
060258f9be Fix broken URI fragment and a redirected link. (#24456) 2017-10-22 15:13:32 +03:00
XhmikosR
fbd42af6ca Reduce whitespace liquid outputs. (#24470) 2017-10-22 14:53:06 +03:00
Johann-S
c86f72be96 Use navbar-expand-sm in our navbar bottom example for small devices (#24463) 2017-10-20 13:18:04 +03:00
XhmikosR
37bfbcf117 Be consistent with "JS"/"JavaScript". (#24457) 2017-10-20 10:44:03 +03:00
rmacklin
9e6dabbb10 Reduce z-indexes in button-group, input-group, list-group, and pagination to the minimum necessary (#24315)
These were using `z-index: 2` to "Place active items above their
siblings for proper border styling". However, using `z-index: 1` is
sufficient for accomplishing that goal.

In input-group, there were also three `z-index: 3` rules for the
hover/focus/active states. I reduced these to `z-index: 2` since they
just needed to be "one more than normal" (i.e. one more than what is now
`z-index: 1` after my changes).

These changes can be verified by viewing the documentation pages for
Button group, Input group, List group, and Pagination before and after
this commit and observing that the active elements are still "above"
their siblings, so their borders look correct.
2017-10-20 10:01:29 +03:00
XhmikosR
e79b2354d6 Merge branch 'v4-dev' into input-group-custom-forms 2017-10-20 09:43:00 +03:00
XhmikosR
b3babbfc26 migration.md: fix Jekyll variable. (#24449)
Rationale: the page is not available locally, only on gh-pages, thus leading to a 404 locally.
2017-10-20 09:41:36 +03:00
Mark Otto
34a1e45400 Add input group support for custom selects and custom files
Closes #24437, closes #22457
2017-10-19 23:22:06 -07: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
Mark Otto
50a2345032 new current_ruby-version var 2017-10-19 12:23:29 -07:00
Mark Otto
0a1c70d9b9 update getting started docs too 2017-10-19 12:23:29 -07:00
Gijs Boddeus
7b06b9292f spelling changes to theming.md (#24444) 2017-10-19 10:33:31 -07:00
Laussel Loïc
13898af590 remove form control label as it have been removed (#24442) 2017-10-19 10:31:49 -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
XhmikosR
d763d019ad Make 1.9.1 the minimum jQuery version again. (#24434) 2017-10-19 09:02:27 -07:00
Mark Otto
0c67ab1fa6 Better docs for table-responsive classes (#24438) 2017-10-19 08:55:53 -07:00
XhmikosR
1f43fe970b Fix a few 404 and one redirected link. (#24432) 2017-10-19 08:18:57 -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
Kevin Ruscoe
1154032f0a Update alerts.md (#24420)
This document contains the word JavaScript everywhere apart from in one place where it's abbreviated to JS. This just makes sure it's written as JavaScript consistently across the page.
2017-10-18 19:49:32 -07:00
Gijs Boddeus
40d242eddc Fix typo in popovers.md (#24425)
double use of see
2017-10-18 19:45:37 -07: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
Mark Otto
64ccd8974a Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev 2017-10-18 14:22:32 -07:00
Mark Otto
1a569bab3f few popover docs changes to clarify things mentioned in #24005 2017-10-18 14:22:26 -07:00
Kevin Ruscoe
a2edd106a7 badges: Make using the contextual classes on links clearer. (#24422) 2017-10-18 23:56:43 +03:00
Andrew Murphy
ad77ea7ae0 #24373 : Documentation/Navbar : Refer to utility classes used. Hidden when printing. (#24380)
* Refer to utility classes uses. Add Printing section

refer to (not navbar) classes used for newbies
navbars don't print, so add example of a print-only alternative

* typos, add links

typo in {% example %}
add links to component pages

* grammar

* Add a dropdown with divider to the main example

* change id name to stop travis error

I assume id="camelCase" is the standard for id names, rather than the clearly superior id="underscore_words"

* review changes

still like to emphasise the foreign utility classes in the main example
bg-light's name is self explanatory (so its obvious where to look it up), but mr-sm-2's name isn't at first

* review changes

* grammar

* .fixed-top/bottom don't reserve space on the screen

... as they are position:fixed. 
better wording welcome

* copyediting

- rewrite utils line and link to the utils pages
- restore the paragraphs to the placement section
- fix formatting and grammar
2017-10-18 10:26:33 -07:00
Andres Galante
008e0b5b68 Improves forms migration guide, docs, and scss (#24348)
* fixes migration forms guides

* removes container from Horizontal form

* adds col-form-label sizes on form docs

* removes .form-control-label from forms.scss

* add note to migration
2017-10-18 10:11:35 -07:00
Andres Galante
217d344fa8 Remove uncessary col-form-label from form row docs (#24335) 2017-10-18 19:59:30 +03:00
Mark Otto
85fd22bd47 Revert #23108 to restore list group borders (#24411)
* revert #23108, which had no bug but was a problem with the example code

* add example to the docs for future proofing

* move it up
2017-10-17 22:05:01 -07:00
Mark Otto
c075968c14 mention color contrast function change 2017-10-17 18:37:11 -07:00
Mark Otto
a48dbdbf97 document color-yiq function 2017-10-17 18:29:47 -07:00
XhmikosR
289836ef96 Fix typo in scrollspy.md (#24398) 2017-10-17 15:27:37 +03:00
Anuj Tomar
fa234e27aa Correct $zindex-sticky value (#24402) 2017-10-17 08:51:34 +03:00
Johann-S
99eece1392 Add dispose methods in our documentation (#24396)
* Add dispose methods in our documentation

* Update buttons.md
2017-10-16 16:51:42 +02:00
XhmikosR
658e81a084 Mention bootstrap bundle in docs. (#24385) 2017-10-16 08:01:58 +03:00
XhmikosR
db487f9845 Update build-tools.md (#24378) 2017-10-16 05:17:53 +03:00
Lucas Banegas
71e60e1f85 Describe compiled CSS (#24271) 2017-10-13 14:34:43 +03:00
Jesse Mandel
991cbe74d0 Update colors in _data and theming.md to match _variables.scss (#24355) 2017-10-13 13:34:27 +03:00
Michael Letcher
c8ee8509cb Updated Safari Bug (#24350) 2017-10-12 21:22:18 +03:00
XhmikosR
a8fb64f3e3 Lint examples' CSS too. 2017-10-09 11:20:05 +03:00
XhmikosR
0c1597ebde examples/dashboard/dashboard.css: merge duplicate selector. 2017-10-09 11:20:05 +03:00
XhmikosR
ef38ca1c11 Make Dropped the Affix jQuery plugin bold. (#24294) 2017-10-08 14:20:41 +03:00
XhmikosR
7b715ee7e8 Examples: remove unused images. (#24237) 2017-10-04 19:23:17 +03:00
XhmikosR
1c24bdeca8 Remove double spaces. 2017-10-04 13:01:15 +03:00
XhmikosR
9289773b8a content/images.md: fix indentation in picture snippet. 2017-10-04 13:01:15 +03:00
XhmikosR
1207048319 Add image dimensions in examples page. (#24236) 2017-10-04 11:51:11 +03:00
Johann-S
101129763c Add a navbar-bottom example with a dropup inside. 2017-10-04 10:32:32 +02:00
Andres Galante
f2725a6721 #24176 adds a note on the image docs about how to use picture 2017-10-03 22:13:00 -07:00
Mark Otto
742e3a79dd Update column resets docs to include new section for column breaks
- Moves offset reset to the offset section
- Adds new breaks section to fix #24136
2017-10-03 16:10:54 -07:00
Gareth Adams
a02d068b24 Updates docs to match Tooltip type checking (#22342)
* Updates docs to match Tooltip type checking

Documentation now matches the types defined in the DefaultType constant in
js/src/tooltip.js

* Revert documentation clarify where true is invalid
2017-10-03 20:23:42 +02:00
XhmikosR
ee574b76a7 Switch to lowercase doctype. (#24217)
Having it uppercase doesn't offer anything and the lowercase version slightly improves gzip compression.
2017-10-03 19:34:59 +03:00
Roman O
527f55c2f3 Offset option for dropdown can be function (#24222)
* Offset option can be function (Popper.js)

* Fix...add function type for offset option

* Remove constants for popper config

* Optimize code. Remove foreach loop.

* Refactoring. Remove getOffset method
2017-10-03 14:34:44 +02:00
Mark Otto
976595bd1d Require quick start to be more explicit about CSS and JS 2017-10-02 21:40:17 -07:00
Mark Otto
61cc1d8ca6 fix up colors, closes #23325 2017-10-02 20:57:24 -07:00
Mark Otto
e626277c73 Merge branch 'dropdown-caret' of https://github.com/pat270/bootstrap into v4-dev 2017-10-02 20:51:14 -07:00
Mark Otto
cd8fd1d2bc change away from vars 2017-10-02 20:44:23 -07:00
Mark Otto
cf639df5c4 add components section, remove todos 2017-10-02 20:44:23 -07:00
Mark Otto
3d0b07cb68 functions aww yeah 2017-10-02 20:44:23 -07:00
Mark Otto
9db52f9a47 add new thing to a map 2017-10-02 20:44:23 -07:00
Mark Otto
04298fcd10 quote those to match source code 2017-10-02 20:44:23 -07:00
Mark Otto
201303a9d9 nuke the options page, add redirect from it to new theming page 2017-10-02 20:44:23 -07:00
Mark Otto
bdba863e83 bring over colors section 2017-10-02 20:44:23 -07:00
Mark Otto
f0c82ab4ec port over variable options list 2017-10-02 20:44:23 -07:00
Mark Otto
af28d55541 port latest from options for default vars 2017-10-02 20:44:23 -07:00
Mark Otto
00a0a4debd Stub out new Theming page 2017-10-02 20:44:23 -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
0c03b70bcb adds a note on typography docs about rem units on font-size-base (#23988) 2017-10-02 18:59:07 -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
Herst
a224387a21 Migrate forgotten Bootstrap 3 style offset class (#23951) 2017-10-02 18:57:57 -07:00
Luke Frake
c2fb64ce37 Add order first to grid (#24202)
* Add first class to grid framework to add negative ordering

* Add order-first explination to the docs
2017-10-02 18:56:13 -07:00
Mike Jacobson
1bde860c01 Clarify ScrollSpy 'activate' event element 2017-10-02 18:55:22 -07:00
XhmikosR
2891dc143d Normalize examples' CSS. (#24210) 2017-10-02 21:54:47 +03:00
XhmikosR
44dcc8d719 Make Node.js 6 the minimum version.
Also, be consistent with Node.js' name.
2017-10-01 12:01:27 -07:00
Aarón García Hervás
961750e01b Fix link to Extend section in Migration docs (#24192) 2017-10-01 20:23:48 +03:00
Mark Otto
e471ea0617 Updates to customizing variables docs (#24186)
* Variable overrides within the same Sass file can come before or after the default value, but across files they must come first.
* Removed the double :: at the end of the paragraph.
* Fixed usage of overwrite when we mean override.
2017-10-01 09:57:50 +03:00
Andres Galante
f02f545e0e changes the order of the close btn on alerts to improve accecibility 2017-09-30 23:32:39 -07:00
Mark Otto
4e2ed6890c remove that, the example comes first now 2017-09-30 20:30:40 -07:00
Mark Otto
9473a7298e more links, clarify predefined classes 2017-09-30 20:30:40 -07:00
Mark Otto
72ef6f4d86 be more specific about context and breakpoint scaling 2017-09-30 20:30:40 -07:00
Mark Otto
5463612c4d be more specific 2017-09-30 20:30:40 -07:00
Mark Otto
6e9100155d rewrite containers and rows section 2017-09-30 20:30:40 -07:00
Mark Otto
92a9b68372 link to css tricks article, add code snippet to example 2017-09-30 20:30:40 -07:00