@randstad-design/orbit-multitheme
Version:
multitheme Front-end code based on Randstad Human Forward components
1 lines • 13.6 kB
Source Map (JSON)
{"version":3,"sources":["../scss/02_atoms/forms/_option-group.scss","00_helpers/variables/_spacing.scss","00_helpers/mixins/_form.scss","00_helpers/variables/_colors.scss","00_helpers/variables/_sizing.scss","00_helpers/variables/_transitions.scss","00_helpers/mixins/_media-queries.scss","00_helpers/mixins/_colors.scss"],"names":[],"mappings":"AACE;EACE,oBAAa;EAAb,qBAAa;EAAb,oBAAa;EAAb,aAAa;EACb,8BAAmB;EAAnB,6BAAmB;EAAnB,2BAAmB;EAAnB,uBAAmB;EAAnB,mBAAmB;EACnB,uBAAe;EAAf,mBAAe;EAAf,eAAe;EACf,iBCMuB,EAAA;;ADX3B;EASI,qBAA6B;EAC7B,MAAM,EAAA;;AAVV;EE4GE,mBCpEqB;EDqErB,qBC1GwB,EAAA;ED4GxB;IACE,oCCpC2C;IDqC3C,sCCpC2C,EAAA;;AH7E/C;EEkGE,yBC/DmB;EDgEnB,cChGwB;EHgBtB,kBIfe;EJgBf,eAAe;EACf,qBAAqB;EACrB,YCRsB;EDStB,iBAA4B;EAC5B,cAAc;EACd,eAAe;EACf,eAAe;EACf,mCK1B4B;EL0B5B,2BK1B4B,EAAA;EHoG9B;IACE,yBC/FuB;IDgGvB,WCtGqB,EAAA;EHDzB;IE4GE,mBCpEqB;IDqErB,qBC1GwB;IH4BpB,mCK9B0B;IL8B1B,2BK9B0B,EAAA;IH8G9B;MACE,oCCpC2C;MDqC3C,sCCpC2C,EAAA;EGf3C;IN9DJ;MAmCM,eAAe,EAAA,EAElB;;AArCH;EEsHE,mBCnHwB;EDoHxB,qBCpHwB;EDqHxB,WCvHuB,EAAA;EDyHvB;IACE,mBCvHsB;IDwHtB,qBCxHsB;IDyHtB,WC5HqB,EAAA;;AHDzB;EE8IE,mBCxFyB;EDyFzB,qBC1FuB;EDqGvB,cCrGuB,EAAA;ED4FvB;IACE,qBC9IsB,EAAA;EDwJxB;IACE,qBCzJsB,EAAA;EHJ1B;IAiDQ,mBGTe;IHUf,qBG/CkB;IDuJxB,cCrGuB,EAAA;IDuGvB;MACE,qBCzJsB,EAAA;;AHJ1B;EEsHE,mBCnHwB;EDoHxB,qBCpHwB;EDqHxB,WCvHuB,EAAA;EDyHvB;IACE,mBCvHsB;IDwHtB,qBCxHsB;IDyHtB,WC5HqB,EAAA;;AHDzB;EA6DI,mBGzBoB;EInCtB,cJ2CqB;EI1CrB,aJ0CqB,EAAA","file":"option-group.css","sourcesContent":[".option-group {\n &__wrapper {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin-top: -$spacing--xs;\n }\n\n .form-group__input {\n margin: $spacing--xs 10px 0 0;\n top: 0;\n }\n\n input:focus + .selection-control__label {\n @include form-field--option-group-hover-color;\n }\n\n .selection-control__label {\n @include form-field--option-group-color;\n border-radius: $border-radius;\n cursor: pointer;\n display: inline-block;\n height: $spacing--l;\n line-height: $baseline * 4.8;\n margin-left: 0;\n min-width: 50px;\n padding: 0 10px;\n transition: background $transition-duration--fast;\n\n &:hover {\n @include form-field--option-group-hover-color;\n transition: background $transition-duration--fast;\n }\n\n @include viewport--l {\n padding: 0 20px;\n }\n }\n\n .selection-control input:checked + .selection-control__label {\n @include form-field--option-group-active-color;\n }\n\n &.form-group--error {\n .selection-control__label {\n @include form-field--invalid;\n @include form-field--invalid-label-color;\n\n &:hover {\n background: $color--one-light;\n border-color: $color-brand--one;\n @include form-field--invalid-label-color;\n }\n }\n\n .selection-control input:checked + .selection-control__label {\n @include form-field--option-group-active-color;\n }\n }\n\n &.form-group--readonly .selection-control__label {\n background: $color--grey-10;\n @include color-dark-shade-main;\n }\n}\n","// | variable | size | calculation |\n// |---------------|-------|-----------------|\n// | $spacing--xxs | 5px | $baseline * 0.5 |\n// | $spacing--xs | 10px | $baseline * 1 |\n// | $spacing--s | 20px | $baseline * 2 |\n// | $spacing--m | 30px | $baseline * 3 |\n// | $spacing--l | 50px | $baseline * 5 |\n// | $spacing--xl | 80px | $baseline * 8 |\n// | $spacing--xxl | 130px | $baseline * 13 |\n\n$spacing--xxs: $baseline * 0.5;\n$spacing--xs: $baseline * 1;\n$spacing--s: $baseline * 2;\n$spacing--m: $baseline * 3;\n$spacing--l: $baseline * 5;\n$spacing--xl: $baseline * 8;\n$spacing--xxl: $baseline * 13;\n\n// grid spacings\n$grid-margin--s: 25px;\n$grid-margin--m: 50px;\n$grid-margin--l: 100px;\n","// @form-field--[] color schemes\n\n// - text colors\n// - field colors\n// - error colors\n\n//// text colors ////\n@mixin form-field--primary-text-color {\n color: $color-brand--two;\n\n .bg-brand--gradient-orange & {\n color: $color-brand--white;\n }\n}\n\n@mixin form-field--secondary-text-color {\n color: $color-brand--six;\n\n .bg-brand--gradient-orange & {\n color: $color-brand--white;\n }\n}\n\n@mixin form-field-border-color {\n border: 2px solid $color--grey;\n\n .bg-brand--gradient-orange & {\n border: 2px solid $color-brand--white;\n }\n}\n\n// disabled\n@mixin form-field--disabled-text-color {\n color: $color--two-80;\n}\n\n@mixin form-field--disabled-idle {\n border-color: $color-brand--six;\n}\n\n@mixin form-field--disabled-checked {\n background: $color-brand--six;\n border-color: $color-brand--six;\n}\n\n@mixin form-field--disabled-indeterminate {\n background-color: $color-brand--six;\n border-color: $color-brand--six;\n}\n\n@mixin radio-button--disabled {\n border-color: $color-brand--six;\n\n &::after {\n background: $color-brand--six;\n }\n}\n\n@mixin form-field--disabled-background-color {\n background-color: $color--grey-10;\n}\n\n//// field colors ////\n\n// radio & check buttons\n@mixin form-field--border-interaction-color {\n border-color: $color-brand--one;\n\n .bg-brand--gradient-orange & {\n border-color: $color-brand--two;\n }\n}\n\n@mixin form-field--checked-field-color {\n background: $color-brand--one;\n border-color: $color-brand--one;\n\n .bg-brand--gradient-orange & {\n background: $color-brand--two;\n border-color: $color-brand--two;\n }\n}\n\n@mixin form-field--checked-active-color {\n outline: 2px solid $color-brand--one;\n outline-offset: 1px;\n}\n\n@mixin form-field--checkmark-color {\n background: $color-brand--one;\n\n .bg-brand--gradient-orange & {\n background: $color-brand--two;\n }\n}\n\n// option group\n@mixin form-field--option-group-color {\n border: 1px solid $color--grey;\n color: $color-brand--one;\n\n .bg-brand--gradient-orange & {\n border: 1px solid $color-brand--five;\n color: $color-brand--white;\n }\n}\n\n@mixin form-field--option-group-hover-color {\n background: $color--one-10;\n border-color: $color-brand--one;\n\n .bg-brand--gradient-orange & {\n background: $color-alpha--four-30;\n border-color: $color-alpha--four-50;\n }\n}\n\n@mixin form-field--option-group-active-color {\n background: $color-brand--one;\n border-color: $color-brand--one;\n color: $color-brand--white;\n\n .bg-brand--gradient-orange & {\n background: $color-brand--two;\n border-color: $color-brand--two;\n color: $color-brand--white;\n }\n}\n\n//// error colors ////\n@mixin form-field--feedback-color {\n color: $color--negative;\n fill: $color--negative;\n\n .bg-brand--gradient-orange & {\n color: $color-brand--two;\n fill: $color-brand--two;\n }\n}\n\n// specificity important\n@mixin form-field--invalid {\n background: $color--negative-5;\n border-color: $color--negative;\n\n .bg-brand--gradient-orange & {\n border-color: $color-brand--two;\n }\n}\n\n@mixin form-field--invalid-text-icon {\n}\n\n@mixin form-field--invalid-label-color {\n color: $color--negative;\n\n .bg-brand--gradient-orange & {\n border-color: $color-brand--two;\n }\n}\n\n@mixin form-field--currency-color {\n border: solid 1px $color--grey;\n\n .bg-brand--gradient-orange & {\n border: solid 1px $color--grey;\n }\n}\n\n@mixin form-field--focus {\n border-color: $color-brand--one;\n box-shadow: 0 0 0 1pt $color-brand--one;\n\n .bg-brand--gradient-orange & {\n border-color: $color-brand--two;\n box-shadow: 0 0 0 1pt $color-brand--two;\n }\n}\n\n@mixin form-field--invalid-box-shadow {\n box-shadow: 0 0 0 1pt $color--negative;\n\n .bg-brand--gradient-orange & {\n box-shadow: 0 0 0 1pt $color-brand--two;\n }\n}\n","$color-brand--black: #000000;\n$color-brand--white: #fff;\n\n$color-brand--one: #ff661a;\n$color-brand--two: #2e2e2e;\n$color-brand--three: #1f82db;\n$color-brand--four: #c4c4c4;\n$color-brand--five: #f8f8f8;\n$color-brand--six: #97999b;\n\n$color-brand--gradient-orange: linear-gradient(\n 56.45deg,\n #ff8200 0%,\n #ed1f24 100%\n);\n$color-brand--gradient-orange-50: linear-gradient(\n 56.45deg,\n #ff9b33 0%,\n #ed4e52 100%\n);\n$color-brand--gradient-blue: linear-gradient(45deg, #1f82db 0%, #1166b3 100%);\n$color-brand--gradient-purple: linear-gradient(\n 45deg,\n #595a9f 0%,\n #6152a3 50%,\n #292765 100%\n);\n// user interface colors\n//\n// additional colors, such as surface, background and error colors, typically don't\n// represent the brand but can be applied sparingly to accent select parts of your UI.\n//\n\n$color--black-80: #303030;\n\n$color--grey: #e2e2e2;\n$color--grey-10: #f8f8f8;\n\n$color--white: #fff;\n\n$color--one-10: #fff0e8;\n$color--one-80: #ff8548;\n$color--one-130: #e64c00;\n\n$color--two-50: #97999b;\n$color--two-80: #4d4d4d;\n$color--two-180: #000000;\n\n$color--three-5: #edf6ff;\n\n$color--four-80: #f9f7f3;\n$color--four-110: #dedcd8;\n\n$color--negative: #f13c23;\n$color--negative-5: #fef5f4;\n\n$color--positive: #11d15e;\n$color--positive-5: #f3fdf7;\n\n$color--warning: #e9a204;\n$color--warning-10: #fcf5e5;\n\n// user interface opacities\n//\n// opacity colors are only used on modal backgrounds. HEX colors would not be\n// used due to the colors' alpha layers.\n//\n\n$color-alpha--one-10: rgba(255, 102, 26, 0.1);\n$color-alpha--one-30: rgba(255, 102, 26, 0.3);\n\n$color-alpha--two-10: rgba(0, 0, 0, 0.1);\n$color-alpha--two-30: rgba(0, 0, 0, 0.3);\n$color-alpha--two-70: rgba(0, 0, 0, 0.7);\n$color-alpha--two-80: rgba(0, 0, 0, 0.8);\n\n$color-alpha--four-30: rgba(255, 255, 255, 0.2);\n$color-alpha--four-50: rgba(255, 255, 255, 0.5);\n\n// set color values\n$color--disabled: $color--two-50;\n$color--text: $color-brand--two;\n$color--one-light: $color--one-10;\n\n// degree brand colors\n// used in the charts as extra color scheme\n$color-brand--one-65: #ffc8ad;\n$color-brand--one-45: #ffe7da;\n$color-brand--one-25: #f7beb9;\n$color-brand--two-65: #afaf;\n$color-brand--two-45: #dbdbdb;\n$color-brand--two-25: #fce8b5;\n$color-brand--three-65: #afd2f2;\n$color-brand--three-45: #dbebf9;\n$color-brand--five-25: #a6c8f0;\n$color-brand--six-65: #dadadb;\n$color-brand--six-45: #eeefef;\n$color-brand--six-25: #c4dbe1;\n\n// degree user interface colors\n// used in the charts as extra color scheme\n$color--positive-65: #aaefc5;\n$color--positive-45: #d9f8e5;\n\n// notice colors\n$color-notice--warning: #fff2f2;\n","// baseline size, used for every calculation\n$baseline: 10px;\n\n// border radius\n$border-radius: 4px;\n$border-radius--s: 3px;\n$border-radius--xs: 2px;\n$border-radius--m: 5px;\n$border-radius--m-l: 6px;\n$border-radius--l: 8px;\n$border-radius--max: 30px;\n","$transition-duration--faster: 0.1s;\n$transition-duration--fast: 0.2s;\n$transition-duration: 0.3s;\n$transition-duration--slow: 0.5s;\n$transition-duration--slower: 0.7s;\n$transition-duration--slowest: 0.9s;\n","// @viewport--x($reversed)\n\n// viewport s\n@mixin viewport--s($type: null) {\n // inversed\n @if ($type == 'inversed') {\n @media (max-width: #{($breakpoint-viewport--s - 1)}) {\n @content;\n }\n }\n // range\n @else if ($type== 'range') {\n @media (min-width:0) and (max-width: #{($breakpoint-viewport--s - 1)}) {\n @content;\n }\n }\n // default\n @else {\n @media (min-width: #{$breakpoint-viewport--s}) {\n @content;\n }\n }\n}\n\n// viewport m\n@mixin viewport--m($type: null) {\n // inversed\n @if ($type == 'inversed') {\n @media (max-width: #{($breakpoint-viewport--m - 1)}) {\n @content;\n }\n }\n // range\n @else if ($type== 'range') {\n @media (min-width: $breakpoint-viewport--m) and (max-width: #{($breakpoint-viewport--l - 1)}) {\n @content;\n }\n }\n // default\n @else {\n @media (min-width: #{$breakpoint-viewport--m}) {\n @content;\n }\n }\n}\n\n// viewport l\n@mixin viewport--l($type: null) {\n // inversed\n @if ($type == 'inversed') {\n @media (max-width: #{($breakpoint-viewport--l - 1)}) {\n @content;\n }\n }\n // range\n @else if ($type== 'range') {\n @media (min-width: $breakpoint-viewport--l) and (max-width: #{($breakpoint-viewport--xl - 1)}) {\n @content;\n }\n }\n // default\n @else {\n @media (min-width: #{$breakpoint-viewport--l}) {\n @content;\n }\n }\n}\n\n// viewport xl\n@mixin viewport--xl($type: null) {\n @if ($type == 'inversed') {\n @media (max-width: #{($breakpoint-viewport--xl - 1)}) {\n @content;\n }\n }\n // range\n @else if ($type== 'range') {\n @media (min-width: $breakpoint-viewport--xl) and (max-width: #{($breakpoint-viewport--xxl - 1)}) {\n @content;\n }\n }\n // default\n @else {\n @media (min-width: #{$breakpoint-viewport--xl}) {\n @content;\n }\n }\n}\n\n// viewport xxl\n@mixin viewport--xxl($type: null) {\n // inversed\n @if ($type == 'inversed') {\n @media (max-width: #{($breakpoint-viewport--xxl - 1)}) {\n @content;\n }\n }\n // default\n @else {\n @media (min-width: #{$breakpoint-viewport--xxl}) {\n @content;\n }\n }\n}\n\n// viewport range\n@mixin viewport--range($viewport1, $viewport2) {\n @media (min-width: #{($viewport1)}) and (max-width: #{($viewport2 - 1)}) {\n @content;\n }\n}\n\n// Internet Explorer 10 + 11\n@mixin internet-explorer-10-11 {\n @media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {\n @content;\n }\n}\n","@mixin color-dark-shade-main {\n color: $color--two-50;\n fill: $color--two-50;\n}\n\n@mixin color-dark-shade-alternative {\n color: $color--two-50;\n fill: $color--two-50;\n}\n"]}