@charset "UTF-8";
/*
* This file is imported into every component!
*
* Nothing in this file may output any CSS
* without being explicitly called by outside code.
*/
/**
* Note! This file is exported to `dist/scss/` in the published
* node module, for consumer projects to import.
* That means this file cannot import from any file that isn't
* also exported, keeping the same relative path.
*
* Or, just don't import anything, that works too.
*/
/**
* This can be used on a trigger element that opens a dropdown menu or a popover.
*/
/**
 * This mixin will mask out the content that is close to
 * the edges of a scrollable area.
 * - If the scrollable content has `overflow-y`, use `vertically`
 * as an argument for `$direction`.
 - If the scrollable content has `overflow-x`, use `horizontally`
 * as an argument for `$direction`.
 *
 * For the visual effect to work smoothly, we need to make sure that
 * the size of the fade-out edge effect is the same as the
 * internal paddings of the scrollable area. Otherwise, content of a
 * scrollable area that does not have a padding will fade out before
 * any scrolling has been done.
 * This is why this mixin already adds paddings, which automatically
 * default to the size of the fade-out effect.
 * This size defaults to `1rem`, but to override the size use
 * `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
 * when `vertically` argument is set, and use
 * `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
 * when `horizontally` argument is set.
 * Of course you can also programmatically increase and decrease the
 * size of these variables for each edge, based on the amount of
 * scrolling that has been done by the user. In this case, make sure
 * to add a custom padding where the mixin is used, to override
 * the paddings that are automatically added by the mixin in the
 * compiled CSS code.
 */
/**
* This mixin will add an animated underline to the bottom of an `a` elements.
* Note that you may need to add `all: unset;` –depending on your use case–
* before using this mixin.
*/
/**
* This mixin creates a cross-browser font stack.
* - `sans-serif` can be used for the UI of the components.
* - `monospace` can be used for code.
*
* ⚠️ If we change the font stacks, we need to update
* 1. the consumer documentation in `README.md`, and
* 2. the CSS variables of `--kompendium-example-font-family`
* in the `<style>` tag of `index.html`.
*/
/**
* This mixin is a hack, using old CSS syntax
* to enable you to truncate a piece of text,
* after a certain number of lines.
*/
/**
* This mixin will add a chessboard background pattern,
* typically used to visualize transparency.
*/
/**
* Make a container resizable by the user.
* This is used in the documentations and examples
* of some components, to demonstrate how the component
* behaves in a resizable container.
*/
/**
 * Drag to reorder mixins
 */
/**
 * The breakpoints below are used to create responsive designs
 * in Lime's products. Therefore, they are here to get distributed
 * to all components in other private repos, which rely on this `mixins`
 * file, to create consistent styles.
 *
 * :::important
 * In very rare cases you should used media queries!
 * Nowadays, there are many better ways of achieving responsive design
 * without media queries. For example, using CSS Grid, Flexbox, and their features.
 * :::
 */
/**
  * Media query mixins for responsive design based on screen width.
  * Note that these mixins do not detect the device type!
  */
.picker-trigger[style="--background:lime-magenta;"]:after,
.chosen-color-preview[style="--background:lime-magenta;"]:after {
  background-color: var(--lime-magenta);
}
.picker-trigger[style="--background:lime-blue;"]:after,
.chosen-color-preview[style="--background:lime-blue;"]:after {
  background-color: var(--lime-blue);
}
.picker-trigger[style="--background:lime-orange;"]:after,
.chosen-color-preview[style="--background:lime-orange;"]:after {
  background-color: var(--lime-orange);
}
.picker-trigger[style="--background:lime-green;"]:after,
.chosen-color-preview[style="--background:lime-green;"]:after {
  background-color: var(--lime-green);
}
.picker-trigger[style="--background:lime-red;"]:after,
.chosen-color-preview[style="--background:lime-red;"]:after {
  background-color: var(--lime-red);
}
.picker-trigger[style="--background:lime-dark-blue;"]:after,
.chosen-color-preview[style="--background:lime-dark-blue;"]:after {
  background-color: var(--lime-dark-blue);
}
.picker-trigger[style="--background:lime-turquoise;"]:after,
.chosen-color-preview[style="--background:lime-turquoise;"]:after {
  background-color: var(--lime-turquoise);
}
.picker-trigger[style="--background:lime-yellow;"]:after,
.chosen-color-preview[style="--background:lime-yellow;"]:after {
  background-color: var(--lime-yellow);
}
.picker-trigger[style="--background:lime-light-grey;"]:after,
.chosen-color-preview[style="--background:lime-light-grey;"]:after {
  background-color: var(--lime-light-grey);
}

