Commit Graph

1960 Commits

Author SHA1 Message Date
Mark Otto
671bb278bb Restore currently unused variables (#24891) 2017-11-27 19:31:11 +02: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
ccb201b22a rename it 2017-11-24 16:58:23 -08:00
Mark Otto
725f5fbda5 Merge branch 'btn-group-styling' of https://github.com/picapixa/bootstrap into picapixa-btn-group-styling 2017-11-24 16:49:43 -08:00
afholderman
7c10068c76 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
2017-11-24 16:42:40 -08: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
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
Andres Galante
8e4ba117bc Fix nested cards on card group (#24766) 2017-11-16 12:41:48 +02:00
Edward Betts
ffc5965f2c Correct spelling mistakes. (#24778) 2017-11-15 04:12:38 -05:00
Andres Galante
1ee9cb04bd Adds variables for form validation messages (#24767) 2017-11-15 03:32:08 +02:00
Raffy Alcoriza
9e8a3c041b
Make styling of grouped option buttons class-based
Referencing #23728, styling grouped radio and checkbox buttons should not require the data-toggle attribute.
2017-11-09 15:02:46 +08:00
Andres Galante
b755883059 Adds underline back to btn-link on focus 2017-11-08 11:05:12 -05:00
ysds
ccc95d0c96 Reduce custom file z-index (#24633) 2017-11-06 15:58:28 -08:00
Patrick Yeo
c2a7a2c41d Nav Tabs use single variable to style $nav-tabs-link-hover-border-color and $nav-tabs-link-active-border-color (#24639) 2017-11-06 13:35:52 -08:00
Patrick Yeo
e2c15da967 Move hardcoded opacity value in .btn:disabled to variable $btn-disabled-opacity (#24680) 2017-11-06 13:34:42 -08:00
Mark Otto
bb53b32585
fixes #24553: override border-color on focus of custom select with form validation (#24695) 2017-11-06 12:04:56 -08:00
Mark Otto
a8aaccbd4d
Restore .progress-bar transition (#24694)
Unintentionally removed in #22703. Fixes #24643.
2017-11-06 12:02:42 -08:00
Gijs Boddeus
bfbf24e7a5 fixing label cutoff at 0% (#24544) 2017-11-06 09:57:25 -08:00
Andres Galante
058123440f Convert px values to rem on tooltip variables (#23468)
* converts px valures to rem on tooltip variables

* keep as px to match popover changes
2017-11-06 09:29:12 -08:00
Andres Galante
b931070bd7 changes list-inline-padding from 5px to .5rem 2017-11-06 09:28:29 -08:00
XhmikosR
34d745540d
Minor Sass consistency changes. (#24677)
* use `background-color` instead of the shorthand
* use `outline: 0` consistently
* fix transform order
* remove quotes from `SFMono-Regular`
2017-11-06 02:23:36 +02:00
Andres Galante
9244974064 Convert modal's px units to rem (#23782) 2017-11-02 02:23:51 +02:00
Andres Galante
1870b871d0 adds variables for the hr element margin 2017-10-30 13:11:47 -07:00
Andres Galante
904f22c94f changes colors references on variables.scss from hardcoded to variables on the theme 2017-10-30 13:10:52 -07:00
Johann-S
e454c8ec1e Add dropright and dropleft (right and left placements for our dropdown) (#23860)
* Add dropright (right placement for our dropdown)

* Add dropleft

* moves drop left arrow to the left
2017-10-29 15:29:13 -07:00
Mark Otto
b1623c4429
Add .modal-dialog-centered for optional vertically centered modal (#24510)
* Add .modal-dialog-centered for optional vertically cenetered modal

Fixes #23638

* adds modal-dialog-centered class to docs and removes margin to avoid generating a vertical scrolling

* mention limitations

* fix aria attr

* Add `width: 100%` to the .modal-content for the centered version. Adding it here to avoid adding another selector by limiting it to the centered modal modifier.
2017-10-29 15:14:10 -07:00
Mark Otto
63947ee94e
Add fallback border-radius to .btn (#24505)
Fixes #24503 by manually calling the border-radius instead of using the mixin.
2017-10-28 22:42:09 -07:00
Mark Otto
380c920f1c fixes #24574 2017-10-27 20:35:33 -07:00
Mark Otto
af9df8c308 update new focus and shadow properties to use vars 2017-10-25 12:30:29 -07:00
Mark Otto
04b32db845 Merge branch 'btn_input_split_variables' of https://github.com/isychev/bootstrap into isychev-btn_input_split_variables 2017-10-22 19:59:20 -07:00
Mark Otto
5dae7f0449 edit code comments 2017-10-22 19:56:49 -07:00
Mark Otto
7b7c10aae8 Replace some border-radius properties for the mixin, closes #23872 2017-10-22 19:43:35 -07:00
Mark Otto
2f90be3150 Merge branch 'input-group-custom-forms' into v4-dev 2017-10-22 19:39:47 -07:00
Mark Otto
0231bd9436 Update _variables.scss 2017-10-22 14:30:35 -07:00
Mark Otto
1f42d79561 Merge branch 'v4-dev' into btn_input_split_variables 2017-10-22 14:26:49 -07:00
XhmikosR
52d99a887e Refactor a few selectors. (#24404)
1. move a couple of them before the more specific ones.
2. change nesting to be under the same parent selector
3. use the ampersand more
2017-10-23 00:17:28 +03: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
José Francisco
502d6b2579 Add variable to configure the $dropdown-border-radius. (#24376) 2017-10-22 13:47:31 -07:00
Mark Otto
b61de52e62 match property order 2017-10-22 23:31:53 +03:00
Andres Galante
d38f08fcdc adds animation to color on outlined btns 2017-10-22 23:31:53 +03:00
Mark Otto
bf2fee9035 add vars for yiq color contrast function 2017-10-22 12:56:06 -07:00
Eugene Kopyov
0a82cd9f3c Fix for right padding in dismissible alerts (#24481)
* Fix for right padding in dismissible alerts

* Removed extra whitespace

* Update _alert.scss

* Update _alert.scss
2017-10-22 12:54:32 -07:00
Mark Otto
4bd4ff1130 fix custom file input too 2017-10-22 12:37:45 -07:00
Mark Otto
cd4cd7fbe8 match space after comma, darken invalid/valid bg color on custom checks 2017-10-22 12:35:13 -07:00
Mark Otto
5e4964ccb8 use rgba() so it's not at full opacity 2017-10-22 12:34:47 -07:00
Mark Otto
1b1c768ef6 Merge branch 'custom-checkboxes-radios-correct-color' of https://github.com/sabrown84/bootstrap into sabrown84-custom-checkboxes-radios-correct-color 2017-10-22 12:26:26 -07:00
XhmikosR
dc39082ad7 Remove thumbnail-transition from .img-thumbnail.
We don't change anything so the transition is basically unused.
2017-10-22 12:23:40 -07:00
Gijs Boddeus
7bb82a5fb1 match width behaviour of form-control to form-control-plaintext (#24486) 2017-10-22 12:19:11 -07:00
Gijs Boddeus
6824f71795 fix card group border radii (#24491) 2017-10-22 12:18:03 -07:00
Gijs Boddeus
2564931165 fix vertical input button group margin (#24498)
* add margin-bottom to .btn of a vertical button group

* match margins of radio/checkbox buttons in a btn-group to the actual buttons

* add comment
2017-10-22 12:17:22 -07:00
Mark Otto
1083e49bbe really fix indentation, reorder 2017-10-21 20:57:19 -07:00
Mark Otto
7eb8c54858 use vars, fix indentation 2017-10-21 20:55:01 -07:00
Sharrell Porter
809ce6d6ef Sass correction 2017-10-20 07:23:48 -04:00
Sharrell Porter
4f814fabd6 sync-commits erge branch 'v4-dev' into custom-checkboxes-radios-correct-color 2017-10-20 07:12:39 -04:00
Andres Galante
a89187f94d Remove margin from pre in code.scss since it's already set in reboot (#24366) 2017-10-20 10:33:56 +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
Mark Otto
35317a4331 Remove background-image: none; on .form-control (#24454)
As the diff shows, this was for a Firefox Android issue that's since been fixed.

Closes #23817.
2017-10-20 09:56:43 +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
Mark Otto
dbf5405cfd fix version number 2017-10-19 12:23:29 -07:00
Mark Otto
cf00548f4e new version number 2017-10-19 12:23:29 -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
d4e7090c2d Reindent _variables.scss. (#24428) 2017-10-19 08:16:38 -07:00
Mark Otto
f51440da22 Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev 2017-10-19 00:14:27 -07:00
Mark Otto
521aa875e7 fix functions, lighter colors on active 2017-10-19 00:13:38 -07:00
Mark Otto
9501ed8725 Merge branch 'btn-active' of https://github.com/andresgalante/bootstrap into andresgalante-btn-active 2017-10-19 00:11:36 -07:00
i.sychev
58e553d7bc append btn-* and input-* variables and extends their from input-btn-* variables 2017-10-19 10:05:07 +03:00
Andres Galante
bee20c04e8 Move theme variables outside of the theme map. (#23918) 2017-10-19 09:05:00 +03:00
Dylan Seago
a62ced0e0b Rename navbar height variables to reflect their value (#24161) 2017-10-18 19:51:45 -07:00
Mark Otto
d94fec94b2 Increase headings-line-height from 1.1 to 1.2 (#24423)
This way, descenders are not cropped when truncating. Fixes #23956.
2017-10-18 19:48:35 -07:00
tillmon
0aa8cbee76 Set font-sizes relative to font-size-base (#24060)
* font-sizes relative to font-size-base

* ditch $heading-font-size-base, simplify

* apply same to .lead var

* also update progress bar font-size var
2017-10-18 19:44:13 -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
Mark Otto
2e4240b9ab mention forked from normalize 2017-10-18 09:28:41 -07: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
dd9d5cb8de Add copyright and license headers to grid and reboot files
Fixes #24311
2017-10-17 22:04:34 -07:00
Andres Galante
e756b667d2 changes popovers from px to rem 2017-10-17 20:07:11 -07:00
Sharrell Porter
77ea66da4d matching-branch
Merge branch 'custom-checkboxes-radios-correct-color' of github.com:sabrown84/bootstrap into custom-checkboxes-radios-correct-color
2017-10-16 18:26:52 -04:00
Sharrell Porter
e9c6656004 correcting color 2017-10-16 16:57:13 -04:00
Gijs Boddeus
98778164e0 Merge branch 'v4-dev' into yiq-function-update 2017-10-15 11:55:02 +02:00
Gleb Mazovetskiy
a9fa21e701 Escape SassScript in custom variable values (#24354)
This is required for Sass v3.5+ compatibility.
See https://github.com/sass/sass/blob/stable/doc-src/SASS_CHANGELOG.md#backwards-incompatibilities----must-read and https://github.com/sass/sass/issues/2383
2017-10-14 08:29:43 +01:00
Andres Galante
776188ad73 Add border radius to an image when it's the only card of a card group (#24321) 2017-10-11 01:18:56 +03:00
Varunram
ab093b90f6 Add borderless table class along with docs. Rebase 2017-10-11 00:01:57 +05:30
XhmikosR
f7acb278e2 Refactor a few selectors so that the least specific ones are first. (#24310) 2017-10-10 16:46:43 +03:00
XhmikosR
64c944bca8 Use $white variable for .navbar-dark's color. (#24309)
Using `rgba($white,1)` results in `white` instead of the hex.
2017-10-10 08:58:35 +03:00
Prateek Goel
de3973b5e7 Ensure active button styles are not applied to disabled buttons 2017-10-09 18:32:48 -04:00
Gisete Kindahl
bab3246a1d Centered SVG icon within its own container (#24292) 2017-10-09 10:37:46 -03:00
XhmikosR
ebc82db8ef Enable stylelint's no-duplicate-selectors rule. 2017-10-07 00:11:40 +03:00
XhmikosR
8767338669 Reindent _variables.scss.
Now it's more consistent.

Also switch to numeric values for font-weight.
2017-10-07 00:11:40 +03:00
XhmikosR
7e149e20a9 Enable stylelint for _reboot.scss. 2017-10-07 00:11:40 +03:00
Mark Otto
8fccaa2439 formatting 2017-10-05 09:42:17 +03:00
XhmikosR
91b219d5e6 Add comment where we explicitly use flex: 1 0 0%;. 2017-10-05 09:42:17 +03:00
XhmikosR
219ba7f2ea make-col-offset: Remove percentage if it's zero. 2017-10-05 09:42:17 +03:00
Gijs Boddeus
8f483dc432 Merge branch 'v4-dev' into yiq-function-update 2017-10-05 08:38:59 +02:00
Johann-S
b9c4a5cde2 Fix dropup in bottom navbar for all the breakpoints 2017-10-04 16:22:55 +02:00
Gijs Boddeus
cefc68d464 fix travis error 2017-10-04 11:29:38 +02:00
Gijs Boddeus
3d5b1c004a Merge branch 'v4-dev' into yiq-function-update 2017-10-04 11:03:20 +02:00
Gijs Boddeus
df6a8f7d81 revert 1db5082 2017-10-04 10:57:02 +02:00
Johann-S
a9e7abd29b Fix caret position for Dropdown in a bottom navbar 2017-10-04 10:32:32 +02:00
Johann-S
b6988714a1 Fix dropup in navbar 2017-10-04 10:32:32 +02:00
Gijs Boddeus
1db5082c3f rearrange properties in _borders.scss mixins 2017-10-04 08:52:48 +02:00
Gijs Boddeus
263190305e Merge branch 'v4-dev' into yiq-function-update 2017-10-04 08:46:03 +02:00
Simon Knox
e731353aac Use variable for heading margin bottom in reboot 2017-10-03 22:18:48 -07:00
Mark Otto
89970da349 Update input-btn-line-height vars to reassign global sm/lg vars 2017-10-02 21:40:45 -07:00
Mark Otto
4149cb2d17 Update input/button padding to fix cutoff text in Windows Chrome 2017-10-02 21:40:45 -07:00
Trent Clowater
7a7589ffc2 Fix media-breakpoint-between (#23997)
* Fix media-breakpoint-between

When compiling .scss that uses media-breakpoint between with xs as the lower bound or xl as the upper bound, a compilation error can occur due to $min/$max being set to null, or the resulting .css can be invalid (see issue #23965).

(This is basically the same fix that was applied to media-breakpoint-only a short time ago).

* Update _breakpoints.scss

Make houndci-bot recommended changes.
2017-10-02 21:38:59 -07:00
Patrick Yeo
ac69547314 Badges add Sass variable to configure $badge-border-radius (#24213) 2017-10-02 21:11:11 -07:00
Lodder
bd858f0ceb Fix custom-select with "multiple" attribute (#23055) 2017-10-02 21:00:57 -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
Patrick Yeo
9ee2fbe580 Nav Pills with open dropdown don't reflect the nav-pills active state. The active state should also be reflected when using collapse plugin inside nav-pills. 2017-10-02 20:48:05 -07:00
Mark Otto
864c657488 Fix buttons that come after the input (input should be under the button) 2017-10-02 20:47:15 -07:00
Patrick Yeo
bf01f27554 First child of input group segmented buttons are off by -btn-border-width 2017-10-02 20:47:15 -07:00
Patrick Yeo
728f579286 Form Validation .valid-feedback and .valid-tooltip are unstyled (#23527) 2017-10-02 20:37:28 -07:00
XhmikosR
7b766e1ad5 Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
Andres Galante
b26eabf2a3 adds a border radius to modal headers (#23799) 2017-10-02 18:59:50 -07:00
Paweł Kuna
c86833b3d0 add display table-cell (#24004) 2017-10-02 18:57:30 -07:00
Andres Galante
906db62ee2 removes border radius from btn-link (#24128) 2017-10-02 18:56:50 -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
vsn4ik
b2cadc233e Remove duplicated code in .card-header 2017-10-02 18:55:05 -07:00
Mark Otto
6cdcfe6b33 Opaque input borders (#24198) 2017-10-02 14:19:13 -07:00
Mark Otto
8fb48eaae2 Revert input group border changes (#24197)
Turns out #22612 is a bad idea and it makes all sorts of weird visual
glitches when working with form controls and transparent borders.
2017-10-02 14:18:33 -07:00
wojtask9
9145cc8279 fix .col-form-label paddings and add line-height (#23121) 2017-10-02 10:15:32 -07:00
Andres Galante
2430151865 fixes input group btn height (#23810) 2017-10-02 10:13:09 -07:00
Andres Galante
acf76a4513 fixes navbar-text link colors (#23702) 2017-10-02 10:11:11 -07:00
Félix Saparelli
67d7e26e05 Generate CSS variables for colors, breakpoints, fonts (#23761)
* Generate CSS variables

See #23349
Supersedes #23446

* Ignore _root.scss for linting
2017-10-01 21:00:24 -07:00
Chirag Modi
487e5f8b82 remove Dist fils as per suggestion (#23092) 2017-10-01 17:59:26 -07:00
Chirag Modi
deced1bf4d Fix #23013: Add boder-top:0 in .list-group-flush .list-group-item (#23108) 2017-10-01 17:23:31 -07:00
Chirag Modi
3ff2a2781f fixed issue with hr tag mention in 23032 (#23078) 2017-10-01 16:53:16 -07:00
Andres Galante
3624025a3b extends the click area of the close btn on modals (#23783) 2017-10-01 09:42:24 +03:00
Andres Galante
bbb6ab1275 changes reset for mixin list reset on pagination 2017-09-30 23:36:30 -07:00
Andres Galante
f02f545e0e changes the order of the close btn on alerts to improve accecibility 2017-09-30 23:32:39 -07:00
Ari Rizzitano
136c49a13f Remove dropdown anchor focus override
Overriding the focus outline for links within the dropdown menu
causes accessibility issues for keyboard-only users. This
removes the override, reenabling the browser's default focus
outline.
2017-09-30 14:19:00 -07:00
Mark Otto
27a015ba15 Reset button element border-radius in Reboot (#24126) 2017-09-27 17:01:00 +03:00
Martijn Cuppens
1d6a6c2abf Add quotes to mapping keys (#23701) 2017-09-27 11:00:42 +03:00
Benjamin Trenkle
7fa20188f2 Remove border-top if list-group follows card-header (#23022) 2017-09-27 10:57:39 +03:00
Prateek Goel
0e054fb9c8 Add style for non-overlapping scrollbar in IE (#24081) 2017-09-26 22:44:00 +03:00
Andrew Luca
dfc946b777 Update comment for forms mixins (#24050)
Check `form-control-focus` mixin, variable name is `$input-focus-border-color`
2017-09-26 18:14:52 +03:00
XhmikosR
c090c79a70 Merge branch 'v4-dev' into btn-active 2017-09-26 17:46:16 +03:00
Andres Galante
71c06b75c6 Fixes rounded corners on first and lat child on vertical btn group (#24119) 2017-09-26 16:51:27 +03:00
XhmikosR
31c8721913 Normalize all links. (#24109)
* use a trailing slash when possible
* use https when possible
* remove a few redirected links
* consistently use `https://popper.js.org/`
* fix `iconUrl` in nuget files
* change Jekyll Windows guide to the official one
2017-09-26 15:24:14 +03:00
schwastek
17fd2c9f84 Improve theme-color-level() using abs() (#24074)
`abs()` gets the absolute value of `$level`.
That way, `if/else` statement can be completely eliminated.
2017-09-26 15:05:59 +03:00
SpicyDwarf
272745673e Fix no rounded corners if there is only one card in a card-group (#24080) 2017-09-26 00:11:32 +03:00
XhmikosR
5cec8e0de6 Minor Sass cleanup and consistency changes. (#23959) 2017-09-17 08:18:24 +03:00
gijsbotje
cc092272ee modified the yiq to to an actual function
function only returns a value, not the attribute itself
updated every use of the former mixin to use the new function
2017-09-13 17:32:44 +02:00
Andres Galante
5becfa6fb1 fixes #23926 responsive state on navbar 2017-09-12 21:41:15 -03:00
Martijn Cuppens
0ccb1e8d9a Fix navbar IE (#23652) 2017-09-12 11:32:43 +03:00
Andres Galante
8e56145e45 changes active state color 2017-09-11 00:53:40 -03:00
Andres Galante
aa5e97da04 adds missing important on utility classs 2017-09-09 17:01:15 -07:00
Andres Galante
782ee6f60e Removes background from form-control-plaintext 2017-09-06 21:02:57 +01:00
Andres Galante
bd8ab1070b changes floats to flex on breadcrumbs (#23683) 2017-09-04 15:36:12 -07:00
Ben Hayward
6c402a6c7c Add correct button-variant mixin hover color (#23657) 2017-09-04 15:34:10 -07:00
Svyatoslav Polishchuk
70ca04bbdc replaced basic line-heights variable with button's line-heights variable for button size classes 2017-08-22 11:08:22 -07:00
Patrick H. Lauke
6ca451ebf8 Add pointer-events declarations
make outer `.modal-dialog` pass through events for custom click
handling, counteract it for the actual `.modal-content`
2017-08-22 10:54:12 -07:00
Patrick Yeo
c1865b4563 Add momentum scrolling on responsive tables for webkit touch devices 2017-08-22 10:47:52 -07:00
Patrick Yeo
f66fa3fa2b Generate series of .table-responsive-* classes to accomodate overflowing tables in a variety of screen sizes 2017-08-22 10:47:52 -07:00
Patrick Yeo
f7eb3c98b2 .thead-dark and .thead-light border color should display the right border color 2017-08-21 18:20:14 -07:00
Patrick Yeo
3bf3bdf420 Rename .table-inverse, .thead-inverse, .thead-default to .table-dark, .thead-dark, .thead-light respectively 2017-08-21 18:20:14 -07:00
Patrick Yeo
0759427935 (#22414) Rename variables $table-inverse-bg, $table-inverse-accent-bg, $table-inverse-hover-bg, $table-inverse-border-color, $table-inverse-color to $table-dark-bg, $table-dark-accent-bg, $table-dark-hover-bg, $table-dark-border-color, $table-dark-color for consistency 2017-08-21 18:20:14 -07:00
Patrick H. Lauke
6b6f45ad67 Exclude input type=range from touch-action:manipulation 2017-08-21 22:45:11 +01:00
Mark Otto
bd3ca58c08 Rename grayscale function to gray 2017-08-21 13:55:25 -07:00
Mark Otto
22f6ee52f0 remove commented out code, fixes #23530 2017-08-20 14:06:05 -07:00
Mark Otto
26e6d8b2b2 drop the now unused -color variable 2017-08-20 13:36:16 -07:00
Mark Otto
c0434f69f4 Merge branch 'fix/badge-default-colors' of https://github.com/jonwolski/bootstrap into jonwolski-fix/badge-default-colors 2017-08-20 13:35:06 -07:00
Mark Otto
834ee9b433 Simplify selector and only override what we set
1. Instead of having two selectors, we use the `.list-group-item` class and have coverage for list items and anchors.
2. Rather than override all border values, we only override what we set with `border-top`.
2017-08-20 12:21:24 -07:00
gijsbotje
bb32e91154 added suggested fix for list-groups with a elements 2017-08-20 12:21:24 -07:00
gijsbotje
2ba0127c91 fixes double border when .list-group.list-group-flush is preceded by .card-header 2017-08-20 12:21:24 -07:00
Alex Chegodaev
1da730c67f added @content directive to media-breakpoint-only mixin for min and max cases 2017-08-20 11:46:55 -07:00
Mark Otto
c4b3d81887 Drop the variables file table of contents and update the comment at the top
I never use this dang list and it just falls out of date far too easily. Dropping for my own sanity.
2017-08-20 11:42:19 -07:00
gijsbotje
6fc9dde727 equalize height of the first card of the card-group 2017-08-20 11:41:16 -07:00
Mark Otto
fd8c052c67 Restore grid offset classes
Fixes #23360 by restoring just the offset class generation to our grid
framework mixins. Also restores the `make-col-offset` mixin.

Docs have been restored to illustrate this behavior and merged with the
newer margin utilities examples.
2017-08-20 11:17:48 -07:00
Jon Wolski
f07d870381
Remove color property from badge class
I suggest removing `color: #FFF` from the `badge` class, because it is
provided by the `badge-<modifier>` classes along with a
background-color, whereas there is no corresponding background-color
provided on the `badge` class itself.

Background
----------

According to the documentation:

> [badge] Requires one of the contextual, color modifier classes for `color` and
> `background-color`.

That is, color and background color should be provided by a modifier
class, rather than the badge class itself.

e.g. `<span class='badge badge-primary'>4</span>`

In general, providing a `color` property without also providing a
`background-color` should be avoided. [W3 QA tips]

In this context, this is a problem only if someone creates a `badge`
without providing a modifier. Such an omition may be difficult to trouble-shoot,
because this will most likely yield white text on a white background.

[W3 QA tips](https://www.w3.org/QA/Tips/color)
2017-08-18 09:35:00 -05:00
Mark Otto
5b8738afc1 Fix .btn-outline-light hover color
Uses some if/else action to ensure there's readable text on hover. Swapped out a hex value to a variable while I was in there.

Fixes #23398, fixes #23351.
2017-08-14 21:07:35 -07:00
Mark Otto
a80198db4d De-dupe width on .fluid-container (#23402)
Fixes #23397
2017-08-14 18:11:44 -07:00
Andres Galante
77777b388d Adds a default flag to paragraph-margin-bottom (#23420) 2017-08-14 18:09:44 -07:00
Jacob Müller
63909cacb1 Remove remaining v4 alpha references (#23414)
* Remove remaining references to v4 Alpha

This commit removes the remaining refrences to the v4 Alpha website and replaces them with the
corresponding v4 Beta ones.

**Note:** We have to hard code the current docs version at some places. Wouldn't it be good to have a `/docs/latest/` redirect to solve this "issue" in the future?

* Don't update the domain in the CNAME file
2017-08-14 18:08:31 -07:00
Jurre
d3f09ff3ea Removed comment (#23415)
There is no _custom.scss file anymore.
2017-08-14 18:07:44 -07:00
Andres Galante
1cfbc2c62d changes 1px to border-width variable on cards 2017-08-14 14:02:16 -07:00
Patrick Yeo
e6042e6f44 Add option to disable carets on dropdowns through $enable-caret 2017-08-14 09:10:17 -07:00
Tomáš Kout
453a5fa033 Move the gap between inline checkboxes to right (#22607) 2017-08-13 14:58:47 -07:00
Mark Otto
0bc39aa30a Use empty Sass map and merge into it for easier customization of color maps (#23260) 2017-08-13 14:56:30 -07:00
Mark Otto
cd22eb1da0 Button code cleanup (#22951)
* use a mixin there
* revamp .btn-link to match default and outline variants
* remove unnecessary properties
2017-08-13 14:55:28 -07:00
Mark Otto
bb0cab9f10 move max-width: 100% on .container to the root of the make-container mixin so it's not repeated at compilation (#22947) 2017-08-13 14:54:57 -07:00
Mark Otto
54d76805a5 Redo .card-deck and .card-group so they're always flex (#22860) 2017-08-13 14:53:24 -07:00
Mark Otto
bde9c64ca9 Apply the invalid/valid state to the class name 2017-08-12 18:24:49 -07:00
Patrick Yeo
80cf395e4d Remove vertical-align: middle from .input-group-addon and .input-group-btn left over from V3 2017-08-12 18:22:48 -07:00
Patrick Yeo
02ae73fc0f Apply align-items: center; to .input-group instead of input group sub components, causes .input-group .form-control and .input-group-addon to be large when next to a tall element 2017-08-12 18:22:48 -07:00
razh
9d988de054 Remove extra spaces from spacing utilities (#23337) 2017-08-12 09:11:41 +03:00
Patrick Yeo
34257d25a5 Pagination border-widths greater than 1px cause uneven borders between items 2017-08-10 23:24:37 -07:00
Patrick Yeo
a0521efbb5 Input Group Addon add option to configure $input-group-addon-color 2017-08-10 23:11:18 -07:00
Prateek Goel
7b66aeb2f6 Fix to Chrome inheritance bug (#22872) (#23118)
* Fix to Chrome inheritance bug (#22872)

* Remove box-sizing from html

box-sizing removed from html and order of wild card selected and html selector swapped to maintain correctness of comments.
2017-08-10 23:05:32 -07:00
Patrick Yeo
ffa789327b Custom File padding-x and padding-y values are reversed (#23067)
Custom File `$custom-file-focus-box-shadow` should show even if box shadows are disabled

Custom File variables should inherit from inputs
2017-08-10 23:01:52 -07:00
Prateek Goel
7c452ac607 Add margin variable for paragraphs (#23140) 2017-08-10 23:00:01 -07:00
Prateek Goel
9497c2164c Add margin variable for breadcrumb (#23138)
* add margin variable for breadcrumb

* add margin variable for breadcrumb correction

* breadcrumb margin variable changes after review
2017-08-10 22:59:21 -07:00
Patrick Yeo
c5903ddfd6 $input-height-inner-lg should use $font-size-lg instead of $font-size-sm (#23150) 2017-08-10 22:58:40 -07:00
Morgan Stone
b76357d57d Reduce number of spacing rules (#23208)
* reduce # of spacing rules by combining x & y with t r b l

* Remove unnecessary spaces
2017-08-10 22:58:12 -07:00
Pascal Pixel
4634b39a1b Emoji Defaults (#22565) 2017-08-10 22:51:42 -07:00
Dave Poole
120a14237e remove unnecessary line-height 2017-08-10 22:50:59 -07:00
Dave Poole
36a21f355c remove comments, align-items, and unnecessary height 2017-08-10 22:50:59 -07:00
Dave
1ab4f57af4 Fixes PropertySortOrder errors 2017-08-10 22:50:59 -07:00
Dave
ad84eeb6e9 Fixes hound code style/standards 2017-08-10 22:50:59 -07:00
Dave
c2c06bc581 _progress.scss: makes bars 100% height, centers labels horizontally & vertically 2017-08-10 22:50:59 -07:00
envolute
eeb1ccab9b Change border class
The class ".border" (css/utilities/_borders.scss) is set the border-color to "$gray-200".
So I see that it would be nice to create a variable for the border color "$border-color". Because the default border should not always be "gray-200".
Another thing, there is a "$border-width" variable. Would not it be better to use this variable to set the default width of the border?
2017-08-10 22:48:26 -07:00
envolute
0c3ed5d3f0 Add "$border-color" variable 2017-08-10 22:48:26 -07:00
Mark Otto
79fcb527bf Add SF Mono to the monospace font stack 2017-08-10 22:47:54 -07:00
Patrick Yeo
056e5594ef Only add CSS transitions on Buttons for background-color, border-color, and box-shadow 2017-08-10 22:47:18 -07:00
Mark Otto
365c9753f8 Ensure alignment of modal dismiss when no .modal-title is present 2017-08-10 22:45:48 -07:00
Mark Otto
09019a8ecd Set explicit text-align on <body> element so we can use inherit to override the default <th> text-align value 2017-08-10 22:43:50 -07:00
Nathan Woltman
f95282c27e Fix border on input group elements and custom form inputs
c3e4cbd changed the border of input elements to be translucent. This commit makes
input group elements and custom form inputs follow the same pattern.
2017-08-10 22:41:21 -07:00
Mark Otto
1846ab34f6 300, not light 2017-08-10 22:40:02 -07:00
Mark Otto
1e38b45980 Add $font-weight-light var 2017-08-10 22:40:02 -07:00
Mark Otto
ed4f5778a9 Add .font-weight-light class, add !important to the classes 2017-08-10 22:40:02 -07:00
Mark Otto
006590ed9a Remove broken CSS that tried to reset the absolute positioning when there was no text 2017-08-10 22:36:35 -07:00
Mark Otto
3fbdedbf22 Add basic property-value utils for position 2017-08-10 22:35:38 -07:00
Mark Otto
35f80bb12e bump to beta 2017-08-10 20:56:35 -07:00
lucascono
08b89972c5 Fix the min breakpoint in media-breakpoint-between 2017-08-08 00:07:42 -07:00
Mark Otto
2cd2301e7a Add .bg-white and .border-white 2017-08-07 22:06:53 -07:00
Patrick Yeo
cd3507aba6 Dropup dropdown-menu should have margin on the bottom instead of top 2017-08-04 15:17:50 -07:00
Patrick Yeo
0501b029f5 (#22414) Rename for consistency $dropdown-margin-top to $dropdown-spacer 2017-08-04 15:17:50 -07:00
Mark Otto
73040d4311 fix navbar alignment for never expand situations 2017-08-04 15:15:25 -07:00
Mark Otto
987ac632b5 given width: 100% is always on a container now and it's constrained by max-width, we can remove our navbar changes from #21722 and #22383 2017-08-04 15:14:24 -07:00
Chirag Modi
b2712048ce make changes as per suggestion in #23100 2017-07-18 11:48:59 +05:30
Chirag Modi
a52a1fbb13 remove change which set from variable and make those in container class 2017-07-18 11:44:56 +05:30
Chirag Modi
f05bd63d8e fixed issue #23100 2017-07-17 13:29:49 +05:30
Patrick Yeo
696b2bee11 (#22414) Rename for consistency $custom-checkbox-border-radius, $custom-checkbox-icon-checked, $custom-checkbox-indeterminate-bg, $custom-checkbox-icon-indeterminate, $custom-checkbox-indeterminate-box-shadow, $custom-radio-border-radius, $custom-radio-icon-checked to $custom-checkbox-indicator-border-radius, $custom-checkbox-indicator-icon-checked, $custom-checkbox-indicator-indeterminate-bg, $custom-checkbox-indicator-icon-indeterminate, $custom-checkbox-indicator-indeterminate-box-shadow, $custom-radio-indicator-border-radius, $custom-radio-indicator-icon-checked, respectively 2017-07-16 12:36:26 -07:00
Patrick H. Lauke
7a781b2ae0 Remove ::first-letter and ::first-line selectors from print styles
Bootstrap itself doesn't use any `::first-letter` or `::first-line`
styles. These selectors also cause(d) problems in IE11 (see
https://github.com/h5bp/html5-boilerplate/pull/1799) and currently cause
a nasty rendering bug in Chrome where the first letter is vertically
shifted (see https://github.com/twbs/bootstrap/issues/21771)

As h5bp has now removed these as well, no need to keep and comment them
out. See https://github.com/h5bp/html5-boilerplate/issues/1961 /
https://github.com/h5bp/html5-boilerplate/pull/1962
2017-07-11 19:51:21 +01:00
Patrick H. Lauke
edae6a2e1d Remove box-shadow from .btn-link:focus (#22998)
When focused, these buttons styled as links still give good visible focus indication through the underline, so this should not be a concern. Closes #22655
2017-07-05 10:54:26 +02:00
Mark Otto
de78b71bab fixes #22981 2017-07-03 19:04:31 -07:00
Mark Otto
3b08beb37a follow up to 4e067f722 2017-07-01 23:40:51 -07:00
Mark Otto
7bce8648ed Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev 2017-07-01 23:36:11 -07:00
Mark Otto
4e067f7229 remove unused $list-group-color variable; it should naturally inherit from the body 2017-07-01 23:35:57 -07:00
Mark Otto
f282a88475 update comment 2017-07-01 23:25:28 -07:00
Mark Otto
4b6d2c0b3c put button active bg and border in the mixin params for more customization options 2017-07-01 23:25:28 -07:00
Mark Otto
e7ae1d9069 match btn transition to input 2017-07-01 23:10:01 -07:00
Mark Otto
7085988f06 doh, we already have that above 2017-07-01 23:05:51 -07: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
Mark Otto
4b84614e7f Redo the "responsive helpers" files
- Moves the embed SCSS to the utilities subfolder
- Separate the floats from the embed docs
- Rename embed docs from responsive helpers to embeds
2017-07-01 23:05:51 -07:00
Mark Otto
11e18af1b6 remove some unused vars, restore table-active variant 2017-07-01 22:57:19 -07:00
Mark Otto
3e2318cf7c badge variants are generated from -colors Sass map 2017-07-01 22:57:19 -07:00
Mark Otto
848a746a89 button variants are generated from -colors Sass map 2017-07-01 22:57:19 -07:00
Mark Otto
97a5bc4870 no xs sizes being used 2017-07-01 22:57:19 -07:00
Mark Otto
3603088454 Restore .text-muted 2017-07-01 19:01:58 -07:00
Mark Otto
2bf4de0698 Update carousel display settings
Use `display: block` since we're not really using any flex styles on the `.carousel-items` (only their controls and indicators). For the indicators, since moving to `width`, our indicators grow to fill available space, so we need to change `flex: 1 0 auto` to `flex: 0 1 auto` to prevent that.
2017-07-01 16:59:16 -07:00
Mark Otto
75156f419a using max-width in flex: 1 0 auto; in ie11 offsets the center-aligned contents 2017-07-01 11:21:20 -07:00
Mark Otto
2d4534e112 use @supports to apply transform3d to those who can do it, then provide a non-3d fallback to ie11 2017-07-01 11:21:20 -07:00
Mark Otto
88b9e558fb clip to border-box, update overlay 2017-06-30 15:28:50 -07:00
Mark Otto
9a2b202e8e add a bg-transparent to override bgs 2017-06-30 15:23:36 -07:00
Mark Otto
2feebccf24 make card headers and footers translucent 2017-06-30 15:23:36 -07:00
Mark Otto
180d78c013 Drop .card-{color} modifiers for .bg-{color}, .text-{color}, and .border-{color} utilities 2017-06-30 15:23:36 -07:00
Mark Otto
45722e94ac Drop .blockquote-reverse, replace with text utils, and redesign blockquote to not have a border 2017-06-30 15:04:56 -07:00
Mark Otto
16781be021 drop the mixins 2017-06-30 11:44:09 -07:00