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

96 Commits

Author SHA1 Message Date
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
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
Mark Otto
ed4f5778a9 Add .font-weight-light class, add !important to the classes 2017-08-10 22:40:02 -07:00
Mark Otto
3fbdedbf22 Add basic property-value utils for position 2017-08-10 22:35:38 -07:00
Mark Otto
2cd2301e7a Add .bg-white and .border-white 2017-08-07 22:06:53 -07:00
Mark Otto
de78b71bab fixes #22981 2017-07-03 19:04:31 -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
3603088454 Restore .text-muted 2017-07-01 19:01:58 -07:00
Mark Otto
9a2b202e8e add a bg-transparent to override bgs 2017-06-30 15:23:36 -07:00
Mark Otto
4982926dcf Drop offsets and push/pull for new order variants 2017-06-30 11:44:09 -07:00
Mark Otto
9bfbee3503 add border color utilities 2017-06-25 18:39:14 -07:00
Mark Otto
fc053ed096 update background utils 2017-06-25 18:16:37 -07:00
Mark Otto
597e9f8618 remove - vars, update docs to generate from data yml files, update mixins, and generate card, button, bg, and color classes from the sass map 2017-06-18 02:57:16 -07:00
Mark Otto
d2508ec506 Update _borders.scss 2017-06-17 23:20:56 -07:00
Mark Otto
da2629907e move from mixins and add important flag 2017-06-17 23:20:56 -07:00
Mark Otto
60d8c8754f wrap .sticky-top in supports query 2017-06-17 13:13:47 -07:00
Mark Otto
feb35b94a6 Revert "Drop width from sizing utils given .col- classes can do the same thing (follow up to #22376)"
This reverts commit 2f21403a93.
2017-04-08 15:15:14 -07:00
Mark Otto
2f21403a93 Drop width from sizing utils given .col- classes can do the same thing (follow up to #22376) 2017-04-08 14:23:47 -07:00
Starsam80
95f37e4c40 Clean up spacers a bit more 2017-03-05 16:05:12 -06:00
Mark Otto
4778190d78 Drop the .hidden and .visible classes, save for the print ones
— Moves print display utils to display utils file
— Removes all other .hidden- utils
— Expands on .invisible and it's mixin to provide options for visibility: visible and visibility: hidden
2017-03-05 12:25:41 -08:00
Mark Otto
519ecc1c69 Rename order utilities to intended class names (#21739)
* rename order utilities to intended class names

* Documentation fixes.
2017-01-24 00:01:44 -08:00
Mark Otto
21b28903a4 New position utils, split docs
- Renames .pos-f-t to .fixed-top, adds .fixed-bottom and .sticky-top
- Updates utilities Sass to be split across more files (one for position, sizing, and spacing)
2017-01-02 11:45:30 -08:00
Mark Otto
fa1ef15212 remove line break 2017-01-02 11:12:41 -08:00
Starsam80
31ac81e5ba Add more flex utilities 2016-12-26 13:06:53 -08:00
Starsam80
c2e5eb1542 Use variables for the width/height classes 2016-12-25 15:32:34 -08:00
Starsam80
210050d9c9 Clean up _spacing.scss a little bit 2016-12-25 15:32:34 -08:00
Mark Otto
103cae2333 trailing space 2016-12-25 14:03:50 -08:00
Mark Otto
dcd4a63e4e line break for sanity 2016-12-25 14:03:50 -08:00
Mark Otto
bab4f1ef3c add my-auto and m-auto 2016-12-25 14:03:50 -08:00
Mark Otto
4f85513608 responsive auto margin classes 2016-12-25 14:03:50 -08:00
Mark Otto
43c206d6ff add mr-auto and ml-auto for some flex shiz 2016-12-25 14:03:50 -08:00
Mark Otto
d93991b1c5 remove unused utils, comment 2016-12-24 14:21:04 -08:00
Mark Otto
9d13fd3fe3 remove old flex utils, update docs to match 2016-12-24 14:21:04 -08:00
Mark Otto
574c3119f3 duplicate of the .flex-fill util 2016-12-24 14:21:04 -08:00
Mark Otto
5464f4ab7e Start to blow out and document more flexbox utilities
- Adds new flexbox.md file to utilities docs

- Adds a `breakpoints.yml` data file for easier output of responsive classes in the docs. Will put this to use on other pages soon.

- Adds hella flex utils. There are some dupes for now, but they'll get removed in time.
2016-12-24 14:21:04 -08:00
Mark Otto
e4933c72da fix incorrect class name for inline-flex 2016-12-24 14:21:04 -08:00
Mark Otto
95ee9aa94c small unrelated addition—adds .d-flex-inline util 2016-12-22 21:29:48 -08:00
Mark Otto
754698c4d7 New width and height utils
Adding 25%, 50%, and 75% to the mix for later use with cards
2016-12-22 17:15:10 -08:00
Mark Otto
eb2e1102be Flexbox all the time (Drop IE9 support and remove $enable-flex option) (#21389)
* remove the $enable-flex variable option

* remove bootstrap-flex.css dist file and it's grunt task

* remove the separate flex css file for docs; it's all the same now

* remove flexbox docs (porting some to the main grid docs in next commit)

* clean up few grid docs bits to simplify copy, start to mention flexbox

* port relevant flexbox-grid.md content to grid.md

- clean up mixins
- update how it works section
- bring over sizing and alignment sections

* remove the $enable-flex from the options.md page

* update lead paragraph to mention flexbox

* update migration to mention loss of ie9 support

* remove mention of flexbox dist file

* clarify IE support

* making a note

* remove flexbox variant mentions from component docs

- updates docs for media object, navs, list group, and cards to consolidate docs
- no more need to callout flexbox variants since it's now the default

* remove $enable-flex if/else from sass files

* remove flex dist files

* update scss lint property order to account for flex properties

* linting

* change to numberless classes for autosizing, wrap in highlighting div

* bump gruntfile and postcss to ie10

* redo intro sections

* rearrange

* phew, redo hella grid docs

- rearrange all the things
- consolidate some bits

* remove reference to flexbox mode

* more border action for demo

* Make some changes to the .card's in .card-deck's to ensure footers align to the bottom
2016-12-21 20:26:17 -08:00
Starsam80
b226766b62 Remove lots of duplication + minor cleanup (#21238)
* Remove comment that duplicated some code
* Use transition mixin whenever possible
* Create a new function to reduce duplication
* Use the new `breakpoint-infix` method
2016-11-28 13:23:59 -08:00