2019-05-23 11:56:03 +02:00
|
|
|
// Utilities
|
|
|
|
|
|
|
|
$utilities: () !default;
|
|
|
|
// stylelint-disable-next-line scss/dollar-variable-default
|
|
|
|
$utilities: map-merge(
|
|
|
|
(
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start utils-vertical-align
|
2019-05-23 11:56:03 +02:00
|
|
|
"align": (
|
|
|
|
property: vertical-align,
|
|
|
|
class: align,
|
|
|
|
values: baseline top middle bottom text-bottom text-top
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-vertical-align
|
|
|
|
// scss-docs-start utils-float
|
2019-05-23 11:56:03 +02:00
|
|
|
"float": (
|
|
|
|
responsive: true,
|
|
|
|
property: float,
|
2020-06-26 16:06:20 +02:00
|
|
|
values: (
|
|
|
|
start: left,
|
|
|
|
end: right,
|
|
|
|
none: none,
|
|
|
|
)
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-float
|
2022-10-06 22:14:11 +02:00
|
|
|
// Object Fit utilities
|
|
|
|
// scss-docs-start utils-object-fit
|
|
|
|
"object-fit": (
|
|
|
|
responsive: true,
|
|
|
|
property: object-fit,
|
|
|
|
values: (
|
|
|
|
contain: contain,
|
|
|
|
cover: cover,
|
|
|
|
fill: fill,
|
|
|
|
scale: scale-down,
|
|
|
|
none: none,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
// scss-docs-end utils-object-fit
|
2021-06-23 04:20:01 +02:00
|
|
|
// Opacity utilities
|
|
|
|
// scss-docs-start utils-opacity
|
|
|
|
"opacity": (
|
|
|
|
property: opacity,
|
|
|
|
values: (
|
|
|
|
0: 0,
|
|
|
|
25: .25,
|
|
|
|
50: .5,
|
|
|
|
75: .75,
|
|
|
|
100: 1,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
// scss-docs-end utils-opacity
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start utils-overflow
|
2019-05-23 11:56:03 +02:00
|
|
|
"overflow": (
|
|
|
|
property: overflow,
|
2020-07-21 10:24:38 +02:00
|
|
|
values: auto hidden visible scroll,
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
2022-10-06 22:14:11 +02:00
|
|
|
"overflow-x": (
|
|
|
|
property: overflow-x,
|
|
|
|
values: auto hidden visible scroll,
|
|
|
|
),
|
|
|
|
"overflow-y": (
|
|
|
|
property: overflow-y,
|
|
|
|
values: auto hidden visible scroll,
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-overflow
|
2021-01-16 23:06:19 +01:00
|
|
|
// scss-docs-start utils-display
|
2019-05-23 11:56:03 +02:00
|
|
|
"display": (
|
|
|
|
responsive: true,
|
|
|
|
print: true,
|
|
|
|
property: display,
|
|
|
|
class: d,
|
2020-11-06 13:35:17 +01:00
|
|
|
values: inline inline-block block grid table table-row table-cell flex inline-flex none
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
2021-01-16 23:06:19 +01:00
|
|
|
// scss-docs-end utils-display
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start utils-shadow
|
2019-05-23 11:56:03 +02:00
|
|
|
"shadow": (
|
|
|
|
property: box-shadow,
|
|
|
|
class: shadow,
|
|
|
|
values: (
|
|
|
|
null: $box-shadow,
|
2020-03-15 21:21:19 +01:00
|
|
|
sm: $box-shadow-sm,
|
2019-05-23 11:56:03 +02:00
|
|
|
lg: $box-shadow-lg,
|
|
|
|
none: none,
|
|
|
|
)
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-shadow
|
2022-12-29 23:19:22 +01:00
|
|
|
// scss-docs-start utils-focus-ring
|
|
|
|
"focus-ring": (
|
|
|
|
css-var: true,
|
|
|
|
css-variable-name: focus-ring-color,
|
|
|
|
class: focus-ring,
|
|
|
|
values: map-loop($theme-colors-rgb, rgba-css-var, "$key", "focus-ring")
|
|
|
|
),
|
|
|
|
// scss-docs-end utils-focus-ring
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start utils-position
|
2019-05-23 11:56:03 +02:00
|
|
|
"position": (
|
|
|
|
property: position,
|
|
|
|
values: static relative absolute fixed sticky
|
|
|
|
),
|
2020-09-21 04:42:41 +02:00
|
|
|
"top": (
|
|
|
|
property: top,
|
|
|
|
values: $position-values
|
|
|
|
),
|
|
|
|
"bottom": (
|
|
|
|
property: bottom,
|
|
|
|
values: $position-values
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"start": (
|
2020-09-21 04:42:41 +02:00
|
|
|
property: left,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: start,
|
2020-09-21 04:42:41 +02:00
|
|
|
values: $position-values
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"end": (
|
2020-09-21 04:42:41 +02:00
|
|
|
property: right,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: end,
|
2020-09-21 04:42:41 +02:00
|
|
|
values: $position-values
|
|
|
|
),
|
|
|
|
"translate-middle": (
|
|
|
|
property: transform,
|
|
|
|
class: translate-middle,
|
|
|
|
values: (
|
2020-11-29 15:58:20 +01:00
|
|
|
null: translate(-50%, -50%),
|
|
|
|
x: translateX(-50%),
|
|
|
|
y: translateY(-50%),
|
2020-09-21 04:42:41 +02:00
|
|
|
)
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-position
|
|
|
|
// scss-docs-start utils-borders
|
2019-05-23 11:56:03 +02:00
|
|
|
"border": (
|
|
|
|
property: border,
|
|
|
|
values: (
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
2019-05-23 11:56:03 +02:00
|
|
|
0: 0,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"border-top": (
|
|
|
|
property: border-top,
|
|
|
|
values: (
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
2019-05-23 11:56:03 +02:00
|
|
|
0: 0,
|
|
|
|
)
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"border-end": (
|
2019-05-23 11:56:03 +02:00
|
|
|
property: border-right,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: border-end,
|
2019-05-23 11:56:03 +02:00
|
|
|
values: (
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
2019-05-23 11:56:03 +02:00
|
|
|
0: 0,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"border-bottom": (
|
|
|
|
property: border-bottom,
|
|
|
|
values: (
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
2019-05-23 11:56:03 +02:00
|
|
|
0: 0,
|
|
|
|
)
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"border-start": (
|
2019-05-23 11:56:03 +02:00
|
|
|
property: border-left,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: border-start,
|
2019-05-23 11:56:03 +02:00
|
|
|
values: (
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
2019-05-23 11:56:03 +02:00
|
|
|
0: 0,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"border-color": (
|
2022-04-07 02:35:31 +02:00
|
|
|
property: border-color,
|
2019-05-23 11:56:03 +02:00
|
|
|
class: border,
|
2022-05-06 06:32:02 +02:00
|
|
|
local-vars: (
|
|
|
|
"border-opacity": 1
|
|
|
|
),
|
2021-11-30 06:14:17 +01:00
|
|
|
values: $utilities-border-colors
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 07:30:26 +01:00
|
|
|
"subtle-border-color": (
|
|
|
|
property: border-color,
|
|
|
|
class: border,
|
|
|
|
values: $utilities-border-subtle
|
|
|
|
),
|
2020-09-09 10:28:52 +02:00
|
|
|
"border-width": (
|
2023-02-04 08:30:59 +01:00
|
|
|
property: border-width,
|
2020-09-09 10:28:52 +02:00
|
|
|
class: border,
|
|
|
|
values: $border-widths
|
|
|
|
),
|
2022-05-06 06:32:02 +02:00
|
|
|
"border-opacity": (
|
|
|
|
css-var: true,
|
|
|
|
class: border-opacity,
|
|
|
|
values: (
|
|
|
|
10: .1,
|
|
|
|
25: .25,
|
|
|
|
50: .5,
|
|
|
|
75: .75,
|
|
|
|
100: 1
|
|
|
|
)
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-borders
|
2019-05-23 11:56:03 +02:00
|
|
|
// Sizing utilities
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start utils-sizing
|
2019-05-23 11:56:03 +02:00
|
|
|
"width": (
|
|
|
|
property: width,
|
|
|
|
class: w,
|
|
|
|
values: (
|
|
|
|
25: 25%,
|
|
|
|
50: 50%,
|
|
|
|
75: 75%,
|
|
|
|
100: 100%,
|
|
|
|
auto: auto
|
|
|
|
)
|
|
|
|
),
|
2019-08-17 20:19:00 +02:00
|
|
|
"max-width": (
|
|
|
|
property: max-width,
|
|
|
|
class: mw,
|
|
|
|
values: (100: 100%)
|
|
|
|
),
|
|
|
|
"viewport-width": (
|
|
|
|
property: width,
|
|
|
|
class: vw,
|
|
|
|
values: (100: 100vw)
|
|
|
|
),
|
|
|
|
"min-viewport-width": (
|
|
|
|
property: min-width,
|
|
|
|
class: min-vw,
|
|
|
|
values: (100: 100vw)
|
|
|
|
),
|
2019-05-23 11:56:03 +02:00
|
|
|
"height": (
|
|
|
|
property: height,
|
|
|
|
class: h,
|
|
|
|
values: (
|
|
|
|
25: 25%,
|
|
|
|
50: 50%,
|
|
|
|
75: 75%,
|
|
|
|
100: 100%,
|
|
|
|
auto: auto
|
|
|
|
)
|
|
|
|
),
|
2019-08-17 20:19:00 +02:00
|
|
|
"max-height": (
|
|
|
|
property: max-height,
|
|
|
|
class: mh,
|
|
|
|
values: (100: 100%)
|
|
|
|
),
|
|
|
|
"viewport-height": (
|
|
|
|
property: height,
|
|
|
|
class: vh,
|
|
|
|
values: (100: 100vh)
|
|
|
|
),
|
|
|
|
"min-viewport-height": (
|
|
|
|
property: min-height,
|
|
|
|
class: min-vh,
|
|
|
|
values: (100: 100vh)
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-sizing
|
2019-05-23 11:56:03 +02:00
|
|
|
// Flex utilities
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start utils-flex
|
2019-05-23 11:56:03 +02:00
|
|
|
"flex": (
|
|
|
|
responsive: true,
|
|
|
|
property: flex,
|
|
|
|
values: (fill: 1 1 auto)
|
|
|
|
),
|
|
|
|
"flex-direction": (
|
|
|
|
responsive: true,
|
|
|
|
property: flex-direction,
|
|
|
|
class: flex,
|
|
|
|
values: row column row-reverse column-reverse
|
|
|
|
),
|
|
|
|
"flex-grow": (
|
|
|
|
responsive: true,
|
|
|
|
property: flex-grow,
|
|
|
|
class: flex,
|
|
|
|
values: (
|
|
|
|
grow-0: 0,
|
|
|
|
grow-1: 1,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"flex-shrink": (
|
|
|
|
responsive: true,
|
|
|
|
property: flex-shrink,
|
|
|
|
class: flex,
|
|
|
|
values: (
|
|
|
|
shrink-0: 0,
|
|
|
|
shrink-1: 1,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"flex-wrap": (
|
|
|
|
responsive: true,
|
|
|
|
property: flex-wrap,
|
|
|
|
class: flex,
|
|
|
|
values: wrap nowrap wrap-reverse
|
|
|
|
),
|
|
|
|
"justify-content": (
|
|
|
|
responsive: true,
|
|
|
|
property: justify-content,
|
|
|
|
values: (
|
|
|
|
start: flex-start,
|
|
|
|
end: flex-end,
|
|
|
|
center: center,
|
|
|
|
between: space-between,
|
|
|
|
around: space-around,
|
2020-05-30 15:19:10 +02:00
|
|
|
evenly: space-evenly,
|
2019-05-23 11:56:03 +02:00
|
|
|
)
|
|
|
|
),
|
|
|
|
"align-items": (
|
|
|
|
responsive: true,
|
|
|
|
property: align-items,
|
|
|
|
values: (
|
|
|
|
start: flex-start,
|
|
|
|
end: flex-end,
|
|
|
|
center: center,
|
|
|
|
baseline: baseline,
|
|
|
|
stretch: stretch,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"align-content": (
|
|
|
|
responsive: true,
|
|
|
|
property: align-content,
|
|
|
|
values: (
|
|
|
|
start: flex-start,
|
|
|
|
end: flex-end,
|
|
|
|
center: center,
|
|
|
|
between: space-between,
|
|
|
|
around: space-around,
|
|
|
|
stretch: stretch,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"align-self": (
|
|
|
|
responsive: true,
|
|
|
|
property: align-self,
|
|
|
|
values: (
|
|
|
|
auto: auto,
|
|
|
|
start: flex-start,
|
|
|
|
end: flex-end,
|
|
|
|
center: center,
|
|
|
|
baseline: baseline,
|
|
|
|
stretch: stretch,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"order": (
|
|
|
|
responsive: true,
|
|
|
|
property: order,
|
|
|
|
values: (
|
|
|
|
first: -1,
|
|
|
|
0: 0,
|
|
|
|
1: 1,
|
|
|
|
2: 2,
|
|
|
|
3: 3,
|
|
|
|
4: 4,
|
|
|
|
5: 5,
|
2019-06-18 07:02:14 +02:00
|
|
|
last: 6,
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-flex
|
2019-05-23 11:56:03 +02:00
|
|
|
// Margin utilities
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start utils-spacing
|
2019-05-23 11:56:03 +02:00
|
|
|
"margin": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin,
|
|
|
|
class: m,
|
|
|
|
values: map-merge($spacers, (auto: auto))
|
|
|
|
),
|
|
|
|
"margin-x": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin-right margin-left,
|
|
|
|
class: mx,
|
|
|
|
values: map-merge($spacers, (auto: auto))
|
|
|
|
),
|
|
|
|
"margin-y": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin-top margin-bottom,
|
|
|
|
class: my,
|
|
|
|
values: map-merge($spacers, (auto: auto))
|
|
|
|
),
|
|
|
|
"margin-top": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin-top,
|
|
|
|
class: mt,
|
|
|
|
values: map-merge($spacers, (auto: auto))
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"margin-end": (
|
2019-05-23 11:56:03 +02:00
|
|
|
responsive: true,
|
|
|
|
property: margin-right,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: me,
|
2019-05-23 11:56:03 +02:00
|
|
|
values: map-merge($spacers, (auto: auto))
|
|
|
|
),
|
|
|
|
"margin-bottom": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin-bottom,
|
|
|
|
class: mb,
|
|
|
|
values: map-merge($spacers, (auto: auto))
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"margin-start": (
|
2019-05-23 11:56:03 +02:00
|
|
|
responsive: true,
|
|
|
|
property: margin-left,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: ms,
|
2019-05-23 11:56:03 +02:00
|
|
|
values: map-merge($spacers, (auto: auto))
|
|
|
|
),
|
|
|
|
// Negative margin utilities
|
|
|
|
"negative-margin": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin,
|
|
|
|
class: m,
|
|
|
|
values: $negative-spacers
|
|
|
|
),
|
|
|
|
"negative-margin-x": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin-right margin-left,
|
|
|
|
class: mx,
|
|
|
|
values: $negative-spacers
|
|
|
|
),
|
|
|
|
"negative-margin-y": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin-top margin-bottom,
|
|
|
|
class: my,
|
|
|
|
values: $negative-spacers
|
|
|
|
),
|
|
|
|
"negative-margin-top": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin-top,
|
|
|
|
class: mt,
|
|
|
|
values: $negative-spacers
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"negative-margin-end": (
|
2019-05-23 11:56:03 +02:00
|
|
|
responsive: true,
|
|
|
|
property: margin-right,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: me,
|
2019-05-23 11:56:03 +02:00
|
|
|
values: $negative-spacers
|
|
|
|
),
|
|
|
|
"negative-margin-bottom": (
|
|
|
|
responsive: true,
|
|
|
|
property: margin-bottom,
|
|
|
|
class: mb,
|
|
|
|
values: $negative-spacers
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"negative-margin-start": (
|
2019-05-23 11:56:03 +02:00
|
|
|
responsive: true,
|
|
|
|
property: margin-left,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: ms,
|
2019-05-23 11:56:03 +02:00
|
|
|
values: $negative-spacers
|
|
|
|
),
|
|
|
|
// Padding utilities
|
|
|
|
"padding": (
|
|
|
|
responsive: true,
|
|
|
|
property: padding,
|
|
|
|
class: p,
|
|
|
|
values: $spacers
|
|
|
|
),
|
|
|
|
"padding-x": (
|
|
|
|
responsive: true,
|
|
|
|
property: padding-right padding-left,
|
|
|
|
class: px,
|
|
|
|
values: $spacers
|
|
|
|
),
|
|
|
|
"padding-y": (
|
|
|
|
responsive: true,
|
|
|
|
property: padding-top padding-bottom,
|
|
|
|
class: py,
|
|
|
|
values: $spacers
|
|
|
|
),
|
|
|
|
"padding-top": (
|
|
|
|
responsive: true,
|
|
|
|
property: padding-top,
|
|
|
|
class: pt,
|
|
|
|
values: $spacers
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"padding-end": (
|
2019-05-23 11:56:03 +02:00
|
|
|
responsive: true,
|
|
|
|
property: padding-right,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: pe,
|
2019-05-23 11:56:03 +02:00
|
|
|
values: $spacers
|
|
|
|
),
|
|
|
|
"padding-bottom": (
|
|
|
|
responsive: true,
|
|
|
|
property: padding-bottom,
|
|
|
|
class: pb,
|
|
|
|
values: $spacers
|
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"padding-start": (
|
2019-05-23 11:56:03 +02:00
|
|
|
responsive: true,
|
|
|
|
property: padding-left,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: ps,
|
2019-05-23 11:56:03 +02:00
|
|
|
values: $spacers
|
|
|
|
),
|
2021-12-12 18:19:19 +01:00
|
|
|
// Gap utility
|
|
|
|
"gap": (
|
|
|
|
responsive: true,
|
|
|
|
property: gap,
|
|
|
|
class: gap,
|
|
|
|
values: $spacers
|
|
|
|
),
|
2022-11-16 03:51:44 +01:00
|
|
|
"row-gap": (
|
|
|
|
responsive: true,
|
|
|
|
property: row-gap,
|
|
|
|
class: row-gap,
|
|
|
|
values: $spacers
|
|
|
|
),
|
|
|
|
"column-gap": (
|
|
|
|
responsive: true,
|
|
|
|
property: column-gap,
|
|
|
|
class: column-gap,
|
|
|
|
values: $spacers
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-spacing
|
2019-05-23 11:56:03 +02:00
|
|
|
// Text
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start utils-text
|
|
|
|
"font-family": (
|
|
|
|
property: font-family,
|
|
|
|
class: font,
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
values: (monospace: var(--#{$prefix}font-monospace))
|
2021-02-11 04:29:59 +01:00
|
|
|
),
|
2020-10-27 00:42:07 +01:00
|
|
|
"font-size": (
|
|
|
|
rfs: true,
|
|
|
|
property: font-size,
|
|
|
|
class: fs,
|
|
|
|
values: $font-sizes
|
|
|
|
),
|
|
|
|
"font-style": (
|
|
|
|
property: font-style,
|
|
|
|
class: fst,
|
|
|
|
values: italic normal
|
|
|
|
),
|
2019-05-23 11:56:03 +02:00
|
|
|
"font-weight": (
|
|
|
|
property: font-weight,
|
2020-10-31 18:27:17 +01:00
|
|
|
class: fw,
|
2019-05-23 11:56:03 +02:00
|
|
|
values: (
|
|
|
|
lighter: $font-weight-lighter,
|
2022-10-03 19:52:02 +02:00
|
|
|
light: $font-weight-light,
|
2019-05-23 11:56:03 +02:00
|
|
|
normal: $font-weight-normal,
|
2022-10-03 19:52:02 +02:00
|
|
|
medium: $font-weight-medium,
|
2022-03-01 02:22:14 +01:00
|
|
|
semibold: $font-weight-semibold,
|
2022-10-03 19:52:02 +02:00
|
|
|
bold: $font-weight-bold,
|
2019-05-23 11:56:03 +02:00
|
|
|
bolder: $font-weight-bolder
|
|
|
|
)
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
"line-height": (
|
|
|
|
property: line-height,
|
|
|
|
class: lh,
|
|
|
|
values: (
|
|
|
|
1: 1,
|
|
|
|
sm: $line-height-sm,
|
|
|
|
base: $line-height-base,
|
|
|
|
lg: $line-height-lg,
|
|
|
|
)
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
|
|
|
"text-align": (
|
|
|
|
responsive: true,
|
|
|
|
property: text-align,
|
|
|
|
class: text,
|
2020-06-26 16:06:20 +02:00
|
|
|
values: (
|
|
|
|
start: left,
|
|
|
|
end: right,
|
|
|
|
center: center,
|
|
|
|
)
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
"text-decoration": (
|
|
|
|
property: text-decoration,
|
|
|
|
values: none underline line-through
|
|
|
|
),
|
|
|
|
"text-transform": (
|
|
|
|
property: text-transform,
|
|
|
|
class: text,
|
|
|
|
values: lowercase uppercase capitalize
|
|
|
|
),
|
|
|
|
"white-space": (
|
|
|
|
property: white-space,
|
|
|
|
class: text,
|
|
|
|
values: (
|
|
|
|
wrap: normal,
|
|
|
|
nowrap: nowrap,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"word-wrap": (
|
|
|
|
property: word-wrap word-break,
|
|
|
|
class: text,
|
|
|
|
values: (break: break-word),
|
|
|
|
rtl: false
|
|
|
|
),
|
|
|
|
// scss-docs-end utils-text
|
2021-01-16 23:06:19 +01:00
|
|
|
// scss-docs-start utils-color
|
2019-05-23 11:56:03 +02:00
|
|
|
"color": (
|
|
|
|
property: color,
|
|
|
|
class: text,
|
2021-05-24 20:56:19 +02:00
|
|
|
local-vars: (
|
|
|
|
"text-opacity": 1
|
|
|
|
),
|
2019-08-17 20:19:00 +02:00
|
|
|
values: map-merge(
|
2021-05-24 20:56:19 +02:00
|
|
|
$utilities-text-colors,
|
2019-08-17 20:19:00 +02:00
|
|
|
(
|
2023-01-17 00:55:28 +01:00
|
|
|
"muted": var(--#{$prefix}secondary-color), // deprecated
|
2021-05-24 20:56:19 +02:00
|
|
|
"black-50": rgba($black, .5), // deprecated
|
|
|
|
"white-50": rgba($white, .5), // deprecated
|
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 07:30:26 +01:00
|
|
|
"body-secondary": var(--#{$prefix}secondary-color),
|
|
|
|
"body-tertiary": var(--#{$prefix}tertiary-color),
|
|
|
|
"body-emphasis": var(--#{$prefix}emphasis-color),
|
2019-11-24 20:20:03 +01:00
|
|
|
"reset": inherit,
|
2019-08-17 20:19:00 +02:00
|
|
|
)
|
2019-05-23 11:56:03 +02:00
|
|
|
)
|
|
|
|
),
|
2021-05-24 20:56:19 +02:00
|
|
|
"text-opacity": (
|
|
|
|
css-var: true,
|
|
|
|
class: text-opacity,
|
|
|
|
values: (
|
|
|
|
25: .25,
|
|
|
|
50: .5,
|
|
|
|
75: .75,
|
|
|
|
100: 1
|
|
|
|
)
|
|
|
|
),
|
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 07:30:26 +01:00
|
|
|
"text-color": (
|
|
|
|
property: color,
|
|
|
|
class: text,
|
|
|
|
values: $utilities-text-emphasis-colors
|
|
|
|
),
|
2021-01-16 23:06:19 +01:00
|
|
|
// scss-docs-end utils-color
|
2023-01-04 07:23:46 +01:00
|
|
|
// scss-docs-start utils-links
|
|
|
|
"link-opacity": (
|
|
|
|
css-var: true,
|
|
|
|
class: link-opacity,
|
|
|
|
state: hover,
|
|
|
|
values: (
|
|
|
|
10: .1,
|
|
|
|
25: .25,
|
|
|
|
50: .5,
|
|
|
|
75: .75,
|
|
|
|
100: 1
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"link-offset": (
|
|
|
|
property: text-underline-offset,
|
|
|
|
class: link-offset,
|
|
|
|
state: hover,
|
|
|
|
values: (
|
|
|
|
1: .125em,
|
|
|
|
2: .25em,
|
|
|
|
3: .375em,
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"link-underline": (
|
|
|
|
property: text-decoration-color,
|
|
|
|
class: link-underline,
|
|
|
|
local-vars: (
|
|
|
|
"link-underline-opacity": 1
|
|
|
|
),
|
|
|
|
values: map-merge(
|
|
|
|
$utilities-links-underline,
|
|
|
|
(
|
|
|
|
null: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-underline-opacity, 1)),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
"link-underline-opacity": (
|
|
|
|
css-var: true,
|
|
|
|
class: link-underline-opacity,
|
|
|
|
state: hover,
|
|
|
|
values: (
|
2023-03-02 07:45:25 +01:00
|
|
|
0: 0,
|
2023-01-04 07:23:46 +01:00
|
|
|
10: .1,
|
|
|
|
25: .25,
|
|
|
|
50: .5,
|
|
|
|
75: .75,
|
|
|
|
100: 1
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// scss-docs-end utils-links
|
2021-01-16 23:06:19 +01:00
|
|
|
// scss-docs-start utils-bg-color
|
2019-05-23 11:56:03 +02:00
|
|
|
"background-color": (
|
|
|
|
property: background-color,
|
|
|
|
class: bg,
|
2021-05-24 20:56:19 +02:00
|
|
|
local-vars: (
|
|
|
|
"bg-opacity": 1
|
|
|
|
),
|
2019-05-23 11:56:03 +02:00
|
|
|
values: map-merge(
|
2021-05-24 20:56:19 +02:00
|
|
|
$utilities-bg-colors,
|
2019-05-23 11:56:03 +02:00
|
|
|
(
|
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 07:30:26 +01:00
|
|
|
"transparent": transparent,
|
|
|
|
"body-secondary": rgba(var(--#{$prefix}secondary-bg-rgb), var(--#{$prefix}bg-opacity)),
|
|
|
|
"body-tertiary": rgba(var(--#{$prefix}tertiary-bg-rgb), var(--#{$prefix}bg-opacity)),
|
2019-05-23 11:56:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
2021-05-24 20:56:19 +02:00
|
|
|
"bg-opacity": (
|
|
|
|
css-var: true,
|
|
|
|
class: bg-opacity,
|
|
|
|
values: (
|
|
|
|
10: .1,
|
|
|
|
25: .25,
|
|
|
|
50: .5,
|
|
|
|
75: .75,
|
|
|
|
100: 1
|
|
|
|
)
|
|
|
|
),
|
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 07:30:26 +01:00
|
|
|
"subtle-background-color": (
|
|
|
|
property: background-color,
|
|
|
|
class: bg,
|
|
|
|
values: $utilities-bg-subtle
|
|
|
|
),
|
2021-01-16 23:06:19 +01:00
|
|
|
// scss-docs-end utils-bg-color
|
2020-04-14 16:28:20 +02:00
|
|
|
"gradient": (
|
|
|
|
property: background-image,
|
|
|
|
class: bg,
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
values: (gradient: var(--#{$prefix}gradient))
|
2020-04-14 16:28:20 +02:00
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start utils-interaction
|
2020-02-14 08:24:16 +01:00
|
|
|
"user-select": (
|
|
|
|
property: user-select,
|
|
|
|
values: all auto none
|
|
|
|
),
|
2020-02-23 01:07:33 +01:00
|
|
|
"pointer-events": (
|
|
|
|
property: pointer-events,
|
|
|
|
class: pe,
|
|
|
|
values: none auto,
|
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-interaction
|
|
|
|
// scss-docs-start utils-border-radius
|
2019-05-23 11:56:03 +02:00
|
|
|
"rounded": (
|
|
|
|
property: border-radius,
|
|
|
|
class: rounded,
|
|
|
|
values: (
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
null: var(--#{$prefix}border-radius),
|
2019-05-23 11:56:03 +02:00
|
|
|
0: 0,
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
1: var(--#{$prefix}border-radius-sm),
|
|
|
|
2: var(--#{$prefix}border-radius),
|
|
|
|
3: var(--#{$prefix}border-radius-lg),
|
|
|
|
4: var(--#{$prefix}border-radius-xl),
|
2023-01-06 20:46:03 +01:00
|
|
|
5: var(--#{$prefix}border-radius-xxl),
|
2020-10-30 21:42:11 +01:00
|
|
|
circle: 50%,
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* 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-03-13 18:13:09 +01:00
|
|
|
pill: var(--#{$prefix}border-radius-pill)
|
2019-05-23 11:56:03 +02:00
|
|
|
)
|
|
|
|
),
|
|
|
|
"rounded-top": (
|
|
|
|
property: border-top-left-radius border-top-right-radius,
|
|
|
|
class: rounded-top,
|
2022-10-03 20:52:41 +02:00
|
|
|
values: (
|
|
|
|
null: var(--#{$prefix}border-radius),
|
|
|
|
0: 0,
|
|
|
|
1: var(--#{$prefix}border-radius-sm),
|
|
|
|
2: var(--#{$prefix}border-radius),
|
|
|
|
3: var(--#{$prefix}border-radius-lg),
|
|
|
|
4: var(--#{$prefix}border-radius-xl),
|
2023-01-06 20:46:03 +01:00
|
|
|
5: var(--#{$prefix}border-radius-xxl),
|
2022-10-03 20:52:41 +02:00
|
|
|
circle: 50%,
|
|
|
|
pill: var(--#{$prefix}border-radius-pill)
|
|
|
|
)
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"rounded-end": (
|
2019-05-23 11:56:03 +02:00
|
|
|
property: border-top-right-radius border-bottom-right-radius,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: rounded-end,
|
2022-10-03 20:52:41 +02:00
|
|
|
values: (
|
|
|
|
null: var(--#{$prefix}border-radius),
|
|
|
|
0: 0,
|
|
|
|
1: var(--#{$prefix}border-radius-sm),
|
|
|
|
2: var(--#{$prefix}border-radius),
|
|
|
|
3: var(--#{$prefix}border-radius-lg),
|
|
|
|
4: var(--#{$prefix}border-radius-xl),
|
2023-01-06 20:46:03 +01:00
|
|
|
5: var(--#{$prefix}border-radius-xxl),
|
2022-10-03 20:52:41 +02:00
|
|
|
circle: 50%,
|
|
|
|
pill: var(--#{$prefix}border-radius-pill)
|
|
|
|
)
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
|
|
|
"rounded-bottom": (
|
|
|
|
property: border-bottom-right-radius border-bottom-left-radius,
|
|
|
|
class: rounded-bottom,
|
2022-10-03 20:52:41 +02:00
|
|
|
values: (
|
|
|
|
null: var(--#{$prefix}border-radius),
|
|
|
|
0: 0,
|
|
|
|
1: var(--#{$prefix}border-radius-sm),
|
|
|
|
2: var(--#{$prefix}border-radius),
|
|
|
|
3: var(--#{$prefix}border-radius-lg),
|
|
|
|
4: var(--#{$prefix}border-radius-xl),
|
2023-01-06 20:46:03 +01:00
|
|
|
5: var(--#{$prefix}border-radius-xxl),
|
2022-10-03 20:52:41 +02:00
|
|
|
circle: 50%,
|
|
|
|
pill: var(--#{$prefix}border-radius-pill)
|
|
|
|
)
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
2020-06-26 16:06:20 +02:00
|
|
|
"rounded-start": (
|
2019-05-23 11:56:03 +02:00
|
|
|
property: border-bottom-left-radius border-top-left-radius,
|
2020-06-26 16:06:20 +02:00
|
|
|
class: rounded-start,
|
2022-10-03 20:52:41 +02:00
|
|
|
values: (
|
|
|
|
null: var(--#{$prefix}border-radius),
|
|
|
|
0: 0,
|
|
|
|
1: var(--#{$prefix}border-radius-sm),
|
|
|
|
2: var(--#{$prefix}border-radius),
|
|
|
|
3: var(--#{$prefix}border-radius-lg),
|
|
|
|
4: var(--#{$prefix}border-radius-xl),
|
2023-01-06 20:46:03 +01:00
|
|
|
5: var(--#{$prefix}border-radius-xxl),
|
2022-10-03 20:52:41 +02:00
|
|
|
circle: 50%,
|
|
|
|
pill: var(--#{$prefix}border-radius-pill)
|
|
|
|
)
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-border-radius
|
|
|
|
// scss-docs-start utils-visibility
|
2019-08-17 20:19:00 +02:00
|
|
|
"visibility": (
|
|
|
|
property: visibility,
|
|
|
|
class: null,
|
|
|
|
values: (
|
|
|
|
visible: visible,
|
|
|
|
invisible: hidden,
|
|
|
|
)
|
2022-10-22 23:13:39 +02:00
|
|
|
),
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end utils-visibility
|
2023-01-06 04:59:59 +01:00
|
|
|
// scss-docs-start utils-zindex
|
2022-10-22 23:13:39 +02:00
|
|
|
"z-index": (
|
|
|
|
property: z-index,
|
|
|
|
class: z,
|
|
|
|
values: $zindex-levels,
|
|
|
|
)
|
2023-01-06 04:59:59 +01:00
|
|
|
// scss-docs-end utils-zindex
|
2019-05-23 11:56:03 +02:00
|
|
|
),
|
|
|
|
$utilities
|
|
|
|
);
|