Commit Graph

137 Commits

Author SHA1 Message Date
Martijn Cuppens 8fed098ef9
Utility API, RFS option: Only generate responsive classes when needed (#32397)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-12-09 23:49:21 +02:00
Martijn Cuppens 1d8a3a9597
Add RFS to utility API (#30050) 2020-02-15 12:01:32 +01:00
Martijn Cuppens 19ee63ad25 Link helpers & use utility API for all utilities 2019-08-26 08:21:24 +02:00
Martijn Cuppens 769c8d8246
Helpers & utilities split (#28445) 2019-05-23 11:56:03 +02:00
Martijn Cuppens a4a04cd9ec
`.sr-only` & `.sr-only-focusable` tweaks (#28720)
* Prevent .sr-only-focusable overriding properties when being focused

* Typo
2019-05-20 10:03:51 +02:00
Mark Otto 473689ce5d v5: Drop all print styles and classes (#28339) 2019-05-09 07:57:58 +02:00
Martijn Cuppens a776cc473d Switch from list to map for responsive embeds (#28678) 2019-05-05 10:41:27 +03:00
Martijn Cuppens a88d58605a Remove hover states on background utilities (#28457) 2019-03-14 19:36:02 +02:00
Mark Otto 837ff0cc11 v5: Drop remaining deprecated mixins (#28461)
- Deletes mixin mentions from float docs
- Deletes mixin mention from visibility docs
- Deletes the image-replacement page for text-hide
2019-03-14 19:23:54 +02:00
Martijn Cuppens bcfb7ed159 Deprecate `invisible()` mixin (#28066) 2019-02-07 19:19:00 +02:00
Martijn Cuppens 58470c0ac5 Fix text break in Firefox (#28063) 2019-02-06 12:38:13 +02:00
Martijn Cuppens 6466a0461a Deprecate float mixins (#28104) 2019-01-24 22:51:36 +02:00
Martijn Cuppens 2749bf34de Add `!important` to `.text-monospace` utility class (#28064) 2019-01-24 22:42:42 +02:00
Justin 8f5abf0ab0 Add new rounded sizes classes (#28011)
* update border-radius mixins

Add $enable-rounded as a keyword argument to border-raidus mixins

* Update rounded classes

- use border-radius mixins to repleace !important
- use true for $enable-rounded for rounded classes
- Add `.rounded-sm` and `.rounded-sm`  #27934

* update borders docs

* Revert touch of dist files

* Revert change of border-radius mixins

* use !important in border-radius utilies classes

* update border radius classes keep only rounded-lg and rounded-sm
2019-01-13 11:49:25 -08:00
Martijn Cuppens c0dfda964f Configurable display utility classes (#27917) 2018-12-29 04:54:58 +02:00
Martijn Cuppens 39b14c9806 Blacklist border-radius property (use mixin instead) (#27900) 2018-12-23 09:11:11 +02:00
XhmikosR 74a2d93517
Merge branch 'v4-dev' into stretched-link 2018-12-22 18:32:28 +02:00
Martijn Cuppens 353c8b4376
Update scss/utilities/_text.scss
Co-Authored-By: mdo <otto@github.com>
2018-12-17 09:48:06 -08:00
Mark Otto 540537c481 Add new .text-break utility for applying word-break: break-word 2018-12-16 13:23:33 -08:00
Martijn Cuppens 3007d4b435 Stretched link 2018-12-04 21:22:12 +01:00
Martijn Cuppens 976efcd5ee Allow to add more embed responsive ratios (#25894) 2018-11-11 11:04:04 +02:00
sts-ryan-holton 89eef046ef Add new `.rounded-pill` utility (#27339) 2018-11-05 19:19:00 +02:00
Andrew cbc859ad8d Add `.text-wrap` class.
this is the opposite of `.text-nowrap`, and a forces elements to wrap onto new lines.

One use case for this is extra long button text. Bootstrap buttons by default do no wrap, so this class could be used to override that behavior.
2018-11-04 15:55:17 +02:00
ItaloBC 557f3fe100 Added Viewport Height & Width helpers
This allows the user to make a container (ideally) to use viewport height and width and allow better vertical/horizontal alignments of elements.
2018-10-23 06:04:08 +03:00
Mark Otto 29bd5e3218 Add overflow-auto and overflow-hidden utilities 2018-10-06 17:55:55 -07:00
m5o 7f9e70202e add text-reset to text utilities (#26866) 2018-08-25 19:31:52 +03:00
Martijn Cuppens bf7d4aef81 Change if statement 2018-08-13 10:10:52 +03:00
Mark Otto ba25e38b4a Merge branch 'garhbod-patch-1' into v4-dev 2018-07-24 17:26:29 -07:00
Stefan Wrobel e3b98c51da Add .text-decoration-none utility class (#25933)
ref: https://github.com/twbs/bootstrap/pull/23881#issuecomment-337789596
2018-07-24 17:24:20 -07:00
Andrew c8a4d9dd74 add 'lighter' and 'bolder' font weight classes (#26580)
* add 'lighter' and 'bolder' font weight classes

these are 2 special values for font weight, that will give their content a font-weight value of 100 more or less than their inherited font-weight.

probably doesn't fully fulfill this issue, https://github.com/twbs/bootstrap/issues/23969, but it's a start

* Update .stylelintrc

* add 'lighter' and 'bolder' variables per @mdo 's request.
2018-07-24 17:23:17 -07:00
Mark Otto 7e96979cea fix comment placement, remove unecessary prop wrapper 2018-07-08 17:29:01 -07:00
Ryan Worth a2920149f4
Negative Margins classes for custom col gutters
Feature request #26681
2018-06-07 16:39:58 +10:00
Alexander Rechsteiner 056e28d9e0 Suppress text-hide deprecation warning (#26242) 2018-04-16 09:45:07 +03:00
Mark Otto dd7ed79856
Add box-shadow utilities (#25758) 2018-03-31 22:07:48 -07:00
Mark Otto 74490346ff Add new .flex-grow and .flex-shrink utils 2018-03-31 22:05:09 -07:00
Mark Otto 3417c54ad7 add 50% translucent black and white text 2018-03-31 22:02:47 -07:00
Mark Otto 4f05e3b735 add .text-body, fixes #25412 2018-03-31 22:02:47 -07:00
Mark Otto 185666fd79 Add .text-monospace util 2018-03-31 21:58:57 -07:00
Jacob Müller 27f553c965 Replace "loose" HEX values with their respective variables (#25672) 2018-03-12 19:19:37 +02:00
freezy 2dc9c76d75 Enable `scss/dollar-variable-default` rule (#25542)
This checks if all variables are `!default`.
2018-02-07 15:28:35 +02:00
Pierre-Denis Vanduynslager 2137d61eac Add missing flex-fill utility 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
Mark Otto 57083c3042 Expand border utilities to include top, right, bottom, left 2017-12-28 10:23:04 -08: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 7b766e1ad5 Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
Paweł Kuna c86833b3d0 add display `table-cell` (#24004) 2017-10-02 18:57:30 -07:00
XhmikosR 5cec8e0de6 Minor Sass cleanup and consistency changes. (#23959) 2017-09-17 08:18:24 +03:00
Andres Galante aa5e97da04 adds missing important on utility classs 2017-09-09 17:01:15 -07:00
razh 9d988de054 Remove extra spaces from spacing utilities (#23337) 2017-08-12 09:11:41 +03: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