UNPKG

@randstad-design/orbit-multitheme

Version:

multitheme Front-end code based on Randstad Human Forward components

1 lines 13.8 kB
{"version":3,"sources":["../scss/03_molecules/_button-group.scss","00_helpers/variables/_spacing.scss","00_helpers/mixins/_media-queries.scss","00_helpers/variables/_sizing.scss","../scss/04_organisms/overlays/_cookie.scss","00_helpers/mixins/_font-style.scss","00_helpers/variables/_fonts.scss","00_helpers/variables/_modals.scss"],"names":[],"mappings":"AAAA;EACE,2BAAoB;EAApB,4BAAoB;EAApB,2BAAoB;EAApB,oBAAoB;EACpB,iBCSyB;EDRzB,gBAAgB,EAAA;EAHlB;IAMI,gBCKuB,EAAA;EDFzB;IACE,oBAAa;IAAb,qBAAa;IAAb,oBAAa;IAAb,aAAa,EAAA;;AEwCb;EFnCF;IACE,uBAAe;IAAf,mBAAe;IAAf,eAAe;IACf,iBAAiB;IACjB,kBAAkB,EAAA;IAHpB;MAMI,mBAAc;MAAd,sBAAc;MAAd,kBAAc;MAAd,cAAc;MACd,gBAAgB;MAChB,iBAAiB,EAAA,EAClB;;AEsCD;EFjCF;IAGM,iBAAiB,EAAA;EAHvB;IAOM,gBAAgB,EAAA;EAKtB;IAGM,gBAAgB;IAChB,4BAAQ;IAAR,gBAAQ;IAAR,iBAAQ;IAAR,QAAQ,EAAA;EAJd;IAQM,iBAAiB,EAAA;EAMvB;IACE,uBAAe;IAAf,mBAAe;IAAf,eAAe,EAAA;IADjB;MAII,mBAAY;MAAZ,oBAAY;MAAZ,oBAAY;MAAZ,YAAY,EAAA;IAJhB;MAQI,kBG9DS,EAAA;IHsDb;MAYI,cAAc,EAAA;IAZlB;;MAiBI,gBAAgB,EAAA,EACjB;;AIzEL;EAIM,gBAAgB,EAAA;;AAJtB;EC4BE,eCaiB;EDZjB,iBCcmB;EDbnB,iBCYmB,EAAA;EJoBjB;IE9DJ;MC4BE,eCkBiB;MDjBjB,oBCmBsB;MDlBtB,iBCiBmB,EAAA,EFtChB;;AATL;EC4BE,eCGiB;EDFjB,iBCImB;EDHnB,iBCEmB,EAAA;;AFhCrB;EAgBM,oBAAuC,EAAA;;AFkCzC;EE1BF;IAGM,uBHhBmB,EAAA;EGazB;IAOM,mBAAmB;IACnB,qBAA2C,EAAA;EARjD;IAaQ,WAAW,EAAA;IAbnB;MAgBU,WAAW,EAAA;IAhBrB;MAoBU,aAAa;MACb,mBHlCe,EAAA;MGazB;QAwBY,gBAAgB,EAAA;IAxB5B;MA6BU,mBH1Ce,EAAA;MGazB;QAgCY,gBAAgB,EAAA,EACjB;;AFKT;EEKF;IAGM,uBH1DkB,EAAA;EGuDxB;IAOM,YGtEyB,EAAA;EH+D/B;IAWM,cAAqB;IACrB,iBAAwB,EAAA,EACzB","file":"cookie.css","sourcesContent":[".button-group {\n display: inline-flex;\n margin-top: -($spacing--xs);\n overflow: hidden;\n\n .button {\n margin-top: $spacing--xs;\n }\n\n &--full-width {\n display: flex;\n }\n}\n\n@include viewport--l('inversed') {\n .button-group {\n flex-wrap: wrap;\n margin-left: -5px;\n margin-right: -5px;\n\n .button {\n flex: 1 1 auto;\n margin-left: 5px;\n margin-right: 5px;\n }\n }\n}\n\n@include viewport--l {\n .button-group:not(.button-group--reverse-on-l) {\n .button {\n &:first-child {\n margin-right: 5px;\n }\n\n &:last-child {\n margin-left: 5px;\n }\n }\n }\n\n .button-group--reverse-on-l {\n .button {\n &:first-child {\n margin-left: 5px;\n order: 2;\n }\n\n &:last-child {\n margin-right: 5px;\n }\n }\n }\n\n //Yes-No version: stretches button along with content to max modal width & stacks buttons\n .button-group--options {\n flex-wrap: wrap;\n\n .button {\n flex-grow: 1;\n }\n\n &:not(.button-group--reverse-on-l) .button {\n margin-right: $baseline;\n }\n\n &:not(.button-group--reverse-on-l) .button:last-child {\n margin-left: 0;\n }\n\n &:not(.button--full-width),\n a.button:not(.button--full-width) {\n max-width: 400px; //same as modal width\n }\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","// @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","// 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",".modal--popup.modal--cookie {\n .modal {\n\n &__header {\n min-height: auto;\n }\n\n &__title {\n @include font-style('title--xs', 'title--s');\n }\n\n &__main p {\n @include font-style('body--m');\n }\n\n &__footer {\n padding: $spacing--xs $grid-margin--s 0;\n }\n\n }\n}\n\n// viewport s - m\n@include viewport--l('inversed') {\n .modal--popup.modal--cookie {\n .modal {\n &__header {\n padding: $spacing--m $grid-margin--s $spacing--xs;\n }\n\n &__main {\n overflow-y: visible;\n padding: 0 $grid-margin--s ($baseline * 16);\n }\n\n &__footer {\n .button-group {\n width: 100%;\n\n .button {\n width: 100%;\n }\n\n .button--plain {\n margin-top: 0;\n margin-bottom: $spacing--xs;\n\n + .button--plain {\n margin-bottom: 0;\n }\n }\n\n .button--filled {\n margin-bottom: $spacing--xs;\n\n + .button--plain {\n margin-bottom: 0;\n }\n }\n }\n }\n }\n }\n}\n\n// viewport l\n@include viewport--l {\n .modal--popup.modal--cookie {\n .modal {\n &__header {\n padding: $spacing--m $spacing--m $spacing--s;\n }\n\n &__dialog {\n width: $modal-dialog-cookie-width;\n }\n\n &__footer {\n margin: $spacing--m 0;\n padding: 0 $spacing--m 0;\n }\n }\n }\n}\n","// @font-style($font-style-small, $font-style-large)\n\n// $font-style-small - Desired type size for small/medium viewport.\n// $font-style-large - Desired type size for large viewport. This includes default fallback\n// for the S/M viewport.\n\n//\n// | viewport S | viewport M | viewport L | default mapping |\n// |------------------|------------------|-----------------|-----------------|\n// | title l | 40 | title l | 40 | title xxl | 80 | default |\n// | title m | 32 | title m | 32 | title xl | 60 | default |\n// | title s | 26 | title s | 26 | title l | 40 | |\n// | title s | 26 | title s | 26 | title m | 32 | default |\n// | title xs | 20 | title xs | 20 | title s | 26 | |\n// | title xs | 20 | title xs | 20 | title xs | 20 | default |\n// | title xxs | 18 | title xxs | 18 | title xxs | 18 | |\n// | | | | | | | |\n// | body l | 18 | body l | 18 | body l | 18 | |\n// | body m | 16 | body m | 16 | body m | 16 | |\n// | body s | 12 | body s | 12 | body s | 12 | |\n\n// import variables needed for the mixins\n@import '../variables/__variables.scss';\n\n// mixin to get applicable properties for chosen type size\n@mixin typeset($type) {\n $type: map-get($types, $type);\n\n font-size: (map-get($type, font-size));\n letter-spacing: (map-get($type, letter-spacing));\n line-height: (map-get($type, line-height));\n}\n\n// get correct font characteristics based on font\n@mixin type-size($size) {\n $size: map-get($type-sizes, $size);\n @include typeset($size);\n}\n\n// mixin to get font-size\n@mixin font-style($font-style-small: 'body--l', $font-style-large: null) {\n // if both arguments are added\n @if ($font-style-large != null) {\n // make sure $font-style-small & $font-style-large are not equal\n @if ($font-style-small != $font-style-large) {\n @include type-size($font-style-small);\n\n @include viewport--l {\n @include type-size($font-style-large);\n }\n } @else {\n @include type-size($font-style-small);\n }\n } @else {\n @include type-size($font-style-small);\n // default font style mappings\n @if ($font-style-small == 'title--l') {\n @include viewport--l {\n @include type-size('title--xxl');\n }\n } @else if ($font-style-small == 'title--m') {\n @include viewport--l {\n @include type-size('title--xl');\n }\n } @else if ($font-style-small == 'title--s') {\n @include viewport--l {\n @include type-size('title--m');\n }\n }\n }\n}\n","// | viewport S | viewport M | viewport L | default mapping |\n// |------------------|------------------|-----------------|-----------------|\n// | title l | 40 | title l | 40 | title xxl | 80 | default |\n// | title m | 32 | title m | 32 | title xl | 60 | default |\n// | title s | 26 | title s | 26 | title l | 40 | |\n// | title s | 26 | title s | 26 | title m | 32 | default |\n// | title xs | 20 | title xs | 20 | title s | 26 | |\n// | title xs | 20 | title xs | 20 | title xs | 20 | default |\n// | title xxs | 18 | title xxs | 18 | title xxs | 18 | |\n// | | | | | | | |\n// | body l | 18 | body l | 18 | body l | 18 | |\n// | body m | 16 | body m | 16 | body m | 16 | |\n// | body s | 14 | body s | 14 | body s | 14 | |\n// | body xs | 12 | body xs | 12 | body xs | 12 | |\n\n// font family\n$font-family-theme: Graphik, Tahoma, 'sans-serif';\n\n// font mappings - font-size / line-height / letter-spacing\n$types: (\n 12: (\n font-size: 12px,\n line-height: 15px,\n letter-spacing: 0\n ),\n 14: (\n font-size: 14px,\n line-height: 25px,\n letter-spacing: 0\n ),\n 16: (\n font-size: 16px,\n line-height: 25px,\n letter-spacing: 0\n ),\n 18: (\n font-size: 18px,\n line-height: 30px,\n letter-spacing: 0\n ),\n 20: (\n font-size: 20px,\n line-height: 30px,\n letter-spacing: 0\n ),\n 26: (\n font-size: 26px,\n line-height: 30px,\n letter-spacing: -1px\n ),\n 32: (\n font-size: 32px,\n line-height: 40px,\n letter-spacing: -1px\n ),\n 40: (\n font-size: 40px,\n line-height: 45px,\n letter-spacing: -2px\n ),\n 60: (\n font-size: 60px,\n line-height: 60px,\n letter-spacing: -3px\n ),\n 80: (\n font-size: 80px,\n line-height: 80px,\n letter-spacing: -4px\n )\n);\n\n// type-sizes - links the type-size to correct font mapping\n$type-sizes: (\n title--xxl: 80,\n title--xl: 60,\n title--l: 40,\n title--m: 32,\n title--s: 26,\n title--xs: 20,\n title--xxs: 18,\n body--l: 18,\n body--m: 16,\n body--s: 14,\n body--xs: 12\n);\n","// modal size & placement\n$modal-header-height: $baseline * 6;\n$modal-dialog-width: 450px;\n$modal-dialog-popup-width: 400px;\n$modal-dialog-cookie-width: 550px;\n$modal-dialog-initial-offset: 10%;\n\n//modal spacing\n$modal-dialog-max-top-offset: $spacing--xl;\n$modal-cookie-spacing: $baseline * 18;\n$modal-dialog-spacing: $spacing--s;\n$modal-dialog-spacing--l: 30px;\n$modal-dialog-spacing--xl: 50px;\n\n// title\n$modal-title-font-style: 'title--s';\n$modal-title-font-style--xs: 'title--xs';\n$modal-header-divider-in-title-font-style--l-inversed: 'title--xs';\n$modal-title-text-transform: lowercase;\n"]}