{"version":3,"sources":["../scss/02_atoms/_badge.scss","00_helpers/mixins/_font-style.scss","00_helpers/variables/_fonts.scss","00_helpers/mixins/_text-ellipsis.scss","00_helpers/variables/_badge.scss","00_helpers/mixins/_badge.scss","../scss/00_tools/cssVartoSass.scss"],"names":[],"mappings":"AAAA;EC4BE,eCGiB;EDFjB,iBCImB;EDHnB,iBCEmB;EC7BnB,qBADuD;EAEvD,eAF+B;EAG/B,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;EHHnB,mBAA+B;EAC/B,YILgB;EJMhB,iBILiC;EJMjC,eIPgB;EJQhB,kBAAkB;EAClB,2BAAoB;EAApB,4BAAoB;EAApB,2BAAoB;EAApB,oBAAoB;EACpB,yBAAmB;EAAnB,2BAAmB;EAAnB,sBAAmB;EAAnB,mBAAmB;EACnB,wBAAuB;EAAvB,+BAAuB;EAAvB,qBAAuB;EAAvB,uBAAuB,EAAA;EAXzB;IAcI,sBAAc;IAAd,oBAAc;IAAd,cAAc,EAAA;EAGhB;ICWA,eCPiB;IDQjB,iBCNmB;IDOnB,iBCRmB;IFHjB,kBAAkB;IAClB,YIhBgB;IJiBhB,iBIjBgB;IJkBhB,eIlBgB,EAAA;EJqBlB;IACE,eAAe,EAAA;EAGjB;IACE,YAAY;IACZ,eAAe;IACf,mBAAmB,EAAA;;AAIvB;EGjCE,qBADuD;EAEvD,eAF+B;EAG/B,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB,EAAA;;AEJjB;EACE,sCCFuC;EDGvC,yBCHuC,EAAA;;ADMzC;EACE,6CCPuC;EDQvC,mCCRuC,EAAA;EDMxC;IAKG,iCCXqC,EAAA;;ADezC;EACE,wCChBuC;EDiBvC,yBCjBuC,EAAA;;ADoBzC;EACE,uCCrBuC;EDsBvC,mCCtBuC,EAAA;;ADyBzC;EACE,iDC1BuC;ED2BvC,mCC3BuC,EAAA;;AD8BzC;EACE,qCC/BuC;EDgCvC,mCChCuC,EAAA;;ADmCzC;EACE,oCCpCuC;EDqCvC,yBCrCuC,EAAA;;ADwCzC;EACE,oCCzCuC;ED0CvC,yBC1CuC,EAAA","file":"badge.css","sourcesContent":[".badge {\n  @include font-style('body--m');\n\n  @include text-ellipsis;\n  border-radius: $badge-width / 2;\n  height: $badge-width;\n  line-height: $badge-line-height;\n  min-width: $badge-width;\n  text-align: center;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n\n  .icon {\n    flex-shrink: 0;\n  }\n\n  &--s {\n    @include font-style('body--xs');\n    border-radius: 50%;\n    height: $badge-s-width;\n    line-height: $badge-s-line-height;\n    min-width: $badge-s-width;\n  }\n\n  &--l {\n    padding: 0 15px;\n  }\n\n  &--xl {\n    height: 40px;\n    padding: 0 15px;\n    border-radius: 20px;\n  }\n}\n\n.badge__text {\n  @include text-ellipsis;\n}\n\n@include badge-color-mapping;\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","// @text-ellipsis($width, $display)\n\n@mixin text-ellipsis($width: 100%, $display: inline-block) {\n  display: $display;\n  max-width: $width;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n","$badge-width: 30px;\n$badge-line-height: $baseline * 2.8;\n\n// badge s\n$badge-s-width: 20px;\n$badge-s-line-height: $badge-s-width;\n","@mixin badge-color-mapping {\n\n  .badge {\n    &--primary {\n      background: returnColorCSSVar('brand-primary');\n      color: returnColorCSSVar('white');\n    }\n\n    &--primary-tint-7 {\n      background: returnColorCSSVar('brand-primary-tint-7');\n      color: returnColorCSSVar('brand-secondary');\n\n      .icon {\n        color: returnColorCSSVar('brand-primary');\n      }\n    }\n\n    &--secondary {\n      background: returnColorCSSVar('brand-secondary');\n      color: returnColorCSSVar('white');\n    }\n\n    &--tertiary {\n      background: returnColorCSSVar('brand-tertiary');\n      color: returnColorCSSVar('brand-secondary');\n    }\n\n    &--tertiary-shade-110 {\n      background: returnColorCSSVar('brand-tertiary-shade-110');\n      color: returnColorCSSVar('brand-secondary');\n    }\n\n    &--senary {\n      background: returnColorCSSVar('brand-senary');\n      color: returnColorCSSVar('brand-secondary');\n    }\n\n    &--positive {\n      background: returnColorCSSVar('ui-positive');\n      color: returnColorCSSVar('white');\n    }\n\n    &--negative {\n      background: returnColorCSSVar('ui-negative');\n      color: returnColorCSSVar('white');\n    }\n  }\n}\n","// Returns CSS4 color variables\n@function returnColorCSSVar($color-name) {\n  @return var(--color-#{$color-name});\n}\n"]}