aboutsummaryrefslogtreecommitdiff
path: root/scss/mixins/_utilities.scss
AgeCommit message (Collapse)AuthorFilesLines
2022-12-24SCSS testing of the utilities API (#36029)Romaric Pascal1-1/+1
* Set up CSS testing using sass-true and mocha Use mocha to handle the heavy lifting of finding tests and running them. Mocha is made to look directly for SCSS files which are compiled thanks to Node's require.extensions mechanism. * Add CSS tests to workflow * Add tests for the generate-utility mixin * Add tests for utilities generation * Fix linting issues * Fix test contents Don't know why the whole utilities.test.scss ended up copied in the api.test.scss * Remove unnecessary entry in package.json * Move to Jasmine for running the tests * Move running of CSS tests before CSS build * Update linting set up Add exceptions for test files in stylelint * Remove irrelevant option for sass-true * Fix linting issues after rebase * Add color mode tests * Fix linter Co-authored-by: Mark Otto <[email protected]>
2022-07-29Fix typos after #36762 (#36771)Julien Déramond1-1/+1
2022-06-13Generate local CSS variables on utilities when using state optionMark Otto1-0/+5
2022-03-13Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)Mark Otto1-3/+3
* Add additional root variables, rename $variable-prefix to $prefix - Adds new root CSS variables for border-radius, border-width, border-color, and border-style - Adds new root CSS variables for heading-color, link-colors, code color, and highlight color - Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss - Updates $mark-padding to be an even pixel number - Renames $variable-prefix to $prefix throughout * Bundlewatch
2022-02-28Convert border utilities to CSS variablesMark Otto1-4/+7
- Updates the utilities mixin to check for specific CSS variable names via `css-variable` - Bonus fix: we now prevent local variables for `0` value utilities (e.g., `.border-top-0` no longer sets `--bs-border-opacity: 1` - Adds new `.border-opacity-*` classes - Adds new root variables: `--bs-border-color`, `--bs-border-style`, `--bs-border-width` - Documents the new variable changes
2021-08-03Update color and background-color utilitiesMark Otto1-6/+27
- Adds new functions to generate additional Sass maps - Adds new root variables for rgb() versions of our theme colors, plus a few extras - Adds ability to change the alpha transparency of text color and background color utilities with new utilities, inline styles, or local CSS var - Updates documentation for color and background-color utilities pages - Deprecates .text-black-50 and .text-white-50 since those (and additional transparency levels) can be generated on the fly Change approach slightly to prevent cascade
2020-12-04feat(RTL): implement RTLGaël Poupard1-0/+8
Using RTLCSS directives, renaming things to use logical names and following best practices.
2020-11-13Add hover utilitiesNikita Mikhaylov1-0/+11
remome several hobers refactoring hover utilities refactoring hover utilities
2020-02-15Add RFS to utility API (#30050)Martijn Cuppens1-5/+19
2020-02-10Introduce posibility to disable !important suffix for utility classes (#29625)Martijn Cuppens1-1/+1
2019-08-26Link helpers & use utility API for all utilitiesMartijn Cuppens1-3/+5
2019-05-30Utility API improvement: use $key/$value instead of nth (#28828)Ashfahan Khan1-3/+3
Co-Authored-By: Martijn Cuppens <[email protected]>
2019-05-23Helpers & utilities split (#28445)Martijn Cuppens1-0/+33