@axa-fr/design-system-apollo-css 1.0.5-alpha.285 → 1.0.5-alpha.290
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Divider/DividerLF.css +1 -1
- package/dist/Divider/DividerLF.css.map +1 -1
- package/dist/Divider/DividerLF.scss +1 -1
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxApollo.css +1 -0
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxApollo.css.map +1 -0
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxApollo.scss +106 -0
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxCommon.css +1 -0
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxCommon.css.map +1 -0
- package/dist/Form/Checkbox/{CheckboxCard/CheckboxCardCommon.scss → CardCheckbox/CardCheckboxCommon.scss} +44 -51
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxLF.css +1 -0
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxLF.css.map +1 -0
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxLF.scss +93 -0
- package/dist/Form/Checkbox/Checkbox/CheckboxApollo.css +1 -1
- package/dist/Form/Checkbox/Checkbox/CheckboxApollo.css.map +1 -1
- package/dist/Form/Checkbox/Checkbox/CheckboxApollo.scss +14 -28
- package/dist/Form/Checkbox/Checkbox/CheckboxCommon.css +1 -1
- package/dist/Form/Checkbox/Checkbox/CheckboxCommon.css.map +1 -1
- package/dist/Form/Checkbox/Checkbox/CheckboxCommon.scss +23 -30
- package/dist/Form/Checkbox/Checkbox/CheckboxLF.css +1 -1
- package/dist/Form/Checkbox/Checkbox/CheckboxLF.css.map +1 -1
- package/dist/Form/Checkbox/Checkbox/CheckboxLF.scss +15 -28
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextApollo.css +1 -1
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextApollo.css.map +1 -1
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextCommon.css +1 -1
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextCommon.css.map +1 -1
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextCommon.scss +22 -4
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextLF.css +1 -1
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextLF.css.map +1 -1
- package/dist/Grid/DebugGrid.css +1 -1
- package/dist/Grid/DebugGrid.css.map +1 -1
- package/dist/Grid/DebugGrid.scss +1 -1
- package/dist/apollo.css +1 -1
- package/dist/apollo.css.map +1 -1
- package/dist/apollo.scss +1 -1
- package/dist/look-and-feel.css +2 -2
- package/dist/look-and-feel.css.map +1 -1
- package/dist/look-and-feel.scss +1 -1
- package/package.json +1 -1
- package/dist/Form/Checkbox/CheckboxCard/CheckboxCardApollo.css +0 -1
- package/dist/Form/Checkbox/CheckboxCard/CheckboxCardApollo.css.map +0 -1
- package/dist/Form/Checkbox/CheckboxCard/CheckboxCardApollo.scss +0 -104
- package/dist/Form/Checkbox/CheckboxCard/CheckboxCardCommon.css +0 -1
- package/dist/Form/Checkbox/CheckboxCard/CheckboxCardCommon.css.map +0 -1
- package/dist/Form/Checkbox/CheckboxCard/CheckboxCardLF.css +0 -1
- package/dist/Form/Checkbox/CheckboxCard/CheckboxCardLF.css.map +0 -1
- package/dist/Form/Checkbox/CheckboxCard/CheckboxCardLF.scss +0 -92
|
@@ -1 +1 @@
|
|
|
1
|
-
.af-divider{border:0;border-top:1px solid var(--divider-border-color);margin:0;--divider-border-color:var(--color-
|
|
1
|
+
.af-divider{border:0;border-top:1px solid var(--divider-border-color);margin:0;--divider-border-color:var(--color-blue-400)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Divider/DividerCommon.scss","../../src/Divider/DividerLF.scss","../../src/Divider/DividerLF.scss%23sass"],"names":[],"mappings":"AAAA,YCEA,QAAA,CDCE,gDAAA,CAFA,QAAA,CEEA,4CDCF","file":"DividerLF.css","sourcesContent":[".af-divider {\n margin: 0;\n border: 0;\n border-top: 1px solid var(--divider-border-color);\n}\n","@use \"./DividerCommon\";\n\n.af-divider {\n --divider-border-color: var(--color-
|
|
1
|
+
{"version":3,"sources":["../../src/Divider/DividerCommon.scss","../../src/Divider/DividerLF.scss","../../src/Divider/DividerLF.scss%23sass"],"names":[],"mappings":"AAAA,YCEA,QAAA,CDCE,gDAAA,CAFA,QAAA,CEEA,4CDCF","file":"DividerLF.css","sourcesContent":[".af-divider {\n margin: 0;\n border: 0;\n border-top: 1px solid var(--divider-border-color);\n}\n","@use \"./DividerCommon\";\n\n.af-divider {\n --divider-border-color: var(--color-blue-400);\n}\n","@use \"./DividerCommon\";\n\n.af-divider {\n --divider-border-color: var(--color-blue-400);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.af-card-checkbox__container{display:flex;flex-direction:column;gap:1rem}.af-card-checkbox__legend{color:var(--card-checkbox-color);display:grid;font-size:calc(18/var(--font-size-base)*1rem);font-weight:600;margin-block-end:calc(4/var(--font-size-base)*1rem);row-gap:calc(4/var(--font-size-base)*1rem)}.af-card-checkbox__legend>p{margin:0}.af-card-checkbox__description{color:var(--card-checkbox-color);font-size:calc(16/var(--font-size-base)*1rem);font-weight:400;line-height:calc(16/var(--font-size-base)*1rem)}@media (width > 667px){.af-card-checkbox__description{font-size:calc(18/var(--font-size-base)*1rem);line-height:calc(18/var(--font-size-base)*1rem)}}.af-card-checkbox__choices{display:flex;flex-direction:column;row-gap:calc(8/var(--font-size-base)*1rem)}.af-card-checkbox-group{align-items:stretch;display:flex;font-family:var(--card-checkbox-font-family);font-style:normal;font-weight:400;gap:1rem;line-height:calc(20/var(--font-size-base)*1rem);list-style:none;margin:0;padding:0}.af-card-checkbox-group--horizontal{flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--horizontal .af-card-checkbox-label{align-items:var(--card-checkbox-align-items);flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content{flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{align-items:var(--card-checkbox-align-item);flex-direction:var(--card-checkbox-flex-direction);text-align:left}.af-card-checkbox-group--vertical{flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--vertical>*{flex-basis:0;flex-grow:1}.af-card-checkbox-group--vertical .af-card-checkbox-label{align-items:var(--card-checkbox-align-items);flex-direction:var(--card-checkbox-flex-direction);height:100%;justify-content:var(--card-checkbox-justify-content)}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content{flex:1 1;flex-direction:var(--card-checkbox-flex-direction);width:100%}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{align-items:var(--card-checkbox-align-item);flex-direction:var(--card-checkbox-flex-direction);text-align:center}.af-card-checkbox-group .af-card-checkbox-label{align-self:stretch;border:1px solid var(--card-checkbox-border-color);border-radius:var(--card-checkbox-border-radius);cursor:pointer;display:flex;flex:1 1;gap:calc(12/var(--font-size-base)*1rem);padding:1rem}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content{align-items:center;display:flex;gap:calc(4/var(--font-size-base)*1rem)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{display:flex;font-size:1rem;justify-content:center;line-height:calc(20/var(--font-size-base)*1rem)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:first-child{color:var(--card-checkbox-label-text-color);font-size:calc(18/var(--font-size-base)*1rem);font-weight:400}@media (width < 667px){.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:first-child{font-size:calc(16/var(--font-size-base)*1rem);font-weight:400}}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:not(:first-child){color:var(--card-checkbox-label-text-color);font-size:calc(16/var(--font-size-base)*1rem);font-weight:400}@media (width < 667px){.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:not(:first-child){font-size:calc(14/var(--font-size-base)*1rem);font-weight:400}}.af-card-checkbox-group .af-card-checkbox-label [aria-invalid=true],.af-card-checkbox-group .af-card-checkbox-label:focus-visible,.af-card-checkbox-group .af-card-checkbox-label:focus-within,.af-card-checkbox-group .af-card-checkbox-label:has(input:checked),.af-card-checkbox-group .af-card-checkbox-label:hover{outline:1px solid var(--card-checkbox-outline-color)}.af-card-checkbox-group .af-card-checkbox-label:has(input:checked) .af-card-checkbox-content-description>span:first-child{font-weight:600}.af-card-checkbox__label-container{--font-size-base:calc(16/var(--font-size-base)*1rem)}.af-card-checkbox__legend{--card-checkbox-color:var(--neutral-100)}.af-card-checkbox__legend [aria-hidden]{display:none}.af-card-checkbox__description{--card-checkbox-color:var(--neutral-80)}.af-card-checkbox-group--horizontal{--card-checkbox-flex-direction:column}.af-card-checkbox-group--horizontal .af-card-checkbox-label{--card-checkbox-flex-direction:row}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content{--card-checkbox-flex-direction:row;--card-checkbox-margin-left:calc(12/var(--font-size-base)*1rem)}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{--card-checkbox-flex-direction:column;--card-checkbox-align-item:flex-start}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:first-child{--card-checkbox-label-text-color:var(--axa-blue-100)}.af-card-checkbox-group--vertical{--card-checkbox-flex-direction:row}.af-card-checkbox-group--vertical .af-card-checkbox-label{--card-checkbox-flex-direction:column-reverse}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content{--card-checkbox-flex-direction:column;--card-checkbox-margin-left:calc(2/var(--font-size-base)*1rem)}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{--card-checkbox-flex-direction:column;--card-checkbox-align-item:center}.af-card-checkbox-group .af-card-checkbox-label{--card-checkbox-border-color:var(--axa-blue-65);--card-checkbox-border-radius:calc(8/var(--font-size-base)*1rem);--card-checkbox-align-items:center;--card-checkbox-outline-color:var(--card-checkbox-border-color)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:first-child{--card-checkbox-label-text-color:var(--axa-blue-100)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:not(:first-child){--card-checkbox-label-text-color:var(--neutral-80)}.af-card-checkbox-group .af-card-checkbox-label[aria-invalid=true]{--card-checkbox-background-color:var(--axa-red-4);--card-checkbox-border-color:var(--red-alert-100)}.af-card-checkbox-group .af-card-checkbox-label[aria-invalid=true] .af-card-checkbox-content-description>span:first-child{--card-checkbox-label-text-color:var(--neutral-80)}.af-card-checkbox-group .af-card-checkbox-label:hover{--card-checkbox-border-color:var(--axa-blue-100);--card-checkbox-background-color:var(--white)}.af-card-checkbox-group .af-card-checkbox-label:hover .af-card-checkbox-content-description>span:first-child{--card-checkbox-label-text-color:var(--axa-blue-100)}.af-card-checkbox-group .af-card-checkbox-label:has(input:checked){--card-checkbox-border-color:var(--axa-blue-100);--card-checkbox-background-color:var(--axa-blue-4)}.af-card-checkbox-group .af-card-checkbox-label:has(input:checked) .af-card-checkbox-content-description>span:first-child{--card-checkbox-label-text-color:var(--axa-blue-100)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/Form/Checkbox/CardCheckbox/CardCheckboxCommon.scss","../../../../src/Form/Checkbox/CardCheckbox/CardCheckboxApollo.scss","../../../../src/Form/Checkbox/CardCheckbox/CardCheckboxApollo.scss%23sass"],"names":[],"mappings":"AAGE,6BCFF,YAAA,CDII,qBAAA,CCFJ,QACA,CDKE,0BAME,gCAAA,CALA,YAAA,CAGA,6CAAA,CACA,eAAA,CAHA,mDAAA,CACA,0CCAJ,CDKI,4BACE,QCHN,CDOE,+BAIE,gCAAA,CAHA,6CAAA,CACA,eAAA,CACA,+CCJJ,CDOI,uBANF,+BAOI,6CAAA,CACA,+CCJJ,CACF,CDOE,2BACE,YAAA,CACA,qBAAA,CACA,0CCLJ,CDQE,wBAIE,mBAAA,CAHA,YAAA,CAKA,4CAAA,CACA,iBAAA,CACA,eAAA,CAHA,QAAA,CAIA,+CAAA,CACA,eAAA,CARA,QAAA,CACA,SCCJ,CDQI,oCACE,kDCNN,CDQM,4DAEE,4CAAA,CADA,kDCLR,CDQQ,sFACE,kDCNV,CDQU,4HAEE,2CAAA,CADA,kDAAA,CAEA,eCNZ,CDYI,kCACE,kDCVN,CDYM,oCACE,YAAA,CACA,WCVR,CDaM,0DAGE,4CAAA,CADA,kDAAA,CADA,WAAA,CAGA,oDCXR,CDaQ,oFAEE,QAAA,CACA,kDAAA,CAFA,UCTV,CDaU,0HAEE,2CAAA,CADA,kDAAA,CAEA,iBCXZ,CDiBI,gDAME,kBAAA,CAHA,kDAAA,CACA,gDAAA,CAIA,cAAA,CAPA,YAAA,CAIA,QAAA,CAEA,uCAAA,CALA,YCTN,CDiBM,0EAEE,kBAAA,CADA,YAAA,CAEA,sCCfR,CDiBQ,gHACE,YAAA,CAEA,cAAA,CADA,sBAAA,CAEA,+CCfV,CDiBU,iIAGE,2CAAA,CClBZ,6CAAA,CDiBY,eCdZ,CDiBY,uBALF,iIAMI,6CAAA,CACA,eCdZ,CACF,CDiBU,uIAGE,2CAAA,CAFA,6CAAA,CACA,eCdZ,CDiBY,uBALF,uIAMI,6CAAA,CACA,eCdZ,CACF,CDmBM,wTAKE,oDCpBR,CDwBQ,0HACE,eCtBV,CChIE,mCACE,oDDmIJ,CChIE,0BACE,wCDkIJ,CChII,wCACE,YDkIN,CC9HE,+BACE,uCDgIJ,CC5HI,oCACE,qCD8HN,CC5HM,4DACE,kCD8HR,CC5HQ,sFACE,kCAAA,CACA,+DD8HV,CC5HU,4HACE,qCAAA,CACA,qCD8HZ,CC5HY,6IACE,oDD8Hd,CCvHI,kCACE,kCDyHN,CCvHM,0DACE,6CDyHR,CCvHQ,oFACE,qCAAA,CACA,8DDyHV,CCvHU,0HACE,qCAAA,CACA,iCDyHZ,CCnHI,gDACE,+CAAA,CACA,gEAAA,CACA,kCAAA,CACA,+DDqHN,CClHQ,iIACE,oDDoHV,CCjHQ,uIACE,kDDmHV,CC/GM,mEACE,iDAAA,CACA,iDDiHR,CC/GQ,0HACE,kDDiHV,CC7GM,sDACE,gDAAA,CACA,6CD+GR,CC7GQ,6GACE,oDD+GV,CC3GM,mEACE,gDAAA,CACA,kDD6GR,CC3GQ,0HACE,oDD6GV","file":"CardCheckboxApollo.css","sourcesContent":["@use \"../../../common/breakpoints\" as breakpoints;\n\n.af-card-checkbox {\n &__container {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n &__legend {\n display: grid;\n margin-block-end: calc(4 / var(--font-size-base) * 1rem);\n row-gap: calc(4 / var(--font-size-base) * 1rem);\n font-size: calc(18 / var(--font-size-base) * 1rem);\n font-weight: 600;\n color: var(--card-checkbox-color);\n\n & > p {\n margin: 0;\n }\n }\n\n &__description {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n line-height: calc(16 / var(--font-size-base) * 1rem);\n color: var(--card-checkbox-color);\n\n @media (width > #{breakpoints.$breakpoint-sm}) {\n font-size: calc(18 / var(--font-size-base) * 1rem);\n line-height: calc(18 / var(--font-size-base) * 1rem);\n }\n }\n\n &__choices {\n display: flex;\n flex-direction: column;\n row-gap: calc(8 / var(--font-size-base) * 1rem);\n }\n\n &-group {\n display: flex;\n margin: 0;\n padding: 0;\n align-items: stretch;\n gap: 1rem;\n font-family: var(--card-checkbox-font-family);\n font-style: normal;\n font-weight: 400;\n line-height: calc(20 / var(--font-size-base) * 1rem);\n list-style: none;\n\n &--horizontal {\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-label {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-items);\n\n .af-card-checkbox-content {\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-content-description {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-item);\n text-align: left;\n }\n }\n }\n }\n\n &--vertical {\n flex-direction: var(--card-checkbox-flex-direction);\n\n > * {\n flex-basis: 0;\n flex-grow: 1;\n }\n\n .af-card-checkbox-label {\n height: 100%;\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-items);\n justify-content: var(--card-checkbox-justify-content);\n\n .af-card-checkbox-content {\n width: 100%;\n flex: 1;\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-content-description {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-item);\n text-align: center;\n }\n }\n }\n }\n\n .af-card-checkbox-label {\n display: flex;\n padding: 1rem;\n border: 1px solid var(--card-checkbox-border-color);\n border-radius: var(--card-checkbox-border-radius);\n flex: 1;\n align-self: stretch;\n gap: calc(12 / var(--font-size-base) * 1rem);\n cursor: pointer;\n\n .af-card-checkbox-content {\n display: flex;\n align-items: center;\n gap: calc(4 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n display: flex;\n justify-content: center;\n font-size: 1rem;\n line-height: calc(20 / var(--font-size-base) * 1rem);\n\n & > span:first-child {\n font-size: calc(18 / var(--font-size-base) * 1rem);\n font-weight: 400;\n color: var(--card-checkbox-label-text-color);\n\n @media (width < #{breakpoints.$breakpoint-sm}) {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n }\n }\n\n & > span:not(:first-child) {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n color: var(--card-checkbox-label-text-color);\n\n @media (width < #{breakpoints.$breakpoint-sm}) {\n font-size: calc(14 / var(--font-size-base) * 1rem);\n font-weight: 400;\n }\n }\n }\n }\n\n &:hover,\n &:focus-visible,\n &:focus-within,\n &:has(input:checked),\n [aria-invalid=\"true\"] {\n outline: 1px solid var(--card-checkbox-outline-color);\n }\n\n &:has(input:checked) {\n .af-card-checkbox-content-description > span:first-child {\n font-weight: 600;\n }\n }\n }\n }\n}\n","@use \"CardCheckboxCommon\";\n@use \"../../../common/breakpoints\" as breakpoints;\n\n.af-card-checkbox {\n &__label-container {\n --font-size-base: calc(16 / var(--font-size-base) * 1rem);\n }\n\n &__legend {\n --card-checkbox-color: var(--neutral-100);\n\n [aria-hidden] {\n display: none;\n }\n }\n\n &__description {\n --card-checkbox-color: var(--neutral-80);\n }\n\n &-group {\n &--horizontal {\n --card-checkbox-flex-direction: column;\n\n .af-card-checkbox-label {\n --card-checkbox-flex-direction: row;\n\n .af-card-checkbox-content {\n --card-checkbox-flex-direction: row;\n --card-checkbox-margin-left: calc(12 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n --card-checkbox-flex-direction: column;\n --card-checkbox-align-item: flex-start;\n\n & > span:first-child {\n --card-checkbox-label-text-color: var(--axa-blue-100);\n }\n }\n }\n }\n }\n\n &--vertical {\n --card-checkbox-flex-direction: row;\n\n .af-card-checkbox-label {\n --card-checkbox-flex-direction: column-reverse;\n\n .af-card-checkbox-content {\n --card-checkbox-flex-direction: column;\n --card-checkbox-margin-left: calc(2 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n --card-checkbox-flex-direction: column;\n --card-checkbox-align-item: center;\n }\n }\n }\n }\n\n .af-card-checkbox-label {\n --card-checkbox-border-color: var(--axa-blue-65);\n --card-checkbox-border-radius: calc(8 / var(--font-size-base) * 1rem);\n --card-checkbox-align-items: center;\n --card-checkbox-outline-color: var(--card-checkbox-border-color);\n\n .af-card-checkbox-content .af-card-checkbox-content-description > span {\n &:first-child {\n --card-checkbox-label-text-color: var(--axa-blue-100);\n }\n\n &:not(:first-child) {\n --card-checkbox-label-text-color: var(--neutral-80);\n }\n }\n\n &[aria-invalid=\"true\"] {\n --card-checkbox-background-color: var(--axa-red-4);\n --card-checkbox-border-color: var(--red-alert-100);\n\n .af-card-checkbox-content-description > span:first-child {\n --card-checkbox-label-text-color: var(--neutral-80);\n }\n }\n\n &:hover {\n --card-checkbox-border-color: var(--axa-blue-100);\n --card-checkbox-background-color: var(--white);\n\n .af-card-checkbox-content-description > span:first-child {\n --card-checkbox-label-text-color: var(--axa-blue-100);\n }\n }\n\n &:has(input:checked) {\n --card-checkbox-border-color: var(--axa-blue-100);\n --card-checkbox-background-color: var(--axa-blue-4);\n\n .af-card-checkbox-content-description > span:first-child {\n --card-checkbox-label-text-color: var(--axa-blue-100);\n }\n }\n }\n }\n}\n","@use \"CardCheckboxCommon\";\n@use \"../../../common/breakpoints\" as breakpoints;\n\n.af-card-checkbox {\n &__label-container {\n --font-size-base: calc(16 / var(--font-size-base) * 1rem);\n }\n\n &__legend {\n --card-checkbox-color: var(--neutral-100);\n\n [aria-hidden] {\n display: none;\n }\n }\n\n &__description {\n --card-checkbox-color: var(--neutral-80);\n }\n\n &-group {\n &--horizontal {\n --card-checkbox-flex-direction: column;\n\n .af-card-checkbox-label {\n --card-checkbox-flex-direction: row;\n\n .af-card-checkbox-content {\n --card-checkbox-flex-direction: row;\n --card-checkbox-margin-left: calc(12 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n --card-checkbox-flex-direction: column;\n --card-checkbox-align-item: flex-start;\n\n & > span:first-child {\n --card-checkbox-label-text-color: var(--axa-blue-100);\n }\n }\n }\n }\n }\n\n &--vertical {\n --card-checkbox-flex-direction: row;\n\n .af-card-checkbox-label {\n --card-checkbox-flex-direction: column-reverse;\n\n .af-card-checkbox-content {\n --card-checkbox-flex-direction: column;\n --card-checkbox-margin-left: calc(2 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n --card-checkbox-flex-direction: column;\n --card-checkbox-align-item: center;\n }\n }\n }\n }\n\n .af-card-checkbox-label {\n --card-checkbox-border-color: var(--axa-blue-65);\n --card-checkbox-border-radius: calc(8 / var(--font-size-base) * 1rem);\n --card-checkbox-align-items: center;\n --card-checkbox-outline-color: var(--card-checkbox-border-color);\n\n .af-card-checkbox-content .af-card-checkbox-content-description > span {\n &:first-child {\n --card-checkbox-label-text-color: var(--axa-blue-100);\n }\n\n &:not(:first-child) {\n --card-checkbox-label-text-color: var(--neutral-80);\n }\n }\n\n &[aria-invalid=\"true\"] {\n --card-checkbox-background-color: var(--axa-red-4);\n --card-checkbox-border-color: var(--red-alert-100);\n\n .af-card-checkbox-content-description > span:first-child {\n --card-checkbox-label-text-color: var(--neutral-80);\n }\n }\n\n &:hover {\n --card-checkbox-border-color: var(--axa-blue-100);\n --card-checkbox-background-color: var(--white);\n\n .af-card-checkbox-content-description > span:first-child {\n --card-checkbox-label-text-color: var(--axa-blue-100);\n }\n }\n\n &:has(input:checked) {\n --card-checkbox-border-color: var(--axa-blue-100);\n --card-checkbox-background-color: var(--axa-blue-4);\n\n .af-card-checkbox-content-description > span:first-child {\n --card-checkbox-label-text-color: var(--axa-blue-100);\n }\n }\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@use "CardCheckboxCommon";
|
|
2
|
+
@use "../../../common/breakpoints" as breakpoints;
|
|
3
|
+
|
|
4
|
+
.af-card-checkbox {
|
|
5
|
+
&__label-container {
|
|
6
|
+
--font-size-base: calc(16 / var(--font-size-base) * 1rem);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&__legend {
|
|
10
|
+
--card-checkbox-color: var(--neutral-100);
|
|
11
|
+
|
|
12
|
+
[aria-hidden] {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__description {
|
|
18
|
+
--card-checkbox-color: var(--neutral-80);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-group {
|
|
22
|
+
&--horizontal {
|
|
23
|
+
--card-checkbox-flex-direction: column;
|
|
24
|
+
|
|
25
|
+
.af-card-checkbox-label {
|
|
26
|
+
--card-checkbox-flex-direction: row;
|
|
27
|
+
|
|
28
|
+
.af-card-checkbox-content {
|
|
29
|
+
--card-checkbox-flex-direction: row;
|
|
30
|
+
--card-checkbox-margin-left: calc(12 / var(--font-size-base) * 1rem);
|
|
31
|
+
|
|
32
|
+
.af-card-checkbox-content-description {
|
|
33
|
+
--card-checkbox-flex-direction: column;
|
|
34
|
+
--card-checkbox-align-item: flex-start;
|
|
35
|
+
|
|
36
|
+
& > span:first-child {
|
|
37
|
+
--card-checkbox-label-text-color: var(--axa-blue-100);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--vertical {
|
|
45
|
+
--card-checkbox-flex-direction: row;
|
|
46
|
+
|
|
47
|
+
.af-card-checkbox-label {
|
|
48
|
+
--card-checkbox-flex-direction: column-reverse;
|
|
49
|
+
|
|
50
|
+
.af-card-checkbox-content {
|
|
51
|
+
--card-checkbox-flex-direction: column;
|
|
52
|
+
--card-checkbox-margin-left: calc(2 / var(--font-size-base) * 1rem);
|
|
53
|
+
|
|
54
|
+
.af-card-checkbox-content-description {
|
|
55
|
+
--card-checkbox-flex-direction: column;
|
|
56
|
+
--card-checkbox-align-item: center;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.af-card-checkbox-label {
|
|
63
|
+
--card-checkbox-border-color: var(--axa-blue-65);
|
|
64
|
+
--card-checkbox-border-radius: calc(8 / var(--font-size-base) * 1rem);
|
|
65
|
+
--card-checkbox-align-items: center;
|
|
66
|
+
--card-checkbox-outline-color: var(--card-checkbox-border-color);
|
|
67
|
+
|
|
68
|
+
.af-card-checkbox-content .af-card-checkbox-content-description > span {
|
|
69
|
+
&:first-child {
|
|
70
|
+
--card-checkbox-label-text-color: var(--axa-blue-100);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:not(:first-child) {
|
|
74
|
+
--card-checkbox-label-text-color: var(--neutral-80);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&[aria-invalid="true"] {
|
|
79
|
+
--card-checkbox-background-color: var(--axa-red-4);
|
|
80
|
+
--card-checkbox-border-color: var(--red-alert-100);
|
|
81
|
+
|
|
82
|
+
.af-card-checkbox-content-description > span:first-child {
|
|
83
|
+
--card-checkbox-label-text-color: var(--neutral-80);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:hover {
|
|
88
|
+
--card-checkbox-border-color: var(--axa-blue-100);
|
|
89
|
+
--card-checkbox-background-color: var(--white);
|
|
90
|
+
|
|
91
|
+
.af-card-checkbox-content-description > span:first-child {
|
|
92
|
+
--card-checkbox-label-text-color: var(--axa-blue-100);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:has(input:checked) {
|
|
97
|
+
--card-checkbox-border-color: var(--axa-blue-100);
|
|
98
|
+
--card-checkbox-background-color: var(--axa-blue-4);
|
|
99
|
+
|
|
100
|
+
.af-card-checkbox-content-description > span:first-child {
|
|
101
|
+
--card-checkbox-label-text-color: var(--axa-blue-100);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.af-card-checkbox__container{display:flex;flex-direction:column;gap:1rem}.af-card-checkbox__legend{color:var(--card-checkbox-color);display:grid;font-size:calc(18/var(--font-size-base)*1rem);font-weight:600;margin-block-end:calc(4/var(--font-size-base)*1rem);row-gap:calc(4/var(--font-size-base)*1rem)}.af-card-checkbox__legend>p{margin:0}.af-card-checkbox__description{color:var(--card-checkbox-color);font-size:calc(16/var(--font-size-base)*1rem);font-weight:400;line-height:calc(16/var(--font-size-base)*1rem)}@media (width > 667px){.af-card-checkbox__description{font-size:calc(18/var(--font-size-base)*1rem);line-height:calc(18/var(--font-size-base)*1rem)}}.af-card-checkbox__choices{display:flex;flex-direction:column;row-gap:calc(8/var(--font-size-base)*1rem)}.af-card-checkbox-group{align-items:stretch;display:flex;font-family:var(--card-checkbox-font-family);font-style:normal;font-weight:400;gap:1rem;line-height:calc(20/var(--font-size-base)*1rem);list-style:none;margin:0;padding:0}.af-card-checkbox-group--horizontal{flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--horizontal .af-card-checkbox-label{align-items:var(--card-checkbox-align-items);flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content{flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{align-items:var(--card-checkbox-align-item);flex-direction:var(--card-checkbox-flex-direction);text-align:left}.af-card-checkbox-group--vertical{flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--vertical>*{flex-basis:0;flex-grow:1}.af-card-checkbox-group--vertical .af-card-checkbox-label{align-items:var(--card-checkbox-align-items);flex-direction:var(--card-checkbox-flex-direction);height:100%;justify-content:var(--card-checkbox-justify-content)}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content{flex:1 1;flex-direction:var(--card-checkbox-flex-direction);width:100%}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{align-items:var(--card-checkbox-align-item);flex-direction:var(--card-checkbox-flex-direction);text-align:center}.af-card-checkbox-group .af-card-checkbox-label{align-self:stretch;border:1px solid var(--card-checkbox-border-color);border-radius:var(--card-checkbox-border-radius);cursor:pointer;display:flex;flex:1 1;gap:calc(12/var(--font-size-base)*1rem);padding:1rem}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content{align-items:center;display:flex;gap:calc(4/var(--font-size-base)*1rem)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{display:flex;font-size:1rem;justify-content:center;line-height:calc(20/var(--font-size-base)*1rem)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:first-child{color:var(--card-checkbox-label-text-color);font-size:calc(18/var(--font-size-base)*1rem);font-weight:400}@media (width < 667px){.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:first-child{font-size:calc(16/var(--font-size-base)*1rem);font-weight:400}}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:not(:first-child){color:var(--card-checkbox-label-text-color);font-size:calc(16/var(--font-size-base)*1rem);font-weight:400}@media (width < 667px){.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:not(:first-child){font-size:calc(14/var(--font-size-base)*1rem);font-weight:400}}.af-card-checkbox-group .af-card-checkbox-label [aria-invalid=true],.af-card-checkbox-group .af-card-checkbox-label:focus-visible,.af-card-checkbox-group .af-card-checkbox-label:focus-within,.af-card-checkbox-group .af-card-checkbox-label:has(input:checked),.af-card-checkbox-group .af-card-checkbox-label:hover{outline:1px solid var(--card-checkbox-outline-color)}.af-card-checkbox-group .af-card-checkbox-label:has(input:checked) .af-card-checkbox-content-description>span:first-child{font-weight:600}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/Form/Checkbox/CardCheckbox/CardCheckboxCommon.scss%23sass","../../../../src/Form/Checkbox/CardCheckbox/CardCheckboxCommon.scss"],"names":[],"mappings":"AAGE,6BACE,YAAA,CCFJ,qBAAA,CDII,QCFJ,CDKE,0BAME,gCAAA,CALA,YAAA,CAGA,6CAAA,CACA,eAAA,CAHA,mDAAA,CACA,0CCAJ,CDKI,4BACE,QCHN,CDOE,+BAIE,gCAAA,CAHA,6CAAA,CACA,eAAA,CACA,+CCJJ,CDOI,uBANF,+BAOI,6CAAA,CACA,+CCJJ,CACF,CDOE,2BACE,YAAA,CACA,qBAAA,CACA,0CCLJ,CDQE,wBAIE,mBAAA,CAHA,YAAA,CAKA,4CAAA,CACA,iBAAA,CACA,eAAA,CAHA,QAAA,CAIA,+CAAA,CACA,eAAA,CARA,QAAA,CACA,SCCJ,CDQI,oCACE,kDCNN,CDQM,4DAEE,4CAAA,CADA,kDCLR,CDQQ,sFACE,kDCNV,CDQU,4HAEE,2CAAA,CADA,kDAAA,CAEA,eCNZ,CDYI,kCACE,kDCVN,CDYM,oCACE,YAAA,CACA,WCVR,CDaM,0DAGE,4CAAA,CADA,kDAAA,CADA,WAAA,CAGA,oDCXR,CDaQ,oFAEE,QAAA,CACA,kDAAA,CAFA,UCTV,CDaU,0HAEE,2CAAA,CADA,kDAAA,CAEA,iBCXZ,CDiBI,gDAME,kBAAA,CAHA,kDAAA,CACA,gDAAA,CAIA,cAAA,CAPA,YAAA,CAIA,QAAA,CAEA,uCAAA,CALA,YCTN,CDiBM,0EAEE,kBAAA,CADA,YAAA,CAEA,sCCfR,CDiBQ,gHACE,YAAA,CAEA,cAAA,CADA,sBAAA,CAEA,+CCfV,CDiBU,iIAGE,2CAAA,CAFA,6CAAA,CACA,eCdZ,CDiBY,uBALF,iIAMI,6CAAA,CACA,eCdZ,CACF,CDiBU,uIAGE,2CAAA,CAFA,6CAAA,CACA,eCdZ,CDiBY,uBALF,uIAMI,6CAAA,CACA,eCdZ,CACF,CDmBM,wTAKE,oDCpBR,CDwBQ,0HACE,eCtBV","file":"CardCheckboxCommon.css","sourcesContent":["@use \"../../../common/breakpoints\" as breakpoints;\n\n.af-card-checkbox {\n &__container {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n &__legend {\n display: grid;\n margin-block-end: calc(4 / var(--font-size-base) * 1rem);\n row-gap: calc(4 / var(--font-size-base) * 1rem);\n font-size: calc(18 / var(--font-size-base) * 1rem);\n font-weight: 600;\n color: var(--card-checkbox-color);\n\n & > p {\n margin: 0;\n }\n }\n\n &__description {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n line-height: calc(16 / var(--font-size-base) * 1rem);\n color: var(--card-checkbox-color);\n\n @media (width > #{breakpoints.$breakpoint-sm}) {\n font-size: calc(18 / var(--font-size-base) * 1rem);\n line-height: calc(18 / var(--font-size-base) * 1rem);\n }\n }\n\n &__choices {\n display: flex;\n flex-direction: column;\n row-gap: calc(8 / var(--font-size-base) * 1rem);\n }\n\n &-group {\n display: flex;\n margin: 0;\n padding: 0;\n align-items: stretch;\n gap: 1rem;\n font-family: var(--card-checkbox-font-family);\n font-style: normal;\n font-weight: 400;\n line-height: calc(20 / var(--font-size-base) * 1rem);\n list-style: none;\n\n &--horizontal {\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-label {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-items);\n\n .af-card-checkbox-content {\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-content-description {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-item);\n text-align: left;\n }\n }\n }\n }\n\n &--vertical {\n flex-direction: var(--card-checkbox-flex-direction);\n\n > * {\n flex-basis: 0;\n flex-grow: 1;\n }\n\n .af-card-checkbox-label {\n height: 100%;\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-items);\n justify-content: var(--card-checkbox-justify-content);\n\n .af-card-checkbox-content {\n width: 100%;\n flex: 1;\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-content-description {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-item);\n text-align: center;\n }\n }\n }\n }\n\n .af-card-checkbox-label {\n display: flex;\n padding: 1rem;\n border: 1px solid var(--card-checkbox-border-color);\n border-radius: var(--card-checkbox-border-radius);\n flex: 1;\n align-self: stretch;\n gap: calc(12 / var(--font-size-base) * 1rem);\n cursor: pointer;\n\n .af-card-checkbox-content {\n display: flex;\n align-items: center;\n gap: calc(4 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n display: flex;\n justify-content: center;\n font-size: 1rem;\n line-height: calc(20 / var(--font-size-base) * 1rem);\n\n & > span:first-child {\n font-size: calc(18 / var(--font-size-base) * 1rem);\n font-weight: 400;\n color: var(--card-checkbox-label-text-color);\n\n @media (width < #{breakpoints.$breakpoint-sm}) {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n }\n }\n\n & > span:not(:first-child) {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n color: var(--card-checkbox-label-text-color);\n\n @media (width < #{breakpoints.$breakpoint-sm}) {\n font-size: calc(14 / var(--font-size-base) * 1rem);\n font-weight: 400;\n }\n }\n }\n }\n\n &:hover,\n &:focus-visible,\n &:focus-within,\n &:has(input:checked),\n [aria-invalid=\"true\"] {\n outline: 1px solid var(--card-checkbox-outline-color);\n }\n\n &:has(input:checked) {\n .af-card-checkbox-content-description > span:first-child {\n font-weight: 600;\n }\n }\n }\n }\n}\n","@use \"../../../common/breakpoints\" as breakpoints;\n\n.af-card-checkbox {\n &__container {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n &__legend {\n display: grid;\n margin-block-end: calc(4 / var(--font-size-base) * 1rem);\n row-gap: calc(4 / var(--font-size-base) * 1rem);\n font-size: calc(18 / var(--font-size-base) * 1rem);\n font-weight: 600;\n color: var(--card-checkbox-color);\n\n & > p {\n margin: 0;\n }\n }\n\n &__description {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n line-height: calc(16 / var(--font-size-base) * 1rem);\n color: var(--card-checkbox-color);\n\n @media (width > #{breakpoints.$breakpoint-sm}) {\n font-size: calc(18 / var(--font-size-base) * 1rem);\n line-height: calc(18 / var(--font-size-base) * 1rem);\n }\n }\n\n &__choices {\n display: flex;\n flex-direction: column;\n row-gap: calc(8 / var(--font-size-base) * 1rem);\n }\n\n &-group {\n display: flex;\n margin: 0;\n padding: 0;\n align-items: stretch;\n gap: 1rem;\n font-family: var(--card-checkbox-font-family);\n font-style: normal;\n font-weight: 400;\n line-height: calc(20 / var(--font-size-base) * 1rem);\n list-style: none;\n\n &--horizontal {\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-label {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-items);\n\n .af-card-checkbox-content {\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-content-description {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-item);\n text-align: left;\n }\n }\n }\n }\n\n &--vertical {\n flex-direction: var(--card-checkbox-flex-direction);\n\n > * {\n flex-basis: 0;\n flex-grow: 1;\n }\n\n .af-card-checkbox-label {\n height: 100%;\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-items);\n justify-content: var(--card-checkbox-justify-content);\n\n .af-card-checkbox-content {\n width: 100%;\n flex: 1;\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-content-description {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-item);\n text-align: center;\n }\n }\n }\n }\n\n .af-card-checkbox-label {\n display: flex;\n padding: 1rem;\n border: 1px solid var(--card-checkbox-border-color);\n border-radius: var(--card-checkbox-border-radius);\n flex: 1;\n align-self: stretch;\n gap: calc(12 / var(--font-size-base) * 1rem);\n cursor: pointer;\n\n .af-card-checkbox-content {\n display: flex;\n align-items: center;\n gap: calc(4 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n display: flex;\n justify-content: center;\n font-size: 1rem;\n line-height: calc(20 / var(--font-size-base) * 1rem);\n\n & > span:first-child {\n font-size: calc(18 / var(--font-size-base) * 1rem);\n font-weight: 400;\n color: var(--card-checkbox-label-text-color);\n\n @media (width < #{breakpoints.$breakpoint-sm}) {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n }\n }\n\n & > span:not(:first-child) {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n color: var(--card-checkbox-label-text-color);\n\n @media (width < #{breakpoints.$breakpoint-sm}) {\n font-size: calc(14 / var(--font-size-base) * 1rem);\n font-weight: 400;\n }\n }\n }\n }\n\n &:hover,\n &:focus-visible,\n &:focus-within,\n &:has(input:checked),\n [aria-invalid=\"true\"] {\n outline: 1px solid var(--card-checkbox-outline-color);\n }\n\n &:has(input:checked) {\n .af-card-checkbox-content-description > span:first-child {\n font-weight: 600;\n }\n }\n }\n }\n}\n"]}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
@use "../../../common/breakpoints" as breakpoints;
|
|
2
2
|
|
|
3
|
-
.af-checkbox
|
|
3
|
+
.af-card-checkbox {
|
|
4
4
|
&__container {
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
gap: 1rem;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
&__label-container {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
row-gap: calc(4 / var(--font-size-base) * 1rem);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
10
|
&__legend {
|
|
11
|
+
display: grid;
|
|
12
|
+
margin-block-end: calc(4 / var(--font-size-base) * 1rem);
|
|
13
|
+
row-gap: calc(4 / var(--font-size-base) * 1rem);
|
|
17
14
|
font-size: calc(18 / var(--font-size-base) * 1rem);
|
|
18
15
|
font-weight: 600;
|
|
19
|
-
color: var(--checkbox-
|
|
16
|
+
color: var(--card-checkbox-color);
|
|
17
|
+
|
|
18
|
+
& > p {
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
&__description {
|
|
23
|
-
margin: 0;
|
|
24
24
|
font-size: calc(16 / var(--font-size-base) * 1rem);
|
|
25
25
|
font-weight: 400;
|
|
26
26
|
line-height: calc(16 / var(--font-size-base) * 1rem);
|
|
27
|
-
color: var(--checkbox-
|
|
27
|
+
color: var(--card-checkbox-color);
|
|
28
28
|
|
|
29
29
|
@media (width > #{breakpoints.$breakpoint-sm}) {
|
|
30
30
|
font-size: calc(18 / var(--font-size-base) * 1rem);
|
|
@@ -44,25 +44,25 @@
|
|
|
44
44
|
padding: 0;
|
|
45
45
|
align-items: stretch;
|
|
46
46
|
gap: 1rem;
|
|
47
|
-
font-family: var(--checkbox-
|
|
47
|
+
font-family: var(--card-checkbox-font-family);
|
|
48
48
|
font-style: normal;
|
|
49
49
|
font-weight: 400;
|
|
50
50
|
line-height: calc(20 / var(--font-size-base) * 1rem);
|
|
51
51
|
list-style: none;
|
|
52
52
|
|
|
53
53
|
&--horizontal {
|
|
54
|
-
flex-direction: var(--checkbox-
|
|
54
|
+
flex-direction: var(--card-checkbox-flex-direction);
|
|
55
55
|
|
|
56
|
-
.af-checkbox-
|
|
57
|
-
flex-direction: var(--checkbox-
|
|
58
|
-
align-items: var(--checkbox-
|
|
56
|
+
.af-card-checkbox-label {
|
|
57
|
+
flex-direction: var(--card-checkbox-flex-direction);
|
|
58
|
+
align-items: var(--card-checkbox-align-items);
|
|
59
59
|
|
|
60
|
-
.af-checkbox-
|
|
61
|
-
flex-direction: var(--checkbox-
|
|
60
|
+
.af-card-checkbox-content {
|
|
61
|
+
flex-direction: var(--card-checkbox-flex-direction);
|
|
62
62
|
|
|
63
|
-
.af-checkbox-
|
|
64
|
-
flex-direction: var(--checkbox-
|
|
65
|
-
align-items: var(--checkbox-
|
|
63
|
+
.af-card-checkbox-content-description {
|
|
64
|
+
flex-direction: var(--card-checkbox-flex-direction);
|
|
65
|
+
align-items: var(--card-checkbox-align-item);
|
|
66
66
|
text-align: left;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -70,55 +70,49 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&--vertical {
|
|
73
|
-
flex-direction: var(--checkbox-
|
|
73
|
+
flex-direction: var(--card-checkbox-flex-direction);
|
|
74
74
|
|
|
75
75
|
> * {
|
|
76
76
|
flex-basis: 0;
|
|
77
77
|
flex-grow: 1;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.af-checkbox-
|
|
80
|
+
.af-card-checkbox-label {
|
|
81
81
|
height: 100%;
|
|
82
|
-
flex-direction: var(--checkbox-
|
|
83
|
-
align-items: var(--checkbox-
|
|
84
|
-
justify-content: var(--checkbox-
|
|
82
|
+
flex-direction: var(--card-checkbox-flex-direction);
|
|
83
|
+
align-items: var(--card-checkbox-align-items);
|
|
84
|
+
justify-content: var(--card-checkbox-justify-content);
|
|
85
85
|
|
|
86
|
-
.af-checkbox-
|
|
86
|
+
.af-card-checkbox-content {
|
|
87
87
|
width: 100%;
|
|
88
88
|
flex: 1;
|
|
89
|
-
flex-direction: var(--checkbox-
|
|
89
|
+
flex-direction: var(--card-checkbox-flex-direction);
|
|
90
90
|
|
|
91
|
-
.af-checkbox-
|
|
92
|
-
flex-direction: var(--checkbox-
|
|
93
|
-
align-items: var(--checkbox-
|
|
91
|
+
.af-card-checkbox-content-description {
|
|
92
|
+
flex-direction: var(--card-checkbox-flex-direction);
|
|
93
|
+
align-items: var(--card-checkbox-align-item);
|
|
94
94
|
text-align: center;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.af-checkbox-
|
|
101
|
-
border: solid var(--checkbox-card-border);
|
|
102
|
-
background-color: var(--checkbox-card-background-color);
|
|
103
|
-
box-shadow: 0 0 0 1px var(--checkbox-card-shadow-color) inset;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.af-checkbox-card-label {
|
|
100
|
+
.af-card-checkbox-label {
|
|
107
101
|
display: flex;
|
|
108
102
|
padding: 1rem;
|
|
109
|
-
border: solid var(--checkbox-
|
|
110
|
-
border-radius: var(--checkbox-
|
|
103
|
+
border: 1px solid var(--card-checkbox-border-color);
|
|
104
|
+
border-radius: var(--card-checkbox-border-radius);
|
|
111
105
|
flex: 1;
|
|
112
106
|
align-self: stretch;
|
|
113
107
|
gap: calc(12 / var(--font-size-base) * 1rem);
|
|
114
108
|
cursor: pointer;
|
|
115
109
|
|
|
116
|
-
.af-checkbox-
|
|
110
|
+
.af-card-checkbox-content {
|
|
117
111
|
display: flex;
|
|
118
112
|
align-items: center;
|
|
119
113
|
gap: calc(4 / var(--font-size-base) * 1rem);
|
|
120
114
|
|
|
121
|
-
.af-checkbox-
|
|
115
|
+
.af-card-checkbox-content-description {
|
|
122
116
|
display: flex;
|
|
123
117
|
justify-content: center;
|
|
124
118
|
font-size: 1rem;
|
|
@@ -127,7 +121,7 @@
|
|
|
127
121
|
& > span:first-child {
|
|
128
122
|
font-size: calc(18 / var(--font-size-base) * 1rem);
|
|
129
123
|
font-weight: 400;
|
|
130
|
-
color: var(--checkbox-
|
|
124
|
+
color: var(--card-checkbox-label-text-color);
|
|
131
125
|
|
|
132
126
|
@media (width < #{breakpoints.$breakpoint-sm}) {
|
|
133
127
|
font-size: calc(16 / var(--font-size-base) * 1rem);
|
|
@@ -138,7 +132,7 @@
|
|
|
138
132
|
& > span:not(:first-child) {
|
|
139
133
|
font-size: calc(16 / var(--font-size-base) * 1rem);
|
|
140
134
|
font-weight: 400;
|
|
141
|
-
color: var(--checkbox-
|
|
135
|
+
color: var(--card-checkbox-label-text-color);
|
|
142
136
|
|
|
143
137
|
@media (width < #{breakpoints.$breakpoint-sm}) {
|
|
144
138
|
font-size: calc(14 / var(--font-size-base) * 1rem);
|
|
@@ -148,17 +142,16 @@
|
|
|
148
142
|
}
|
|
149
143
|
}
|
|
150
144
|
|
|
151
|
-
&:hover
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
&:hover,
|
|
146
|
+
&:focus-visible,
|
|
147
|
+
&:focus-within,
|
|
148
|
+
&:has(input:checked),
|
|
149
|
+
[aria-invalid="true"] {
|
|
150
|
+
outline: 1px solid var(--card-checkbox-outline-color);
|
|
154
151
|
}
|
|
155
152
|
|
|
156
153
|
&:has(input:checked) {
|
|
157
|
-
|
|
158
|
-
background-color: var(--checkbox-card-background-color);
|
|
159
|
-
box-shadow: 0 0 0 1px var(--checkbox-card-shadow-color) inset;
|
|
160
|
-
|
|
161
|
-
.af-checkbox-card-content-description > span:first-child {
|
|
154
|
+
.af-card-checkbox-content-description > span:first-child {
|
|
162
155
|
font-weight: 600;
|
|
163
156
|
}
|
|
164
157
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.af-card-checkbox__container{display:flex;flex-direction:column;gap:1rem}.af-card-checkbox__legend{color:var(--card-checkbox-color);display:grid;font-size:calc(18/var(--font-size-base)*1rem);font-weight:600;margin-block-end:calc(4/var(--font-size-base)*1rem);row-gap:calc(4/var(--font-size-base)*1rem)}.af-card-checkbox__legend>p{margin:0}.af-card-checkbox__description{color:var(--card-checkbox-color);font-size:calc(16/var(--font-size-base)*1rem);font-weight:400;line-height:calc(16/var(--font-size-base)*1rem)}@media (width > 667px){.af-card-checkbox__description{font-size:calc(18/var(--font-size-base)*1rem);line-height:calc(18/var(--font-size-base)*1rem)}}.af-card-checkbox__choices{display:flex;flex-direction:column;row-gap:calc(8/var(--font-size-base)*1rem)}.af-card-checkbox-group{align-items:stretch;display:flex;font-family:var(--card-checkbox-font-family);font-style:normal;font-weight:400;gap:1rem;line-height:calc(20/var(--font-size-base)*1rem);list-style:none;margin:0;padding:0}.af-card-checkbox-group--horizontal{flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--horizontal .af-card-checkbox-label{align-items:var(--card-checkbox-align-items);flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content{flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{align-items:var(--card-checkbox-align-item);flex-direction:var(--card-checkbox-flex-direction);text-align:left}.af-card-checkbox-group--vertical{flex-direction:var(--card-checkbox-flex-direction)}.af-card-checkbox-group--vertical>*{flex-basis:0;flex-grow:1}.af-card-checkbox-group--vertical .af-card-checkbox-label{align-items:var(--card-checkbox-align-items);flex-direction:var(--card-checkbox-flex-direction);height:100%;justify-content:var(--card-checkbox-justify-content)}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content{flex:1 1;flex-direction:var(--card-checkbox-flex-direction);width:100%}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{align-items:var(--card-checkbox-align-item);flex-direction:var(--card-checkbox-flex-direction);text-align:center}.af-card-checkbox-group .af-card-checkbox-label{align-self:stretch;border:1px solid var(--card-checkbox-border-color);border-radius:var(--card-checkbox-border-radius);cursor:pointer;display:flex;flex:1 1;gap:calc(12/var(--font-size-base)*1rem);padding:1rem}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content{align-items:center;display:flex;gap:calc(4/var(--font-size-base)*1rem)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{display:flex;font-size:1rem;justify-content:center;line-height:calc(20/var(--font-size-base)*1rem)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:first-child{color:var(--card-checkbox-label-text-color);font-size:calc(18/var(--font-size-base)*1rem);font-weight:400}@media (width < 667px){.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:first-child{font-size:calc(16/var(--font-size-base)*1rem);font-weight:400}}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:not(:first-child){color:var(--card-checkbox-label-text-color);font-size:calc(16/var(--font-size-base)*1rem);font-weight:400}@media (width < 667px){.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description>span:not(:first-child){font-size:calc(14/var(--font-size-base)*1rem);font-weight:400}}.af-card-checkbox-group .af-card-checkbox-label [aria-invalid=true],.af-card-checkbox-group .af-card-checkbox-label:focus-visible,.af-card-checkbox-group .af-card-checkbox-label:focus-within,.af-card-checkbox-group .af-card-checkbox-label:has(input:checked),.af-card-checkbox-group .af-card-checkbox-label:hover{outline:1px solid var(--card-checkbox-outline-color)}.af-card-checkbox-group .af-card-checkbox-label:has(input:checked) .af-card-checkbox-content-description>span:first-child{font-weight:600}.af-card-checkbox__label-container{--font-size-base:calc(16/var(--font-size-base)*1rem)}.af-card-checkbox__legend{--card-checkbox-color:var(--color-gray-900)}.af-card-checkbox__description{--card-checkbox-color:var(--color-gray-700)}.af-card-checkbox-group--horizontal{--card-checkbox-flex-direction:column}.af-card-checkbox-group--horizontal .af-card-checkbox-label{--card-checkbox-flex-direction:row;--card-checkbox-align-items:center}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content{--card-checkbox-flex-direction:row;--card-checkbox-margin-left:calc(12/var(--font-size-base)*1rem)}.af-card-checkbox-group--horizontal .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{--card-checkbox-flex-direction:column;--card-checkbox-align-item:flex-start}.af-card-checkbox-group--vertical{--card-checkbox-flex-direction:row}.af-card-checkbox-group--vertical .af-card-checkbox-label{--card-checkbox-flex-direction:row;--card-checkbox-align-items:flex-start;--card-checkbox-justify-content:flex-start}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-checkbox{position:absolute}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content{--card-checkbox-flex-direction:column;--card-checkbox-margin-left:calc(2/var(--font-size-base)*1rem)}.af-card-checkbox-group--vertical .af-card-checkbox-label .af-card-checkbox-content .af-card-checkbox-content-description{--card-checkbox-flex-direction:column;--card-checkbox-align-item:center}.af-card-checkbox-group .af-card-checkbox-label{--card-checkbox-border-color:var(--color-gray-700);--card-checkbox-border-radius:calc(6/var(--font-size-base)*1rem);--card-checkbox-outline-color:var(--card-checkbox-border-color)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content-description>span:first-child{--card-checkbox-label-text-color:var(--color-gray-900)}.af-card-checkbox-group .af-card-checkbox-label .af-card-checkbox-content-description>span:not(:first-child){--card-checkbox-label-text-color:var(--color-gray-700)}.af-card-checkbox-group .af-card-checkbox-label:focus-visible,.af-card-checkbox-group .af-card-checkbox-label:focus-within,.af-card-checkbox-group .af-card-checkbox-label:has(input:checked),.af-card-checkbox-group .af-card-checkbox-label:hover{--card-checkbox-border-color:var(--color-axa)}.af-card-checkbox-group .af-card-checkbox-label[aria-invalid=true]{--card-checkbox-background-color:var(--color-white);--card-checkbox-border-color:var(--color-red-700)}.af-card-checkbox-group .af-card-checkbox-label:has(input:checked){--card-checkbox-border-color:var(--color-axa);--card-checkbox-background-color:var(--color-blue-2)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/Form/Checkbox/CardCheckbox/CardCheckboxCommon.scss","../../../../src/Form/Checkbox/CardCheckbox/CardCheckboxLF.scss","../../../../src/Form/Checkbox/CardCheckbox/CardCheckboxLF.scss%23sass"],"names":[],"mappings":"AAGE,6BACE,YAAA,CCFJ,qBAAA,CDII,QCFJ,CDKE,0BAME,gCAAA,CALA,YAAA,CAGA,6CAAA,CACA,eAAA,CAHA,mDAAA,CACA,0CCAJ,CDKI,4BACE,QCHN,CDOE,+BAIE,gCAAA,CAHA,6CAAA,CACA,eAAA,CACA,+CCJJ,CDOI,uBANF,+BAOI,6CAAA,CACA,+CCJJ,CACF,CDOE,2BACE,YAAA,CACA,qBAAA,CACA,0CCLJ,CDQE,wBAIE,mBAAA,CAHA,YAAA,CAKA,4CAAA,CACA,iBAAA,CACA,eAAA,CAHA,QAAA,CAIA,+CAAA,CACA,eAAA,CARA,QAAA,CACA,SCCJ,CDQI,oCACE,kDCNN,CDQM,4DAEE,4CAAA,CADA,kDCLR,CDQQ,sFACE,kDCNV,CDQU,4HAEE,2CAAA,CADA,kDAAA,CAEA,eCNZ,CDYI,kCACE,kDCVN,CDYM,oCACE,YAAA,CACA,WCVR,CDaM,0DAGE,4CAAA,CADA,kDAAA,CADA,WAAA,CAGA,oDCXR,CDaQ,oFAEE,QAAA,CACA,kDAAA,CAFA,UCTV,CDaU,0HAEE,2CAAA,CADA,kDAAA,CAEA,iBCXZ,CDiBI,gDAME,kBAAA,CAHA,kDAAA,CACA,gDAAA,CAIA,cAAA,CAPA,YAAA,CAIA,QAAA,CAEA,uCAAA,CALA,YCTN,CDiBM,0EAEE,kBAAA,CADA,YAAA,CAEA,sCCfR,CDiBQ,gHACE,YAAA,CAEA,cAAA,CADA,sBAAA,CAEA,+CCfV,CDiBU,iIAGE,2CAAA,CAFA,6CAAA,CACA,eCdZ,CDiBY,uBALF,iIAMI,6CAAA,CACA,eCdZ,CACF,CDiBU,uIAGE,2CAAA,CAFA,6CAAA,CACA,eCdZ,CDiBY,uBALF,uIAMI,6CAAA,CACA,eCdZ,CACF,CDmBM,wTAKE,oDCpBR,CDwBQ,0HACE,eCtBV,CCjIE,mCACE,oDDoIJ,CCjIE,0BACE,2CDmIJ,CChIE,+BACE,2CDkIJ,CC9HI,oCACE,qCDgIN,CC9HM,4DACE,kCAAA,CACA,kCDgIR,CC9HQ,sFACE,kCAAA,CACA,+DDgIV,CC9HU,4HACE,qCAAA,CACA,qCDgIZ,CC1HI,kCACE,kCD4HN,CC1HM,0DACE,kCAAA,CACA,sCAAA,CACA,0CD4HR,CC1HQ,uEACE,iBD4HV,CCzHQ,oFACE,qCAAA,CACA,8DD2HV,CCzHU,0HACE,qCAAA,CACA,iCD2HZ,CCrHI,gDACE,kDAAA,CACA,gEAAA,CACA,+DDuHN,CCpHQ,uGACE,sDDsHV,CCnHQ,6GACE,sDDqHV,CCjHM,oPAIE,6CDgHR,CC7GM,mEACE,mDAAA,CACA,iDD+GR,CC5GM,mEACE,6CAAA,CACA,oDD8GR","file":"CardCheckboxLF.css","sourcesContent":["@use \"../../../common/breakpoints\" as breakpoints;\n\n.af-card-checkbox {\n &__container {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n &__legend {\n display: grid;\n margin-block-end: calc(4 / var(--font-size-base) * 1rem);\n row-gap: calc(4 / var(--font-size-base) * 1rem);\n font-size: calc(18 / var(--font-size-base) * 1rem);\n font-weight: 600;\n color: var(--card-checkbox-color);\n\n & > p {\n margin: 0;\n }\n }\n\n &__description {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n line-height: calc(16 / var(--font-size-base) * 1rem);\n color: var(--card-checkbox-color);\n\n @media (width > #{breakpoints.$breakpoint-sm}) {\n font-size: calc(18 / var(--font-size-base) * 1rem);\n line-height: calc(18 / var(--font-size-base) * 1rem);\n }\n }\n\n &__choices {\n display: flex;\n flex-direction: column;\n row-gap: calc(8 / var(--font-size-base) * 1rem);\n }\n\n &-group {\n display: flex;\n margin: 0;\n padding: 0;\n align-items: stretch;\n gap: 1rem;\n font-family: var(--card-checkbox-font-family);\n font-style: normal;\n font-weight: 400;\n line-height: calc(20 / var(--font-size-base) * 1rem);\n list-style: none;\n\n &--horizontal {\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-label {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-items);\n\n .af-card-checkbox-content {\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-content-description {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-item);\n text-align: left;\n }\n }\n }\n }\n\n &--vertical {\n flex-direction: var(--card-checkbox-flex-direction);\n\n > * {\n flex-basis: 0;\n flex-grow: 1;\n }\n\n .af-card-checkbox-label {\n height: 100%;\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-items);\n justify-content: var(--card-checkbox-justify-content);\n\n .af-card-checkbox-content {\n width: 100%;\n flex: 1;\n flex-direction: var(--card-checkbox-flex-direction);\n\n .af-card-checkbox-content-description {\n flex-direction: var(--card-checkbox-flex-direction);\n align-items: var(--card-checkbox-align-item);\n text-align: center;\n }\n }\n }\n }\n\n .af-card-checkbox-label {\n display: flex;\n padding: 1rem;\n border: 1px solid var(--card-checkbox-border-color);\n border-radius: var(--card-checkbox-border-radius);\n flex: 1;\n align-self: stretch;\n gap: calc(12 / var(--font-size-base) * 1rem);\n cursor: pointer;\n\n .af-card-checkbox-content {\n display: flex;\n align-items: center;\n gap: calc(4 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n display: flex;\n justify-content: center;\n font-size: 1rem;\n line-height: calc(20 / var(--font-size-base) * 1rem);\n\n & > span:first-child {\n font-size: calc(18 / var(--font-size-base) * 1rem);\n font-weight: 400;\n color: var(--card-checkbox-label-text-color);\n\n @media (width < #{breakpoints.$breakpoint-sm}) {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n }\n }\n\n & > span:not(:first-child) {\n font-size: calc(16 / var(--font-size-base) * 1rem);\n font-weight: 400;\n color: var(--card-checkbox-label-text-color);\n\n @media (width < #{breakpoints.$breakpoint-sm}) {\n font-size: calc(14 / var(--font-size-base) * 1rem);\n font-weight: 400;\n }\n }\n }\n }\n\n &:hover,\n &:focus-visible,\n &:focus-within,\n &:has(input:checked),\n [aria-invalid=\"true\"] {\n outline: 1px solid var(--card-checkbox-outline-color);\n }\n\n &:has(input:checked) {\n .af-card-checkbox-content-description > span:first-child {\n font-weight: 600;\n }\n }\n }\n }\n}\n","@use \"CardCheckboxCommon\";\n\n.af-card-checkbox {\n &__label-container {\n --font-size-base: calc(16 / var(--font-size-base) * 1rem);\n }\n\n &__legend {\n --card-checkbox-color: var(--color-gray-900);\n }\n\n &__description {\n --card-checkbox-color: var(--color-gray-700);\n }\n\n &-group {\n &--horizontal {\n --card-checkbox-flex-direction: column;\n\n .af-card-checkbox-label {\n --card-checkbox-flex-direction: row;\n --card-checkbox-align-items: center;\n\n .af-card-checkbox-content {\n --card-checkbox-flex-direction: row;\n --card-checkbox-margin-left: calc(12 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n --card-checkbox-flex-direction: column;\n --card-checkbox-align-item: flex-start;\n }\n }\n }\n }\n\n &--vertical {\n --card-checkbox-flex-direction: row;\n\n .af-card-checkbox-label {\n --card-checkbox-flex-direction: row;\n --card-checkbox-align-items: flex-start;\n --card-checkbox-justify-content: flex-start;\n\n .af-checkbox {\n position: absolute;\n }\n\n .af-card-checkbox-content {\n --card-checkbox-flex-direction: column;\n --card-checkbox-margin-left: calc(2 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n --card-checkbox-flex-direction: column;\n --card-checkbox-align-item: center;\n }\n }\n }\n }\n\n .af-card-checkbox-label {\n --card-checkbox-border-color: var(--color-gray-700);\n --card-checkbox-border-radius: calc(6 / var(--font-size-base) * 1rem);\n --card-checkbox-outline-color: var(--card-checkbox-border-color);\n\n .af-card-checkbox-content-description > span {\n &:first-child {\n --card-checkbox-label-text-color: var(--color-gray-900);\n }\n\n &:not(:first-child) {\n --card-checkbox-label-text-color: var(--color-gray-700);\n }\n }\n\n &:hover,\n &:focus-visible,\n &:focus-within,\n &:has(input:checked) {\n --card-checkbox-border-color: var(--color-axa);\n }\n\n &[aria-invalid=\"true\"] {\n --card-checkbox-background-color: var(--color-white);\n --card-checkbox-border-color: var(--color-red-700);\n }\n\n &:has(input:checked) {\n --card-checkbox-border-color: var(--color-axa);\n --card-checkbox-background-color: var(--color-blue-2);\n }\n }\n }\n}\n","@use \"CardCheckboxCommon\";\n\n.af-card-checkbox {\n &__label-container {\n --font-size-base: calc(16 / var(--font-size-base) * 1rem);\n }\n\n &__legend {\n --card-checkbox-color: var(--color-gray-900);\n }\n\n &__description {\n --card-checkbox-color: var(--color-gray-700);\n }\n\n &-group {\n &--horizontal {\n --card-checkbox-flex-direction: column;\n\n .af-card-checkbox-label {\n --card-checkbox-flex-direction: row;\n --card-checkbox-align-items: center;\n\n .af-card-checkbox-content {\n --card-checkbox-flex-direction: row;\n --card-checkbox-margin-left: calc(12 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n --card-checkbox-flex-direction: column;\n --card-checkbox-align-item: flex-start;\n }\n }\n }\n }\n\n &--vertical {\n --card-checkbox-flex-direction: row;\n\n .af-card-checkbox-label {\n --card-checkbox-flex-direction: row;\n --card-checkbox-align-items: flex-start;\n --card-checkbox-justify-content: flex-start;\n\n .af-checkbox {\n position: absolute;\n }\n\n .af-card-checkbox-content {\n --card-checkbox-flex-direction: column;\n --card-checkbox-margin-left: calc(2 / var(--font-size-base) * 1rem);\n\n .af-card-checkbox-content-description {\n --card-checkbox-flex-direction: column;\n --card-checkbox-align-item: center;\n }\n }\n }\n }\n\n .af-card-checkbox-label {\n --card-checkbox-border-color: var(--color-gray-700);\n --card-checkbox-border-radius: calc(6 / var(--font-size-base) * 1rem);\n --card-checkbox-outline-color: var(--card-checkbox-border-color);\n\n .af-card-checkbox-content-description > span {\n &:first-child {\n --card-checkbox-label-text-color: var(--color-gray-900);\n }\n\n &:not(:first-child) {\n --card-checkbox-label-text-color: var(--color-gray-700);\n }\n }\n\n &:hover,\n &:focus-visible,\n &:focus-within,\n &:has(input:checked) {\n --card-checkbox-border-color: var(--color-axa);\n }\n\n &[aria-invalid=\"true\"] {\n --card-checkbox-background-color: var(--color-white);\n --card-checkbox-border-color: var(--color-red-700);\n }\n\n &:has(input:checked) {\n --card-checkbox-border-color: var(--color-axa);\n --card-checkbox-background-color: var(--color-blue-2);\n }\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@use "CardCheckboxCommon";
|
|
2
|
+
|
|
3
|
+
.af-card-checkbox {
|
|
4
|
+
&__label-container {
|
|
5
|
+
--font-size-base: calc(16 / var(--font-size-base) * 1rem);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__legend {
|
|
9
|
+
--card-checkbox-color: var(--color-gray-900);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__description {
|
|
13
|
+
--card-checkbox-color: var(--color-gray-700);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-group {
|
|
17
|
+
&--horizontal {
|
|
18
|
+
--card-checkbox-flex-direction: column;
|
|
19
|
+
|
|
20
|
+
.af-card-checkbox-label {
|
|
21
|
+
--card-checkbox-flex-direction: row;
|
|
22
|
+
--card-checkbox-align-items: center;
|
|
23
|
+
|
|
24
|
+
.af-card-checkbox-content {
|
|
25
|
+
--card-checkbox-flex-direction: row;
|
|
26
|
+
--card-checkbox-margin-left: calc(12 / var(--font-size-base) * 1rem);
|
|
27
|
+
|
|
28
|
+
.af-card-checkbox-content-description {
|
|
29
|
+
--card-checkbox-flex-direction: column;
|
|
30
|
+
--card-checkbox-align-item: flex-start;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--vertical {
|
|
37
|
+
--card-checkbox-flex-direction: row;
|
|
38
|
+
|
|
39
|
+
.af-card-checkbox-label {
|
|
40
|
+
--card-checkbox-flex-direction: row;
|
|
41
|
+
--card-checkbox-align-items: flex-start;
|
|
42
|
+
--card-checkbox-justify-content: flex-start;
|
|
43
|
+
|
|
44
|
+
.af-checkbox {
|
|
45
|
+
position: absolute;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.af-card-checkbox-content {
|
|
49
|
+
--card-checkbox-flex-direction: column;
|
|
50
|
+
--card-checkbox-margin-left: calc(2 / var(--font-size-base) * 1rem);
|
|
51
|
+
|
|
52
|
+
.af-card-checkbox-content-description {
|
|
53
|
+
--card-checkbox-flex-direction: column;
|
|
54
|
+
--card-checkbox-align-item: center;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.af-card-checkbox-label {
|
|
61
|
+
--card-checkbox-border-color: var(--color-gray-700);
|
|
62
|
+
--card-checkbox-border-radius: calc(6 / var(--font-size-base) * 1rem);
|
|
63
|
+
--card-checkbox-outline-color: var(--card-checkbox-border-color);
|
|
64
|
+
|
|
65
|
+
.af-card-checkbox-content-description > span {
|
|
66
|
+
&:first-child {
|
|
67
|
+
--card-checkbox-label-text-color: var(--color-gray-900);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:not(:first-child) {
|
|
71
|
+
--card-checkbox-label-text-color: var(--color-gray-700);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:hover,
|
|
76
|
+
&:focus-visible,
|
|
77
|
+
&:focus-within,
|
|
78
|
+
&:has(input:checked) {
|
|
79
|
+
--card-checkbox-border-color: var(--color-axa);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&[aria-invalid="true"] {
|
|
83
|
+
--card-checkbox-background-color: var(--color-white);
|
|
84
|
+
--card-checkbox-border-color: var(--color-red-700);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:has(input:checked) {
|
|
88
|
+
--card-checkbox-border-color: var(--color-axa);
|
|
89
|
+
--card-checkbox-background-color: var(--color-blue-2);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.af-
|
|
1
|
+
.af-checkbox{align-items:center;background-color:var(--checkbox-background-color);border:var(--checkbox-border-width,1px) solid var(--checkbox-border-color);border-radius:var(--checkbox-border-radius);display:flex;height:calc(24/var(--font-size-base)*1rem);position:relative;width:calc(24/var(--font-size-base)*1rem)}.af-checkbox svg{display:none;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);fill:var(--checkbox-check-fill)}.af-checkbox:focus-within,.af-checkbox:has(:checked),.af-checkbox:hover{outline:1px solid var(--checkbox-outline-color)}.af-checkbox input[type=checkbox]{height:calc(24/var(--font-size-base)*1rem);margin:0;opacity:0;position:absolute;width:calc(24/var(--font-size-base)*1rem)}.af-checkbox input[type=checkbox]:checked+svg{display:block}.af-checkbox{--checkbox-border-radius:calc(6/var(--font-size-base)*1rem);--checkbox-border-color:var(--axa-blue-65);--checkbox-outline-color:var(--checkbox-border-color);--checkbox-check-fill:var(--white)}.af-checkbox:focus-within,.af-checkbox:has(:checked),.af-checkbox:hover{--checkbox-border-color:var(--axa-blue-100)}.af-checkbox:has(:checked){--checkbox-background-color:var(--axa-blue-100)}.af-checkbox:has([aria-invalid=true]){--checkbox-border-color:var(--red-alert-100)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/Form/Checkbox/Checkbox/CheckboxCommon.scss","../../../../src/Form/Checkbox/Checkbox/CheckboxApollo.scss","../../../../src/Form/Checkbox/Checkbox/CheckboxApollo.scss%23sass"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/Form/Checkbox/Checkbox/CheckboxCommon.scss","../../../../src/Form/Checkbox/Checkbox/CheckboxApollo.scss","../../../../src/Form/Checkbox/Checkbox/CheckboxApollo.scss%23sass"],"names":[],"mappings":"AAAA,aAOE,kBAAA,CACA,iDAAA,CAHA,0EAAA,CACA,2CAAA,CCJF,YAAA,CDEE,0CAAA,CAHA,iBAAA,CAEA,yCCMF,CDCE,iBAIE,YAAA,CADA,QAAA,CAFA,iBAAA,CACA,OAAA,CAGA,8BAAA,CACA,+BCCJ,CDEE,wEAGE,+CCFJ,CDKE,kCAGE,0CAAA,CACA,QAAA,CACA,SAAA,CAJA,iBAAA,CACA,yCCAJ,CDKI,8CACE,aCHN,CC5BA,aACE,2DAAA,CACA,0CAAA,CACA,qDAAA,CACA,kCD+BF,CC7BE,wEAGE,2CD6BJ,CC1BE,2BACE,+CD4BJ,CCzBE,sCACE,4CD2BJ","file":"CheckboxApollo.css","sourcesContent":[".af-checkbox {\n position: relative;\n display: flex;\n width: calc(24 / var(--font-size-base) * 1rem);\n height: calc(24 / var(--font-size-base) * 1rem);\n border: var(--checkbox-border-width, 1px) solid var(--checkbox-border-color);\n border-radius: var(--checkbox-border-radius);\n align-items: center;\n background-color: var(--checkbox-background-color);\n\n svg {\n position: absolute;\n top: 50%;\n left: 50%;\n display: none;\n transform: translate(-50%, -50%);\n fill: var(--checkbox-check-fill);\n }\n\n &:hover,\n &:focus-within,\n &:has(:checked) {\n outline: 1px solid var(--checkbox-outline-color);\n }\n\n input[type=\"checkbox\"] {\n position: absolute;\n width: calc(24 / var(--font-size-base) * 1rem);\n height: calc(24 / var(--font-size-base) * 1rem);\n margin: 0;\n opacity: 0;\n\n &:checked + svg {\n display: block;\n }\n }\n}\n","@use \"CheckboxCommon\";\n\n.af-checkbox {\n --checkbox-border-radius: calc(6 / var(--font-size-base) * 1rem);\n --checkbox-border-color: var(--axa-blue-65);\n --checkbox-outline-color: var(--checkbox-border-color);\n --checkbox-check-fill: var(--white);\n\n &:hover,\n &:focus-within,\n &:has(:checked) {\n --checkbox-border-color: var(--axa-blue-100);\n }\n\n &:has(:checked) {\n --checkbox-background-color: var(--axa-blue-100);\n }\n\n &:has([aria-invalid=\"true\"]) {\n --checkbox-border-color: var(--red-alert-100);\n }\n}\n","@use \"CheckboxCommon\";\n\n.af-checkbox {\n --checkbox-border-radius: calc(6 / var(--font-size-base) * 1rem);\n --checkbox-border-color: var(--axa-blue-65);\n --checkbox-outline-color: var(--checkbox-border-color);\n --checkbox-check-fill: var(--white);\n\n &:hover,\n &:focus-within,\n &:has(:checked) {\n --checkbox-border-color: var(--axa-blue-100);\n }\n\n &:has(:checked) {\n --checkbox-background-color: var(--axa-blue-100);\n }\n\n &:has([aria-invalid=\"true\"]) {\n --checkbox-border-color: var(--red-alert-100);\n }\n}\n"]}
|
|
@@ -1,36 +1,22 @@
|
|
|
1
1
|
@use "CheckboxCommon";
|
|
2
2
|
|
|
3
3
|
.af-checkbox {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
input[type="checkbox"] {
|
|
10
|
-
&[aria-invalid="true"] {
|
|
11
|
-
~ .af-checkbox__icons {
|
|
12
|
-
--checkbox-border: 1px var(--red-alert-100);
|
|
13
|
-
--checkbox-background-color: var(--white);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
4
|
+
--checkbox-border-radius: calc(6 / var(--font-size-base) * 1rem);
|
|
5
|
+
--checkbox-border-color: var(--axa-blue-65);
|
|
6
|
+
--checkbox-outline-color: var(--checkbox-border-color);
|
|
7
|
+
--checkbox-check-fill: var(--white);
|
|
16
8
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
9
|
+
&:hover,
|
|
10
|
+
&:focus-within,
|
|
11
|
+
&:has(:checked) {
|
|
12
|
+
--checkbox-border-color: var(--axa-blue-100);
|
|
13
|
+
}
|
|
23
14
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--checkbox-box-shadow-color: var(--axa-blue-100);
|
|
28
|
-
--checkbox-background-color: var(--axa-blue-100);
|
|
15
|
+
&:has(:checked) {
|
|
16
|
+
--checkbox-background-color: var(--axa-blue-100);
|
|
17
|
+
}
|
|
29
18
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
19
|
+
&:has([aria-invalid="true"]) {
|
|
20
|
+
--checkbox-border-color: var(--red-alert-100);
|
|
35
21
|
}
|
|
36
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.af-
|
|
1
|
+
.af-checkbox{align-items:center;background-color:var(--checkbox-background-color);border:var(--checkbox-border-width,1px) solid var(--checkbox-border-color);border-radius:var(--checkbox-border-radius);display:flex;height:calc(24/var(--font-size-base)*1rem);position:relative;width:calc(24/var(--font-size-base)*1rem)}.af-checkbox svg{display:none;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);fill:var(--checkbox-check-fill)}.af-checkbox:focus-within,.af-checkbox:has(:checked),.af-checkbox:hover{outline:1px solid var(--checkbox-outline-color)}.af-checkbox input[type=checkbox]{height:calc(24/var(--font-size-base)*1rem);margin:0;opacity:0;position:absolute;width:calc(24/var(--font-size-base)*1rem)}.af-checkbox input[type=checkbox]:checked+svg{display:block}
|