:host(limel-color-picker-palette) {
  --limel-color-palette-gap: 0.25rem;
  --limel-color-palette-max-column-count: 25;
  --limel-color-palette-min-width: 8rem;
  box-sizing: border-box;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem;
}

*,
*:before,
:after {
  box-sizing: border-box;
}

.color-picker-palette {
  display: grid;
  gap: var(--limel-color-palette-gap);
  grid-template-columns: repeat(min(var(--color-picker-column-count), var(--limel-color-palette-max-column-count)), 1fr);
  width: 100%;
  max-width: 58rem;
  min-width: var(--limel-color-palette-min-width);
}

.chosen-color-name {
  display: flex;
  gap: 0.5rem;
}

limel-input-field {
  flex-grow: 1;
  width: min-content;
}

.chosen-color-preview {
  flex-shrink: 0;
  isolation: isolate;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(var(--contrast-700), 0.65);
  border-radius: 50%;
}
.chosen-color-preview:before, .chosen-color-preview:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.chosen-color-preview:before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%208%208'%20style='fill-rule:evenodd;'%3E%3Cpath%20fill='rgba(186,186,192,0.16)'%20d='M0%200h4v4H0zM4%204h4v4H4z'/%3E%3C/svg%3E");
  background-size: 0.5rem;
  z-index: 0;
}
.chosen-color-preview:after {
  background: var(--background);
  z-index: 1;
}

button.swatch {
  all: unset;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 3rem;
  min-width: max(2rem, 100% / min(var(--color-picker-column-count), var(--limel-color-palette-max-column-count)) - (min(var(--color-picker-column-count), var(--limel-color-palette-max-column-count)) - 1) * var(--limel-color-palette-gap));
  aspect-ratio: 1;
  border-radius: 0.1875rem;
}
button.swatch:focus {
  outline: none;
}
button.swatch:focus-visible {
  outline: none;
  box-shadow: var(--shadow-depth-8-focused);
}
button.swatch {
  background-color: var(--limel-color-picker-swatch-color);
}
button.swatch:not([disabled]) {
  transition: color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);
  cursor: pointer;
  color: var(--limel-theme-on-surface-color);
  background-color: var(--limel-color-picker-swatch-color);
}
button.swatch:not([disabled]):hover, button.swatch:not([disabled]):focus, button.swatch:not([disabled]):focus-visible {
  will-change: color, background-color, box-shadow, transform;
}
button.swatch:not([disabled]):hover, button.swatch:not([disabled]):focus-visible {
  transform: translate3d(0, 0.01rem, 0);
  color: var(--limel-theme-on-surface-color);
  background-color: var(--limel-color-picker-swatch-color);
}
button.swatch:not([disabled]):hover {
  box-shadow: var(--button-shadow-hovered);
}
button.swatch:not([disabled]):active {
  --limel-clickable-transform-timing-function: cubic-bezier(
      0.83,
      -0.15,
      0.49,
      1.16
  );
  transform: translate3d(0, 0.05rem, 0);
  box-shadow: var(--button-shadow-pressed);
}
button.swatch:not([disabled]):hover, button.swatch:not([disabled]):active {
  --limel-clickable-transition-speed: 0.2s;
  --limel-clickable-transform-speed: 0.16s;
}
button.swatch:focus-visible {
  box-shadow: var(--shadow-depth-8-focused), 0 0 0 0.125rem rgb(var(--contrast-100)) inset;
}
button.swatch[disabled] {
  cursor: not-allowed;
  box-shadow: 0 0 0 0.125rem rgb(var(--contrast-100), 0.6) inset;
}
button.swatch[disabled]:after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.125rem;
  height: 100%;
  opacity: 0.6;
  rotate: 45deg;
  border-radius: 1rem;
  background-color: rgb(var(--contrast-100));
}

button.swatch--selected {
  box-shadow: var(--button-shadow-inset);
  border-radius: 50%;
}