@randstad-design/orbit-multitheme
Version:
multitheme Front-end code based on Randstad Human Forward components
1 lines • 16.2 kB
Source Map (JSON)
{"version":3,"sources":["../scss/03_molecules/_person-profile.scss","00_helpers/variables/_spacing.scss","00_helpers/mixins/_font-style.scss","00_helpers/variables/_fonts.scss","00_helpers/variables/_person-profile.scss","00_helpers/mixins/_media-queries.scss","../scss/04_organisms/carousels/_quote.scss","00_helpers/mixins/grid/_grid-columns.scss"],"names":[],"mappings":"AACG;EAEG,gBCWoB,EAAA;;ADbvB;EAMG,gBCKoB,EAAA;;ADXvB;EAUG,gBCEoB,EAAA;;ADExB;EEaA,mDCZiE;EDajE,eCqCiB;EDpCjB,oBCsCsB;EDrCtB,iBCoCmB;EHlDjB,0BIfmC,EAAA;;AJkBrC;EACE,gBCTsB,EAAA;;ADYxB;EAEE,gBAAgB;EAChB,gBCfsB,EAAA;;ADkBxB;EEFA,0CCb+C;EDc/C,eCaiB;EDZjB,oBCcsB;EDbtB,iBCYmB;EHXjB,gBAAgB;EAChB,gBCtBuB,EAAA;;ADyBzB;EACE,oBAAa;EAAb,qBAAa;EAAb,oBAAa;EAAb,aAAa,EAAA;EADd;IERD,0CCb+C;IDc/C,eCOiB;IDNjB,oBCQsB;IDPtB,iBCMmB;IHIf,iBC7BoB;ID8BpB,aAAa,EAAA;;AKoBf;ELbF;IACE,gBCnCuB,EAAA;EDsCzB;IACI,gBAAgB,EAAA,EACnB;;AMvDH;EACE,oBLawB;EKZxB,iBLWwB,EAAA;EKb1B;IAKI,qBAAgC,EAAA;EALpC;;IAUI,UAAU,EAAA;EAVd;IAcI,mBLFsB;IKGtB,WAAW,EAAA;IAff;MAkBM,WAAW,EAAA;EAlBjB;IAyBM,gBAAgB;IAChB,gBLdoB,EAAA;EKZ1B;IJ4BE,oDCXmE;IDYnE,eC+BiB;ID9BjB,yBCgC2B;ID/B3B,iBC8BmB,EAAA;IECjB;MC9DJ;QJ4BE,oDCXmE;QDYnE,eCuDiB;QDtDjB,yBCwD2B;QDvD3B,iBCsDmB,EAAA,EGnDhB;EAlCL;IJ4BE,mDCZiE;IDajE,eCyBiB;IDxBjB,oBC0BsB;IDzBtB,iBCwBmB,EAAA;IEOjB;MC9DJ;QJ4BE,mDCZiE;QDajE,eCqCiB;QDpCjB,oBCsCsB;QDrCtB,iBCoCmB,EAAA,EG1BhB;EAzCL;IA6CI,YAAY,EAAA;EA7ChB;IAkDI,yBAAiB;IAAjB,sBAAiB;IAAjB,qBAAiB;IAAjB,iBAAiB,EAAA;;ADYjB;ECNF;IACE,qBLzCyB;IK0CzB,kBL1CyB,EAAA;IKwC3B;MAKI,iBAAiB,EAAA;IALrB;MASI,iBAAiB,EAAA;IATrB;MAaI,wBAAuB;MAAvB,+BAAuB;MAAvB,qBAAuB;MAAvB,uBAAuB;MACvB,cAAc;MACd,2BC1CuD;MD2CvD,yBAA8B;MAA9B,sCAA8B;MAA9B,sBAA8B;MAA9B,8BAA8B,EAAA;MAhBlC;QAmBM,kBAAkB,EAAA;IAnBxB;MAwBI,eAAe;MACf,cAAc;MACd,gBAAgB;MAChB,iBAAiB;MACjB,WAAW,EAAA;MA5Bf;QA+BM,SAAS;QACT,iBAA0B;QAC1B,kBAAkB;QAClB,0BC7DqD,EAAA;ID2B3D;MAuCI,iBAAiB;MACjB,2BCnEuD,EAAA;MD2B3D;QA2CM,aAAa,EAAA;MA3CnB;QA+CM,gBL1FkB,EAAA;MK2CxB;QAmDM,gBL7FkB,EAAA,EK8FnB","file":"quote.css","sourcesContent":[".person {\n &__profile {\n & + & {\n margin-top: $spacing--l;\n }\n\n .contact-details {\n margin-top: $spacing--s;\n }\n\n .social__list {\n margin-top: $spacing--m;\n }\n }\n\n &__name {\n @include font-style($person-name-font-style, $person-name-font-style);\n text-transform: $person-name-text-transform;\n }\n\n &__description + .social__list {\n margin-top: $spacing--s;\n }\n\n &__info p:not(.person__title),\n &__description {\n margin-bottom: 0;\n margin-top: $spacing--s;\n }\n\n &__title {\n @include font-style('body--l');\n margin-bottom: 0;\n margin-top: $spacing--xs;\n }\n\n &--s {\n display: flex;\n\n .person__description {\n @include font-style('body--m');\n margin-left: $spacing--s;\n margin-top: 0;\n }\n }\n}\n\n// viewport l\n@include viewport--l {\n .person__profile + .person__profile {\n margin-top: $spacing--xl;\n }\n\n .my-environment-container .person__initials {\n margin-bottom: 0;\n }\n}\n\n// background mappings\n@include person-profile-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","// @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","// title\n$person-name-font-style: 'title--s-slim';\n$person-name-text-transform: capitalize;\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",".carousel--quote {\n padding-bottom: $spacing--l;\n padding-top: $spacing--m;\n\n &.slick-dotted {\n padding-bottom: $baseline * 11.5;\n }\n\n .banner__wrapper:focus,\n .banner__slide:focus {\n outline: 0;\n }\n\n .quotes {\n margin-bottom: $spacing--s;\n width: 94px;\n\n &--s {\n width: 70px;\n }\n }\n\n .content-block {\n &__description,\n &__author {\n margin-bottom: 0;\n margin-top: $spacing--s;\n }\n\n &__description {\n @include font-style(\n 'title--s',\n $carousel-quote-description-font-style--l\n );\n }\n\n &__author {\n @include font-style(\n $carousel-quote-author-font-style,\n $carousel-quote-author-font-style--l\n );\n }\n }\n\n .slick-dots {\n bottom: 50px;\n }\n\n &.slick-slider {\n -khtml-user-select: text;\n user-select: text;\n }\n}\n\n// viewport l\n@include viewport--l {\n .carousel--quote {\n padding-bottom: $spacing--xxl;\n padding-top: $spacing--xxl;\n\n .banner__wrapper {\n min-height: unset;\n }\n\n .slick-list {\n overflow: initial;\n }\n\n .media-block {\n align-items: flex-start;\n margin-left: 0;\n width: grid-columns(4, 12);\n justify-content: space-between;\n\n img {\n position: relative;\n }\n }\n\n .quotes {\n bottom: inherit;\n margin: 0 auto;\n max-width: 268px;\n position: inherit;\n width: auto;\n\n &--s {\n margin: 0;\n margin-top: $baseline * -7;\n position: relative;\n width: grid-columns(2, 4);\n }\n }\n\n .content-block {\n margin-left: auto;\n width: grid-columns(8, 12);\n\n &__description {\n margin-top: 0;\n }\n\n &__author {\n margin-top: $spacing--m;\n }\n\n .button {\n margin-top: $spacing--l;\n }\n }\n }\n}\n","// @grid-columns($columns, $columns-total, $grid-gutter)\n\n// grid for viewport S & M:\n// 6 columns / 28 units\n//\n// | | | | | | | | | | | |\n// | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 |\n// | | | | | | | | | | | |\n//\n//\n// grid for vieport L:\n// 12 columns / 58 units\n//\n// | | | | | | | | | | | | | | | | | | | | | | | |\n// | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 |\n// | | | | | | | | | | | | | | | | | | | | | | | |\n\n@function grid-columns($columns, $columns-total, $grid-gutter: null) {\n $column-gutter-diff: ($grid-column-units - $grid-gutter-units);\n\n $column-units: ($columns * $grid-column-units) + (($columns - $column-gutter-diff) * $grid-gutter-units);\n $columns-total: ($columns-total * $grid-column-units) + (($columns-total - $column-gutter-diff) * $grid-gutter-units);\n\n // if grid gutter is provided use it in calculation\n @if ($grid-gutter) {\n @return calc(((#{$column-units} + (#{$grid-gutter} * #{$grid-gutter-units})) /#{$columns-total}) * 100%);\n }\n // if grid-gutter is not provided return default calculation\n @else {\n @return calc((#{$column-units}/#{$columns-total}) * 100%);\n }\n}\n"]}