1 line
No EOL
42 KiB
Text
1 line
No EOL
42 KiB
Text
{"version":3,"sources":["<no source>","%3Cinput%20css%20ePUlyM%3E","file:///Users/ket/Documents/work/dsfr/src/component/range/main.scss","file:///Users/ket/Documents/work/dsfr/src/component/range/style/_module.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/spacing/tool/_position.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/selector/tool/_pseudo.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/display/tool/_display.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/spacing/tool/_size.scss","file:///Users/ket/Documents/work/dsfr/module/color/mixin/_element.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/typography/tool/_styles.scss","file:///Users/ket/Documents/work/dsfr/module/reset/mixin/_appearance.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/spacing/tool/_z-index.scss","file:///Users/ket/Documents/work/dsfr/module/selector/mixin/_range.scss","file:///Users/ket/Documents/work/dsfr/module/elevation/mixin/_z-index.scss","file:///Users/ket/Documents/work/dsfr/module/elevation/mixin/_shadow.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/spacing/tool/_space.scss","file:///Users/ket/Documents/work/dsfr/src/component/range/style/_scheme.scss","file:///Users/ket/Documents/work/dsfr/module/media-query/mixin/_respond-from.scss","file:///Users/ket/Documents/work/dsfr/module/shame/media-query/mixin/_order.scss"],"names":[],"mappings":"AAAA;;GAAA;ACAA,gBAAgB;;ACKhB;;cAAA;ACKA;ECFE,kBAAA;AHUF;;AIFE;;EAGI,WFJc;EEQd,cAAA;EFPA,oBAAA;ECRJ,kBAAA;EAEE,MAAA;EAGA,eAAA;EAGA,SAAA;EAGA,cAAA;EDDE,4BAAA;EACA,wBAAA;EACA,8BAAA;AFWN;;AENA;EACE,oBAAA;EClBA,kBAAA;EEGE,aAAA;EAIA,mBAAA;EAQA,8BAAA;EAIA,eAAA;ALaJ;;AEVE;EACE,aAAA;EIrBE,WAAA;ANkCN;;AETE;EACE,kBAAA;EKKA,qCAAA;APMJ;;AERE;;;EAGE,kBAAA;EIxBE,4BAAA;EEQJ,kBAAA;EAGE,oBAAA;ARwBJ;;AENE;EACE,kBAAA;EACA,+CAAA;AFQJ;;AIzCE;;EAGI,WFgC8B;EE5B9B,cAAA;EDfJ,kBAAA;EAEE,aAAA;EAGA,QAAA;EAMA,OAAA;EGuCE,WAAA;EAGA,eAAA;EJPA,uBAAA;AFcN;;AIpDE;EF0CI,oBAAA;EKjBF,iEAAA;AP8BJ;;AIvDE;EF8CI,0HAAA;EKrBF,sDAAA;;EAWI,mBAAA;EAqCJ,mDAAA;EAAA,qDAAA;APfJ;;AETI;EOzDF,wBP0D8B;EOzD9B,qBPyD8B;EOxD9B,gBPwD8B;EAC1B,6BAAA;EITA,WAAA;EAGA,yBAAA;EI7CJ,UAAA;AVmEF;;AEZM;EACE,oBAAA;AFcR;;AWpFI;EFMF,wBPoEgC;EOnEhC,qBPmEgC;EOlEhC,gBPkEgC;EIlB5B,wBAAA;EAGA,yBAAA;EJiBE,kBAAA;EACA,YAAA;EACA,oBAAA;EUnEF,kCAAA;EL4BF,+CAAA;EAgDA,4CAAA;EAAA,8CAAA;EMpFA,yCAAA;ENoCA,gDAAA;;EAWI,mBAAA;EAqCJ,6CAAA;EAAA,+CAAA;EAhDA,uDAAA;APuDJ;;AEdQ;EQlEN,UAAA;AVmFF;;AW7FI;EFEF,wBPoEgC;EOnEhC,qBPmEgC;EOlEhC,gBPkEgC;EIlB5B,wBAAA;EAGA,yBAAA;EJiBE,kBAAA;EACA,YAAA;EACA,oBAAA;EUnEF,kCAAA;EL4BF,+CAAA;EAgDA,4CAAA;EAAA,8CAAA;EMpFA,yCAAA;ENoCA,gDAAA;;EAWI,mBAAA;EAqCJ,6CAAA;EAAA,+CAAA;EAhDA,uDAAA;APoEJ;;AE3BQ;EQlEN,UAAA;AVgGF;;AExBI;EACE,mBAAA;AF0BN;;AEtBE;EACE,kBAAA;AFwBJ;;AItGE;;ED4BA,WAAA;EGVI,cAAA;EJkEE,sBAAA;AFuBR;;AEjBI;EACE,eAAA;AFmBN;;AI9GE;;EUKI,sBAHA;EAIA,uBAJA;EZ4FE,2BAAA;EACA,uCAAA;EACA,+BAAA;EACA,4BAAA;AFqBR;;AItHE;;EFyGM,+BAAA;EYpGF,sBAHA;EAIA,uBAJA;AdyHN;;AEZE;EI7GI,sCAAA;AN4HN;;AETM;EI3HA,qCAAA;ANuIN;;AETQ;EY3GF,+BAXA;AdkIN;;AERQ;ECpIN,kBAAA;EAwCA,QAAA;EAJA,YAAA;AH6GF;;AIzIE;;EFyIM,kBAAA;AFGR;;AW1JI;EJuCA,6CAAA;AP0JJ;;AW7LI;EJmCA,6CAAA;AP6JJ;;Ae9JI;;ERCA,+BAAA;APoKJ;;AI7LE;EGyBE,iKAAA;APuKJ;;AIhME;EGyBE,+JAAA;EAAA,iHAAA;AP2KJ;;AIpME;EGyBE,+GAAA;AP8KJ;;AIvME;EGyBE,6FAAA;APkLJ;;AI3ME;EGyBE,iGAAA;APqLJ;;AI9ME;EGyBE,uDAAA;APwLJ;;AIjNE;EGyBE,iDAAA;;EAWI,mBAAA;EAqCJ,8CAAA;EAAA,gDAAA;AP8IJ;;AIvNE;EGyBE,6IAAA;APiMJ;;AI1NE;EGyBE,2IAAA;APoMJ;;AerHQ;;;ER/EJ,gCAAA;APuMJ;AgBjOI;ECRI,cAAA;AjBDR;AgBSI;ECRI,cAAA;AjBER;AgBMI;ECRI,cAAA;AjBKR;AgBGI;ECRI,cAAA;AjBQR","file":"range.main.css","sourcesContent":[null,"@charset \"UTF-8\";\n/* ¯¯¯¯¯¯¯¯¯ *\\\n RANGE\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-range-group {\n position: relative;\n}\n.fr-range-group--valid::before, .fr-range-group--error::before {\n content: \"\";\n display: block;\n pointer-events: none;\n position: absolute;\n top: 0;\n right: -0.75rem;\n bottom: 0;\n left: -0.75rem;\n background-repeat: no-repeat;\n background-position: 0 0;\n background-size: 0.125rem 100%;\n}\n\n.fr-range {\n --thumb-size: 1.5rem;\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n.fr-range input[type=range] {\n outline: none;\n width: 100%;\n}\n.fr-range__output {\n visibility: hidden;\n}\n.fr-range__output, .fr-range__min, .fr-range__max {\n text-align: center;\n min-width: var(--thumb-size);\n font-size: 0.75rem;\n line-height: 1.25rem;\n}\n.fr-range[data-fr-js-range] {\n --progress-left: 0;\n --progress-right: calc(var(--thumb-size) * 0.5);\n}\n.fr-range[data-fr-js-range]::before, .fr-range[data-fr-js-range]::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 1.625rem;\n right: 0;\n left: 0;\n width: 100%;\n height: 0.75rem;\n border-radius: 0.375rem;\n}\n.fr-range[data-fr-js-range]::before {\n outline-offset: -1px;\n}\n.fr-range[data-fr-js-range]::after {\n clip-path: polygon(var(--progress-left) 0, var(--progress-right) 0, var(--progress-right) 100%, var(--progress-left) 100%);\n}\n.fr-range[data-fr-js-range] input[type=range] {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n background-color: transparent;\n width: 100%;\n height: var(--thumb-size);\n z-index: 1;\n}\n.fr-range[data-fr-js-range] input[type=range]:not(:only-of-type) {\n pointer-events: none;\n}\n.fr-range[data-fr-js-range] input[type=range]::-webkit-slider-thumb {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: var(--thumb-size);\n height: var(--thumb-size);\n border-radius: 50%;\n border: none;\n pointer-events: auto;\n}\n.fr-range[data-fr-js-range] input[type=range]::-webkit-slider-thumb:active {\n z-index: 2;\n}\n.fr-range[data-fr-js-range] input[type=range]::-moz-range-thumb {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: var(--thumb-size);\n height: var(--thumb-size);\n border-radius: 50%;\n border: none;\n pointer-events: auto;\n}\n.fr-range[data-fr-js-range] input[type=range]::-moz-range-thumb:active {\n z-index: 2;\n}\n.fr-range[data-fr-js-range] .fr-range__output {\n visibility: visible;\n}\n.fr-range--sm {\n --thumb-size: 1rem;\n}\n.fr-range--sm[data-fr-js-range]::before, .fr-range--sm[data-fr-js-range]::after {\n top: 1.5rem;\n height: 0.5rem;\n border-radius: 0.25rem;\n}\n.fr-range--step[data-fr-js-range] {\n --step-width: 0;\n}\n.fr-range--step[data-fr-js-range]::before, .fr-range--step[data-fr-js-range]::after {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n background-repeat: repeat-x;\n background-size: var(--step-width) 100%;\n background-position: 0.625rem 0;\n background-clip: content-box;\n}\n.fr-range--step.fr-range--sm[data-fr-js-range]::before, .fr-range--step.fr-range--sm[data-fr-js-range]::after {\n background-position: 0.375rem 0;\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.fr-range--double .fr-range__output {\n min-width: calc(var(--thumb-size)* 2);\n}\n.fr-range--double[data-fr-js-range] input[type=range] {\n width: calc(100% - var(--thumb-size));\n}\n.fr-range--double[data-fr-js-range] input[type=range]:nth-of-type(1) {\n margin-right: var(--thumb-size);\n}\n.fr-range--double[data-fr-js-range] input[type=range]:nth-of-type(2) {\n position: absolute;\n right: 0;\n top: 1.25rem;\n}\n.fr-range--double.fr-range--step[data-fr-js-range]::before, .fr-range--double.fr-range--step[data-fr-js-range]::after {\n background-size: 0;\n}\n\n.fr-range[data-fr-js-range]::before {\n box-shadow: inset 0 0 0 1px var(--border-action-high-blue-france);\n}\n.fr-range[data-fr-js-range]::after {\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}\n.fr-range[data-fr-js-range] input[type=range]::-webkit-slider-thumb {\n z-index: calc(var(--ground) + 500);\n background-color: var(--background-raised-grey);\n --idle: transparent;\n --hover: var(--background-raised-grey-hover);\n --active: var(--background-raised-grey-active);\n filter: drop-shadow(var(--raised-shadow));\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 border: 1px solid var(--border-action-high-blue-france);\n}\n.fr-range[data-fr-js-range] input[type=range]::-moz-range-thumb {\n z-index: calc(var(--ground) + 500);\n background-color: var(--background-raised-grey);\n --idle: transparent;\n --hover: var(--background-raised-grey-hover);\n --active: var(--background-raised-grey-active);\n filter: drop-shadow(var(--raised-shadow));\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 border: 1px solid var(--border-action-high-blue-france);\n}\n.fr-range[data-fr-js-range] input[type=range]:disabled::-webkit-slider-thumb {\n border: 1px solid var(--border-disabled-grey);\n}\n.fr-range[data-fr-js-range] input[type=range]:disabled::-moz-range-thumb {\n border: 1px solid var(--border-disabled-grey);\n}\n\n.fr-range__output {\n color: var(--text-active-blue-france);\n}\n.fr-range__min, .fr-range__max {\n color: var(--text-mention-grey);\n}\n.fr-range--step[data-fr-js-range]::before {\n background-image: radial-gradient(circle at 2px 50%, var(--background-action-high-blue-france) 0, var(--background-action-high-blue-france) 1px, transparent 1px);\n}\n.fr-range--step[data-fr-js-range]::after {\n background-image: radial-gradient(circle at 2px 50%, var(--background-action-low-blue-france) 0, var(--background-action-low-blue-france) 2px, transparent 2px);\n box-shadow: inset 10px 0 0 0 var(--border-active-blue-france), inset -10px 0 0 0 var(--border-active-blue-france);\n}\n.fr-range--step.fr-range--sm[data-fr-js-range]::after {\n box-shadow: inset 6px 0 0 0 var(--border-active-blue-france), inset -6px 0 0 0 var(--border-active-blue-france);\n}\n\n.fr-range-group--error::before {\n background-image: linear-gradient(0deg, var(--border-plain-error), var(--border-plain-error));\n}\n.fr-range-group--valid::before {\n background-image: linear-gradient(0deg, var(--border-plain-success), var(--border-plain-success));\n}\n.fr-range-group--disabled .fr-range[data-fr-js-range]::before {\n box-shadow: inset 0 0 0 1px var(--border-disabled-grey);\n}\n.fr-range-group--disabled .fr-range[data-fr-js-range]::after {\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}\n.fr-range-group--disabled .fr-range--step[data-fr-js-range]::before {\n background-image: radial-gradient(circle at 2px 50%, var(--background-disabled-grey) 0, var(--background-disabled-grey) 1px, transparent 1px);\n}\n.fr-range-group--disabled .fr-range--step[data-fr-js-range]::after {\n background-image: radial-gradient(circle at 2px 50%, var(--background-default-grey) 0, var(--background-default-grey) 2px, transparent 2px);\n}\n.fr-range-group--disabled .fr-range__output, .fr-range-group--disabled .fr-range__min, .fr-range-group--disabled .fr-range__max {\n color: var(--text-disabled-grey);\n}","////\n/// Range Main\n/// @group range\n////\n\n/* ¯¯¯¯¯¯¯¯¯ *\\\n RANGE\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 _range-scheme;\n","////\n/// Range Module\n/// @group range\n////\n\n@use 'module/reset';\n@use 'module/spacing';\n@use 'module/selector';\n@use 'module/disabled';\n\n#{selector.ns-group(range)} {\n @include relative;\n\n &--valid,\n &--error {\n @include before('', block) {\n pointer-events: none;\n @include absolute(0, -3v, 0, -3v);\n background-repeat: no-repeat;\n background-position: 0 0;\n background-size: spacing.space(0.5v 100%);\n }\n }\n}\n\n#{selector.ns(range)} {\n --thumb-size: #{spacing.space(6v)};\n @include relative;\n @include display-flex(row, null, space-between, wrap);\n\n input[type=range] {\n outline: none;\n @include width(100%);\n }\n\n &__output {\n visibility: hidden;\n }\n\n &__output,\n &__min,\n &__max {\n text-align: center;\n @include min-width(var(--thumb-size));\n @include text-style(xs);\n }\n\n &#{selector.ns-attr(js-range)} {\n --progress-left: 0;\n --progress-right: calc(var(--thumb-size) * 0.5);\n\n @include _pseudo (before after, '', block) {\n @include absolute(6.5v, 0, null, 0);\n @include size(100%, 3v);\n border-radius: spacing.space(1.5v);\n }\n\n @include before {\n outline-offset: -1px;\n }\n\n @include after {\n clip-path: polygon(var(--progress-left) 0, var(--progress-right) 0, var(--progress-right) 100%, var(--progress-left) 100%);\n }\n\n input[type=range] {\n @include reset.appearance(none);\n background-color: transparent;\n @include size(100%, var(--thumb-size));\n @include z-index(over);\n\n &:not(:only-of-type) {\n pointer-events: none;\n }\n\n @include selector.range-thumb {\n @include reset.appearance(none);\n @include size(var(--thumb-size), var(--thumb-size));\n border-radius: 50%;\n border: none;\n pointer-events: auto;\n\n &:active {\n @include z-index(above);\n }\n }\n }\n\n #{selector.ns(range__output)} {\n visibility: visible;\n }\n }\n\n &--sm {\n --thumb-size: #{spacing.space(4v)};\n\n &#{selector.ns-attr(js-range)} {\n @include _pseudo(before after) {\n @include top(6v);\n @include height(2v);\n border-radius: spacing.space(1v);\n }\n }\n }\n\n &--step {\n &#{selector.ns-attr(js-range)} {\n --step-width: 0;\n @include _pseudo(before after) {\n @include padding-x(2.5v);\n background-repeat: repeat-x;\n background-size: var(--step-width) 100%;\n background-position: spacing.space(2.5v 0);\n background-clip: content-box;\n }\n }\n }\n\n &--step#{&}--sm {\n &#{selector.ns-attr(js-range)} {\n @include _pseudo(before after) {\n background-position: spacing.space(1.5v 0);\n @include padding-x(1.5v);\n }\n }\n }\n\n &--double &__output {\n @include min-width(calc(var(--thumb-size) * 2));\n }\n\n &--double {\n &#{selector.ns-attr(js-range)} {\n input[type=range] {\n @include width(calc(100% - var(--thumb-size)));\n\n &:nth-of-type(1) {\n @include margin-right(var(--thumb-size));\n }\n\n &:nth-of-type(2) {\n @include absolute;\n @include right(0);\n @include top(5v);\n }\n }\n }\n }\n\n // step désactivé sur le curseur double\n &--double#{&}--step {\n &#{selector.ns-attr(js-range)} {\n @include _pseudo(before after) {\n background-size: 0;\n }\n }\n }\n\n // &--double#{&}--step {\n // &#{selector.ns-attr(js-range)} {\n // @include _pseudo(before after) {\n // @include padding-x(5.5v);\n // background-position: spacing.space(5.5v 0);\n // }\n // }\n // }\n\n // &--double#{&}--step#{&}--sm {\n // &#{selector.ns-attr(js-range)} {\n // @include _pseudo(before after) {\n // @include padding-x(3.5v);\n // background-position: spacing.space(3.5v 0);\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 : 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","////\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@use '../../../../../module/spacing';\n\n@mixin width($width:null, $from: null) {\n @include respond-from($from) {\n @if $width != null {\n width: #{spacing.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: #{spacing.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: #{spacing.space($width)};\n }\n }\n}\n\n@mixin height($height:null, $from: null) {\n @include respond-from($from) {\n @if $height != null {\n height: #{spacing.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: #{spacing.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: #{spacing.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: #{spacing.space($width)};\n }\n @if $height != null {\n height: #{spacing.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: #{spacing.space($min-width)};\n }\n @if $min-height != null {\n min-height: #{spacing.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: #{spacing.space($max-width)};\n }\n @if $max-height != null {\n max-height: #{spacing.space($max-height)};\n }\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 == true {\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/// Core Tool : Typography build\n/// @group core\n////\n\n@use 'module/spacing';\n\n@function get-text-style($font-size) {\n @return map-get($text-styles, $font-size);\n}\n\n@function get-title-style($font-size) {\n @return map-get($title-styles, $font-size);\n}\n\n@mixin _stylize($font-size, $styles, $prepend, $append) {\n $style: map-get($styles, $font-size);\n\n @if $prepend == null {\n $prepend: '';\n }\n\n @if $append == null {\n $append: '';\n }\n\n font-size: #{$prepend} spacing.space($font-size) #{$append};\n\n @if map-has-key($style, line-height) {\n line-height: #{$prepend} spacing.space(map-get($style, line-height)) #{$append};\n }\n}\n\n@mixin _responsive-styles($settings, $styles, $is-responsive, $prepend, $append) {\n $breakpoints: map-get($settings, breakpoints);\n\n @if map-has-key($settings, weight) {\n font-weight: #{$prepend} map-get($font-weight-scale, map-get($settings, weight)) #{$append};\n }\n\n @if $is-responsive {\n @each $breakpoint, $size in $breakpoints {\n @if $breakpoint == first {\n @include _stylize($size, $styles, $prepend, $append);\n }\n @else {\n @include respond-from($breakpoint) {\n @include _stylize($size, $styles, $prepend, $append);\n }\n }\n }\n }\n @else {\n @if map-has-key($breakpoints, md) {\n @include _stylize(map-get($breakpoints, md), $styles);\n }\n @else {\n @include _stylize(map-get($breakpoints, first), $styles);\n }\n }\n}\n\n@mixin _space-text($settings) {\n @include margin( var(#{'--' + map-get($settings, 'margin') + '-spacing'}) );\n}\n\n@mixin text-style($name, $with-spacing: false, $is-responsive: true, $prepend: null, $important: false) {\n $settings: map-get($text-settings, $name);\n @if $settings {\n $append: '';\n @if $important {\n $append: ' !important';\n }\n\n @include _responsive-styles($settings, $text-styles, $is-responsive, $prepend, $append);\n\n @if $with-spacing {\n @include _space-text($settings);\n }\n }\n}\n\n@mixin title-style($name, $with-spacing: false, $is-responsive: true, $prepend: null, $important: false) {\n $settings: map-get($title-settings, $name);\n @if $settings {\n $append: '';\n @if $important {\n $append: ' !important';\n }\n\n @include _responsive-styles($settings, $title-styles, $is-responsive, $prepend, $append);\n\n @if $with-spacing {\n @include _space-text($settings);\n }\n }\n}\n\n@mixin _set-typography-var($name, $value, $bp: null) {\n @if $bp != null {\n @include respond-from(#{$bp}) {\n --#{$name}-spacing: #{space($value)};\n }\n }\n @else {\n --#{$name}-spacing: #{space($value)};\n }\n}\n\n@mixin set-title-margin($margin, $bp:null) {\n @include _set-typography-var(title, $margin, $bp);\n}\n\n@mixin set-text-margin($margin, $bp:null) {\n @include _set-typography-var(text, $margin, $bp);\n}\n\n@mixin set-display-margin($margin, $bp:null) {\n @include _set-typography-var(display, $margin, $bp);\n}\n","/// Mixin de propriété appearance avec support des plateformes antérieures\n///\n/// @example scss -\n/// .foo {\n/// @include appearance(none);\n/// }\n\n@mixin appearance($appearance: auto) {\n -webkit-appearance: $appearance;\n -moz-appearance: $appearance;\n appearance: $appearance;\n}\n","////\n/// Core Tool : Spacing z-index\n/// @group core\n////\n\n/// Fonction de gestion des z-index\n/// @access public\n/// @param {String} $index-name - nom du calque de z-index\n@function z-index($index-name) {\n @return map-get($z-indexes, $index-name);\n}\n\n/// Mixin de gestion des z-index\n/// @access public\n/// @param {String} $index-name - nom du calque de z-index\n@mixin z-index($index-name) {\n z-index: z-index($index-name);\n}\n","@mixin range-thumb($legacy: false) {\n @if not $legacy {\n &::-webkit-slider-thumb {\n @content;\n }\n\n &::-moz-range-thumb {\n @content;\n }\n }\n @else {\n &::-ms-thumb {\n @content;\n }\n }\n}\n\n@mixin range-track {\n &::-webkit-slider-runnable-track {\n @content;\n }\n}\n\n@mixin range-moz-track {\n &::-moz-range-track {\n @content;\n }\n}\n\n@mixin range-moz-progress {\n &::-moz-range-progress {\n @content;\n }\n}\n\n@mixin range-ms-thumb {\n &::-ms-thumb {\n @content;\n }\n}\n\n@mixin range-ms-track {\n &::-ms-track {\n @content;\n }\n}\n\n@mixin range-ms-fill-lower {\n &::-ms-fill-lower {\n @content;\n }\n}\n\n@mixin range-ms-fill-upper {\n &::-ms-fill-upper {\n @content;\n }\n}\n","@use 'sass:map';\n@use 'module/elevation/variable/z-indexes';\n@use 'module/legacy';\n\n@mixin z-index($level, $legacy: false) {\n @if map.has-key(z-indexes.$values, $level) {\n $z-index: map.get(z-indexes.$values, $level);\n @if $legacy {\n @include legacy.is(ie11) {\n z-index: #{$z-index};\n }\n }\n @else {\n z-index: calc(var(--ground) + #{$z-index});\n }\n }\n}\n","@use 'sass:map';\n@use 'module/elevation/variable/shadows';\n\n@mixin shadow($layer) {\n @if map.has-key(shadows.$values, $layer) {\n filter: drop-shadow(var(--#{$layer}-shadow));\n }\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/// Range Module\n/// @group range\n////\n\n@use 'module/color';\n@use 'module/selector';\n@use 'module/elevation';\n@use 'module/disabled';\n\n@mixin _range-scheme($legacy: false) {\n #{selector.ns(range)} {\n &#{selector.ns-attr(js-range)} {\n @include before {\n @include color.box-shadow(action-high blue-france, (legacy:$legacy), );\n }\n\n @include after {\n @include color.background(active blue-france, (legacy:$legacy));\n }\n\n input[type=range] {\n @include selector.range-thumb($legacy) {\n @include elevation.elevate(raised, (legacy: $legacy));\n @include color.background(default grey, (legacy:$legacy));\n @include color.border(action-high blue-france, (legacy:$legacy));\n }\n\n @include disabled.selector {\n @include selector.range-thumb($legacy) {\n @include color.border(disabled grey, (legacy:$legacy));\n }\n }\n }\n }\n\n &__output {\n @include color.text(active blue-france, (legacy:$legacy));\n }\n\n &__min,\n &__max {\n @include color.text(mention grey, (legacy:$legacy));\n }\n\n &--step {\n &#{selector.ns-attr(js-range)} {\n @include before {\n @include color.background-image(action-high blue-france, (legacy:$legacy), $range-track-gradient);\n }\n\n @include after {\n @include color.background-image(action-low blue-france, (legacy:$legacy), $range-progress-gradient);\n @include color.box-shadow(active blue-france, (legacy:$legacy), left-10-in right-10-in);\n }\n }\n }\n\n &--step#{&}--sm {\n &#{selector.ns-attr(js-range)} {\n @include after {\n @include color.box-shadow(active blue-france, (legacy:$legacy), left-6-in right-6-in);\n }\n }\n }\n\n // &--double#{&}--step {\n // &#{selector.ns-attr(js-range)} {\n // @include after {\n // @include color.box-shadow(active blue-france, (legacy:$legacy), left-22-in right-22-in);\n // }\n // }\n // }\n\n // &--double#{&}--step#{&}--sm {\n // &#{selector.ns-attr(js-range)} {\n // @include after {\n // @include color.box-shadow(active blue-france, (legacy:$legacy), left-14-in right-14-in);\n // }\n // }\n // }\n }\n\n #{selector.ns-group(range)} {\n &--error {\n @include before {\n @include color.background-image(border plain error, (legacy:$legacy));\n }\n }\n\n &--valid {\n @include before {\n @include color.background-image(border plain success, (legacy:$legacy));\n }\n }\n\n &--disabled {\n #{selector.ns(range)} {\n &#{selector.ns-attr(js-range)} {\n @include before {\n @include color.box-shadow(disabled grey, (legacy:$legacy));\n }\n\n @include after {\n @include color.background(disabled grey, (legacy:$legacy));\n }\n }\n\n &--step {\n &#{selector.ns-attr(js-range)} {\n @include before {\n @include color.background-image(disabled grey, (legacy:$legacy), $range-track-gradient);\n }\n\n @include after {\n @include color.background-image(default grey, (legacy:$legacy), $range-progress-gradient);\n }\n }\n }\n\n &__output,\n &__min,\n &__max {\n @include color.text(disabled grey, (legacy:$legacy));\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"]} |