{"version":3,"sources":["../src/src/dropdown/dropdown.scss","../src/src/support/variables/misc.scss","../src/src/support/variables/layout.scss","../src/src/support/variables/typography.scss"],"names":[],"mappings":"AAAA,UACE,iBAAkB,CACnB,gBAGC,oBAAqB,CACrB,OAAQ,CACR,QAAS,CACT,qBAAsB,CACtB,UAAW,CACX,kBCNkB,CDQlB,sBAAmC,CACnC,8BAA+B,CAC/B,+BAAgC,CAChC,6BAA8B,CAC/B,eAMC,iBAAkB,CAClB,QAAS,CACT,MAAO,CACP,WAAY,CACZ,WAAY,CACZ,eEQsB,CFPtB,kBEOsB,CFLtB,cAAe,CACf,eAAgB,CAChB,4CAA6C,CAC7C,2BAA4B,CAC5B,4CAA+D,CAC/D,iBC1BoB,CD2BpB,oCAAqC,CAfvC,6CAmBI,iBAAkB,CAClB,oBAAqB,CACrB,UAAW,CArBf,uBA2BI,4BAA2C,CAC3C,+CAAgD,CA5BpD,sBAkCI,4BAAqC,CACrC,+CAAgD,CAnCpD,kBAwCI,eAAgB,CACjB,2BAID,UAAW,CADb,0CAII,gBEhCkB,CFiClB,gBAAiB,CACjB,qBAAsB,CACvB,eAKD,aAAc,CACd,wBEzCoB,CF0CpB,eAAgB,CAChB,6BAA8B,CAC9B,sBAAuB,CACvB,kBAAmB,CANrB,0CAUI,iCAAkC,CAClC,oBAAqB,CACrB,6CAA8C,CAC9C,YAAa,CAbjB,4DAgBM,aAAc,CACd,SAAU,CAjBhB,wFAqBM,wBAAyB,CArB/B,wDAyBM,wBAAyB,CACzB,yBAA0B,CA1BhC,wBA+BI,UAAW,CACX,eAAgB,CACjB,kBAID,UAAW,CACX,eAAgB,CAChB,eAAgB,CAChB,QAAS,CACV,kBAGC,aAAc,CACd,QAAS,CACT,YAAmB,CACnB,gDAAmE,CACpE,iBAGC,gBE1FoB,CF2FpB,cG9GY,CH+GZ,2BAA4B,CAC7B,oDAGC,YAAa,CACd,iBAQC,KAAM,CACN,UAAW,CACX,SAAU,CACV,UAAW,CACX,YAAa,CACb,gBEpHU,CF8GZ,yBASI,QAAS,CACT,WElHkB,CFmHlB,SAAU,CACV,wBAAyB,CACzB,6CAA8C,CAblD,wBAiBI,QAAS,CACT,WAAY,CACZ,SAAU,CACV,wBAAyB,CACzB,6CAA8C,CAC/C,iBAID,KAAM,CACN,SAAU,CACV,UAAW,CACX,YAAa,CACb,eE5IU,CFuIZ,yBAQI,QAAS,CACT,UE1IkB,CF2IlB,wBAAyB,CACzB,8CAA+C,CAXnD,wBAeI,QAAS,CACT,UAAW,CACX,wBAAyB,CACzB,8CAA+C,CAChD,kBAID,QAAS,CACT,WAAY,CACZ,MAAO,CAEP,iBAAkB,CALpB,mDASI,QAAS,CACT,UAAW,CAVf,0BAcI,WE3KQ,CF4KR,QAAS,CAET,gDAA+D,CAE/D,kCAAiD,CACjD,eAAgB,CAEhB,iCAAgD,CAtBpD,yBA0BI,WAAY,CACZ,SAAU,CAEV,gDAAyD,CAEzD,kCAA2C,CAC3C,eAAgB,CAEhB,iCAA0C,CAC3C,iBAID,SAAU,CACV,SAAU,CACV,yBAA0B,CAH5B,yBAMI,SEnMkB,CFoMlB,SAAU,CACV,yBAA0B,CAR9B,wBAYI,SAAU,CACV,SAAU,CACV,yBAA0B,CAC3B,kBAID,OAAQ,CACR,SAAU,CAFZ,0BAKI,SEpNkB,CFqNlB,SAAU,CACV,SAAU,CAPd,yBAWI,SAAU,CACV,UAAW,CACX,SAAU,CACX,0BAKC,SElOkB,CFmOlB,QAAS,CAHb,yBAOI,SAAU,CACV,SAAU","file":"dropdown.css","sourcesContent":[".dropdown {\n position: relative;\n}\n\n.dropdown-caret {\n display: inline-block;\n width: 0;\n height: 0;\n vertical-align: middle;\n content: \"\";\n border-style: $border-style;\n // stylelint-disable-next-line primer/borders\n border-width: $spacer-1 $spacer-1 0;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n}\n\n// Requires a positioning class (e.g., `.dropdown-menu-w`) to determine which\n// way the menu should render from the element triggering it.\n\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 100;\n width: 160px;\n padding-top: $spacer-1;\n padding-bottom: $spacer-1;\n // stylelint-disable-next-line primer/spacing\n margin-top: 2px;\n list-style: none;\n background-color: var(--color-canvas-overlay);\n background-clip: padding-box;\n border: $border-width $border-style var(--color-border-default);\n border-radius: $border-radius;\n box-shadow: var(--color-shadow-large);\n\n &::before,\n &::after {\n position: absolute;\n display: inline-block;\n content: \"\";\n }\n\n // caret border\n &::before {\n // stylelint-disable-next-line primer/borders\n border: $spacer-2 $border-style transparent;\n border-bottom-color: var(--color-border-default);\n }\n\n // caret background (should match dropdown background)\n &::after {\n // stylelint-disable-next-line primer/borders\n border: 7px $border-style transparent;\n border-bottom-color: var(--color-canvas-overlay);\n }\n\n // stylelint-disable-next-line selector-max-type\n > ul {\n list-style: none;\n }\n}\n\n.dropdown-menu-no-overflow {\n width: auto;\n\n .dropdown-item {\n padding: $spacer-1 $spacer-3;\n overflow: visible;\n text-overflow: inherit;\n }\n}\n\n// Dropdown items (can be links or buttons)\n.dropdown-item {\n display: block;\n padding: $spacer-1 $spacer-2 $spacer-1 $spacer-3;\n overflow: hidden;\n color: var(--color-fg-default);\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &:focus,\n &:hover {\n color: var(--color-fg-on-emphasis);\n text-decoration: none;\n background-color: var(--color-accent-emphasis);\n outline: none;\n\n > .octicon {\n color: inherit;\n opacity: 1;\n }\n\n [class*=\"color-text-\"] {\n color: inherit !important;\n }\n\n > .Label {\n color: inherit !important;\n border-color: currentColor;\n }\n }\n\n &.btn-link {\n width: 100%;\n text-align: left;\n }\n}\n\n.dropdown-signout {\n width: 100%;\n text-align: left;\n background: none;\n border: 0;\n}\n\n.dropdown-divider {\n display: block;\n height: 0;\n margin: $spacer-2 0;\n border-top: $border-width $border-style var(--color-border-default);\n}\n\n.dropdown-header {\n padding: $spacer-1 $spacer-3;\n font-size: $h6-size;\n color: var(--color-fg-muted);\n}\n\n.dropdown-item[aria-checked=\"false\"] .octicon-check {\n display: none;\n}\n\n// Directional classes\n//\n// Move the menu and the caret attached to it. Requires at least one of these on\n// the `.dropdown-menu` element.\n\n.dropdown-menu-w {\n top: 0;\n right: 100%;\n left: auto;\n width: auto;\n margin-top: 0;\n margin-right: $spacer-2;\n\n &::before {\n top: 10px;\n right: -$spacer-3;\n left: auto;\n border-color: transparent;\n border-left-color: var(--color-border-default);\n }\n\n &::after {\n top: 11px;\n right: -14px;\n left: auto;\n border-color: transparent;\n border-left-color: var(--color-canvas-overlay);\n }\n}\n\n.dropdown-menu-e {\n top: 0;\n left: 100%;\n width: auto;\n margin-top: 0;\n margin-left: $spacer-2;\n\n &::before {\n top: 10px;\n left: -$spacer-3;\n border-color: transparent;\n border-right-color: var(--color-border-default);\n }\n\n &::after {\n top: 11px;\n left: -14px;\n border-color: transparent;\n border-right-color: var(--color-canvas-overlay);\n }\n}\n\n.dropdown-menu-ne {\n top: auto;\n bottom: 100%;\n left: 0;\n // stylelint-disable-next-line primer/spacing\n margin-bottom: 3px;\n\n &::before,\n &::after {\n top: auto;\n right: auto;\n }\n\n &::before {\n bottom: -$spacer-2;\n left: 9px;\n // stylelint-disable-next-line primer/borders\n border-top: $spacer-2 $border-style var(--color-border-default);\n // stylelint-disable-next-line primer/borders\n border-right: $spacer-2 $border-style transparent;\n border-bottom: 0;\n // stylelint-disable-next-line primer/borders\n border-left: $spacer-2 $border-style transparent;\n }\n\n &::after {\n bottom: -7px;\n left: 10px;\n // stylelint-disable-next-line primer/borders\n border-top: 7px $border-style var(--color-canvas-overlay);\n // stylelint-disable-next-line primer/borders\n border-right: 7px $border-style transparent;\n border-bottom: 0;\n // stylelint-disable-next-line primer/borders\n border-left: 7px $border-style transparent;\n }\n}\n\n.dropdown-menu-s {\n right: 50%;\n left: auto;\n transform: translateX(50%);\n\n &::before {\n top: -$spacer-3;\n right: 50%;\n transform: translateX(50%);\n }\n\n &::after {\n top: -14px;\n right: 50%;\n transform: translateX(50%);\n }\n}\n\n.dropdown-menu-sw {\n right: 0;\n left: auto;\n\n &::before {\n top: -$spacer-3;\n right: 9px;\n left: auto;\n }\n\n &::after {\n top: -14px;\n right: 10px;\n left: auto;\n }\n}\n\n.dropdown-menu-se {\n &::before {\n top: -$spacer-3;\n left: 9px;\n }\n\n &::after {\n top: -14px;\n left: 10px;\n }\n}\n","// Miscellaneous variables\n\n// Border\n$border-width: 1px !default;\n$border-style: solid !default;\n$border: $border-width $border-style var(--color-border-primary) !default;\n\n// Border Radius\n$border-radius-1: 4px !default;\n$border-radius-2: 6px !default;\n$border-radius-3: 8px !default;\n$border-radius: $border-radius-2 !default;\n\n// Tooltips\n$tooltip-max-width: 250px !default;\n$tooltip-delay: 0.4s !default;\n$tooltip-duration: 0.1s !default;\n","// Layout variables\n\n// these are values for the display CSS property\n$display-values: (\n block,\n flex,\n inline,\n inline-block,\n inline-flex,\n none,\n table,\n table-cell\n) !default;\n\n// maps edges to respective corners for border-radius\n$edges: (\n top: (top-left, top-right),\n right: (top-right, bottom-right),\n bottom: (bottom-right, bottom-left),\n left: (bottom-left, top-left)\n) !default;\n\n// These are our margin and padding utility spacers. The default step size we\n// use is 8px. This gives us a key of:\n// 0 => 0px\n// 1 => 4px\n// 2 => 8px\n// 3 => 16px\n// 4 => 24px\n// 5 => 32px\n// 6 => 40px\n$spacer: 8px !default;\n\n// Our spacing scale\n$spacer-0: 0 !default; // 0\n$spacer-1: $spacer * 0.5 !default; // 4px\n$spacer-2: $spacer !default; // 8px\n$spacer-3: $spacer * 2 !default; // 16px\n$spacer-4: $spacer * 3 !default; // 24px\n$spacer-5: $spacer * 4 !default; // 32px\n$spacer-6: $spacer * 5 !default; // 40px\n\n// The list of spacer values\n$spacers: (\n $spacer-0,\n $spacer-1,\n $spacer-2,\n $spacer-3,\n $spacer-4,\n $spacer-5,\n $spacer-6,\n) !default;\n\n// And the map of spacers, for easier looping:\n// @each $scale, $length in $spacer-map { ... }\n$spacer-map: (\n 0: $spacer-0,\n 1: $spacer-1,\n 2: $spacer-2,\n 3: $spacer-3,\n 4: $spacer-4,\n 5: $spacer-5,\n 6: $spacer-6,\n) !default;\n\n// Increases the core spacing scale first by 8px for $spacer-7, then by 16px\n// increments from $spacer-8 to $spacer-12, i.e. after 40px, we have 48, 64,\n// 80, 96, etc.\n$spacer-7: $spacer * 6 !default; // 48px\n$spacer-8: $spacer * 8 !default; // 64px\n$spacer-9: $spacer * 10 !default; // 80px\n$spacer-10: $spacer * 12 !default; // 96px\n$spacer-11: $spacer * 14 !default; // 112px\n$spacer-12: $spacer * 16 !default; // 128px\n\n$spacers-large: (\n 7: $spacer-7,\n 8: $spacer-8,\n 9: $spacer-9,\n 10: $spacer-10,\n 11: $spacer-11,\n 12: $spacer-12,\n) !default;\n\n$spacer-map-extended: map-merge(\n (\n 0: 0,\n 1: $spacer-1,\n 2: $spacer-2,\n 3: $spacer-3,\n 4: $spacer-4,\n 5: $spacer-5,\n 6: $spacer-6,\n ),\n $spacers-large,\n) !default;\n\n// Em spacer variables\n$em-spacer-1: 0.0625em !default; // 1/16\n$em-spacer-2: 0.125em !default; // 1/8\n$em-spacer-3: 0.25em !default; // 1/4\n$em-spacer-4: 0.375em !default; // 3/8\n$em-spacer-5: 0.5em !default; // 1/2\n$em-spacer-6: 0.75em !default; // 3/4\n\n// Size scale\n// Used for buttons, inputs, labels, avatars etc.\n$size: 16px !default;\n\n$size-0: 0 !default;\n$size-1: $size !default; // 16px\n$size-2: $size-1 + 4px !default; // 20px\n$size-3: $size-2 + 4px !default; // 24px\n$size-4: $size-3 + 4px !default; // 28px\n$size-5: $size-4 + 4px !default; // 32px\n$size-6: $size-5 + 8px !default; // 40px\n$size-7: $size-6 + 8px !default; // 48px\n$size-8: $size-7 + 16px !default; // 64px\n\n// Fixed-width container variables\n$container-width: 980px !default;\n$grid-gutter: 10px !default;\n\n// Breakpoint widths\n$width-xs: 0 !default;\n// Small screen / phone\n$width-sm: 544px !default;\n// Medium screen / tablet\n$width-md: 768px !default;\n// Large screen / desktop (980 + (16 * 2)) <= container + gutters\n$width-lg: 1012px !default;\n// Extra large screen / wide desktop\n$width-xl: 1280px !default;\n\n// Responsive container widths\n$container-sm: $width-sm !default;\n$container-md: $width-md !default;\n$container-lg: $width-lg !default;\n$container-xl: $width-xl !default;\n\n// Breakpoints in the form (name: length)\n$breakpoints: (\n sm: $width-sm,\n md: $width-md,\n lg: $width-lg,\n xl: $width-xl\n) !default;\n\n// This map in the form (breakpoint: variant) is used to iterate over\n// breakpoints and create both responsive and non-responsive classes in one\n// loop:\n//\n// ```scss\n// @each $breakpoint, $variant of $responsive-variants {\n// @include breakpoint($breakpoint) {\n// .foo#{$variant}-bar { foo: bar !important; }\n// }\n// }\n// ```\n$responsive-variants: (\n \"\": \"\",\n sm: \"-sm\",\n md: \"-md\",\n lg: \"-lg\",\n xl: \"-xl\",\n) !default;\n\n// responive utility position values\n$responsive-positions: (\n static,\n relative,\n absolute,\n fixed,\n sticky\n) !default;\n\n$sidebar-width: (\n sm: 220px,\n md: 256px,\n lg: 296px,\n xl: 320px\n) !default;\n\n$sidebar-narrow-width: (\n md: 240px,\n lg: 256px,\n xl: 296px\n) !default;\n\n$sidebar-wide-width: (\n md: 296px,\n lg: 320px,\n xl: 344px\n) !default;\n\n$gutter: (\n md: $spacer-3,\n lg: $spacer-4,\n xl: $spacer-5\n) !default;\n\n$gutter-condensed: (\n md: $spacer-3,\n lg: $spacer-3,\n xl: $spacer-4\n) !default;\n\n$gutter-spacious: (\n md: $spacer-4,\n lg: $spacer-5,\n xl: $spacer-6\n) !default;\n","// Typography variables\n\n// Heading sizes - mobile\n// h4-h6 remain the same size on both mobile & desktop\n$h00-size-mobile: 40px !default;\n$h0-size-mobile: 32px !default;\n$h1-size-mobile: 26px !default;\n$h2-size-mobile: 22px !default;\n$h3-size-mobile: 18px !default;\n\n// Heading sizes - desktop\n$h00-size: 48px !default;\n$h0-size: 40px !default;\n$h1-size: 32px !default;\n$h2-size: 24px !default;\n$h3-size: 20px !default;\n$h4-size: 16px !default;\n$h5-size: 14px !default;\n$h6-size: 12px !default;\n\n$font-size-small: 12px !default;\n\n// Font weights\n$font-weight-bold: 600 !default;\n$font-weight-semibold: 500 !default;\n$font-weight-normal: 400 !default;\n$font-weight-light: 300 !default;\n\n// Line heights\n$lh-condensed-ultra: 1 !default;\n$lh-condensed: 1.25 !default;\n$lh-default: 1.5 !default;\n\n// Font stacks\n$body-font: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\" !default;\n\n// Monospace font stack\n// Note: SFMono-Regular needs to come before SF Mono to fix an older version of the font in Chrome\n$mono-font: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace !default;\n\n// The base body size\n$body-font-size: 14px !default;\n$body-line-height: $lh-default !default;\n"]}