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

2343 Commits

Author SHA1 Message Date
Matias Puhakka
639c405c65 Remove redundant "Navbar divider" from "Contents" (#29601) 2019-10-28 15:19:03 +01:00
Mark Otto
b81a23a60d Update .form-check to properly support gradients when enabled (#29338) 2019-10-28 08:12:07 +01:00
Mark Otto
9c7bc1a111
v5: Simplify navbars by requiring containers (#29339)
* v5: Simplify navbars by requiring containers

* Update migration docs for navbar
2019-10-27 20:26:52 -07:00
Higor Araújo dos Anjos
46912797b2 Added animation when modal backdrop is static (#29516) 2019-10-25 21:12:09 +03:00
Martijn Cuppens
9ee9b8a1e8 Add configurable button text wrapping (#29554) 2019-10-25 12:37:52 +03:00
Mark Otto
943bef258d
v5: Update colors to add shades and tints (#29348)
* Add variables for shades and tints of each major color

* getting-started/theming.md: use a `range`.
2019-10-18 11:04:27 -07:00
Mark Otto
104385c508 Add make-col-auto mixin (#29367) 2019-10-17 09:46:34 +03:00
Martijn Cuppens
7327e38b1c Fix top level ampersand (#29518)
Fixes dart sass compatibility.
2019-10-12 16:07:22 +03:00
leshasmp
64e22b4284 Carousel variables (#29493) 2019-10-12 14:09:04 +02:00
astrahov
09e6af48d7 Group line-height variables (#29466) 2019-10-12 13:56:29 +02:00
Jeremy Jackson
4e37fc3ab4 Add color argument to button mixins (#29444)
Add optional `$color` argument to `button-variant()` and
`button-outline-variant()` for additional flexibility.
2019-10-12 11:21:22 +03:00
Mark Otto
b3451ff258 Add new .bg-body utility class (#29511) 2019-10-10 21:18:19 +03:00
astrahov
60559d44a2 Add variable for $breadcrumb-font-size (#29467) 2019-10-03 18:54:34 +03:00
Martijn Cuppens
393ddae09b
Fix border for single card in accordion (#29453) 2019-10-03 09:43:45 +02:00
Martijn Cuppens
03c9788f7a
Variable card height (#29462) 2019-10-03 09:21:40 +02:00
Paweł Kuna
f6a1e2fc89 Better radio input (#29441) 2019-10-03 09:52:25 +03:00
Martijn Cuppens
de8c65158b Remove appearance from textarea (#29455) 2019-10-02 22:37:24 +03:00
Mark Otto
707973ebdd v5: .form-check layout changes (#29322)
* Scope .form-check-input layout to the .form-check parent

* Remove margin-bottom from list-group-items in case they are label elements

* document .form-check in input groups and list groups, and cleanup the no-label examples in the main .form-check docs
2019-10-02 22:19:45 +03:00
astrahov
46e8f1a34f Variable carousel indicator opacity (#29468) 2019-10-01 15:14:43 +02:00
Paweł Kuna
0a3aa08b89 Remove outline from select box in FF (#29445)
* Remove outline from select box in FF

* Use $form-select-color
2019-09-27 18:58:53 +03:00
wojtask9
f2dff864aa Remove duplicated td selector (#29454) 2019-09-27 13:22:31 +01:00
XhmikosR
6b150855df
Change blue and pink colors to be accessible. (#29198) 2019-09-27 09:01:36 +03:00
XhmikosR
de3a3731bd
Sass: remove redundant stylelint inline suppressions. (#29427) 2019-09-26 21:50:14 +03:00
ysds
e2a93ec094 Fix incorrect aspect ratio on IE11 2019-09-15 13:38:04 +02:00
Martijn Cuppens
6e63868500 Remove redundant properties 2019-09-15 13:38:04 +02:00
jahanzaibsuleman07
d99ff902f8 Responsive sticky top (#29158) 2019-09-13 21:15:20 +03:00
ysds
ebfeaa4ad1 Allow override default col width 2019-08-30 13:07:27 -07:00
Mark Otto
cc248791b0 Cleanup
- Rename and move the variable to variables file
- Move code to the grid file
- Use the mixin to generate our own classes
- Wrap in a grid classes enabled conditional
- Document the mixin
2019-08-30 13:07:27 -07:00
Mark Otto
e2252e0230 First pass at .row-cols classes
Trying to find a new way to do responsive card decks while not locking ourselves into the cards themselves. My thinking here is we can easily control the column (.col) width by the parent, but I don't know how many we need (have 0-5 now) across each breakpoint. This works for cards so far, and I think could get us equal height, too.
2019-08-30 13:07:27 -07:00
Martijn Cuppens
007ea0d8d0 Clean up line heights & add line height utilities (#29271) 2019-08-30 10:42:41 +03:00
XhmikosR
ee01dc2340
theming.md: automate _root.scss. (#29326) 2019-08-29 15:09:24 +03:00
XhmikosR
84cba07246
theming.md: bring :root up to par with Scss. (#29323)
Also, add a warning in _root.scss so that we don't miss it again.
2019-08-29 11:10:06 +03:00
Martijn Cuppens
bed2a5edab Switch percentage font-sizes to em and change some font sizes for consistency 2019-08-27 23:11:06 +03:00
Martijn Cuppens
4db520bedb Don't bind validation to form controls 2019-08-27 19:28:28 +02:00
Martijn Cuppens
18cfe34585 Allow modification of the value of rem 2019-08-27 11:10:56 +03:00
Martijn Cuppens
2ad135ebb4 Update z-indices (#29292)
- `.carousel-caption` doesn't need a z-index. There are no non-static element in its containing block (`.carousel-item`)
- The `z-index` of `.carousel-indicators` is way higher than it needs to be (`15`), the highest sibling `z-index` is `1`, so it can be set to `2` to be the top layer.
2019-08-26 09:42:44 +03:00
Martijn Cuppens
19ee63ad25 Link helpers & use utility API for all utilities 2019-08-26 08:21:24 +02:00
Mark Otto
b02bae769e Document example of datalists with form controls (#29058)
- Add example to the new form control docs
- Reset the [list] selector in Reboot to hide the random dropdown arrow in Chrome
2019-08-24 02:59:57 +03:00
Martijn Cuppens
0603522199 Remove padding around color swatches 2019-08-24 02:26:28 +03:00
Martijn Cuppens
68d67c8f16 Add rounded corners to color swatches 2019-08-24 02:26:28 +03:00
Mark Otto
57e17706a9 Add support and docs for color input 2019-08-24 02:26:28 +03:00
Martijn Cuppens
bfd4c1921d Remove position: relative from .collapsing 2019-08-22 08:57:05 +02:00
Martijn Cuppens
4437248459 Drop $nav-divider-* variables (not used) 2019-08-22 08:10:44 +02:00
Martijn Cuppens
0aabaa209d Drop nav divider mixin 2019-08-22 08:10:44 +02:00
Martijn Cuppens
94521206e5 Split up .form-control & .form-select selectors 2019-08-18 16:33:10 +02:00
Martijn Cuppens
329448ecb7 Fix date heights 2019-08-18 16:33:10 +02:00
m5o
7b3ec256d5 set min-height for form-control textarea
* set `min-height` for `.form-control` textarea
  * prevent user from shrink textarea to minimum height
2019-08-18 16:33:10 +02:00
tu4mo
b3cf60018c Add possibility to define custom border color for disabled form controls (#29257) 2019-08-18 17:08:59 +03:00
Martijn Cuppens
bbbda681cc Enable wrapping for elements in .modal-footer (#25103) 2019-08-16 12:49:06 +03:00
Martijn Cuppens
ceddca71a2 Restore cursor: pointer for checkbox/radio buttons (#29239) 2019-08-16 11:36:13 +03:00
Thomas Schaller
7149b6f0eb Function map-get-multiple now returns the correct variable (#29247) 2019-08-14 01:03:55 +03:00
Martijn Cuppens
b749e12c2c Fix Firefox rendering issue (#29234) 2019-08-09 08:45:26 +03:00
XhmikosR
ecaefed920
Remove unneeded Stylelint suppressions. (#29222) 2019-08-07 17:26:04 +03:00
Shohei Yoshida
2e0a16f461 Fix min-width of input-group flex items (#29209) 2019-08-06 10:54:53 +03:00
Mark Otto
d94148bf50
Responsive containers (follow-up to #29095) (#29118)
* Follow-up to #29095

This PR fixes the responsive containers that were added in #29095, originally stubbed out in #25631. Apologies to @browner12 for getting that wrong.

Fixes #25631.

* update navbar as well because we cannot reset all containers uniformly

* Update navbars example to include container-xl example to ensure containers match

* rewrite responsive containers docs, add table of max-widths

* Update container docs
- Move table up to the intro
- Remove the container example because it's actually hella confusing
- Update and link to grid example as a demo instead
2019-08-05 12:12:16 -07:00
GeoSot
4ae6a29b12 Allow .page-links to get left margin. (#28948)
* Allow .page-links to get left margin.

* Add border-radius to page-links in case they have left margin

* Apply MartijnCuppens suggestion to _pagination.scss

Co-Authored-By: Martijn Cuppens <martijn.cuppens@gmail.com>

* Plus if/else Rules

* Formatting fixes

* Fix border-radius for pagination-size

* Use mixin for default pagination sizing
2019-08-03 07:11:57 -07:00
XhmikosR
b016825edd
carousel: fix transition properties order. (#29173) 2019-07-30 18:30:23 +03:00
Shohei Yoshida
fb475e90a1 Remove comment about tabindex (#29165) 2019-07-29 18:49:07 +03:00
Shohei Yoshida
13b7416544 Fix reboot for placeholder links (#29140) 2019-07-29 10:32:09 +03:00
Chandan Deep
b433a05cbd Change property from background to background-image (#29149)
For Gradient, We have to use the background-image instead of only background.
2019-07-29 08:12:44 +03:00
Martijn Cuppens
f4e297c878 Haha, floats. It's 2019 (#29147) 2019-07-27 09:30:39 +03:00
XhmikosR
21f3375f21 Update _variables.scss 2019-07-25 10:58:06 -07:00
ysds
b4bf0ab371 Remove leftover CSS for custom control 2019-07-25 10:58:06 -07:00
ysds
18d75e3243 Fix variable name 2019-07-25 10:58:06 -07:00
Martijn Cuppens
ea34b6c5be Merge code page with reboot 2019-07-25 19:26:27 +02:00
Shohei Yoshida
97edf94c11 Remove duplicate 2019-07-25 19:26:27 +02: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
97e9214edd Drop .pre-scrollable class 2019-07-25 18:42:45 +02:00
Martijn Cuppens
1c05c1dbf1 Drop color(), theme-color() & gray() functions (#29083)
Drop `color()`, `theme-color()` & `gray()` functions  in favor of variables. The functions just called a `map-get()` of a map where just the variables were defined. 

Also the `theme-color-level()` now accepts any color you want instead of only `$theme-colors` colors. The first value now is a variable instead of the `$theme-colors` key.
2019-07-25 10:41:13 +03:00
Martijn Cuppens
b2ae6a6a94 Apply at-mixin-argumentless-call-parentheses: always stylelint rule 2019-07-24 10:31:49 +03:00
Martijn Cuppens
c3ea8db2f6 Extend .container-fluid (#29106) 2019-07-23 09:50:24 +03:00
Mark Otto
cd4768aa81 fix broken classes 2019-07-22 10:38:28 -07:00
XhmikosR
1cfe18571f Fix license header. 2019-07-22 16:51:45 +03:00
julian-hecker
c69326dd6b Add bootstrap-utilities.scss 2019-07-22 16:51:45 +03:00
Martijn Cuppens
b4c4223409 Remove card columns in favor of masonry grid 2019-07-22 16:08:58 +03:00
Mark Otto
1cdba95c50 Revert padding-right on ol and ul in Reboot, update migration doc 2019-07-21 21:44:32 -07:00
Mark Otto
634344c003
v4/v5: Add responsive containers (#29095)
* create responsive containers

provide more flexibility and allow the user to determine when containers switch from fluid to fixed width.

* fix the base container code

this commit fixes the non-media portion of the generated CSS. I learned about the `@extends` directive and was able to put it to good use.

I create a new temporary map that contains all the main `$container-max-widths` and join it to our 2 special cases of 'xs' and 'fluid'.  Then we loop through that and, with the appropriate infixes, extend our placeholder

* formatting for style

forgot to run my tests before the last push, i think these are better.

* finish incomplete comment

* fix the responsive containers

using the `@extend` directive I was able to clean up this code

* fix responsive containers in the navbar

mostly we just look through all of our breakpoints so we can include all of the responsive container classes in the tweaks we have to do for the navbar (redeclaring flex properties, don't double up on padding, etc)

* Simplify container extends

* Simplify navbar containers

* Rearrange, add comments, ensure everything is nested in $enable-grid-classes

* Reduce new CSS by using attribute selector

We avoid using `@extend` whenever possible, and this is more readable

* Update _grid.scss

* Update _navbar.scss

* Add docs for responsive containers, redesign the container layout page

* Add to the Grid example
2019-07-21 17:38:36 -07:00
XhmikosR
57154a6562
Optimize the embedded SVGs. (#29075) 2019-07-22 00:23:54 +03:00
Martijn Cuppens
f6694b7440 Use escape-svg() function (#29077)
* Use escape-svg() function

* Update theming.md
2019-07-19 18:57:12 -07:00
Martijn Cuppens
62b8e84970 Make it possible to change default alignment & allow to inherit alignment from table (#29039) 2019-07-18 08:49:39 +03:00
Mark Otto
99676c7809 Use :focus-within for .form-file focus state (#29036)
Fixes #26563, closes #26576, closes #29021.
2019-07-17 16:56:54 +03:00
Martijn Cuppens
57edecbfb8 Remove redundant fill-rule 2019-07-17 15:10:44 +03:00
XhmikosR
18cf5c02c9 Move xmlns after svg for consistency. 2019-07-17 15:10:44 +03:00
XhmikosR
294752ed9e Escape the newly added SVGs.
Also use `viewBox` instead of `viewbox`.
2019-07-17 15:10:44 +03:00
M. Wacker
78c9c8bdd4 Fix breaking layout breaking error in code (#28328)
Change `word-break: break-word;` to `word-wrap: break-word;`
2019-07-16 10:54:36 +03:00
Martijn Cuppens
88e87ca7c9 Make text align configurable (#28989)
This was causing issues for RTL, see https://github.com/twbs/bootstrap/issues/28238
2019-07-15 14:34:01 +03:00
Martijn Cuppens
d2f4e2bf97 Revert incorrect change (#29044) 2019-07-15 14:24:32 +03:00
Mark Otto
df1c3c0ce8 v5: Reuse box-shadow variables (#29023)
* Remove default kbd element shadow, simplify selector while here

* Add new -shadow-inset variable so our shadows match on .form-control's, .form-select's, and .progress's

* Reuse box-shadow variables for .dropdown's, .popover's, .toast's, .modal's, and .img-thumbnail's
2019-07-15 10:29:13 +03:00
Mark Otto
cef69b9a65 v5: Fix disabled styling on .form-file (#29022)
While #28450 overhauled a ton of forms work, the  support for this custom file input was ineffective. This updates the selector to target the custom field and gray out the entire field.

Fixes #28176.
2019-07-14 12:00:57 +03:00
Mark Otto
cdb6504e48 Drop breakpoint CSS custom properties (#29020)
Media queries do not support CSS custom properties (CSS variables), so we've had some useless variables lying around since shipping v4. This finally removes them and the associated documentation content that explained the situation.

Fixes #29012.
2019-07-14 11:44:49 +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
Shohei Yoshida
50f97710eb Drop support for .form-control-plaintext inside .input-group (#28972)
* Revert "Fix readonly-plain-text with button addon (#25871)"

This reverts commit ff40e00323.

* Add migration comment
2019-07-12 13:23:43 +03:00
Martijn Cuppens
d479fd89d0 Remove attribute selectors (#28988) 2019-07-12 13:15:50 +03:00
Martijn Cuppens
f5f09d8b0b
Remove redundant border radius on pagination (#28980)
Pagination used to have box shadow back in the days which required this property, but nowadays it's redundant. (see 0cd186183c/less/pagination.less (L17))
2019-07-02 08:08:12 +02:00
Martijn Cuppens
4b3d2635f3
Remove redundant radius properties (#28956) 2019-06-26 15:11:37 +02:00
Martijn Cuppens
65f21bbef1 Fix pre color (#28966) 2019-06-26 13:18:59 +03:00
Martijn Cuppens
27824ec586 Stretched link updates (#28958)
- Remove IE10 background hack
- Ability to change the pseudo element
- Ability to change the z-index
- Remove pointer events, just inherit this
2019-06-26 07:54:51 +03:00
Sergey Kovalenko
ad62301a5b Remove negative margins for group list items (#28940)
To fix RGBA borders overlapping issue.
2019-06-25 09:23:36 +03:00
Martijn Cuppens
ac6eefd227
Change invalid icon from cross to exclamation mark (#28944)
The cross icon was confusing since some browsers use it as a reset button.
2019-06-22 16:21:11 +02:00
Martijn Cuppens
83fc5a3239
Decrease number of order utilities (#28874) 2019-06-18 07:02:14 +02:00