// ------------------------------------------------------------------------------
// <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 ribbonElementJoyStyle() {
    return css `
:host {
  --ribbon-background-color: var(--joy-scheme-background);
  --ribbon-border-color: var(--joy-scheme-highlight);
  --ribbon-border-radius: var(--joy-layout-radius);
  --ribbon-border-style: solid;
  --ribbon-border-width: var(--joy-layout-thickness);
  --ribbon-font: var(--joy-font-family);
  --ribbon-font-family: var(--joy-font-family);
  --ribbon-font-letter-spacing: var(--joy-typography-caption-letter-spacing);
  --ribbon-font-line-height: unset;
  --ribbon-font-size: 16px;
  --ribbon-font-text-decoration: unset;
  --ribbon-font-text-transform: unset;
  --ribbon-font-weight: normal;
  --ribbon-foreground-color: var(--joy-scheme-foreground);
  --ribbon-gap: 0px;
  --ribbon-padding-bottom: 4px;
  --ribbon-padding-left: 8px;
  --ribbon-padding-right: 8px;
  --ribbon-padding-top: 4px;
  --ribbon-shadow: unset;
  --ribbon-transition-duration: var(--joy-duration-short);
  --ribbon-transition-mode: ease;
  --ribbon-transition-property: background-color foreground-color border-color;
  --ribbon-translate: unset;
}

@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 {
  z-index: 1;
  flex-direction: row;
  align-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 8px;
  right: -8px;
}

:host [part="root"] {
  display: inherit;
  flex-direction: inherit;
  align-content: inherit;
  align-items: inherit;
  padding-top: var(--ribbon-padding-top);
  padding-left: var(--ribbon-padding-left);
  padding-bottom: var(--ribbon-padding-bottom);
  padding-right: var(--ribbon-padding-right);
  white-space: nowrap;
  font: var(--ribbon-font);
  letter-spacing: var(--ribbon-font-letter-spacing);
  border-radius: calc(var(--ribbon-border-radius) / 2) calc(var(--ribbon-border-radius) / 2) 0 calc(var(--ribbon-border-radius) / 2);
  border-right: none;
  justify-content: center;
}

:host [part="root"]:after {
  content: "";
  width: 0;
  height: 0;
  display: block;
  position: absolute;
  bottom: -8px;
  right: 0;
}

:host [part="root"].left {
  border-left: none;
  left: 0;
  right: auto;
}

:host [part="root"].bottom {
  top: auto;
  bottom: .5em;
}

:host [part="root"].is-outlined {
  background-color: #0000;
}

:host [part="root"] [part="text"] {
  color: inherit;
  font-size: inherit;
  margin: 4px;
}

:host([size="tiny"]) {
  --ribbon-font-size: 10px;
}

:host([size="small"]) {
  --ribbon-font-size: 12px;
}

:host([size="medium"]) {
  --ribbon-font-size: 14px;
}

:host([size="large"]) {
  --ribbon-font-size: 16px;
}

:host([size="giant"]) {
  --ribbon-font-size: 18px;
}

:host [part="root"] {
  background-color: var(--joy-scheme-background);
  color: var(--joy-scheme-foreground);
}

:host:after {
  border-top: 8px solid var(--joy-color-secondary-500);
  border-right: 8px solid var(--joy-scheme-transparent);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"]))) [part="root"] {
  background-color: var(--joy-color-primary-100);
  color: var(--joy-color-primary-500);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"]))) [part="root"]:after {
  border-top-color: var(--joy-color-primary-200);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"]))) [part="root"] {
  background-color: var(--joy-color-secondary-100);
  color: var(--joy-color-secondary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"]))) [part="root"]:after {
  border-top-color: var(--joy-color-secondary-200);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"]))) [part="root"] {
  background-color: var(--joy-color-tertiary-100);
  color: var(--joy-color-tertiary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"]))) [part="root"]:after {
  border-top-color: var(--joy-color-tertiary-200);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"]))) [part="root"] {
  background-color: var(--joy-color-danger-100);
  color: var(--joy-color-danger-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"]))) [part="root"]:after {
  border-top-color: var(--joy-color-danger-200);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"]))) [part="root"] {
  background-color: var(--joy-color-warning-100);
  color: var(--joy-color-warning-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"]))) [part="root"]:after {
  border-top-color: var(--joy-color-warning-200);
}

:host([variant="success"]:not([disabled]:not([disabled="false"]))) [part="root"] {
  background-color: var(--joy-color-success-100);
  color: var(--joy-color-success-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"]))) [part="root"]:after {
  border-top-color: var(--joy-color-success-200);
}

:host([variant="info"]:not([disabled]:not([disabled="false"]))) [part="root"] {
  background-color: var(--joy-color-info-100);
  color: var(--joy-color-info-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"]))) [part="root"]:after {
  border-top-color: var(--joy-color-info-200);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"]))) [part="root"] {
  background-color: var(--joy-color-highlight-100);
  color: var(--joy-color-highlight-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"]))) [part="root"]:after {
  border-top-color: var(--joy-color-highlight-200);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"]))) [part="root"] {
  background-color: var(--joy-color-neutral-100);
  color: var(--joy-color-neutral-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"]))) [part="root"]:after {
  border-top-color: var(--joy-color-neutral-200);
}

    `;
}
//# sourceMappingURL=RibbonElement.Joy.js.map