UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

1 lines 42.7 kB
{"version":3,"sources":["<no source>","%3Cinput%20css%20YqJvUa%3E","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/component/radio/main.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/component/radio/style/module/_default.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/core/style/spacing/tool/_position.scss","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/src/component/radio/style/module/_rich.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/core/style/action/tool/_hover.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/component/radio/style/scheme/_rich.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/component/radio/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","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/module/legacy/mixin/_legacy.scss","file:///Users/lab9/Free/La_Netscouade/Design_system/prod/Octobre/dsfr/src/component/radio/style/_legacy.scss"],"names":[],"mappings":"AAAA;;GAAA;ACAA,g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ICyBE,qFAAA;ERmPF;;EWlRE;IH+BA,gCAAA;ERyPF;;EWnRI;IH0BF,gCAAA;IAAA,sBAAA;ER8PF;;EOvRA;ICyBE,kFAAA;ERwQF;;EOjSA;ICyBE,kFAAA;ER6QF;;EWrRM;IHQJ,mCAAA;ERmRF;;EO5SA;ICyBE,kFAAA;ERwRF;;EWvRQ;IHDN,mCAAA;ER6RF;;EOtTA;ICyBE,kFAAA;ERkSF;AAzFF","file":"radio.css","sourcesContent":[null,"@charset \"UTF-8\";\n/* ¯¯¯¯¯¯¯¯¯ *\\\n RADIO\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-radio-group {\n position: relative;\n}\n.fr-radio-group input[type=radio] {\n position: absolute;\n margin: 0;\n opacity: 0;\n top: 50%;\n transform: translateY(-50%);\n}\n.fr-radio-group input[type=radio] + 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.fr-radio-group input[type=radio] + label .fr-hint-text {\n margin: 0;\n width: 100%;\n}\n.fr-radio-group input[type=radio] + label::before {\n content: \"\";\n display: inline-block;\n position: absolute;\n top: 0;\n left: -2rem;\n width: 1.5rem;\n height: 1.5rem;\n margin-right: 0.5rem;\n border-radius: 50%;\n}\n\n.fr-radio-group--sm input[type=radio] + label::before {\n width: 1rem;\n height: 1rem;\n margin-top: 0.25rem;\n}\n\n.fr-radio-rich {\n position: relative;\n}\n.fr-radio-rich input[type=radio] + label {\n padding-left: 3.5rem;\n margin-left: 0;\n min-height: 5.5rem;\n width: 100%;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n padding-right: 6.5rem;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n}\n.fr-radio-rich input[type=radio] + label::before {\n width: 1rem;\n height: 1rem;\n position: absolute;\n top: 50%;\n left: 1.75rem;\n margin-top: -0.5rem;\n}\n.fr-radio-rich input[type=radio] + label .fr-hint-text {\n margin-left: 0;\n}\n.fr-radio-rich input[type=radio]:disabled ~ .fr-radio-rich__img, .fr-radio-rich input[type=radio][disabled] ~ .fr-radio-rich__img {\n filter: grayscale(1);\n}\n.fr-radio-rich input[type=radio]:not(:disabled) ~ label {\n --hover-tint: var(--hover);\n --active-tint: var(--active);\n}\n.fr-radio-rich input[type=radio]:not(:disabled) ~ label:hover {\n background-color: var(--hover-tint);\n}\n.fr-radio-rich input[type=radio]:not(:disabled) ~ label:active {\n background-color: var(--active-tint);\n}\n.fr-radio-rich input[type=radio]:not(:disabled) ~ label:hover ~ .fr-radio-rich__img {\n --brightness: calc(100% + var(--brighten) * 10%);\n}\n.fr-radio-rich input[type=radio]:not(:disabled) ~ label:active ~ .fr-radio-rich__img {\n --brightness: calc(100% + var(--brighten) * 20%);\n}\n\n.fr-radio-rich__img {\n filter: brightness(var(--brightness));\n padding-left: 0.25rem;\n width: 5.25rem;\n height: 5rem;\n position: absolute;\n top: 0.25rem;\n right: 0.25rem;\n display: flex;\n flex-direction: row;\n pointer-events: none;\n}\n.fr-radio-rich__img img,\n.fr-radio-rich__img svg {\n max-width: 5rem;\n object-fit: cover;\n}\n\n.fr-control > .fr-radio-rich.fr-radio-group {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.fr-radio-group input[type=radio] + label::before {\n box-shadow: inset 0 0 0 1px var(--border-action-high-grey), inset 0 0 0 12px var(--background-default-grey), inset 0 0 0 12px var(--background-action-high-blue-france);\n}\n.fr-radio-group input[type=radio]:disabled + label::before {\n box-shadow: inset 0 0 0 1px var(--border-disabled-grey), inset 0 0 0 12px var(--background-default-grey), inset 0 0 0 12px var(--text-disabled-grey);\n}\n\n.fr-radio-group input[type=radio]:checked + label::before {\n box-shadow: inset 0 0 0 1px var(--border-action-high-grey), inset 0 0 0 6px var(--background-default-grey), inset 0 0 0 12px var(--background-action-high-blue-france);\n}\n.fr-radio-group input[type=radio]:checked:disabled + label::before {\n box-shadow: inset 0 0 0 1px var(--border-disabled-grey), inset 0 0 0 6px var(--background-default-grey), inset 0 0 0 12px var(--text-disabled-grey);\n}\n\n.fr-radio-group--sm input[type=radio] + label::before {\n box-shadow: inset 0 0 0 1px var(--border-action-high-grey), inset 0 0 0 8px var(--background-default-grey), inset 0 0 0 8px var(--background-action-high-blue-france);\n}\n.fr-radio-group--sm input[type=radio]:disabled + label::before {\n box-shadow: inset 0 0 0 1px var(--border-disabled-grey), inset 0 0 0 8px var(--background-disabled-grey), inset 0 0 0 8px var(--text-disabled-grey);\n}\n\n.fr-radio-group--sm input[type=radio]:checked + label::before {\n box-shadow: inset 0 0 0 1px var(--border-action-high-grey), inset 0 0 0 4px var(--background-default-grey), inset 0 0 0 8px var(--background-action-high-blue-france);\n}\n.fr-radio-group--sm input[type=radio]:checked:disabled + label::before {\n box-shadow: inset 0 0 0 1px var(--border-disabled-grey), inset 0 0 0 4px var(--background-disabled-grey), inset 0 0 0 8px var(--text-disabled-grey);\n}\n\n.fr-radio-rich__img {\n box-shadow: inset 1px 0 0 0 var(--border-default-grey);\n}\n.fr-radio-rich input[type=radio] + label {\n box-shadow: inset 0 0 0 1px var(--border-default-grey);\n background-color: var(--background-default-grey);\n --idle: transparent;\n --hover: var(--background-default-grey-hover);\n --active: var(--background-default-grey-active);\n}\n.fr-radio-rich input[type=radio] + label::before {\n box-shadow: inset 0 0 0 1px var(--border-action-high-grey), inset 0 0 0 8px var(--background-default-grey), inset 0 0 0 8px var(--background-action-high-blue-france);\n}\n.fr-radio-rich input[type=radio]:disabled + label::before {\n box-shadow: inset 0 0 0 1px var(--border-disabled-grey), inset 0 0 0 8px var(--background-default-grey), inset 0 0 0 8px var(--text-disabled-grey);\n}\n\n.fr-radio-rich input[type=radio]:checked + label {\n box-shadow: inset 0 0 0 1px var(--border-action-high-blue-france);\n}\n.fr-radio-rich input[type=radio]:checked + label::before {\n box-shadow: inset 0 0 0 1px var(--border-action-high-grey), inset 0 0 0 4px var(--background-default-grey), inset 0 0 0 8px var(--background-action-high-blue-france);\n}\n.fr-radio-rich input[type=radio]:checked:disabled + label {\n box-shadow: inset 0 0 0 1px var(--text-disabled-grey);\n}\n.fr-radio-rich input[type=radio]:checked:disabled + label::before {\n box-shadow: inset 0 0 0 1px var(--border-disabled-grey), inset 0 0 0 4px var(--background-default-grey), inset 0 0 0 8px var(--text-disabled-grey);\n}\n\n.fr-fieldset .fr-fieldset__content .fr-radio-group--sm label::before {\n margin-top: 1rem;\n}\n.fr-fieldset .fr-fieldset__content .fr-radio-rich:first-child input[type=radio] + label {\n margin-top: 0.75rem;\n}\n.fr-fieldset .fr-fieldset__content .fr-radio-rich input[type=radio] + label {\n margin-top: 0.5rem;\n margin-bottom: 1rem;\n}\n.fr-fieldset .fr-fieldset__content .fr-radio-rich:last-child input[type=radio] + label {\n margin-bottom: 0.75rem;\n}\n.fr-fieldset--inline .fr-fieldset__content .fr-radio-rich:not(:last-child) input[type=radio] + label {\n margin-right: 0.75rem;\n margin-bottom: 0.5rem;\n}\n.fr-fieldset--inline .fr-fieldset__content .fr-radio-rich:not(:last-child) .fr-radio-rich__img {\n right: 1rem;\n}\n.fr-fieldset--inline .fr-fieldset__content .fr-radio-rich:last-child {\n margin-bottom: 0;\n}\n.fr-fieldset--inline .fr-fieldset__content .fr-radio-rich:last-child input[type=radio] + label {\n margin-bottom: 0.75rem;\n}\n.fr-fieldset--inline .fr-fieldset__content .fr-radio-rich:first-child .fr-radio-rich__img {\n top: 1rem;\n}\n.fr-fieldset--inline .fr-fieldset__content .fr-radio-rich__img {\n top: 0.75rem;\n}\n.fr-fieldset--inline .fr-hint-text + .fr-fieldset__content .fr-radio-rich:first-child input[type=radio] + label {\n margin-top: 1.5rem;\n}\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@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-fieldset--inline .fr-radio-rich:last-child input[type=radio] + label {\n margin-bottom: 0.5rem !important;\n }\n\n .fr-radio-rich input[type=radio] + .fr-label {\n height: 1px;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-group input[type=radio] + label::before {\n box-shadow: inset 0 0 0 1px #161616, inset 0 0 0 12px #fff, inset 0 0 0 12px #000091;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-group input[type=radio]:disabled + label::before {\n box-shadow: inset 0 0 0 1px #e5e5e5, inset 0 0 0 12px #fff, inset 0 0 0 12px #929292;\n }\n}\n\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-group input[type=radio]:checked + label::before {\n box-shadow: inset 0 0 0 1px #161616, inset 0 0 0 6px #fff, inset 0 0 0 12px #000091;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-group input[type=radio]:checked:disabled + label::before {\n box-shadow: inset 0 0 0 1px #e5e5e5, inset 0 0 0 6px #fff, inset 0 0 0 12px #929292;\n }\n}\n\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-group--sm input[type=radio] + label::before {\n box-shadow: inset 0 0 0 1px #161616, inset 0 0 0 8px #fff, inset 0 0 0 8px #000091;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-group--sm input[type=radio]:disabled + label::before {\n box-shadow: inset 0 0 0 1px #e5e5e5, inset 0 0 0 8px #e5e5e5, inset 0 0 0 8px #929292;\n }\n}\n\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-group--sm input[type=radio]:checked + label::before {\n box-shadow: inset 0 0 0 1px #161616, inset 0 0 0 4px #fff, inset 0 0 0 8px #000091;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-group--sm input[type=radio]:checked:disabled + label::before {\n box-shadow: inset 0 0 0 1px #e5e5e5, inset 0 0 0 4px #e5e5e5, inset 0 0 0 8px #929292;\n }\n}\n\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-rich__img {\n box-shadow: inset 1px 0 0 0 #ddd;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-rich input[type=radio] + label {\n box-shadow: inset 0 0 0 1px #ddd;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-rich input[type=radio] + label {\n background-color: #fff;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-rich input[type=radio] + label::before {\n box-shadow: inset 0 0 0 1px #161616, inset 0 0 0 8px #fff, inset 0 0 0 8px #000091;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-rich input[type=radio]:disabled + label::before {\n box-shadow: inset 0 0 0 1px #e5e5e5, inset 0 0 0 8px #fff, inset 0 0 0 8px #929292;\n }\n}\n\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-rich input[type=radio]:checked + label {\n box-shadow: inset 0 0 0 1px #000091;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-rich input[type=radio]:checked + label::before {\n box-shadow: inset 0 0 0 1px #161616, inset 0 0 0 4px #fff, inset 0 0 0 8px #000091;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-rich input[type=radio]:checked:disabled + label {\n box-shadow: inset 0 0 0 1px #929292;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-radio-rich input[type=radio]:checked:disabled + label::before {\n box-shadow: inset 0 0 0 1px #e5e5e5, inset 0 0 0 4px #fff, inset 0 0 0 8px #929292;\n }\n}","////\n/// Radio Main\n/// @group radio\n////\n\n/* ¯¯¯¯¯¯¯¯¯ *\\\n RADIO\n\\* ˍˍˍˍˍˍˍˍˍ */\n\n@use 'module/path';\n@use 'module/shame/media-query';\n\n@include path.to-dist(2);\n@include media-query.order;\n\n@import 'index';\n@import 'style/module';\n@import 'style/scheme';\n\n@include _radio-scheme;\n\n// deprecated\n@import 'deprecated/style/module';\n","////\n/// Radio Module : radio md\n/// @group radio\n////\n\n#{ns-group(radio)} {\n @include relative;\n\n input[type=\"radio\"] {\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 @include before('', inline-block) {\n @include absolute(0, null, null, -8v);\n @include size(6v, 6v);\n @include margin-right(2v);\n border-radius: 50%;\n // transition: box-shadow 0.3s;\n }\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","////\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","////\n/// Radio Module : radio rich\n/// @group radio\n////\n\n@use 'module/spacing';\n\n#{ns(radio-rich)} {\n @include relative;\n\n input[type=\"radio\"] {\n + label {\n @include padding-left(14v);\n @include margin-left(0);\n min-height: spacing.space(22v);\n @include size(100%);\n @include padding-top(2v);\n @include padding-bottom(2v);\n @include padding-right(26v);\n @include display-flex(column, flex-start, center);\n\n @include before {\n @include size(4v, 4v);\n @include absolute(50%, null, null, 7v);\n @include margin-top(-2v);\n }\n\n #{ns(hint-text)} {\n @include margin-left(0);\n }\n }\n\n &:disabled,\n &[disabled] {\n ~ #{ns(radio-rich__img)} {\n filter: grayscale(1);\n }\n }\n\n &:not(:disabled) ~ label {\n @include hover-tint;\n @include enable-tint;\n }\n\n @include hover-brighten('&:not(:disabled) ~ label', '~ #{ns(radio-rich__img)}');\n }\n\n &__img {\n @include hover-brighten-filter;\n @include padding-left(1v);\n @include size(21v, 20v);\n @include absolute(1v, 1v);\n @include display-flex;\n pointer-events: none;\n\n img,\n svg {\n max-width: spacing.space(20v);\n object-fit: cover;\n }\n }\n}\n\n#{ns(control)} {\n > #{ns(radio-rich)}#{ns-group(radio)} {\n @include margin-y(0);\n }\n}\n","////\n/// Core Tool : Action Hover\n/// @group core\n////\n\n@mixin hover-media-query () {\n @media (hover: hover) and (pointer: fine) {\n @content;\n }\n}\n\n@mixin hover-type-selector($elements, $type: all, $check-disabled: false) {\n $selectors: ();\n\n @each $element, $setting in $elements {\n $hover: map-get($setting, hover);\n $selector: map-get($setting, selector);\n @if $hover {\n @if $type == map-get($hover, type) or $type == all {\n $nested: $selector;\n @if $check-disabled {\n $nested: nest($selector, map-get($hover, selector));\n }\n $associated: $nested;\n @if & != null and '#{&}' != ':root' {\n $associated: selector-associate('#{&}', $nested);\n }\n $selectors: append($selectors, $associated, 'comma');\n }\n }\n }\n\n @at-root #{$selectors} {\n @content;\n }\n}\n\n@mixin hover-tint () {\n &:hover {\n background-color: var(--hover-tint);\n }\n\n &:active {\n background-color: var(--active-tint);\n }\n}\n\n@mixin enable-tint () {\n @include tint-enabled(true, true);\n}\n\n@mixin disable-tint() {\n @include tint-enabled(false, false);\n}\n\n@mixin tint-enabled ($hover: null, $active: null) {\n @if $hover {\n --hover-tint: var(--hover);\n }\n @else if $hover == false {\n --hover-tint: var(--idle);\n }\n\n @if $active {\n --active-tint: var(--active);\n }\n @else if $active == false {\n --active-tint: var(--idle);\n }\n}\n\n@mixin hover-brighten ($element, $img) {\n @at-root #{$element} {\n &:hover {\n #{$img} {\n --brightness: calc(100% + var(--brighten) * #{$hover-brighten});\n }\n }\n\n &:active {\n #{$img} {\n --brightness: calc(100% + var(--brighten) * #{$hover-brighten * 2});\n }\n }\n }\n}\n\n@mixin hover-brighten-filter () {\n filter: brightness(var(--brightness));\n}\n","////\n/// Radio Scheme : radio rich\n/// @group radio\n////\n\n@use 'module/color';\n@use 'module/disabled';\n\n@mixin _radio-scheme-rich($legacy: false) {\n #{ns(radio-rich)} {\n &__img {\n @include color.box-shadow(default grey, (legacy:$legacy), left-1-in);\n }\n\n input[type=\"radio\"] {\n + label {\n @include color.box-shadow(default grey, (legacy:$legacy), all-1-in);\n @include color.background(default grey, (legacy:$legacy));\n\n @include before {\n @include color.box-shadow((action-high grey) (background default grey) (background action-high blue-france), (legacy:$legacy), radio-box-shadow(false, sm));\n }\n }\n\n @include disabled.selector {\n + label {\n @include before {\n @include color.box-shadow((disabled grey) (background default grey) (text disabled grey), (legacy:$legacy), radio-box-shadow(false, sm));\n }\n }\n }\n\n &:checked {\n + label {\n @include color.box-shadow(action-high blue-france, (legacy:$legacy), all-1-in);\n\n @include before {\n @include color.box-shadow((action-high grey) (background default grey) (background action-high blue-france), (legacy:$legacy), radio-box-shadow(true, sm));\n }\n }\n\n @include disabled.selector {\n + label {\n @include color.box-shadow(text disabled grey, (legacy:$legacy), all-1-in);\n @include before {\n @include color.box-shadow((disabled grey) (background default grey) (text disabled grey), (legacy:$legacy), radio-box-shadow(true, sm));\n }\n }\n }\n }\n }\n }\n}\n","@use 'module/spacing';\n\n#{ns(fieldset)} {\n #{ns(fieldset__content)} {\n #{ns-group(radio)} {\n &--sm {\n label {\n &::before {\n @include margin-top(4v);\n }\n }\n }\n }\n\n #{ns(radio-rich)} {\n &:first-child {\n input[type=\"radio\"] + label {\n @include margin-top(3v);\n }\n }\n\n input[type=\"radio\"] + label {\n @include margin-top(2v);\n @include margin-bottom(4v);\n }\n\n &:last-child {\n input[type=\"radio\"] + label {\n @include margin-bottom(3v);\n }\n }\n }\n }\n\n &--inline {\n #{ns(fieldset__content)} {\n #{ns(radio-rich)} {\n &:not(:last-child) {\n input[type=\"radio\"] + label {\n @include margin-right(3v);\n @include margin-bottom(2v);\n }\n\n #{ns(radio-rich)}__img {\n right: spacing.space(4v);\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n\n input[type=\"radio\"] + label {\n @include margin-bottom(3v);\n }\n }\n\n &:first-child {\n #{ns(radio-rich)}__img {\n top: spacing.space(4v);\n }\n }\n\n &__img {\n top: spacing.space(3v);\n }\n }\n }\n\n #{ns(hint-text)} + #{ns(fieldset__content)} {\n #{ns(radio-rich)} {\n &:first-child {\n input[type=\"radio\"] + label {\n @include margin-top(6v);\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","/// Styles spécifiques pour les plateformes antérieures\n///\n/// @example scss -\n/// .foo {\n/// @include ie-hack() {\n/// }\n/// }\n@mixin is($target) {\n @if $target == ie10 or $target == ie11 {\n @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n @content;\n }\n }\n @else {\n @content;\n }\n}\n\n/// Styles spécifiques pour les plateformes modernes, excluant les plateformes antérieures\n///\n/// @example scss -\n/// .foo {\n/// @include ie-hack() {\n/// }\n/// }\n@mixin is-not($target) {\n @if $target == ie10 or $target == ie11 {\n @supports not (-ms-high-contrast: none) {\n @content;\n }\n }\n}\n","////\n/// Radio Legacy\n/// @group radio\n////\n\n@use 'module/spacing';\n@use 'module/legacy';\n\n@include legacy.is(ie11) {\n #{ns(fieldset--inline)} {\n #{ns(radio-rich)} {\n &:last-child {\n input[type=\"radio\"] + label {\n @include margin-bottom(2v !important);\n }\n }\n }\n }\n\n // Correctif alignement vertical IE\n // Inconvéniant : fixe la height à la min-height, soit 5.5 rem\n #{ns(radio-rich)} {\n input[type=\"radio\"] + #{ns(label)} {\n @include height(1px);\n }\n }\n}\n"]}