// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function colorEditorPaletteElementMemphisStyle() {
    return css `
:host {
  --color-editor-palette-background-color: transparent;
  --color-editor-palette-border-color: var(--memphis-scheme-contrast);
  --color-editor-palette-border-radius: 0;
  --color-editor-palette-border-style: solid;
  --color-editor-palette-border-width: var(--memphis-layout-thickness);
  --color-editor-palette-checkerboard-size: var(--memphis-layout-space);
  --color-editor-palette-color-item-border-color: var(--memphis-scheme-contrast);
  --color-editor-palette-color-item-border-radius: 0;
  --color-editor-palette-color-item-border-width: var(--memphis-layout-thickness);
  --color-editor-palette-color-item-size: 24px;
  --color-editor-palette-font-family: var(--memphis-font-family);
  --color-editor-palette-font-letter-spacing: unset;
  --color-editor-palette-font-line-height: unset;
  --color-editor-palette-font-size: var(--memphis-typography-overline-font-size);
  --color-editor-palette-font-text-decoration: unset;
  --color-editor-palette-font-text-transform: unset;
  --color-editor-palette-font-weight: var(--memphis-typography-overline-font-weight);
  --color-editor-palette-foreground-color: var(--memphis-scheme-foreground);
  --color-editor-palette-gap: calc(var(--memphis-layout-space) * .75);
  --color-editor-palette-height: auto;
  --color-editor-palette-padding-bottom: var(--memphis-layout-space);
  --color-editor-palette-padding-left: calc(var(--memphis-layout-space) * 1.5);
  --color-editor-palette-padding-right: calc(var(--memphis-layout-space) * 1.5);
  --color-editor-palette-padding-top: var(--memphis-layout-space);
  --color-editor-palette-preview-color-item-size: 16px;
  --color-editor-palette-shadow: unset unset unset unset unset;
  --color-editor-palette-shadow-blur: unset;
  --color-editor-palette-shadow-color: unset;
  --color-editor-palette-shadow-offset-x: unset;
  --color-editor-palette-shadow-offset-y: unset;
  --color-editor-palette-shadow-spread: unset;
  --color-editor-palette-transition-duration: var(--memphis-duration-short);
  --color-editor-palette-transition-mode: ease;
  --color-editor-palette-transition-property: transform, border-color;
  --color-editor-palette-translate: none;
  --color-editor-palette-width: 100%;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host {
  width: var(--color-editor-palette-width);
  padding: var(--color-editor-palette-padding-top) var(--color-editor-palette-padding-right) var(--color-editor-palette-padding-bottom) var(--color-editor-palette-padding-left);
  font-family: var(--color-editor-palette-font-family);
  font-size: var(--color-editor-palette-font-size);
  font-weight: var(--color-editor-palette-font-weight);
  color: var(--color-editor-palette-foreground-color);
  background-color: var(--color-editor-palette-background-color);
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host [part="header"] {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  display: flex;
}

:host [part="title"] {
  font-size: inherit;
  font-weight: inherit;
}

:host [part="switcher"] {
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  display: flex;
}

:host [part="switcher"] svg {
  width: 14px;
  height: 14px;
  fill: var(--color-editor-palette-foreground-color);
}

:host [part="colors"] {
  gap: var(--color-editor-palette-gap);
  flex-wrap: wrap;
  display: flex;
}

:host [part="color-item"] {
  width: var(--color-editor-palette-color-item-size);
  height: var(--color-editor-palette-color-item-size);
  border-radius: var(--color-editor-palette-color-item-border-radius);
  border: var(--color-editor-palette-color-item-border-width) solid var(--color-editor-palette-color-item-border-color);
  cursor: pointer;
  transition-duration: var(--color-editor-palette-transition-duration);
  transition-timing-function: var(--color-editor-palette-transition-mode);
  transition-property: var(--color-editor-palette-transition-property);
  position: relative;
  overflow: hidden;
}

:host [part="color-item"]:before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect fill='%23ccc' width='4' height='4'/%3E%3Crect fill='%23ccc' x='4' y='4' width='4' height='4'/%3E%3C/svg%3E");
  background-size: var(--color-editor-palette-checkerboard-size) var(--color-editor-palette-checkerboard-size);
  z-index: -1;
  border-radius: inherit;
  background-repeat: repeat;
  position: absolute;
  inset: 0;
}

:host [part="color-item"]:hover {
  transform: scale(1.15);
}

:host [part="color-item"]:focus {
  z-index: 1;
  outline: none;
  transform: scale(1.3);
}

:host [part="add-button"] {
  width: var(--color-editor-palette-color-item-size);
  height: var(--color-editor-palette-color-item-size);
  border: 1px dashed var(--color-editor-palette-border-color);
  border-radius: var(--color-editor-palette-color-item-border-radius);
  cursor: pointer;
  transition-duration: var(--color-editor-palette-transition-duration);
  transition-timing-function: var(--color-editor-palette-transition-mode);
  background: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition-property: border-color, background-color;
  display: flex;
}

:host [part="add-button"]:hover {
  background-color: #0000000d;
  border-style: solid;
}

:host [part="add-button"] svg {
  width: 12px;
  height: 12px;
  fill: var(--color-editor-palette-foreground-color);
}

:host [part="panel"] {
  background-color: inherit;
  z-index: 10;
  visibility: hidden;
  border-radius: inherit;
  flex-direction: column;
  transition: transform .2s, visibility .2s;
  display: flex;
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

:host [part="panel"][style] {
  bottom: 0;
  left: 0;
  right: 0;
}

:host [part="panel"][data-visible="true"] {
  visibility: visible;
  transform: translateY(0);
}

:host [part="panel-header"] {
  border-bottom: 1px solid var(--color-editor-palette-border-color);
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  display: flex;
}

:host [part="panel-title"] {
  font-size: 14px;
  font-weight: 500;
}

:host [part="panel-close"] {
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
}

:host [part="panel-close"] svg {
  width: 16px;
  height: 16px;
  fill: var(--color-editor-palette-foreground-color);
}

:host [part="panel-list"] {
  flex: 1;
  overflow-y: auto;
}

:host [part="panel-item"] {
  cursor: pointer;
  border-bottom: 1px solid var(--color-editor-palette-border-color);
  transition-duration: var(--color-editor-palette-transition-duration);
  transition-timing-function: var(--color-editor-palette-transition-mode);
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  transition-property: background-color;
  display: flex;
}

:host [part="panel-item"]:hover {
  background-color: #0000000d;
}

:host [part="panel-item-name"] {
  width: 80px;
  font-size: 12px;
}

:host [part="panel-item-colors"] {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  display: flex;
}

:host [part="panel-item-color"] {
  width: var(--color-editor-palette-preview-color-item-size);
  height: var(--color-editor-palette-preview-color-item-size);
  border-radius: var(--color-editor-palette-color-item-border-radius);
  border: 1px solid var(--color-editor-palette-border-color);
  position: relative;
  overflow: hidden;
}

:host [part="panel-item-color"]:before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect fill='%23ccc' width='4' height='4'/%3E%3Crect fill='%23ccc' x='4' y='4' width='4' height='4'/%3E%3C/svg%3E");
  background-size: calc(var(--color-editor-palette-checkerboard-size) * .75) calc(var(--color-editor-palette-checkerboard-size) * .75);
  z-index: -1;
  background-repeat: repeat;
  position: absolute;
  inset: 0;
}

:host [part="panel-item-more"] {
  color: var(--color-editor-palette-foreground-color);
  opacity: .6;
  margin-left: 2px;
  font-size: 10px;
}

    `;
}
//# sourceMappingURL=ColorEditorPaletteElement.Memphis.js.map