0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +01:00
Bootstrap/scss/mixins
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
..
_alert.scss Gradients and shadows (#24429) 2017-10-19 09:03:33 -07:00
_background-variant.scss Gradients and shadows (#24429) 2017-10-19 09:03:33 -07:00
_badge.scss fix travis error 2017-10-04 11:29:38 +02:00
_border-radius.scss Update scss mixins to comply with scss-linting rules (#22151) 2017-03-18 13:06:05 -07:00
_box-shadow.scss Move box-shadow and transition mixins out of the main mixins file and into their own files 2017-03-05 12:40:01 -08:00
_breakpoints.scss Add support for fractional viewport widths (zoom/high-dpi displays) (#24299) 2017-11-20 05:13:37 -05:00
_buttons.scss Add fallback border-radius to .btn (#24505) 2017-10-28 22:42:09 -07:00
_caret.scss Add dropright and dropleft (right and left placements for our dropdown) (#23860) 2017-10-29 15:29:13 -07:00
_clearfix.scss Update scss mixins to comply with scss-linting rules (#22151) 2017-03-18 13:06:05 -07:00
_float.scss Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
_forms.scss Rewrite custom form check backgrounds (#24697) 2017-11-24 14:26:56 -08:00
_gradients.scss Gradients and shadows (#24429) 2017-10-19 09:03:33 -07:00
_grid-framework.scss Add order first to grid (#24202) 2017-10-02 18:56:13 -07:00
_grid.scss make-col-offset: Remove percentage if it's zero. 2017-10-05 09:42:17 +03:00
_hover.scss Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
_image.scss Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
_list-group.scss Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
_lists.scss Extract list-unstyled mixin; closes #17792 2015-10-13 01:24:11 -07:00
_nav-divider.scss Use the hr-method for the nav-divider, closes #21945 2017-03-26 15:03:13 -07:00
_navbar-align.scss Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
_pagination.scss @mixin pagination-size() doesn't apply line-height 2017-06-18 02:11:33 -07:00
_reset-text.scss Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
_resize.scss Update scss mixins to comply with scss-linting rules (#22151) 2017-03-18 13:06:05 -07:00
_screen-reader.scss Enable stylelint's function-comma-space-after. (#24501) 2017-10-23 00:00:00 +03:00
_size.scss combine size & square mixins into one 2015-08-26 16:17:00 +06:00
_table-row.scss rewrite table modifiers to use .table- prefix 2015-03-30 18:08:01 -07:00
_text-emphasis.scss Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
_text-hide.scss Fix syntax of .text-hide's font property value 2015-12-25 14:06:39 -07:00
_text-truncate.scss Update scss mixins to comply with scss-linting rules (#22151) 2017-03-18 13:06:05 -07:00
_transition.scss Move box-shadow and transition mixins out of the main mixins file and into their own files 2017-03-05 12:40:01 -08:00
_visibility.scss Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00