aboutsummaryrefslogtreecommitdiff
path: root/scss/_functions.scss
AgeCommit message (Collapse)AuthorFilesLines
2021-08-10Add check to rgba-css-var function for body or bg (#34699)Mark Otto1-2/+8
2021-08-03Update color and background-color utilitiesMark Otto1-0/+35
- 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
2021-07-27More concise improvements for `add()` and `subtract()` (#34432)Gaël Poupard1-12/+0
2021-07-06Add maps for all colors, document how to extend color utilities (#32319)Mark Otto1-0/+10
* Add maps for all colors, document how to extend color utilities * Updates to make this more functional for v5 - Moves color maps into _variables.scss for now (felt weird to split them out when the variables are there) - Adds a new function, map-merge-multiple(), and updates docs that reference combo-map - Updates code snippet and docs guidance about how to extend the color utils to handle this * Update site/content/docs/5.0/customize/color.md Co-authored-by: Gaël Poupard <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-06-22Update the divide() functionMark Otto1-12/+29
2021-06-14Replace `/` division with multiplication and custom `divide()` function (#34245)Mark Otto1-3/+28
* Convert bulk of division to multiplication * Use custom divide() function instead of Dart Sass math module for greater compatibility * Apply suggestions from code review * Fix functions
2021-05-25Handle complex expressions in add() & subtract() (#34047)Gaël Poupard1-0/+16
2020-11-13Rename scale-color() function to shift-color() to avoid collision with ↵Mark Otto1-2/+1
Sass's own color function (#32149)
2020-10-13Colors rewrite (#30622)Martijn Cuppens1-12/+12
2020-09-28Replace ellipsis Unicode symbol with three dots. (#31774)XhmikosR1-1/+1
2020-09-15Add a comment for escape-svg functionMark Otto1-0/+3
Closes #30835 by leaving a comment in the source that the escape-svg() function must have quotes around data URIs.
2020-05-20Code simplificationMartijn Cuppens1-20/+7
2020-05-20feat(color-contrast): set min-contrast-ratio as an argumentGaël Poupard1-1/+1
2020-05-20feat(color-contrast): ensure we return a contrasted enough color ↵Gaël Poupard1-2/+33
(light-first), the most contrasted one otherwise
2020-04-17feat: checks for `$grid-breakpoints` map list (#30609)Catalin Zalog1-4/+6
Co-authored-by: Martijn Cuppens <[email protected]>
2020-04-06Create `scss-docs` shortcode to get some snippets from the Scs… (#30502)Martijn Cuppens1-0/+2
Co-authored-by: XhmikosR <[email protected]>
2020-03-23Use WCAG contrast algo (#30168)Gaël Poupard1-6/+35
2019-12-25Escape brackets (#29857)Martijn Cuppens1-1/+6
Co-authored-by: XhmikosR <[email protected]>
2019-11-28Fix dart Sass compatibility for subtract (#29763)Shohei Yoshida1-1/+1
2019-11-28Fix dart Sass compatibility (#29755)Martijn Cuppens1-1/+1
2019-10-31Add add and subtract functionysds1-0/+37
2019-10-18v5: Update colors to add shades and tints (#29348)Mark Otto1-0/+8
* Add variables for shades and tints of each major color * getting-started/theming.md: use a `range`.
2019-08-14Function map-get-multiple now returns the correct variable (#29247)Thomas Schaller1-1/+1
2019-07-25Drop `color()`, `theme-color()` & `gray()` functions (#29083)Martijn Cuppens1-16/+2
Drop `color()`, `theme-color()` & `gray()` functions in favor of variables. The functions just called a `map-get()` of a map where just the variables were defined. Also the `theme-color-level()` now accepts any color you want instead of only `$theme-colors` colors. The first value now is a variable instead of the `$theme-colors` key.
2019-07-19Use escape-svg() function (#29077)Martijn Cuppens1-0/+11
* Use escape-svg() function * Update theming.md
2019-05-30Utility API improvement: use $key/$value instead of nth (#28828)Ashfahan Khan1-1/+0
Co-Authored-By: Martijn Cuppens <[email protected]>
2019-05-24Fix Typo Mistake in SCSS comment (#28821)Ashfahan Khan1-1/+1
2019-05-23Helpers & utilities split (#28445)Martijn Cuppens1-0/+24
2019-05-03More compact color-yiq function (#28514)Martijn Cuppens1-5/+1
2019-03-05disable assert assending check if the previous unit was a percentual value ↵mspae1-1/+1
(#28400)
2019-02-07Add map-name param to _assert-starts-at-zero (#24986)Zachary Welch1-3/+3
* Add map-name param to _assert-starts-at-zero * Set default value for backwards compatibility
2018-10-21feature/yiq function, add parameters, with default values. (#26917)Andrey1-3/+3
2018-09-02Ignore percentage values for compare in mapsRoman O1-1/+1
2018-07-09correct spelling errors (#26837)Andrew1-1/+1
2018-01-21Use variables for theme-color-level functionMark Otto1-1/+1
Closes #25313
2017-12-01Adds variable for color yiq threshold (#24886)Andres Galante1-1/+1
2017-11-15Correct spelling mistakes. (#24778)Edward Betts1-1/+1
2017-10-22add vars for yiq color contrast functionMark Otto1-2/+2
2017-10-04Merge branch 'v4-dev' into yiq-function-updateGijs Boddeus1-6/+2
2017-09-26Improve theme-color-level() using abs() (#24074)schwastek1-6/+2
`abs()` gets the absolute value of `$level`. That way, `if/else` statement can be completely eliminated.
2017-09-13modified the yiq to to an actual functiongijsbotje1-3/+3
function only returns a value, not the attribute itself updated every use of the former mixin to use the new function
2017-08-21Rename grayscale function to grayMark Otto1-1/+1
2017-06-29add map function for graysMark Otto1-0/+4
2017-06-25add theme-color-level function and interval so we can generate shades of colorsMark Otto1-0/+14
2017-06-25modify contrast valueMark Otto1-1/+1
2017-06-15add color contrast and map-get functionsMark Otto1-0/+23
2017-06-14rearrange, add commentsMark Otto1-8/+18
2017-06-14Move scss functions from top of variables to separate file, then import it ↵Mark Otto1-0/+39
into other build files