UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

1 lines 31.5 kB
{"version":3,"sources":["<no source>","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/component/checkbox/style/_module.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/core/style/spacing/tool/_position.scss","%3Cinput%20css%201ZOFgf%3E","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/core/style/spacing/tool/_space.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/core/style/display/tool/_display.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/core/style/spacing/tool/_size.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/core/style/selector/tool/_pseudo.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/module/color/mixin/_element.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/module/color/mixin/_data-uri-svg.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/module/utilities/mixin/_nest.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/component/checkbox/style/_scheme.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/component/checkbox/deprecated/style/_module.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/module/media-query/mixin/_respond-from.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/module/shame/media-query/mixin/_order.scss"],"names":[],"mappings":"AAAA;;GAAA,ACOA,mBCCE,iBCUF,CFRE,wCGuBE,QAfE,CHLF,SAAA,CCLF,iBAAA,CDME,OAAA,CACA,0BEUJ,CFRI,8CAEE,uCAAA,CIAF,kBAAA,CARA,YAAA,CAIA,kBAAA,CAYA,cAAA,CAJA,0BAAA,CDME,gBAXA,CFVJ,iBC8BF,CFfM,4DGUF,QAfE,CEsCA,UHdN,CI1BE,qDNoBM,uBAAA,CACA,2BAAA,CAFA,oBAAA,CAGA,oBAAA,COGJ,yDAAA,CDtBE,UNYgB,CMRhB,aAAA,CDoCA,aAAA,CJxCF,UAAA,CEUE,kBAXA,CFVJ,iBAAA,CAEE,KAAA,CI8CE,YHAN,CIxCE,yDD2CI,WAAA,CLTI,aAAA,CGrBJ,iBAXA,CEsCA,UHMN,CI9CE,iCCyBE,oDL6BJ,CItDE,kEAGI,UNsCc,CKEd,WAAA,CJxCF,YAAA,CAXF,iBAAA,CAEE,KAAA,CI8CE,SHsBN,CI9DE,iCCyBE,sDLqCJ,CFTI,2CGxCE,gBDoDN,CIjEE,wICoCM,kBAAA,CAqCJ,kDAAA,CAAA,oDAAA,CCxDA,oNAAA,CDQA,qDAAA,CCEA,oCN0EJ,COnHI,4MDsCE,uNNgFN,CIxGE,8DCyBE,sDLmFJ,CI5GE,sECoCM,kBAAA,CAqCJ,6CAAA,CAAA,+CAAA,CCxDA,uNAAA,CDQA,gDAAA,CCEA,oCAAA,CDFA,+BL4FJ,COnII,wGDsCE,oNNgGN,CQzEM,qDHtBF,+BLmGJ,CQhEM,qDHnCF,iCLyGJ,CStIU,uERiBJ,eD4HN,CU1II;ECRI,cAAA,CXDR,CUSI;ECRI,cAAA,CXER,CUMI;ECRI,cAAA,CXKR,CUGI;ECRI,cAAA,CXQR","file":"checkbox.main.min.css","sourcesContent":[null,"////\n/// Checkbox Module\n/// @group checkbox\n////\n\n@use 'module/spacing';\n\n#{ns(checkbox-group)} {\n @include relative;\n\n input[type=\"checkbox\"] {\n @include absolute;\n @include margin(0);\n opacity: 0;\n top: 50%;\n transform: translateY(-50%);\n\n + label {\n @include relative;\n -webkit-tap-highlight-color: transparent;\n @include display-flex(row, center, flex-start, wrap);\n @include margin-left(8v);\n\n #{ns(hint-text)} {\n @include margin(0);\n @include size(100%);\n }\n\n /**\n * On ajoute l'icône check-line en taille sm via un pseudo element before\n */\n @include before('', block) {\n @include absolute(0, null, null, -8v);\n @include size(6v, 6v);\n @include margin-right(2v);\n background-size: spacing.space(4v);\n background-position: center;\n background-repeat: no-repeat;\n border-radius: spacing.space(1v);\n // transition: background-color 0.1s, color 0.1s;\n }\n }\n }\n\n &--sm {\n input[type=\"checkbox\"] {\n + label {\n @include before {\n @include size(4v, 4v);\n @include margin-top(1v);\n left: #{space(-7v)};\n }\n }\n }\n }\n\n &--error {\n @include before('') {\n @include absolute(0, null, null, -3v, 2px, 100%);\n }\n }\n\n &--valid {\n @include before('') {\n @include absolute(0, null, null, -3v, 2px, 100%);\n }\n }\n\n #{ns(message)} {\n &:first-child {\n @include margin-top(2v);\n }\n }\n}\n","////\n/// Core Tool : Spacing position\n/// @group core\n////\n\n@use 'module/spacing';\n\n@mixin position($position, $top: null, $right: null, $bottom: null, $left: null, $width: null, $height: null) {\n position: #{$position};\n @if $top != null {\n top: #{space($top)};\n }\n @if $right != null {\n right: #{space($right)};\n }\n @if $bottom != null {\n bottom: #{space($bottom)};\n }\n @if $left != null {\n left: #{space($left)};\n }\n\n @include size($width, $height);\n\n @content;\n}\n\n@mixin relative($top: null, $right: null, $bottom: null, $left: null, $width: null, $height: null) {\n @include position(relative, $top, $right, $bottom, $left, $width, $height);\n}\n\n@mixin absolute($top: null, $right: null, $bottom: null, $left: null, $width: null, $height: null) {\n @include position(absolute, $top, $right, $bottom, $left, $width, $height);\n}\n\n@mixin fixed($top: null, $right: null, $bottom: null, $left: null, $width: null, $height: null) {\n @include position(fixed, $top, $right, $bottom, $left, $width, $height);\n}\n\n@mixin sticky($top: null, $right: null, $bottom: null, $left: null, $width: null, $height: null) {\n @include position(sticky, $top, $right, $bottom, $left, $width, $height);\n}\n\n@mixin top($top) {\n top: spacing.space($top);\n}\n\n@mixin right($top) {\n right: spacing.space($top);\n}\n\n@mixin bottom($top) {\n bottom: spacing.space($top);\n}\n\n@mixin left($top) {\n left: spacing.space($top);\n}\n","@charset \"UTF-8\";\n/* ¯¯¯¯¯¯¯¯¯ *\\\n CHECKBOX\n\\* ˍˍˍˍˍˍˍˍˍ */\n@media (min-width: 36em) {\n /*! media sm */\n}\n@media (min-width: 48em) {\n /*! media md */\n}\n@media (min-width: 62em) {\n /*! media lg */\n}\n@media (min-width: 78em) {\n /*! media xl */\n}\n.fr-checkbox-group {\n position: relative;\n}\n.fr-checkbox-group input[type=checkbox] {\n position: absolute;\n margin: 0;\n opacity: 0;\n top: 50%;\n transform: translateY(-50%);\n}\n.fr-checkbox-group input[type=checkbox] + label {\n position: relative;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n margin-left: 2rem;\n /**\n * On ajoute l'icône check-line en taille sm via un pseudo element before\n */\n}\n.fr-checkbox-group input[type=checkbox] + label .fr-hint-text {\n margin: 0;\n width: 100%;\n}\n.fr-checkbox-group input[type=checkbox] + label::before {\n content: \"\";\n display: block;\n position: absolute;\n top: 0;\n left: -2rem;\n width: 1.5rem;\n height: 1.5rem;\n margin-right: 0.5rem;\n background-size: 1rem;\n background-position: center;\n background-repeat: no-repeat;\n border-radius: 0.25rem;\n}\n.fr-checkbox-group--sm input[type=checkbox] + label::before {\n width: 1rem;\n height: 1rem;\n margin-top: 0.25rem;\n left: -1.75rem;\n}\n.fr-checkbox-group--error::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: -0.75rem;\n width: 2px;\n height: 100%;\n}\n.fr-checkbox-group--valid::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: -0.75rem;\n width: 2px;\n height: 100%;\n}\n.fr-checkbox-group .fr-message:first-child {\n margin-top: 0.5rem;\n}\n\n/**\n * L'input de type checkbox avec son label est contenu dans un groupe\n * Ce groupe contient également les textes de validation, d'erreur et d'aide (optionnels)\n */\n.fr-checkbox-group {\n /**\n * On cache l'input de type checkbox pour le styler via le label\n */\n /**\n * Modificateur pour gérer l'état erreur\n */\n /**\n * Modificateur pour gérer l'état validé\n */\n}\n.fr-checkbox-group input[type=checkbox] {\n /**\n * On applique les styles au pseudo élément before du label quand l'input présente\n * un état check ou active\n */\n /**\n * Mixins pour appliquer les styles correspondant au focus ainsi qu'à l'état disabled\n */\n}\n.fr-checkbox-group input[type=checkbox] + label::before {\n box-shadow: inset 0 0 0 1px var(--border-action-high-grey);\n}\n.fr-checkbox-group input[type=checkbox]:checked + label::before, .fr-checkbox-group input[type=checkbox]:active:not(:disabled) + label::before {\n background-color: var(--background-active-blue-france);\n --idle: transparent;\n --hover: var(--background-active-blue-france-hover);\n --active: var(--background-active-blue-france-active);\n --data-uri-svg: url(\"data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M10 15.17l9.2-9.2 1.4 1.42L10 18l-6.36-6.36 1.4-1.42z'/></svg>\");\n background-image: var(--data-uri-svg);\n}\n:root:where([data-fr-theme=\"dark\"]) .fr-checkbox-group input[type=checkbox]:checked + label::before, :root:where([data-fr-theme=\"dark\"]) .fr-checkbox-group input[type=checkbox]:active:not(:disabled) + label::before {\n --data-uri-svg: url(\"data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23161616' d='M10 15.17l9.2-9.2 1.4 1.42L10 18l-6.36-6.36 1.4-1.42z'/></svg>\");\n}\n\n.fr-checkbox-group input[type=checkbox]:disabled + label::before {\n box-shadow: inset 0 0 0 1px var(--border-disabled-grey);\n}\n.fr-checkbox-group input[type=checkbox]:disabled:checked + label::before {\n color: var(--text-disabled-grey);\n background-color: var(--background-disabled-grey);\n --idle: transparent;\n --hover: var(--background-disabled-grey-hover);\n --active: var(--background-disabled-grey-active);\n --data-uri-svg: url(\"data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23929292' d='M10 15.17l9.2-9.2 1.4 1.42L10 18l-6.36-6.36 1.4-1.42z'/></svg>\");\n background-image: var(--data-uri-svg);\n}\n:root:where([data-fr-theme=\"dark\"]) .fr-checkbox-group input[type=checkbox]:disabled:checked + label::before {\n --data-uri-svg: url(\"data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23666' d='M10 15.17l9.2-9.2 1.4 1.42L10 18l-6.36-6.36 1.4-1.42z'/></svg>\");\n}\n\n.fr-checkbox-group--error input[type=checkbox] + label {\n color: var(--text-default-error);\n}\n.fr-checkbox-group--error::before {\n box-shadow: inset 2px 0 0 0 var(--border-plain-error);\n}\n.fr-checkbox-group--valid input[type=checkbox] + label {\n color: var(--text-default-success);\n}\n.fr-checkbox-group--valid::before {\n box-shadow: inset 2px 0 0 0 var(--border-plain-success);\n}\n\n.fr-fieldset .fr-fieldset__content .fr-checkbox-group--sm label::before {\n margin-top: 1rem;\n}","////\n/// Core Tool : Spacing space\n/// @group core\n////\n\n@use 'module/spacing';\n\n/// Set space property\n///\n/// @param {String} $property ['margin'] - propriété à appliquer à l'espacement `['margin', 'padding']`\n/// @param {Number | list} $value [2] - valeur de l'espacement en v ou w. peut être une liste si la direction n'est pas renseignée\n/// @param {String} $direction - direction de l'espacement `['x', 'y', 'top', 'right', 'bottom', 'left']`\n///\n/// @example scss - Set margin-bottom to 24px\n/// .foo {\n/// @include _spacing('margin', 6v, 'bottom');\n/// }\n@mixin _spacing($property: margin, $value: 0, $direction: null) {\n $v: spacing.space($value);\n @if $direction != null {\n @if $direction == 'x' {\n #{$property}-left: $v;\n #{$property}-right: $v;\n }\n @else if $direction == 'y' {\n #{$property}-top: $v;\n #{$property}-bottom: $v;\n }\n @else {\n #{$property}-#{$direction}: $v;\n }\n }\n @else {\n #{$property}: $v;\n }\n}\n\n@mixin _spacing-from($property: margin, $value: 0, $direction: null, $from: null) {\n @include respond-from($from) {\n @include _spacing($property, $value, $direction);\n }\n}\n\n@mixin padding($values: 0 0 0 0, $from: null) {\n @include _spacing-from(padding, $values, null, $from);\n}\n\n@mixin padding-x($value: 0, $from: null) {\n @include _spacing-from(padding, $value, 'x', $from);\n}\n\n@mixin padding-y($value: 0, $from: null) {\n @include _spacing-from(padding, $value, 'y', $from);\n}\n\n@mixin padding-top($value: 0, $from: null) {\n @include _spacing-from(padding, $value, 'top', $from);\n}\n\n@mixin padding-right($value: 0, $from: null) {\n @include _spacing-from(padding, $value, 'right', $from);\n}\n\n@mixin padding-bottom($value: 0, $from: null) {\n @include _spacing-from(padding, $value, 'bottom', $from);\n}\n\n@mixin padding-left($value: 0, $from: null) {\n @include _spacing-from(padding, $value, 'left', $from);\n}\n\n@mixin margin($values: 0 0 0 0, $from: null) {\n @include _spacing-from(margin, $values, null, $from);\n}\n\n@mixin margin-x($value: 0, $from: null) {\n @include _spacing-from(margin, $value, 'x', $from);\n}\n\n@mixin margin-y($value: 0, $from: null) {\n @include _spacing-from(margin, $value, 'y', $from);\n}\n\n@mixin margin-top($value: 0, $from: null) {\n @include _spacing-from(margin, $value, 'top', $from);\n}\n\n@mixin margin-right($value: 0, $from: null) {\n @include _spacing-from(margin, $value, 'right', $from);\n}\n\n@mixin margin-bottom($value: 0, $from: null) {\n @include _spacing-from(margin, $value, 'bottom', $from);\n}\n\n@mixin margin-left($value: 0, $from: null) {\n @include _spacing-from(margin, $value, 'left', $from);\n}\n","////\n/// Core Tool : Display display\n/// @group core\n////\n\n@mixin display-flex($flex-direction: row, $align-items: null, $justify-content: null, $flex-wrap: null, $inline: false) {\n\n @if $inline == true {\n display: inline-flex;\n }\n @else {\n display: flex;\n }\n\n @if $flex-direction != null {\n flex-direction: #{$flex-direction};\n }\n\n @if $align-items != null {\n align-items: #{$align-items};\n }\n\n @if $justify-content != null {\n justify-content: #{$justify-content};\n }\n\n @if $flex-wrap != null {\n flex-wrap: #{$flex-wrap};\n }\n}\n","////\n/// Core Tool : Spacing size\n/// @group core\n////\n\n@mixin width($width:null, $from: null) {\n @include respond-from($from) {\n @if $width != null {\n width: #{space($width)};\n }\n }\n}\n\n@mixin min-width($width:null, $from: null) {\n @include respond-from($from) {\n @if $width != null {\n min-width: #{space($width)};\n }\n }\n}\n\n@mixin max-width($width:null, $from: null) {\n @include respond-from($from) {\n @if $width != null {\n max-width: #{space($width)};\n }\n }\n}\n\n@mixin height($height:null, $from: null) {\n @include respond-from($from) {\n @if $height != null {\n height: #{space($height)};\n }\n }\n}\n\n@mixin min-height($height:null, $from: null) {\n @include respond-from($from) {\n @if $height != null {\n min-height: #{space($height)};\n }\n }\n}\n\n@mixin max-height($height:null, $from: null) {\n @include respond-from($from) {\n @if $height != null {\n max-height: #{space($height)};\n }\n }\n}\n\n@mixin size($width:null, $height:null, $from: null) {\n @include respond-from($from) {\n @if $width != null {\n width: #{space($width)};\n }\n @if $height != null {\n height: #{space($height)};\n }\n }\n}\n\n@mixin min-size($min-width:null, $min-height:null, $from: null) {\n @include respond-from($from) {\n @if $min-width != null {\n min-width: #{space($min-width)};\n }\n @if $min-height != null {\n min-height: #{space($min-height)};\n }\n }\n}\n\n@mixin max-size($max-width:null, $max-height:null, $from: null) {\n @include respond-from($from) {\n @if $max-width != null {\n max-width: #{space($max-width)};\n }\n @if $max-height != null {\n max-height: #{space($max-height)};\n }\n }\n}\n","////\n/// Core Tool : Selector pseudo\n/// @group core\n////\n\n@mixin _pseudo($type:before, $content:null, $display:null) {\n @if $type != after and $type != before and $type != marker and $type != (before after) {\n @error '$type must be before or after element';\n }\n\n $selector: ();\n\n @each $pseudo in $type {\n $selector: append($selector, '&::#{$pseudo}', 'comma');\n }\n\n #{$selector} {\n\n @if $content != null {\n content: $content;\n }\n\n @if $display != null {\n display: #{$display};\n }\n\n @content;\n }\n}\n\n@mixin before($content: null, $display: null) {\n @include _pseudo(before, $content, $display) {\n @content;\n }\n}\n\n@mixin after($content: null, $display: null) {\n @include _pseudo(after, $content, $display) {\n @content;\n }\n}\n\n@mixin marker($content: null, $display: null) {\n @include _pseudo(marker, $content, $display) {\n @content;\n }\n}\n","@use 'sass:list';\n@use 'sass:map';\n@use 'module/legacy';\n@use 'module/media-query';\n@use 'module/spacing';\n@use 'module/specificity';\n@use 'module/string';\n@use 'module/utilities';\n@use '../variable/constant';\n@use '../function/box-shadow' as bs;\n@use '../function/colors';\n@use '../function/result';\n@use '../function/token';\n\n$COLOR: constant.$value;\n\n@mixin _element($prop, $context, $tokens, $options: (), $value: $COLOR) {\n $legacy: map.get($options, legacy);\n $important: map.get($options, important);\n $hover: map.get($options, hover);\n $standalone: map.get($options, standalone);\n\n $legacy-target: null;\n @if $legacy {\n $legacy-target: ie11;\n }\n\n $tokens: token.normalise($tokens, $context);\n $type: decision;\n $options: (var: true);\n\n @if $legacy or $standalone {\n $type: hex;\n $option: (theme: light);\n }\n\n $colors: colors.from-list($tokens, $type, $options);\n $result: result.get($colors, $value);\n $result: specificity.important($result, $important);\n\n @include legacy.is($legacy-target) {\n #{$prop}: #{string.unstringify($result)};\n }\n\n @if ($hover == true or ($hover == inherit and $legacy == false)) and ($context == background and list.length($tokens) == 1) {\n\n $token: nth($tokens, 1);\n @if $legacy or $standalone {\n @include _apply-pseudos($token, false, true, $legacy-target, $prop, $value, $important);\n }\n @else {\n @if $prop == background-color {\n --idle: transparent; // #{$result};\n @include _apply-pseudos($token, true, false, null, $prop, $value, $important);\n }\n @else {\n @include _apply-pseudos($token, true, true, null, $prop, $value, $important);\n }\n }\n }\n}\n\n@mixin _apply-pseudos($token, $decision: true, $pseudo: false, $target: null, $prop: background-color, $value: constant.$value, $important: false) {\n @include legacy.is($target) {\n @include _apply-pseudo($token, hover, $decision, $pseudo, $prop, $value, $important);\n @include _apply-pseudo($token, active, $decision, $pseudo, $prop, $value, $important);\n }\n}\n\n@mixin _apply-pseudo($token, $type, $decision: true, $pseudo: false, $prop: background-color, $value: constant.$value, $important: false) {\n $nest: null;\n $p: --#{$type};\n @if $pseudo {\n $nest: '&:#{$type}';\n $p: $prop;\n }\n\n $t: hex;\n $options: (#{$type}: true);\n @if $decision {\n $t: decision;\n $options: (var: true, #{$type}: true);\n }\n\n $color: colors.from($token, $t, $options);\n $result: result.get($color, $value);\n $result: specificity.important($result, $important);\n\n @include utilities.nest($nest) {\n #{$p}: #{string.unstringify($result)};\n }\n}\n\n/// Ajout d'une couleur de background sur un élément\n/// @access public\n/// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n@mixin background($tokens, $options:()) {\n @if not map.has-key($options, hover) {\n $options: map.merge($options, (hover: inherit));\n }\n @include _element(background-color, background, $tokens, $options);\n}\n\n/// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n/// - hover {boolean}: si true, surcharge la valeur de blend pour être héritée\n@mixin transparent-background($options) {\n $legacy: map.get($options, legacy);\n $important: map.get($options, important);\n $hover: map.get($options, hover);\n $tokens: token.normalise(default grey, background);\n $value: specificity.important(transparent, $important);\n\n @if $legacy {\n @include legacy.is(ie11) {\n background-color: transparent;\n\n @if $hover {\n &:hover {\n background-color: rgba(0, 0, 0, 0.05);\n }\n\n &:active {\n background-color: rgba(0, 0, 0, 0.1);\n }\n }\n }\n }\n @else {\n background-color: #{$value};\n @if $hover {\n --hover: inherit;\n --active: inherit;\n }\n }\n}\n\n/// Ajout d'une couleur de background sur un élément\n/// @access public\n/// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n@mixin background-image($tokens, $options, $value: linear-gradient(0deg, $COLOR, $COLOR)) {\n $d: token.length($tokens);\n @if $d > 1 and $value == linear-gradient(0deg, $COLOR, $COLOR) {\n $transformed: ();\n @for $i from 1 through $d {\n $c: string.unquote('$color##{$i}');\n $transformed: list.append($transformed, linear-gradient(0deg, $c, $c), comma);\n }\n $value: $transformed;\n }\n @include _element(background-image, background, $tokens, $options, $value);\n}\n\n/// Ajout d'une couleur de texte sur un élément\n/// @access public\n/// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n@mixin text($tokens, $options) {\n @include _element(color, text, $tokens, $options);\n}\n\n/// Ajout d'une couleur de texte sur un élément\n/// @access public\n/// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n@mixin text-fill($tokens, $options) {\n @include _element(-webkit-text-fill-color, text, $tokens, $options);\n}\n\n/// Ajout d'une couleur de fill sur un élément\n/// @access public\n/// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n@mixin fill($tokens, $options) {\n @include _element(fill, background , $tokens, $options);\n}\n\n/// Ajout d'une couleur de border sur un élément\n/// @access public\n/// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n/// - side {String}: le côté affecté. valeurs: top, right, bottom, left\n/// @param {List} $value - définition des propriétés de border\n@mixin border($tokens, $options, $value:1px solid $COLOR) {\n $prop:border;\n @if map.has-key($options, side) {\n $prop:border-#{map.get($options, side)};\n }\n @include _element($prop, border, $tokens, $options, $value);\n}\n\n@mixin no-border($options: ()) {\n $breakpoint: map.get($options, breakpoint);\n $legacy: map.get($options, legacy);\n @include media-query.respond-from($breakpoint) {\n @if $legacy {\n @include legacy.is(ie11) {\n border: 0;\n }\n }\n @else {\n border: 0;\n }\n }\n}\n\n/// Ajout d'une couleur d'outline sur un élément\n/// @access public\n/// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n/// @param {List} $value - définition des propriétés d'outline\n@mixin outline($tokens, $options, $value:1px solid $COLOR) {\n @include _element(outline, border, $tokens, $options, $value);\n}\n\n/// Ajout d'une couleur de box-shadow sur un élément\n/// @access public\n/// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n/// @param {List} $value - définition des propriétés de box-shadow\n@mixin box-shadow($tokens, $options, $value: all-1-in) {\n $has-keys: true;\n $transformed: ();\n $d: token.length($tokens);\n $i: 1;\n @each $v in $value {\n @if bs.has($v) {\n $transformed: append($transformed, bs.get($v, $i), comma);\n @if $i < $d {\n $i: $i + 1;\n }\n }\n @else {\n $has-keys: false;\n }\n }\n @if $has-keys {\n $value: $transformed;\n }\n @include _element(box-shadow, border, $tokens, $options, spacing.space($value));\n}\n\n/// Supprime la shadow-box sur l'élément\n/// @access public\n/// @param {string} $breakpoint - la shadow-box est retiré à partir d'un breakpoint si celui-ci est défini\n@mixin no-box-shadow($options) {\n $breakpoint: map.get($options, breakpoint);\n $legacy: map.get($options, legacy);\n @include media-query.respond-from($breakpoint) {\n @if $legacy {\n @include legacy.is(ie11) {\n box-shadow: none;\n }\n }\n @else {\n box-shadow: none;\n }\n }\n}\n","@use 'sass:map';\n@use 'module/specificity';\n@use 'module/legacy';\n@use 'module/selector/mixin/theme' as selector;\n@use 'module/utilities';\n@use 'module/string';\n@use '../function/token';\n@use '../function/colors';\n@use '../function/result';\n\n/// Combinaison de couleur appliquée à un svg intégré en data-uri\n/// @access public\n// @param {list} $tokens - liste des tokens de décision\n/// @param {map} $options - map des options :\n/// - legacy {boolean}: version pour navigateurs modernes ou anciens.\n/// - important {boolean}: si true, applique !important à la règle css\n/// @param {Object} $value - le SVG en data-uri\n/// @param {String} $prop - propriété sur laquelle est assignée le svg\n/// @example @include scheme-element-data-uri-svg(text title grey, false, \"<svg><path fill='$COLOR'></path></svg>\"));\n@mixin data-uri-svg($tokens, $options: (), $value: \"<svg><path fill='$COLOR'></path></svg>\", $prop: background-image) {\n $legacy: map.get($options, legacy);\n $important: map.get($options, important);\n $tokens: token.normalise($tokens);\n $light-colors: colors.from-list($tokens, hex, (theme: light));\n $light: result.get($light-colors, $value);\n $light: specificity.important($light, $important);\n\n @if $legacy {\n @include legacy.is(ie11) {\n #{$prop}: #{url(utilities.data-uri(string.encode-svg($light, true), svg))};\n }\n }\n @else {\n --data-uri-svg: #{url(utilities.data-uri(string.encode-svg($light, false), svg))};\n\n $dark-colors: colors.from-list($tokens, hex, (theme: dark));\n $dark: result.get($dark-colors, $value);\n $dark: specificity.important($dark, $important);\n\n @include selector.theme(dark) {\n --data-uri-svg: #{url(utilities.data-uri(string.encode-svg($dark, false), svg))};\n }\n\n #{$prop}: var(--data-uri-svg);\n }\n}\n","@mixin nest($selector: null) {\n @if $selector {\n #{$selector} {\n @content;\n }\n }\n @else {\n @content;\n }\n}\n","////\n/// Checkbox Scheme\n/// @group checkboxe\n////\n\n@use 'module/color';\n@use 'module/disabled';\n\n/**\n * L'input de type checkbox avec son label est contenu dans un groupe\n * Ce groupe contient également les textes de validation, d'erreur et d'aide (optionnels)\n */\n@mixin _checkbox-scheme($legacy: false) {\n #{ns(checkbox-group)} {\n /**\n * On cache l'input de type checkbox pour le styler via le label\n */\n input[type=\"checkbox\"] {\n + label {\n @include before {\n @include color.box-shadow(action-high grey, (legacy:$legacy));\n }\n }\n\n /**\n * On applique les styles au pseudo élément before du label quand l'input présente\n * un état check ou active\n */\n &:checked,\n &:active:not(:disabled) {\n + label {\n @include before {\n @include color.background(active blue-france, (legacy:$legacy));\n @include color.data-uri-svg(inverted grey, (legacy: $legacy), $checkbox-svg);\n }\n }\n }\n\n /**\n * Mixins pour appliquer les styles correspondant au focus ainsi qu'à l'état disabled\n */\n @include disabled.selector {\n & + label {\n @include before {\n @include disabled.colors((legacy: $legacy, box-shadow: true));\n }\n }\n\n &:checked {\n & + label {\n @include before {\n @include disabled.colors((legacy: $legacy, text: true, background: true));\n @include color.data-uri-svg(text disabled grey, (legacy: $legacy), $checkbox-svg);\n }\n }\n }\n }\n }\n\n /**\n * Modificateur pour gérer l'état erreur\n */\n &--error {\n input[type=\"checkbox\"] + label {\n @include color.text(default error, (legacy:$legacy));\n }\n\n @include before {\n @include color.box-shadow(plain error, (legacy:$legacy), left-2-in);\n }\n }\n\n /**\n * Modificateur pour gérer l'état validé\n */\n &--valid {\n input[type=\"checkbox\"] + label {\n @include color.text(default success, (legacy:$legacy));\n }\n\n @include before {\n @include color.box-shadow(plain success, (legacy:$legacy), left-2-in);\n }\n }\n }\n}\n","////\n/// Checkbox Module\n/// @group checkbox\n////\n\n@use 'module/spacing';\n\n#{ns(fieldset)} {\n #{ns(fieldset__content)} {\n #{ns-group(checkbox)} {\n &--sm {\n label {\n &::before {\n @include margin-top(4v);\n }\n }\n }\n }\n }\n}\n","@use '../variable/breakpoints';\n\n/// Set media query styles\n///\n/// @param {String} $media [md] - Layout size `['xs', 'sm', 'md', 'lg', 'xl']`\n///\n/// @example scss -\n/// .foo {\n/// @include respond-from(md) {\n/// }\n/// }\n@mixin respond-from($media) {\n $limits: map_get(breakpoints.$values, $media);\n\n @if $limits != null {\n @media (min-width: nth($limits, 1)) {\n @content;\n }\n }\n @else {\n @content;\n }\n}\n","@use 'module/media-query/variable/breakpoints';\n@use 'module/media-query';\n\n@mixin order () {\n @each $bp, $limits in breakpoints.$values {\n @if $bp != xs {\n @include media-query.respond-from($bp) {\n /*! media #{$bp} */\n }\n }\n }\n}\n"]}