1 line
No EOL
38 KiB
Text
1 line
No EOL
38 KiB
Text
{"version":3,"sources":["<no source>","%3Cinput%20css%20pTTRn3%3E","file:///Users/ket/Documents/work/dsfr/src/component/modal/main.scss","file:///Users/ket/Documents/work/dsfr/src/component/modal/style/_module.scss","file:///Users/ket/Documents/work/dsfr/module/color/variable/_static.scss","file:///Users/ket/Documents/work/dsfr/module/elevation/mixin/_ground.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/spacing/tool/_space.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/_position.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/spacing/tool/_size.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/selector/tool/_pseudo.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/selector/tool/_block.scss","file:///Users/ket/Documents/work/dsfr/module/elevation/mixin/_z-index.scss","file:///Users/ket/Documents/work/dsfr/module/color/mixin/_element.scss","file:///Users/ket/Documents/work/dsfr/module/elevation/mixin/_shadow.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/typography/tool/_styles.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/typography/tool/_font-weight.scss","file:///Users/ket/Documents/work/dsfr/src/core/style/selector/tool/_pattern.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","file:///Users/ket/Documents/work/dsfr/module/legacy/mixin/_legacy.scss","file:///Users/ket/Documents/work/dsfr/src/component/modal/style/_scheme.scss","file:///Users/ket/Documents/work/dsfr/src/component/modal/print.scss","file:///Users/ket/Documents/work/dsfr/src/component/modal/style/_print.scss"],"names":[],"mappings":"AAAA;;GAAA;ACAA,gBAAgB;;ACKhB;;cAAA;ACIA;EAEE,YAAA;EACA,cAAA;EACA,kBAAA;EACA,UAAA;EACA,wCCTU;;ECCV,cAAA;EAGE,aAAA;ECuBA,UAfE;EAeF,SAfE;ECPF,aAAA;EAIA,sBAAA;EAIA,oBAAA;EAIA,8BAAA;ECfF,eAAA;EAEE,MAAA;EAGA,QAAA;EAGA,SAAA;EAGA,OAAA;ECuCE,WAAA;EAGA,YAAA;ENpCJ,yCAAA;;EAoBA;;GAAA;AFJF;;AEdE;EACE,oBAAA;AFqBJ;;AElBE;EACE,aAAA;AFoBJ;;ASpCE;EAGI,WPgBY;EOZZ,cAAA;EDmCA,QAAA;EAGA,YAAA;ENxBF,cAAA;AFsBJ;;AS3CE;EAGI,aPqBW;EOjBX,cAAA;EDmCA,QAAA;EAGA,YAAA;ENnBF,cAAA;AFwBJ;;ASlDE;EPkCI,aAAA;AFmBN;;ASrDE;EPyCI,WAAA;AFoBN;;AEJE;EAEE,mBAAA;EACA,UAAA;EMlBE,WAAA;EAGA,YAAA;ENiBF,yCAAA;AFmBJ;;AUrFE;ERsEE,sCAAA;EACA,mBAAA;EACA,gBAAA;EACA,cAAA;EACA,mCAAA;ESzEE,mCAAA;EC4BF,+CAAA;;EAWI,mBAAA;EAqCJ,4CAAA;EAAA,8CAAA;ECpFA,yCAAA;AbmGJ;;AEXE;EACE,cAAA;EInFA,aAAA;EAQA,mBAAA;EDcA,yBAfE;ALiGN;;AEfE;EG/EI,kBAHA;EAIA,mBAJA;EAWA,qBAXA;AL2GN;;AElBE;EACE,cAAA;EIjGA,aAAA;EDsBA,aAfE;EAWA,mBAXA;EEVJ,gBAAA;EAQE,SAAA;ELmGA,2BAAA;EU1EA,+CAAA;;EAWI,mBAAA;EAqCJ,4CAAA;EAAA,8CAAA;AZwDJ;;AE3BI;EACE,oBAAA;EACA,wBAAA;AFuCN;;AEnCE;EYnBE,2BAAA;EA/EF,mBAAA;EAGE,oBAAA;ECVF,gBAAA;EHsBE,6BAAA;AZ6HJ;;AgB1Ja;;;;EXiBP,oBAXA;AL6JN;;AExCI;EACE,wBAAA;EACA,4BAAA;EACA,yBAAA;EUjGF,+FAAA;AZ4IJ;AiBtKI;ECRI,cAAA;;EAAA,cAAA;AlBDR;AiBSI;ECRI,cAAA;EhBER;IGoBM,qCAXA;EL2BJ;;ES7BA;IPoCM,WAAA;EFqBN;;ESzDA;ID0CI,QAAA;IAGA,YAAA;INGA,cAAA;EFmBJ;;ESnEA;IAGI,WPgDa;IMTb,QAAA;IAGA,YAAA;INQA,cAAA;EFoBJ;;EU7EA;IR6EI,2BAAA;EFmBJ;;EEfA;IG5DE,kBAfE;ELqGJ;;EEnBA;IG/EI,kBAHA;IAIA,mBAJA;IAWA,mBAXA;ELgHJ;;EEvBA;IG1EE,aAfE;IAWA,iBAXA;ELmIJ;;EEzBA;IYlGA,iBAAA;IAGE,iBAAA;Ed8IF;;EkBpKM,cAAA;AlBER;AiBMI;ECRI,cAAA;;EAAA,cAAA;AlBKR;AiBGI;ECRI,cAAA;;EAAA,cAAA;AlBQR;AmBNI;ETGF;ICHM,aAAA;ICgCJ,sBAAA;EZkLF;;EoB7ME;IR2BA,cAAA;EZ4LF;;EoBnNE;IRuBA,sBAAA;EZiMF;;EoBnNI;IRkBF,mDAAA;EZsMF;AAnBF;AqBvNA;EXOE;IE6BE,sBAAA;EZ4MF;;EoBvOE;IR2BA,cAAA;EZsNF;;EoB7OE;IRuBA,sBAAA;EZ2NF;;EoB7OI;IRkBF,mDAAA;EZgOF;;EsBzQF;IACE,aAAA;EtB6QA;AAxBF;AmB7OI;ETGF;ICHM,aAAA;EXiPN;AACF","file":"modal.css","sourcesContent":[null,"@charset \"UTF-8\";\n/* ¯¯¯¯¯¯¯¯¯ *\\\n MODAL\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-modal {\n border: none;\n color: inherit;\n visibility: hidden;\n opacity: 0;\n background-color: rgba(22, 22, 22, 0.64);\n --ground: 2000;\n z-index: 1750;\n padding: 0;\n margin: 0;\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: space-between;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.3s, visibility 0.3s;\n /**\n * Modifier pour fixer la modale en haut en mobile (par defaut en bas)\n */\n}\n@media (min-width: 48em) {\n .fr-modal {\n padding-right: var(--scrollbar-width);\n }\n}\n.fr-modal > .fr-container {\n pointer-events: none;\n}\n.fr-modal:focus {\n outline: none;\n}\n.fr-modal::before {\n content: \"\";\n display: block;\n width: 0;\n height: 2rem;\n flex: 1 0 2rem;\n}\n.fr-modal::after {\n content: none;\n display: block;\n width: 0;\n height: 2rem;\n flex: 1 0 2rem;\n}\n.fr-modal--top::before {\n content: none;\n}\n@media (min-width: 48em) {\n .fr-modal--top::before {\n content: \"\";\n }\n}\n.fr-modal--top::after {\n content: \"\";\n}\n@media (min-width: 48em) {\n .fr-modal::before {\n width: 0;\n height: 10vh;\n flex: 1 0 10vh;\n }\n .fr-modal::after {\n content: \"\";\n width: 0;\n height: 10vh;\n flex: 1 0 10vh;\n }\n}\n.fr-modal--opened {\n visibility: inherit;\n opacity: 1;\n width: 100%;\n height: 100%;\n transition: opacity 0.3s, visibility 0.3s;\n}\n.fr-modal__body {\n --modal-max-height: calc(100vh - 2rem);\n pointer-events: all;\n overflow-y: auto;\n flex: 1 1 auto;\n max-height: var(--modal-max-height);\n}\n@media (min-width: 48em) {\n .fr-modal__body {\n max-height: 80vh !important;\n }\n}\n.fr-modal__header {\n flex: auto 0 0;\n display: flex;\n align-items: center;\n padding: 1rem 1rem 0.5rem;\n}\n@media (min-width: 48em) {\n .fr-modal__header {\n padding: 1rem 2rem;\n }\n}\n.fr-modal__content {\n padding-left: 1rem;\n padding-right: 1rem;\n margin-bottom: 3.5rem;\n}\n@media (min-width: 48em) {\n .fr-modal__content {\n padding-left: 2rem;\n padding-right: 2rem;\n }\n}\n@media (min-width: 48em) {\n .fr-modal__content {\n margin-bottom: 4rem;\n }\n}\n.fr-modal__footer {\n flex: auto 0 0;\n display: flex;\n padding: 1rem;\n margin-top: -2.5rem;\n position: sticky;\n bottom: 0;\n transition: box-shadow 0.3s;\n}\n@media (min-width: 48em) {\n .fr-modal__footer {\n padding: 2rem;\n }\n}\n@media (min-width: 48em) {\n .fr-modal__footer {\n margin-top: -3rem;\n }\n}\n.fr-modal__footer .fr-btns-group {\n margin-bottom: -1rem;\n width: calc(100% + 1rem);\n}\n.fr-modal__title {\n --title-spacing: 0 0 1rem 0;\n font-weight: 700;\n font-size: 1.375rem;\n line-height: 1.75rem;\n font-weight: 700;\n}\n@media (min-width: 48em) {\n .fr-modal__title {\n font-size: 1.5rem;\n line-height: 2rem;\n }\n}\n.fr-modal__title[class^=fr-icon-], .fr-modal__title[class*=\" fr-icon-\"], .fr-modal__title[class^=fr-fi-], .fr-modal__title[class*=\" fr-fi-\"] {\n margin-right: 0.5rem;\n}\n\n.fr-modal__body.fr-scroll-divider .fr-modal__footer {\n background-position: 0 0;\n background-repeat: no-repeat;\n background-size: 100% 1px;\n}\n\n.fr-modal__body {\n z-index: calc(var(--ground) + 2000);\n background-color: var(--background-lifted-grey);\n --idle: transparent;\n --hover: var(--background-lifted-grey-hover);\n --active: var(--background-lifted-grey-active);\n filter: drop-shadow(var(--lifted-shadow));\n}\n.fr-modal__title {\n color: var(--text-title-grey);\n}\n.fr-modal__footer {\n background-color: var(--background-lifted-grey);\n --idle: transparent;\n --hover: var(--background-lifted-grey-hover);\n --active: var(--background-lifted-grey-active);\n}\n.fr-modal__body.fr-scroll-divider .fr-modal__footer {\n background-image: linear-gradient(0deg, var(--border-default-grey), var(--border-default-grey));\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-modal__body {\n z-index: 2000;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-modal__body {\n background-color: #fff;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-modal__title {\n color: #161616;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-modal__footer {\n background-color: #fff;\n }\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .fr-modal__body.fr-scroll-divider .fr-modal__footer {\n background-image: linear-gradient(0deg, #ddd, #ddd);\n }\n}\n\n@media print {\n .fr-modal__body {\n background-color: #fff;\n }\n}\n@media print and (-ms-high-contrast: none), print and (-ms-high-contrast: active) {\n .fr-modal__body {\n z-index: 2000;\n }\n}\n@media print {\n .fr-modal__title {\n color: #161616;\n }\n}\n@media print {\n .fr-modal__footer {\n background-color: #fff;\n }\n}\n@media print {\n .fr-modal__body.fr-scroll-divider .fr-modal__footer {\n background-image: linear-gradient(0deg, #ddd, #ddd);\n }\n}\n@media print {\n .fr-modal {\n display: none;\n }\n}","////\n/// Modal\n/// @group modal\n////\n\n/* ¯¯¯¯¯¯¯¯¯ *\\\n MODAL\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 _modal-scheme;\n","////\n/// Modal Module\n/// @group modal\n////\n\n@use 'module/spacing';\n@use 'module/elevation';\n@use 'module/color';\n\n#{ns(modal)} {\n // reset dialog @TODO à déplacer dans reset ?\n border: none;\n color: inherit;\n visibility: hidden;\n opacity: 0;\n background-color: color.$black-a64;\n\n @include elevation.ground(modal);\n\n @include padding(0);\n @include margin(0);\n @include display-flex(column, stretch, space-between);\n @include fixed(0, 0, 0, 0, 100%, 100%);\n @include padding-right(var(--scrollbar-width), md);\n // transition in/out\n transition: opacity 0.3s, visibility 0.3s;\n\n & > #{ns(container)} {\n pointer-events: none;\n }\n\n &:focus {\n outline: none;\n }\n\n @include before('', block) {\n @include size(0, 8v);\n flex: 1 0 spacing.space(8v);\n }\n\n @include after(none, block) {\n @include size(0, 8v);\n flex: 1 0 spacing.space(8v);\n }\n\n /**\n * Modifier pour fixer la modale en haut en mobile (par defaut en bas)\n */\n &--top {\n @include before {\n content: none;\n @include respond-from(md) {\n content: '';\n }\n }\n\n @include after {\n content: '';\n }\n }\n\n @include respond-from(md) {\n @include before {\n @include size(0, 10vh);\n flex: 1 0 10vh;\n }\n\n @include after('') {\n @include size(0, 10vh);\n flex: 1 0 10vh;\n }\n }\n\n &--opened {\n // transition in/out\n visibility: inherit;\n opacity: 1;\n @include size(100%, 100%);\n transition: opacity 0.3s, visibility 0.3s;\n }\n\n @include body {\n --modal-max-height: calc(100vh - 2rem);\n pointer-events: all;\n overflow-y: auto;\n flex: 1 1 auto;\n max-height: var(--modal-max-height);\n\n @include respond-from(md) {\n max-height: 80vh !important;\n }\n }\n\n &__header {\n flex: auto 0 0;\n @include display-flex(null, center);\n @include padding(4v 4v 2v);\n @include padding(4v 8v, md);\n }\n\n &__content {\n @include padding-x(4v);\n @include padding-x(8v, md);\n @include margin-bottom(14v);\n @include margin-bottom(16v, md);\n }\n\n &__footer {\n flex: auto 0 0;\n @include display-flex(null);\n @include padding(4v);\n @include padding(8v, md);\n @include margin-top(-10v);\n @include margin-top(-12v, md);\n @include sticky(null,null,0);\n transition: box-shadow 0.3s;\n z-index: z-index(modal-footer);\n\n #{ns-group(btns)} {\n margin-bottom: -1rem;\n width: calc(100% + #{space(4v)});\n }\n }\n\n &__title {\n @include set-title-margin(0 0 4v 0);\n @include title-style('h4');\n @include font-weight('bold');\n\n @include has-icon {\n @include margin-right(2v);\n }\n }\n\n &__body#{ns(scroll-divider)} {\n #{ns(modal)}__footer {\n background-position: 0 0;\n background-repeat: no-repeat;\n background-size: 100% 1px;\n }\n }\n}\n","@use 'options';\n\n$focus: #0a76f6;\n$absolute-black: #000;\n$black: nth(map-get(options.$values, grey-50), 1);\n$black-a0: rgba(nth(map-get(options.$values, grey-50), 1), 0);\n$black-a64: rgba(nth(map-get(options.$values, grey-50), 1), 64%);\n$white: nth(map-get(options.$values, grey-1000), 1);\n$blue-france: nth(map-get(options.$values, blue-france-sun-113), 1);\n$red-marianne: nth(map-get(options.$values, red-marianne-main-472), 1);\n","@use 'sass:list';\n@use 'sass:map';\n@use '../variable/grounds';\n\n@mixin ground ($level) {\n $ground: map.get(grounds.$values, $level);\n\n --ground: #{list.nth($ground, 1)};\n\n @if list.length($ground) > 1 {\n z-index: #{list.nth($ground, 2)};\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/// 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 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 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","////\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 : Selector block\n/// @group core\n////\n\n@mixin title() {\n &__title {\n @content;\n }\n}\n\n@mixin body() {\n &__body {\n @content;\n }\n}\n\n@mixin list() {\n &__list {\n @content;\n }\n}\n\n@mixin list-item() {\n &__item {\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: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","@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 : 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","////\n/// Core Tool : Typography font-weight\n/// @group core\n////\n\n/// Return font-weight value from font-weight map.\n///\n/// @param {String} $scale ['regular'] - Type scale value from `$weight-scale` (Default to 'regular' = 400)\n///\n/// @example scss - Set font-weight to bold (700)\n/// .foo {\n/// font-weight: font-weight('bold');\n/// }\n\n@function font-weight($scale: regular) {\n @return map-get($font-weight-scale, $scale);\n}\n\n@mixin font-weight($scale) {\n font-weight: font-weight($scale);\n}\n\n@mixin build-utillity-font-weight() {\n $fontWeightValues: map-get($font-weight-vars, values);\n @if $fontWeightValues == 'all' {\n $fontWeightValues: map-keys($font-weight-names);\n }\n @each $weight in $fontWeightValues {\n $name: map-get($font-weight-names, $weight);\n #{ns('text--' + $name)} {\n font-weight: #{$weight} !important;\n }\n }\n}\n","////\n/// Core Tool : Selector pattern\n/// @group core\n////\n\n@mixin _class-pattern($selector, $unify: true) {\n @if & == null {\n @at-root #{$selector} {\n @content;\n }\n }\n @else if $unify {\n @at-root #{selector-unify(&, $selector)} {\n @content;\n }\n }\n @else {\n #{$selector} {\n @content;\n }\n }\n}\n\n@mixin class-contains($unify: true, $patterns...) {\n\n @if length($patterns) == 1 and length(nth($patterns, 1)) > 1 {\n $patterns: nth($patterns, 1);\n }\n\n $selectors: '';\n\n @each $pattern in $patterns {\n $selectors: '#{$selectors}[class*=\"#{$pattern}\"]';\n }\n\n @include _class-pattern($selectors, $unify) {\n @content;\n }\n}\n\n@mixin class-not-contains($unify: true, $patterns...) {\n\n @if length($patterns) == 1 and length(nth($patterns, 1)) > 1 {\n $patterns: nth($patterns, 1);\n }\n\n $selectors: '';\n @each $pattern in $patterns {\n $selectors: '#{$selectors}:not([class*=\"#{$pattern}\"])';\n }\n\n @include _class-pattern($selectors, $unify) {\n @content;\n }\n}\n\n@mixin class-start-with($start, $unify: true) {\n @include _class-pattern(class-start-with($start), $unify) {\n @content;\n }\n}\n\n@mixin class-not-start-with($start, $unify: true) {\n @include _class-pattern(class-not-start-with($start), $unify) {\n @content;\n }\n}\n\n@mixin class-end-with($end, $unify: true) {\n @include _class-pattern(class-end-with($end), $unify) {\n @content;\n }\n}\n\n@mixin class-not-end-with($end, $unify: true) {\n @include _class-pattern(class-not-end-with($end), $unify) {\n @content;\n }\n}\n\n@mixin class-is-ns($unify: true) {\n @include class-start-with(ns('', ''), $unify) {\n @content;\n }\n}\n\n@mixin class-is-not-ns($unify: true) {\n @include class-not-start-with(ns('', ''), $unify) {\n @content;\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/// Modal Scheme\n/// @group modal\n////\n\n@use 'module/color';\n@use 'module/elevation';\n\n@mixin _modal-scheme($legacy: false) {\n #{ns(modal)} {\n @include body {\n @include elevation.elevate(lifted, (legacy: $legacy));\n }\n\n &__title {\n @include color.text(title grey, (legacy:$legacy));\n }\n\n &__footer {\n @include color.background(lifted grey, (legacy:$legacy));\n }\n\n &__body#{ns(scroll-divider)} {\n #{ns(modal)}__footer {\n @include color.background-image(border default grey, (legacy:$legacy));\n }\n }\n }\n}\n","////\n/// Modal Print\n/// @group modal\n////\n\n@media print {\n @import 'index';\n @import 'style/scheme';\n\n @include _modal-scheme('print');\n\n @import 'style/print';\n}\n","#{ns(modal)} {\n display: none;\n}\n"]} |