UNPKG

@randstad-design/orbit-multitheme

Version:

multitheme Front-end code based on Randstad Human Forward components

1 lines 9.85 kB
{"version":3,"sources":["../scss/03_molecules/_poll.scss","00_helpers/variables/_spacing.scss","00_helpers/variables/_sizing.scss","00_tools/_background-variants.scss","00_helpers/mixins/_poll.scss","../scss/00_tools/cssVartoSass.scss","00_helpers/variables/_colors.scss"],"names":[],"mappings":"AACG;EAEG,gBCQqB,EAAA;;ADJzB;EACE,kBEJe;EFKf,iBAAiB;EACjB,YAAqB;EACrB,iBAA4B;EAC5B,eAAe;EACf,kBAAkB,EAAA;;AAGpB;EACE,kBAAkB,EAAA;;AGmER;EChFR,yCCFuC;EDGvC,yBCHuC,EAAA;;AFkF/B;EChFR,yCCFuC;EDGvC,yBCHuC,EAAA;;AFkF/B;EChFR,0CCFuC;EDGvC,mCCHuC,EAAA;;AFkF/B;EChFR,wCCFuC;EDGvC,mCCHuC,EAAA;;AFkF/B;EChFR,0CCFuC;EDGvC,mCCHuC,EAAA;;AFkF/B;EChFR,0CCFuC;EDGvC,6CCHuC,EAAA;;AFkF/B;EChFR,0CCFuC;EDGvC,mCCHuC,EAAA;;AFkF/B;ECzER,uCCTuC;EDUvC,mCCVuC,EAAA;;AFkF/B;ECzER,uCCTuC;EDUvC,mCCVuC,EAAA;;AFkF/B;ECzER,wCCTuC;EDUvC,yBCVuC,EAAA;;AFkF/B;ECzER,sCCTuC;EDUvC,yBCVuC,EAAA;;AFkF/B;ECzER,wCCTuC;EDUvC,yBCVuC,EAAA;;AFkF/B;ECzER,wCCTuC;EDUvC,yBCVuC,EAAA;;AFkF/B;ECzER,wCCTuC;EDUvC,yBCVuC,EAAA;;ADgBzC;;EAEE,qBEnBoB,EAAA;;AFsBtB;EACE,qBEvBoB;EFwBpB,cExBoB,EAAA;;AF2BtB;EACE,qBERkB;EFSlB,cETkB,EAAA;;AFcpB;EACE,cEpCoB,EAAA;;AFuCtB;EACE,cEvCoB,EAAA;;AF0CtB;;;EAGE,mBE7CoB;EF8CpB,cE5CqB,EAAA;;AF+CvB;EACE,mBE9BkB;EF+BlB,WE9CmB,EAAA;;AFkDvB;EACE,mBAAmB,EAAA","file":"poll.css","sourcesContent":[".poll {\n &__item {\n & + & {\n margin-top: $spacing--xs;\n }\n }\n\n &__option {\n border-radius: $border-radius;\n border: 2px solid;\n height: $baseline * 6;\n line-height: $baseline * 5.6;\n padding: 0 30px;\n text-align: center;\n }\n\n &__result {\n margin-right: 10px;\n }\n}\n\n // background mappings\n @include poll-background-mapping;\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","// 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","@import '../00_settings/background-variants-color-map';\n// Creates the .bg-variant-#{$variant} classes with the right background-color property from the background-variants-color-map\n// Use only once to set up the utilities\n// e.g.\n//\n// @include bg-variant-classes();\n@mixin bg-variant-classes($backgroundmap: $backgrounds) {\n @each $variant, $value in $backgroundmap {\n $backgroundColor: map-get($value, 'background');\n $defaultTextColor: map-get($value, 'bodyPrimary');\n\n .bg-variant-#{$variant} {\n background-color: returnColorCSSVar($backgroundColor);\n color: returnColorCSSVar($defaultTextColor);\n }\n }\n}\n\n// Iterates over all backgrounds mapped in background-variants-color-map and outputs whatever is wrapped inside it with a .bg-variant-#{$variant} class selector before it\n// .bg-variant-#{$variant} &\n// Use together with varient-property function\n// Pass the $supportedBackgrounds as a list, if you only want to create classes for certain backgrounds\n// Set the $isChained to true, if you need to have a class that is chained to the parent e.g. .block.bg-variant-brand-primary\n// e.g.\n//\n// .divider {\n// @include bg-variants(\n// $supportedBackgrounds: (\n// 'brand-primary',\n// 'brand-senary'\n// )\n// ) {\n// color: variant-property('divider');\n// }\n// }\n//\n// .divider {\n// @include bg-variants() {\n// border-color: variant-property('divider');\n// }\n// }\n@mixin bg-variants(\n $backgroundmap: $backgrounds,\n $supportedBackgrounds: null,\n $isChained: false\n) {\n @if ($supportedBackgrounds != null) {\n @each $variant in $supportedBackgrounds {\n $className: if(\n $isChained==true,\n '.bg-variant-#{$variant}#{&}',\n '.bg-variant-#{$variant} &'\n );\n\n @at-root #{$className} {\n $variant-map: () !global;\n\n $supportedMap: if(\n map-has-key($backgroundmap, $variant),\n map-get($backgroundmap, $variant),\n null\n );\n\n @each $key, $value in $supportedMap {\n $variant-map: map-merge(\n $variant-map,\n (\n $key: returnColorCSSVar($value)\n )\n ) !global;\n }\n\n @content;\n $variant-map: null !global;\n }\n }\n } @else {\n @each $variant, $map in $backgroundmap {\n $className: if(\n $isChained==true,\n '.bg-variant-#{$variant}#{&}',\n '.bg-variant-#{$variant} &'\n );\n\n @at-root #{$className} {\n // Makes a global map that can be accessed by the variant-property function\n $variant-map: () !global;\n\n @each $key, $submap in $map {\n $value: map-get(map-get($backgroundmap, $variant), '#{$key}');\n $variant-map: map-merge(\n $variant-map,\n (\n $key: returnColorCSSVar($value)\n )\n ) !global;\n }\n\n @content;\n $variant-map: null !global;\n }\n }\n }\n}\n\n// function to use inside the wrapped content and access the\n// Use together with bg-varients mixin\n// e.g.\n//\n// .divider {\n// @include bg-variants() {\n// border-color: variant-property('divider');\n// }\n// }\n@function variant-property($key) {\n $value: map-get($variant-map, $key);\n\n @if ($value != null) {\n @return map-get($variant-map, $key);\n } @else {\n @return null;\n }\n}\n","@mixin poll-background-mapping {\n\n .poll__option {\n @include bg-variants() {\n border-color: variant-property('ghostBorderIdle');\n color: variant-property('bodyPrimary');\n }\n }\n\n .poll__option--selected {\n @include bg-variants() {\n background: variant-property('ghostBackgroundHover');\n color: variant-property('ghostTextHover');\n }\n }\n\n // ! Deprecation warning, do not use anymore. Will be removed in a later release use bg-variants function instead.\n .poll__option {\n .bg-brand--turquoise &,\n .bg-brand--yellow & {\n border-color: $color-brand--two;\n }\n\n .bg-brand--off-white & {\n border-color: $color-brand--two;\n color: $color-brand--two;\n }\n\n .bg-brand--red & {\n border-color: $color--two-180;\n color: $color--two-180;\n }\n }\n\n .poll__option--selected {\n .bg-brand--blue & {\n color: $color-brand--one;\n }\n\n .bg-brand--dark-blue & {\n color: $color-brand--two;\n }\n\n .bg-brand--turquoise &,\n .bg-brand--yellow &,\n .bg-brand--off-white & {\n background: $color-brand--two;\n color: $color-brand--four;\n }\n\n .bg-brand--red & {\n background: $color--two-180;\n color: $color-brand--white;\n }\n }\n\n .modal__close svg {\n color: currentColor;\n }\n}\n","// Returns CSS4 color variables\n@function returnColorCSSVar($color-name) {\n @return var(--color-#{$color-name});\n}\n","$color-brand--one: #2175d9;\n$color-brand--two: #0f1941;\n$color-brand--three: #6ba5b4;\n$color-brand--four: #f7f5f0;\n$color-brand--five: #e74536;\n$color-brand--six: #ffb511;\n$color-brand--white: #fff;\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--one-7: #ecf3fc;\n$color--one-80: #4d91e1;\n$color--one-130: #175197;\n\n$color--two-50: #878ca0;\n$color--two-60: #6c738d;\n$color--two-80: #3c4464;\n$color--two-180: #03050d;\n\n$color--grey: #d7d7d7;\n$color--grey-10: #f7f7f7;\n\n$color--white: #fff;\n\n$color--four-80: #f9f7f3;\n$color--four-110: #dedcd8;\n\n$color--negative: #e00f0f;\n$color--negative-5: #fdf3f3;\n\n$color--positive: #257f56;\n$color--positive-5: #f4f8f6;\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(33, 117, 217, 0.1);\n$color-alpha--one-30: rgba(33, 117, 217, 0.3);\n\n$color-alpha--two-10: rgba(15, 25, 65, 0.1);\n$color-alpha--two-30: rgba(15, 25, 65, 0.3);\n$color-alpha--two-70: rgba(15, 25, 65, 0.7);\n$color-alpha--two-80: rgba(15, 25, 65, 0.8);\n\n// ! This needs to be changed to the new white colors in story (DF909-751)\n$color-alpha--four-30: rgba(247, 245, 240, 0.3);\n$color-alpha--four-50: rgba(247, 245, 240, 0.5);\n\n// set color values\n$color--disabled: $color--two-60;\n$color--text: $color-brand--two;\n$color--one-light: $color--one-7;\n\n// degree brand colors\n// used in the charts as extra color scheme\n\n$color-brand--one-65: #7aace8;\n$color-brand--one-45: #a6c8f0;\n$color-brand--one-25: #bbd4f1;\n$color-brand--two-65: #636983;\n$color-brand--two-45: #999aa8;\n$color-brand--two-25: #8a8caf;\n$color-brand--three-65: #020202;\n$color-brand--three-45: #c4dbe1;\n$color-brand--five-65: #f18f86;\n$color-brand--five-45: #f5b5af;\n$color-brand--five-25: #f7beb9;\n$color-brand--six-65: #ffd370;\n$color-brand--six-45: #ffe1a0;\n$color-brand--six-25: #fce8b5;\n \n\n// notice colors\n$color-notice--warning: #fff2f2;\n"]}