UNPKG

@randstad-design/orbit-multitheme

Version:

multitheme Front-end code based on Randstad Human Forward components

1 lines 20.3 kB
{"version":3,"sources":["../scss/03_molecules/indicators/_step.scss","00_helpers/mixins/_colors.scss","00_helpers/variables/_colors.scss","00_helpers/variables/_spacing.scss","00_helpers/variables/_icons.scss","00_helpers/mixins/_media-queries.scss","00_helpers/variables/_transitions.scss","00_helpers/mixins/_font-style.scss","00_helpers/variables/_fonts.scss"],"names":[],"mappings":"AACE;EACE,oBAAa;EAAb,qBAAa;EAAb,oBAAa;EAAb,aAAa,EAAA;;AAGf;ECJA,cC2CqB;ED1CrB,aC0CqB;EFrCnB,mBAAc;EAAd,sBAAc;EAAd,kBAAc;EAAd,cAAc;EACd,kBAAkB;EAClB,kBAAkB,EAAA;EAJnB;IAOG,mBEuBe;IFtBf,WAAW;IACX,WAAuB;IACvB,kBAAkB;IAClB,QAAQ;IACR,SAAoB;IACpB,WAAW;IACX,WAAW,EAAA;EAdd;IAkBG,mBAAO;IAAP,eAAO;IAAP,WAAO;IAAP,OAAO,EAAA;EAlBV;IAsBG,aAAa,EAAA;;AAIjB;EACE,sBEMe;EFLf,kBAAkB;EAClB,iBAAiB;EACjB,YAAY;EACZ,kBAAkB;EAClB,WAAW,EAAA;EAEX;IACE,sBEFa;IFGb,yBENe;IFOf,kBAAkB;IAClB,YAAqB;IACrB,cAAc;IACd,kBAAkB;IAClB,WAAW,EAAA;IAEX;MACE,yBE9CkB,EAAA;IFoCrB;MAaG,WEdW,EAAA;EFPhB;IA0BG,mBEtDoB;IFuDpB,mBG/CqB;IHgDrB,WAAuB;IACvB,kBAAkB;IAClB,UAAsB,EAAA;EA9BzB;IAkCG,YI9DwB;IJ+DxB,UAAU;IACV,QAAoB;IACpB,WIjEwB,EAAA;EJ4B3B;;IA4CG,yBExEoB,EAAA;EF4BvB;IAgDG,mBE1BmB;IF2BnB,yBE3BmB,EAAA;IFtBtB;MAoDK,WE7CW;MF8CX,UE9CW,EAAA;EFPhB;IA6DK,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AAU;MACV,cAAc;MACd,SAAoB;MACpB,WIlOiB,EAAA;EJsOrB;IO3MF,0CCb+C;IDc/C,eCOiB;IDNjB,oBCQsB;IDPtB,iBCMmB;IRoMf,WAAW;IACX,iBAA4B;IAC5B,gBAA4B;IAC5B,cAAc;IACd,oCAA4B;IAA5B,4BAA4B,EAAA,EAC7B","file":"step.css","sourcesContent":[".indicator-step {\n &__list {\n display: flex;\n }\n\n &__item {\n @include color-dark-shade-main;\n flex: 1 1 100%;\n position: relative;\n text-align: center;\n\n &::before {\n background: $color--grey;\n content: '';\n height: $baseline * 0.2;\n position: absolute;\n right: 0;\n top: $baseline * 1.4;\n width: 100%;\n z-index: -1;\n }\n\n &:first-child {\n flex: 1;\n }\n\n &:first-child::before {\n content: none;\n }\n }\n\n &__dot {\n background-color: $color--white;\n border-radius: 50%;\n margin-left: auto;\n padding: 5px;\n text-align: center;\n width: 30px;\n\n &-inner {\n background-color: $color--white;\n border: 2px solid $color--grey;\n border-radius: 50%;\n height: $baseline * 2;\n margin: 0 auto; //was margin-left: auto;\n text-align: center;\n width: 20px;\n\n .past & {\n background-color: $color-brand--one;\n }\n .icon {\n color: $color--white;\n }\n }\n\n .blue-dot {\n background: $color-brand--one;\n border-radius: $spacing--xs;\n height: $baseline * 0.8;\n position: absolute;\n width: $baseline * 0.8;\n }\n\n .icon {\n height: $icon-size--s;\n right: 7px;\n top: $baseline * 0.7;\n width: $icon-size--s;\n }\n\n // timeline specific from here:\n\n &.past .indicator-step__dot-inner,\n &.current .indicator-step__dot-inner {\n border: 2px solid $color-brand--one;\n }\n\n &.declined .indicator-step__dot-inner {\n background: $color--negative;\n border: 2px solid $color--negative;\n\n .icon svg {\n color: $color--white;\n fill: $color--white;\n }\n }\n\n &.past,\n &.current,\n &.declined {\n .icon {\n right: auto;\n top: auto;\n left: auto;\n\n &.icon-size {\n height: $icon-size--xs;\n width: $icon-size--xs;\n\n @include viewport--l {\n height: $icon-size--s;\n width: $icon-size--s;\n }\n }\n }\n }\n\n + .border {\n &--done {\n background: $color-brand--one;\n height: 100%;\n width: 2px;\n }\n\n &--todo {\n background: $color--grey;\n height: 100%;\n width: 2px;\n }\n }\n }\n}\n\n// status : complete\n.indicator-step__item--complete {\n .indicator-step__dot-inner {\n background: $color-brand--one;\n border: none;\n }\n\n .indicator-step__text {\n transition: color $transition-duration--fast;\n }\n\n &:hover {\n .indicator-step__dot,\n .indicator-step__text {\n cursor: pointer;\n }\n\n // viewport l\n @include viewport--l {\n .indicator-step__text {\n color: $color-brand--two;\n }\n }\n }\n\n & + .indicator-step__item--complete::before,\n & + .indicator-step__item--active::before,\n &::before {\n background: $color-brand--one;\n }\n}\n\n// status : active\n.indicator-step__item--active {\n color: $color-brand--one;\n\n .indicator-step__dot {\n background: $color-brand--white;\n\n &::after {\n border: 2px solid $color-brand--one;\n }\n\n &-inner {\n border: 2px solid $color-brand--one;\n\n .icon {\n align-items: center;\n display: flex;\n justify-content: center;\n\n @include viewport--l {\n .blue-dot {\n height: $spacing--xs;\n width: $spacing--xs;\n }\n }\n }\n }\n }\n}\n\n// viewport l\n@include viewport--l {\n .indicator-step {\n &__item {\n flex: inherit;\n width: 130px;\n\n &::before {\n height: $baseline * 0.3;\n left: -100%;\n right: inherit;\n top: $baseline * 2.4;\n }\n\n &:first-child {\n flex: inherit;\n }\n }\n\n &__dot {\n background: $color-brand--white;\n border-radius: 50%;\n margin-left: inherit;\n padding: 10px;\n text-align: center;\n width: 50px;\n\n &-inner {\n border-radius: 50%;\n border: 2px solid $color--grey;\n\n height: $baseline * 3;\n text-align: center;\n width: 30px;\n }\n\n .icon {\n height: $icon-size;\n left: 15px;\n right: inherit;\n top: $baseline * 1.5;\n width: $icon-size;\n }\n }\n\n &__text {\n @include font-style('body--m');\n left: -65px;\n line-height: $baseline * 2.5;\n margin-top: $baseline * -0.5;\n padding: 0 5px;\n transform: translateX(-42px);\n }\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","$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","// | 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","// icons\n$icon-size: $baseline * 2;\n$icon-size--xs: $baseline * 0.8;\n$icon-size--s: $baseline * 1.6;\n$icon-size--l: $baseline * 3;\n$icon-size--xl: $baseline * 4;\n$icon-size--xxl: $baseline * 6;\n$icon-size--xxxl: $baseline * 12;\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","$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","// @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-family: (map-get($type, font-family));\n font-size: (map-get($type, font-size));\n text-transform: (map-get($type, text-transform));\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 | 12 | body s | 12 | body s | 12 | |\n\n// font family\n$font-family-theme: Montserrat, arial, sans-serif;\n$font-family-theme-semibold: Montserrat-SemiBold, arial, sans-serif;\n$font-family-theme-extrabold: Montserrat-ExtraBold, arial, sans-serif;\n// assets path to font\n// this path is overwritten in component CSS\n\n// font mappings - font-size / line-height / letter-spacing\n$types: (\n 12: (\n font-size: 12px,\n line-height: 15px,\n text-transform: none,\n font-family: $font-family-theme\n ),\n 14: (\n font-size: 14px,\n line-height: 25px,\n text-transform: none,\n font-family: $font-family-theme\n ),\n 16: (\n font-size: 16px,\n line-height: 25px,\n text-transform: none,\n font-family: $font-family-theme\n ),\n 18: (\n font-size: 18px,\n line-height: 30px,\n text-transform: none,\n font-family: $font-family-theme\n ),\n 20: (\n font-size: 20px,\n line-height: 30px,\n text-transform: none,\n font-family: $font-family-theme-extrabold\n ),\n 20s: (\n font-size: 20px,\n line-height: 30px,\n text-transform: none,\n font-family: $font-family-theme-semibold\n ),\n 26: (\n font-size: 26px,\n line-height: 30px,\n text-transform: uppercase,\n font-family: $font-family-theme-extrabold\n ),\n 26s: (\n font-size: 26px,\n line-height: 30px,\n text-transform: none,\n font-family: $font-family-theme-semibold\n ),\n 32: (\n font-size: 32px,\n line-height: 40px,\n text-transform: uppercase,\n font-family: $font-family-theme-extrabold\n ),\n 32s: (\n font-size: 32px,\n line-height: 40px,\n text-transform: none,\n font-family: $font-family-theme-semibold\n ),\n 40: (\n font-size: 40px,\n line-height: 45px,\n text-transform: uppercase,\n font-family: $font-family-theme-extrabold\n ),\n 40s: (\n font-size: 40px,\n line-height: 45px,\n text-transform: none,\n font-family: $font-family-theme-semibold\n ),\n 60: (\n font-size: 60px,\n line-height: 60px,\n text-transform: uppercase,\n font-family: $font-family-theme-extrabold\n ),\n 80: (\n font-size: 80px,\n line-height: 80px,\n text-transform: uppercase,\n font-family: $font-family-theme-extrabold\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--l-slim: 40s,\n title--m: 32,\n title--m-slim: 32s,\n title--s: 26,\n title--s-slim: 26s,\n title--xs: 20,\n title--xs-slim: 20s,\n title--xxs: 18,\n body--l: 18,\n body--m: 16,\n body--s: 14,\n body--xs: 12\n);\n"]}