diff --git a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.css b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.css index 907839767f..05da92a7e1 100644 --- a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.css +++ b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.css @@ -3,7 +3,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -48,12 +47,6 @@ a { border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -61,6 +54,11 @@ a { transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -71,36 +69,60 @@ a { font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -113,54 +135,26 @@ span { gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { diff --git a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.js b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.js index 84bdcd06e0..1a5eee4ef7 100644 --- a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.js +++ b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.js @@ -12,7 +12,7 @@ import { colorContextConsumer } from '../../lib/context/color/consumer.js'; import { consume } from '@lit/context'; import { context } from './context.js'; import { css } from "lit"; -const styles = css `:host{--_padding-block-start:var(--rh-space-lg,16px);--_padding-inline-end:var(--rh-space-xl,24px);--_padding-block-end:var(--rh-space-lg,16px);--_padding-inline-start:var(--rh-space-xl,24px);--_active-text-color:var(--rh-color-text-primary);--_font-size:var(--rh-font-size-body-text-lg,1.125rem);--_after-background-color:#0000;--_expanded-background-color:var(--rh-color-accent-brand);--_isRTL:-1}#heading{font-size:100%;padding:0;margin:0;color:var(--rh-color-text-primary);background-color:var(--rh-color-surface);font-weight:var(--rh-font-weight-heading-medium,500)}a,button{cursor:pointer}.rtl{--_isRTL:1}.large{--_padding-block-start:var(--rh-space-lg,16px);--_padding-inline-end:var(--rh-space-xl,24px);--_padding-block-end:var(--rh-space-lg,16px);--_padding-inline-start:var(--rh-space-xl,24px)}:host([expanded]){border-inline-end:var(--rh-border-width-sm,1px) solid var(--rh-color-border-subtle)}:host(.animating) #button,:host([expanded]) #button{border-inline-end-color:var(--rh-color-border-subtle);border-inline-start-color:var(--rh-color-border-subtle)}#button,#button:after,#button:before{background-color:var(--rh-color-surface)}#icon{width:16px;height:16px;will-change:rotate;transition:rotate .2s ease-in 0s}#button{width:100%;padding:var(--_padding-block-start) var(--_padding-inline-end) var(--_padding-block-end) var(--_padding-inline-start);font-family:var(--rh-font-family-body-text,RedHatText,"Red Hat Text","Noto Sans Arabic","Noto Sans Hebrew","Noto Sans JP","Noto Sans KR","Noto Sans Malayalam","Noto Sans SC","Noto Sans TC","Noto Sans Thai",Helvetica,Arial,sans-serif);font-size:var(--_font-size);color:var(--rh-color-text-primary)}#button #icon{fill:currentcolor}#button:after{inset-block-start:-1px;width:var(--rh-border-width-lg,3px);background-color:var(--_after-background-color)}span{overflow:hidden;text-align:start}[part=container]{display:flex;gap:var(--rh-space-xl,24px);container-type:inline-size}#header-container{display:flex;gap:var(--rh-space-md,8px)}#header-container.bottom{flex-direction:column}#header-text{font-weight:var(--rh-font-weight-heading-bold,700)}[part=accents]{display:flex;flex-wrap:wrap;gap:var(--rh-space-md,8px)}.expanded #button{--_after-background-color:var(--rh-color-accent-brand)}.expanded #button #icon{rotate:calc(var(--_isRTL, -1)*180deg)}#button:active,#button:focus,#button:hover{background-color:var(--rh-color-surface)}#button:active span,#button:focus span,#button:hover span{color:var(--_active-text-color)}.toggle,.toggle:after,.toggle:before{padding:0;margin:0}.toggle{position:relative;display:flex;align-items:center;justify-content:space-between;border:0}.toggle:after{content:"";position:absolute;inset-block:0;inset-inline-start:0}.expanded.on.light{--rh-color-surface:var(--rh-color-surface-lightest,#fff)}.expanded.on.dark{--rh-color-surface:var(--rh-color-surface-darkest,#151515)}@container (min-width: 576px){#header-container:not(.bottom){flex-direction:row}}`; +const styles = css `:host{--_padding-block-start:var(--rh-space-lg,16px);--_padding-inline-end:var(--rh-space-xl,24px);--_padding-block-end:var(--rh-space-lg,16px);--_padding-inline-start:var(--rh-space-xl,24px);--_font-size:var(--rh-font-size-body-text-lg,1.125rem);--_after-background-color:#0000;--_expanded-background-color:var(--rh-color-accent-brand);--_isRTL:-1}#heading{font-size:100%;padding:0;margin:0;color:var(--rh-color-text-primary);background-color:var(--rh-color-surface);font-weight:var(--rh-font-weight-heading-medium,500)}a,button{cursor:pointer}.rtl{--_isRTL:1}.large{--_padding-block-start:var(--rh-space-lg,16px);--_padding-inline-end:var(--rh-space-xl,24px);--_padding-block-end:var(--rh-space-lg,16px);--_padding-inline-start:var(--rh-space-xl,24px)}:host([expanded]){border-inline-end:var(--rh-border-width-sm,1px) solid var(--rh-color-border-subtle)}:host(.animating) #button,:host([expanded]) #button{border-inline-end-color:var(--rh-color-border-subtle);border-inline-start-color:var(--rh-color-border-subtle)}#icon{width:16px;height:16px;will-change:rotate;transition:rotate .2s ease-in 0s}span{overflow:hidden;text-align:start}#button{width:100%;padding:var(--_padding-block-start) var(--_padding-inline-end) var(--_padding-block-end) var(--_padding-inline-start);font-family:var(--rh-font-family-body-text,RedHatText,"Red Hat Text","Noto Sans Arabic","Noto Sans Hebrew","Noto Sans JP","Noto Sans KR","Noto Sans Malayalam","Noto Sans SC","Noto Sans TC","Noto Sans Thai",Helvetica,Arial,sans-serif);font-size:var(--_font-size);color:var(--rh-color-text-primary)}#button #icon{fill:currentcolor}#button.light:is(:hover,:active,:focus){background-color:var(--rh-color-surface-lighter)}#button.dark:is(:hover,:active,:focus){background-color:var(--rh-color-surface-dark-alt)}#button:is(:hover,:active,:focus) span{color:var(--rh-color-text-primary)}#button:focus{outline:2px solid var(--rh-color-interactive-primary-default)}#button,#button:after,#button:before{background-color:var(--rh-color-surface)}#button:after{inset-block-start:-1px;width:var(--rh-border-width-lg,3px);background-color:var(--_after-background-color)}#button.expanded{--_after-background-color:var(--rh-color-accent-brand)}#button.expanded #icon{rotate:calc(var(--_isRTL, -1)*180deg)}#button.expanded.on.light{--rh-color-surface:var(--rh-color-surface-lightest,#fff)}#button.expanded.on.dark{--rh-color-surface:var(--rh-color-surface-darkest,#151515)}#header-container{display:flex;gap:var(--rh-space-md,8px)}#header-container.bottom{flex-direction:column}#header-text{font-weight:var(--rh-font-weight-heading-bold,700)}[part=accents]{display:flex;flex-wrap:wrap;gap:var(--rh-space-md,8px)}.toggle{position:relative;display:flex;align-items:center;justify-content:space-between;border:0}.toggle,.toggle:after,.toggle:before{padding:0;margin:0}.toggle:after{content:"";position:absolute;inset-block:0;inset-inline-start:0}@container (min-width: 576px){#header-container:not(.bottom){flex-direction:row}}`; import { HeadingLevelController } from '@rhds/elements/lib/context/headings/controller.js'; export class AccordionHeaderChangeEvent extends Event { constructor(expanded, toggle, accordion) { @@ -60,26 +60,24 @@ let RhAccordionHeader = class RhAccordionHeader extends LitElement { } } render() { - const { expanded, on = '' } = this; + const { expanded, on = 'light' } = this; const { accents, large = false } = this.ctx ?? {}; const rtl = __classPrivateFieldGet(this, _RhAccordionHeader_dir, "f").dir === 'rtl'; return html ` -
- -
+ `; } expandedChanged() { diff --git a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.js.map b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.js.map index 18e1fd4699..8c7edc52db 100644 --- a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.js.map +++ b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-header.js.map @@ -1 +1 @@ -{"version":3,"file":"rh-accordion-header.js","sourceRoot":"","sources":["rh-accordion-header.ts"],"names":[],"mappings":";;AAGA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAmB,MAAM,qCAAqC,CAAC;AAE5F,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;;;AAGvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAE3F,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IAEnD,YACS,QAAiB,EACjB,MAAyB,EACzB,SAAsB;QAE7B,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAJ9C,aAAQ,GAAR,QAAQ,CAAS;QACjB,WAAM,GAAN,MAAM,CAAmB;QACzB,cAAS,GAAT,SAAS,CAAa;IAG/B,CAAC;CACF;AAED,MAAM,WAAW,GAAG,CAAC,CAAc,EAAoB,EAAE,CACvD,CAAC,YAAY,WAAW,IAAI,CAAC,CAAC,SAAS,KAAK,cAAc,CAAC;AAE7D;;;;;;;;;;GAUG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IAA1C;;;QAGuC,aAAQ,GAAG,KAAK,CAAC;QAS7D,iCAAO,IAAI,aAAa,CAAC,IAAI,CAAC,EAAC;QAE/B,uCAAa,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE;YACxC,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,GAAG;SACf,CAAC,EAAC;QAEH,qCAAW,IAAI,sBAAsB,CAAC,IAAI,CAAC,EAAC;IAkD9C,CAAC;IAhDU,iBAAiB;QACxB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,EAAE,KAAP,IAAI,CAAC,EAAE,GAAK,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC;QACxC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAC/C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;QAClD,IAAI,OAAO,IAAI,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5C,uBAAA,IAAI,oCAAW,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAC/D,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;aAAM,CAAC;YACN,uBAAA,IAAI,oCAAW,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,uBAAA,IAAI,kCAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC1E,CAAC;IACH,CAAC;IAED,MAAM;QACJ,MAAM,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC;QACnC,MAAM,EAAE,OAAO,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC;QAClD,MAAM,GAAG,GAAG,uBAAA,IAAI,8BAAK,CAAC,GAAG,KAAK,KAAK,CAAC;QACpC,OAAO,IAAI,CAAA;mCACoB,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;;;0BAGjE,uBAAA,IAAI,gEAAS;+CACQ,QAAQ,CAAC,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;;;;;;;;;;;;KAYlF,CAAC;IACJ,CAAC;IAUO,eAAe;QACrB,uBAAA,IAAI,oCAAW,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAqB,CAAC;IAC7E,CAAC;;;;;;iEAVQ,KAAiB;IACxB,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACzD,IAAI,SAAS,EAAE,CAAC;QACd,IAAI,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IACtF,CAAC;AACH,CAAC;AA9De,wBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAEU;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAAkB;AAIrD;IAFP,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;8CACE;AAGzB;IADP,oBAAoB,EAAE;6CACC;AAwDhB;IADP,QAAQ,CAAC,UAAU,CAAC;wDAGpB;AApEU,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAqE7B","sourcesContent":["import type { RhAccordion } from './rh-accordion.js';\nimport type { RhAccordionContext } from './context.js';\n\nimport { html, LitElement } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { customElement } from 'lit/decorators/custom-element.js';\nimport { property } from 'lit/decorators/property.js';\n\nimport { getRandomId } from '@patternfly/pfe-core/functions/random.js';\nimport { observes } from '@patternfly/pfe-core/decorators/observes.js';\n\nimport { InternalsController } from '@patternfly/pfe-core/controllers/internals-controller.js';\nimport { DirController } from '../../lib/DirController.js';\nimport { colorContextConsumer, type ColorTheme } from '../../lib/context/color/consumer.js';\n\nimport { consume } from '@lit/context';\n\nimport { context } from './context.js';\n\nimport styles from './rh-accordion-header.css';\nimport { HeadingLevelController } from '@rhds/elements/lib/context/headings/controller.js';\n\nexport class AccordionHeaderChangeEvent extends Event {\n declare target: RhAccordionHeader;\n constructor(\n public expanded: boolean,\n public toggle: RhAccordionHeader,\n public accordion: RhAccordion,\n ) {\n super('change', { bubbles: true, cancelable: true });\n }\n}\n\nconst isAccordion = (x: EventTarget): x is RhAccordion =>\n x instanceof HTMLElement && x.localName === 'rh-accordion';\n\n/**\n * Accordion Header\n * We expect the light DOM of the rh-accordion-header to be a heading level tag (h1, h2, h3, h4, h5, h6)\n * @csspart text - inline element containing the heading text or slotted heading content\n * @csspart accents - container for accents within the header\n * @slot - accordion toggle content\n * @slot accents -\n * These elements will appear inline by default with the header title, between the header and the chevron\n * (or after the chevron and header in disclosure mode). There is an option to set the accents placement to bottom\n * @fires {AccordionHeaderChangeEvent} change - when the open panels change\n */\n@customElement('rh-accordion-header')\nexport class RhAccordionHeader extends LitElement {\n static readonly styles = [styles];\n\n @property({ type: Boolean, reflect: true }) expanded = false;\n\n @consume({ context, subscribe: true })\n @property({ attribute: false })\n private ctx?: RhAccordionContext;\n\n @colorContextConsumer()\n private on?: ColorTheme;\n\n #dir = new DirController(this);\n\n #internals = InternalsController.of(this, {\n role: 'heading',\n ariaLevel: '2',\n });\n\n #heading = new HeadingLevelController(this);\n\n override connectedCallback() {\n super.connectedCallback();\n this.id ||= getRandomId(this.localName);\n const accordion = this.closest('rh-accordion');\n const heading = this.closest('h1,h2,h3,h4,h5,h6');\n if (heading && accordion?.contains(heading)) {\n this.#internals.ariaLevel = heading.localName.replace('h', '');\n heading.replaceWith(this);\n } else {\n this.#internals.ariaLevel = Math.max(2, this.#heading.level).toString();\n }\n }\n\n render() {\n const { expanded, on = '' } = this;\n const { accents, large = false } = this.ctx ?? {};\n const rtl = this.#dir.dir === 'rtl';\n return html`\n
\n \n
\n `;\n }\n\n #onClick(event: MouseEvent) {\n const accordion = event.composedPath().find(isAccordion);\n if (accordion) {\n this.dispatchEvent(new AccordionHeaderChangeEvent(!this.expanded, this, accordion));\n }\n }\n\n @observes('expanded')\n private expandedChanged() {\n this.#internals.ariaExpanded = String(!!this.expanded) as 'true' | 'false';\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'rh-accordion-header': RhAccordionHeader;\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"rh-accordion-header.js","sourceRoot":"","sources":["rh-accordion-header.ts"],"names":[],"mappings":";;AAGA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAmB,MAAM,qCAAqC,CAAC;AAE5F,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;;;AAGvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAE3F,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IAEnD,YACS,QAAiB,EACjB,MAAyB,EACzB,SAAsB;QAE7B,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAJ9C,aAAQ,GAAR,QAAQ,CAAS;QACjB,WAAM,GAAN,MAAM,CAAmB;QACzB,cAAS,GAAT,SAAS,CAAa;IAG/B,CAAC;CACF;AAED,MAAM,WAAW,GAAG,CAAC,CAAc,EAAoB,EAAE,CACvD,CAAC,YAAY,WAAW,IAAI,CAAC,CAAC,SAAS,KAAK,cAAc,CAAC;AAE7D;;;;;;;;;;GAUG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IAA1C;;;QAGuC,aAAQ,GAAG,KAAK,CAAC;QAS7D,iCAAO,IAAI,aAAa,CAAC,IAAI,CAAC,EAAC;QAE/B,uCAAa,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE;YACxC,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,GAAG;SACf,CAAC,EAAC;QAEH,qCAAW,IAAI,sBAAsB,CAAC,IAAI,CAAC,EAAC;IAgD9C,CAAC;IA9CU,iBAAiB;QACxB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,EAAE,KAAP,IAAI,CAAC,EAAE,GAAK,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC;QACxC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAC/C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;QAClD,IAAI,OAAO,IAAI,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5C,uBAAA,IAAI,oCAAW,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAC/D,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;aAAM,CAAC;YACN,uBAAA,IAAI,oCAAW,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,uBAAA,IAAI,kCAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC1E,CAAC;IACH,CAAC;IAED,MAAM;QACJ,MAAM,EAAE,QAAQ,EAAE,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC;QACxC,MAAM,EAAE,OAAO,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC;QAClD,MAAM,GAAG,GAAG,uBAAA,IAAI,8BAAK,CAAC,GAAG,KAAK,KAAK,CAAC;QACpC,OAAO,IAAI,CAAA;;uBAEQ,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;wBACrE,uBAAA,IAAI,gEAAS;6CACQ,QAAQ,CAAC,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;;;;;;;;;;;KAWhF,CAAC;IACJ,CAAC;IAUO,eAAe;QACrB,uBAAA,IAAI,oCAAW,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAqB,CAAC;IAC7E,CAAC;;;;;;iEAVQ,KAAiB;IACxB,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACzD,IAAI,SAAS,EAAE,CAAC;QACd,IAAI,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IACtF,CAAC;AACH,CAAC;AA5De,wBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAEU;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAAkB;AAIrD;IAFP,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;8CACE;AAGzB;IADP,oBAAoB,EAAE;6CACC;AAsDhB;IADP,QAAQ,CAAC,UAAU,CAAC;wDAGpB;AAlEU,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAmE7B","sourcesContent":["import type { RhAccordion } from './rh-accordion.js';\nimport type { RhAccordionContext } from './context.js';\n\nimport { html, LitElement } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { customElement } from 'lit/decorators/custom-element.js';\nimport { property } from 'lit/decorators/property.js';\n\nimport { getRandomId } from '@patternfly/pfe-core/functions/random.js';\nimport { observes } from '@patternfly/pfe-core/decorators/observes.js';\n\nimport { InternalsController } from '@patternfly/pfe-core/controllers/internals-controller.js';\nimport { DirController } from '../../lib/DirController.js';\nimport { colorContextConsumer, type ColorTheme } from '../../lib/context/color/consumer.js';\n\nimport { consume } from '@lit/context';\n\nimport { context } from './context.js';\n\nimport styles from './rh-accordion-header.css';\nimport { HeadingLevelController } from '@rhds/elements/lib/context/headings/controller.js';\n\nexport class AccordionHeaderChangeEvent extends Event {\n declare target: RhAccordionHeader;\n constructor(\n public expanded: boolean,\n public toggle: RhAccordionHeader,\n public accordion: RhAccordion,\n ) {\n super('change', { bubbles: true, cancelable: true });\n }\n}\n\nconst isAccordion = (x: EventTarget): x is RhAccordion =>\n x instanceof HTMLElement && x.localName === 'rh-accordion';\n\n/**\n * Accordion Header\n * We expect the light DOM of the rh-accordion-header to be a heading level tag (h1, h2, h3, h4, h5, h6)\n * @csspart text - inline element containing the heading text or slotted heading content\n * @csspart accents - container for accents within the header\n * @slot - accordion toggle content\n * @slot accents -\n * These elements will appear inline by default with the header title, between the header and the chevron\n * (or after the chevron and header in disclosure mode). There is an option to set the accents placement to bottom\n * @fires {AccordionHeaderChangeEvent} change - when the open panels change\n */\n@customElement('rh-accordion-header')\nexport class RhAccordionHeader extends LitElement {\n static readonly styles = [styles];\n\n @property({ type: Boolean, reflect: true }) expanded = false;\n\n @consume({ context, subscribe: true })\n @property({ attribute: false })\n private ctx?: RhAccordionContext;\n\n @colorContextConsumer()\n private on?: ColorTheme;\n\n #dir = new DirController(this);\n\n #internals = InternalsController.of(this, {\n role: 'heading',\n ariaLevel: '2',\n });\n\n #heading = new HeadingLevelController(this);\n\n override connectedCallback() {\n super.connectedCallback();\n this.id ||= getRandomId(this.localName);\n const accordion = this.closest('rh-accordion');\n const heading = this.closest('h1,h2,h3,h4,h5,h6');\n if (heading && accordion?.contains(heading)) {\n this.#internals.ariaLevel = heading.localName.replace('h', '');\n heading.replaceWith(this);\n } else {\n this.#internals.ariaLevel = Math.max(2, this.#heading.level).toString();\n }\n }\n\n render() {\n const { expanded, on = 'light' } = this;\n const { accents, large = false } = this.ctx ?? {};\n const rtl = this.#dir.dir === 'rtl';\n return html`\n \n `;\n }\n\n #onClick(event: MouseEvent) {\n const accordion = event.composedPath().find(isAccordion);\n if (accordion) {\n this.dispatchEvent(new AccordionHeaderChangeEvent(!this.expanded, this, accordion));\n }\n }\n\n @observes('expanded')\n private expandedChanged() {\n this.#internals.ariaExpanded = String(!!this.expanded) as 'true' | 'false';\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'rh-accordion-header': RhAccordionHeader;\n }\n}\n"]} \ No newline at end of file diff --git a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.d.ts b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.d.ts index b09342f2bf..54c6bf2047 100644 --- a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.d.ts +++ b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.d.ts @@ -7,7 +7,6 @@ import { type ColorPalette } from '../../lib/context/color/provider.js'; * The content of the accordion panel can be any basic markup including but not limited to div, paragraph, or nested accordion panels. */ export declare class RhAccordionPanel extends LitElement { - static readonly version = "{{version}}"; static readonly styles: CSSStyleSheet[]; expanded: boolean; colorPalette?: ColorPalette; diff --git a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.js b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.js index 56495502c4..8a135a4725 100644 --- a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.js +++ b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.js @@ -39,7 +39,6 @@ let RhAccordionPanel = class RhAccordionPanel extends LitElement { `; } }; -RhAccordionPanel.version = '{{version}}'; RhAccordionPanel.styles = [styles]; __decorate([ property({ type: Boolean, reflect: true }) diff --git a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.js.map b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.js.map index f6a6ae1cbe..aa5356b59e 100644 --- a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.js.map +++ b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion-panel.js.map @@ -1 +1 @@ -{"version":3,"file":"rh-accordion-panel.js","sourceRoot":"","sources":["rh-accordion-panel.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAmB,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAqB,MAAM,qCAAqC,CAAC;AAE9F,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;;;AAIvE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAA2B,MAAM,cAAc,CAAC;AAEhE;;;;;GAKG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAKuC,aAAQ,GAAG,KAAK,CAAC;IA6B/D,CAAC;IAlBC,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,EAAE,KAAP,IAAI,CAAC,EAAE,GAAK,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC;QACxC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;IAEQ,MAAM;QACb,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;QACnC,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC;QACzC,OAAO,IAAI,CAAA;;oBAEK,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;;;;KAKjF,CAAC;IACJ,CAAC;;AAhCe,wBAAO,GAAG,aAAa,AAAhB,CAAiB;AAExB,uBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAEU;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAAkB;AAGJ;IADxD,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;sDAA6B;AAErD;IAA/B,oBAAoB,EAAE;4CAAyB;AAIxC;IAFP,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;6CACE;AAdtB,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAkC5B","sourcesContent":["import { html, LitElement } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { customElement } from 'lit/decorators/custom-element.js';\nimport { property } from 'lit/decorators/property.js';\n\nimport { colorContextConsumer, type ColorTheme } from '../../lib/context/color/consumer.js';\nimport { colorContextProvider, type ColorPalette } from '../../lib/context/color/provider.js';\n\nimport { getRandomId } from '@patternfly/pfe-core/functions/random.js';\n\nimport styles from './rh-accordion-panel.css';\n\nimport { consume } from '@lit/context';\nimport { context, type RhAccordionContext } from './context.js';\n\n/**\n * Accordion Panel\n *\n * @slot\n * The content of the accordion panel can be any basic markup including but not limited to div, paragraph, or nested accordion panels.\n */\n@customElement('rh-accordion-panel')\nexport class RhAccordionPanel extends LitElement {\n static readonly version = '{{version}}';\n\n static readonly styles = [styles];\n\n @property({ type: Boolean, reflect: true }) expanded = false;\n\n @colorContextProvider()\n @property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette;\n\n @colorContextConsumer() private on?: ColorTheme;\n\n @consume({ context, subscribe: true })\n @property({ attribute: false })\n private ctx?: RhAccordionContext;\n\n connectedCallback() {\n super.connectedCallback();\n this.id ||= getRandomId(this.localName);\n this.setAttribute('role', 'region');\n }\n\n override render() {\n const { on = '', expanded } = this;\n const { large = false } = this.ctx ?? {};\n return html`\n
\n \n
\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'rh-accordion-panel': RhAccordionPanel;\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"rh-accordion-panel.js","sourceRoot":"","sources":["rh-accordion-panel.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAmB,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAqB,MAAM,qCAAqC,CAAC;AAE9F,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;;;AAIvE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAA2B,MAAM,cAAc,CAAC;AAEhE;;;;;GAKG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAGuC,aAAQ,GAAG,KAAK,CAAC;IA6B/D,CAAC;IAlBC,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,EAAE,KAAP,IAAI,CAAC,EAAE,GAAK,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC;QACxC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;IAEQ,MAAM;QACb,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;QACnC,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC;QACzC,OAAO,IAAI,CAAA;;oBAEK,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;;;;KAKjF,CAAC;IACJ,CAAC;;AA9Be,uBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAEU;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAAkB;AAGJ;IADxD,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;sDAA6B;AAErD;IAA/B,oBAAoB,EAAE;4CAAyB;AAIxC;IAFP,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;6CACE;AAZtB,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAgC5B","sourcesContent":["import { html, LitElement } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { customElement } from 'lit/decorators/custom-element.js';\nimport { property } from 'lit/decorators/property.js';\n\nimport { colorContextConsumer, type ColorTheme } from '../../lib/context/color/consumer.js';\nimport { colorContextProvider, type ColorPalette } from '../../lib/context/color/provider.js';\n\nimport { getRandomId } from '@patternfly/pfe-core/functions/random.js';\n\nimport styles from './rh-accordion-panel.css';\n\nimport { consume } from '@lit/context';\nimport { context, type RhAccordionContext } from './context.js';\n\n/**\n * Accordion Panel\n *\n * @slot\n * The content of the accordion panel can be any basic markup including but not limited to div, paragraph, or nested accordion panels.\n */\n@customElement('rh-accordion-panel')\nexport class RhAccordionPanel extends LitElement {\n static readonly styles = [styles];\n\n @property({ type: Boolean, reflect: true }) expanded = false;\n\n @colorContextProvider()\n @property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette;\n\n @colorContextConsumer() private on?: ColorTheme;\n\n @consume({ context, subscribe: true })\n @property({ attribute: false })\n private ctx?: RhAccordionContext;\n\n connectedCallback() {\n super.connectedCallback();\n this.id ||= getRandomId(this.localName);\n this.setAttribute('role', 'region');\n }\n\n override render() {\n const { on = '', expanded } = this;\n const { large = false } = this.ctx ?? {};\n return html`\n
\n \n
\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'rh-accordion-panel': RhAccordionPanel;\n }\n}\n"]} \ No newline at end of file diff --git a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion.js b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion.js index 43c77f61f8..dcc6a2001c 100644 --- a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion.js +++ b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion.js @@ -109,11 +109,15 @@ let RhAccordion = RhAccordion_1 = _a = class RhAccordion extends LitElement { this.updateAccessibility(); } render() { - const { on = 'light' } = this; + const { on } = this; const expanded = __classPrivateFieldGet(this, _RhAccordion_expanded, "f"); return html `
+ class="${classMap({ + on: true, + [on ?? 'light']: true, + expanded, + })}"> `; } async getUpdateComplete() { diff --git a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion.js.map b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion.js.map index 1e656c8e2f..b92975d594 100644 --- a/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion.js.map +++ b/assets/packages/@rhds/elements/elements/rh-accordion/rh-accordion.js.map @@ -1 +1 @@ -{"version":3,"file":"rh-accordion.js","sourceRoot":"","sources":["rh-accordion.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,oBAAoB,EAAmB,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAqB,MAAM,qCAAqC,CAAC;AAE9F,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,OAAO,EAA2B,MAAM,cAAc,CAAC;;;AAIhE,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IACrD,YACS,MAAyB,EACzB,KAAuB;QAE9B,KAAK,CAAC,QAAQ,CAAC,CAAC;QAHT,WAAM,GAAN,MAAM,CAAmB;QACzB,UAAK,GAAL,KAAK,CAAkB;IAGhC,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAAQ,aAAa;IACvD,YACS,MAAyB,EACzB,KAAuB;QAE9B,KAAK,CAAC,UAAU,CAAC,CAAC;QAHX,WAAM,GAAN,MAAM,CAAmB;QACzB,UAAK,GAAL,KAAK,CAAkB;IAGhC,CAAC;CACF;AAED;;;;;;;GAOG;AAEI,IAAM,WAAW,wBAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;;QAwBL;;WAEG;QACyC,UAAK,GAAG,KAAK,CAAC;QAE1D;;WAEG;QACyC,aAAQ,GAAG,IAAI,CAAC;QAuD5D,wCAAoB,IAAI,GAAG,EAAU,EAAC;QAEtC,gCAAY,KAAK,EAAC;QAElB,qCAA2B,EAAE,EAAC;QAE9B,8BAAU,IAAI,MAAM,CAAC,IAAI,CAAC,EAAC;QAE3B,0BAAM,IAAI,gBAAgB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,EAAC;QAE/B,QAAG,GAAG,uBAAA,IAAI,wDAAa,MAAjB,IAAI,CAAe,CAAC;IA4M1D,CAAC;IA1SC,MAAM,CAAC,WAAW,CAAC,MAA0B;QAC3C,OAAO,MAAM,YAAY,aAAW,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,MAA0B;QACxC,OAAO,MAAM,YAAY,iBAAiB,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,MAA0B;QACvC,OAAO,MAAM,YAAY,gBAAgB,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,sBAAsB,CAAC,KAAY;QACxC,OAAO,KAAK,YAAY,0BAA0B,CAAC;IACrD,CAAC;IA0BD;;;;;;;;OAQG;IAQH,IAAI,aAAa;QACf,OAAO,uBAAA,IAAI,kCAAe,CAAC;IAC7B,CAAC;IAED,IAAI,aAAa,CAAC,KAAK;QACrB,uBAAA,IAAI,8BAAkB,KAAK,MAAA,CAAC;QAC5B,uBAAA,IAAI,yBAAa,CAAC,CAAC,uBAAA,IAAI,kCAAe,CAAC,MAAM,MAAA,CAAC;QAC9C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACjC,MAAM,QAAQ,GAAG,uBAAA,IAAI,qCAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YAC/C,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,KAAK,EAAE,CAAC;gBACV,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;gBAC1B,KAAK,CAAC,MAAM,GAAG,CAAC,QAAQ,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,qCAAqC;IACrC,IAAI,OAAO;QACT,OAAO,uBAAA,IAAI,uDAAY,MAAhB,IAAI,CAAc,CAAC;IAC5B,CAAC;IAED,oCAAoC;IACpC,IAAI,MAAM;QACR,OAAO,uBAAA,IAAI,sDAAW,MAAf,IAAI,CAAa,CAAC;IAC3B,CAAC;IAcD,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,uBAAA,IAAI,qDAA2B,CAAC,CAAC;QACjE,uBAAA,IAAI,uBAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5C,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAEQ,MAAM;QACb,MAAM,EAAE,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC;QAC9B,MAAM,QAAQ,GAAG,uBAAA,IAAI,6BAAU,CAAC;QAChC,OAAO,IAAI,CAAA;;oBAEK,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;KAC3D,CAAC;IACJ,CAAC;IAEkB,KAAK,CAAC,iBAAiB;QACxC,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAChC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC;YAC1C,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC;SAC1C,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAEQ,YAAY;QACnB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACrC,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;gBACpB,uBAAA,IAAI,qCAAkB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACpC,CAAC;QACH,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,uBAAA,IAAI,qCAAkB,CAAC,CAAC;QACjD,uBAAA,IAAI,yBAAa,CAAC,CAAC,uBAAA,IAAI,kCAAe,CAAC,MAAM,MAAA,CAAC;IAChD,CAAC;IAMO,cAAc;QACpB,IAAI,CAAC,GAAG,GAAG,uBAAA,IAAI,wDAAa,MAAjB,IAAI,CAAe,CAAC;IACjC,CAAC;IAiED;;;;;OAKG;IACI,mBAAmB;QACxB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAEzB,gEAAgE;QAChE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,MAAM,KAAK,GAAG,uBAAA,IAAI,2DAAgB,MAApB,IAAI,EAAiB,MAAM,CAAC,CAAC;YAC3C,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,CAAC,YAAY,CAAC,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;gBAC/C,KAAK,CAAC,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,KAAa;QAC/B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;QAE9B,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACrB,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,eAA6B;QAC9D,MAAM,UAAU,GAAwB,uBAAA,IAAI,uDAAY,MAAhB,IAAI,EAAa,eAAe,CAAC,CAAC;QAE1E,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO;QACT,CAAC;QAED,MAAM,KAAK,GAAG,uBAAA,IAAI,2DAAgB,MAApB,IAAI,EAAiB,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO;QACT,CAAC;QAED,2CAA2C;QAC3C,uBAAA,IAAI,mDAAQ,MAAZ,IAAI,EAAS,KAAK,CAAC,CAAC;QAEpB,MAAM,CAAC,KAAK,EAAE,CAAC;QAEf,IAAI,CAAC,aAAa,CAAC,IAAI,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAE5D,MAAM,IAAI,CAAC,cAAc,CAAC;IAC5B,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,SAAS;QACpB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,uBAAA,IAAI,mDAAQ,MAAZ,IAAI,EAAS,CAAC,CAAC,CAAC,CAAC;QAChD,MAAM,IAAI,CAAC,cAAc,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,QAAQ,CAAC,KAAa;QACjC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QACtC,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAEpC,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;YACtB,OAAO;QACT,CAAC;QAED,uBAAA,IAAI,qDAAU,MAAd,IAAI,EAAW,KAAK,CAAC,CAAC;QAEtB,IAAI,CAAC,aAAa,CAAC,IAAI,sBAAsB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAC9D,MAAM,IAAI,CAAC,cAAc,CAAC;IAC5B,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,WAAW;QACtB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,uBAAA,IAAI,qDAAU,MAAd,IAAI,EAAW,CAAC,CAAC,CAAC,CAAC;QAClD,MAAM,IAAI,CAAC,cAAc,CAAC;IAC5B,CAAC;;;;;;;;;IA7JC,MAAM,EAAE,OAAO,GAAG,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC3C,MAAM,QAAQ,GAAG,uBAAA,IAAI,6BAAU,CAAC;IAChC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AACtC,CAAC;mEAEe,MAAyB;IACvC,MAAM,IAAI,GAAG,MAAM,CAAC,kBAAkB,CAAC;IACvC,IAAI,CAAC,aAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,OAAO,IAAI,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACnD,CAAC;SAAM,CAAC;QACN,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;mDAEO,KAAa;IACnB,wEAAwE;IACxE,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,uBAAA,IAAI,qCAAkB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9D,CAAC;uDAES,KAAa;IACrB,IAAI,uBAAA,IAAI,qCAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,uBAAA,IAAI,qCAAkB,CAAC,CAAC;IACnD,CAAC;AACH,CAAC;uDAES,KAAiC;IACzC,IAAI,aAAW,CAAC,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,uBAAA,IAAI,qDAAU,MAAd,IAAI,EAAW,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACtC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IACD,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;AACtC,CAAC;2DAEW,YAAyB,IAAI;IACvC,OAAO,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAA0B,EAAE,CACzE,CAAC,YAAY,iBAAiB,CAC/B,CAAC;AACJ,CAAC;yDAEU,YAAyB,IAAI;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAChD,aAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAA+B,CACtD,CAAC;AACJ,CAAC;uDAES,EAAkB;IAC1B,IAAI,aAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,aAAW,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,uBAAA,IAAI,2BAAQ,CAAC,IAAI,CAAC,oEAAoE,CAAC,CAAC;IACxF,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC;AA1Me,kBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAqBY;IAA7C,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAA+B;AAKhC;IAA3C,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0CAAe;AAKd;IAA3C,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;6CAAiB;AAOH;IADxD,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;iDAA6B;AAErD;IAA/B,oBAAoB,EAAE;uCAAyB;AAkBhD;IAPC,QAAQ,CAAC;QACR,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,mBAAmB;QAC9B,UAAU,CAAC,KAAK,EAAE,GAAG;YACnB,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACvD,CAAC;KACF,CAAC;gDAGD;AAoC6B;IAA7B,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;wCAAmC;AAyChD;IAJP,QAAQ,CAAC,SAAS,CAAC;IACnB,QAAQ,CAAC,OAAO,CAAC;IACjB,QAAQ,CAAC,UAAU,CAAC;IACpB,QAAQ,CAAC,eAAe,CAAC;iDAGzB;AA5IU,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CA6SvB","sourcesContent":["import { LitElement, html, type TemplateResult } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { customElement } from 'lit/decorators/custom-element.js';\nimport { property } from 'lit/decorators/property.js';\n\nimport { observes } from '@patternfly/pfe-core/decorators/observes.js';\nimport { provide } from '@lit/context';\n\nimport { colorContextConsumer, type ColorTheme } from '../../lib/context/color/consumer.js';\nimport { colorContextProvider, type ColorPalette } from '../../lib/context/color/provider.js';\n\nimport { NumberListConverter, ComposedEvent } from '@patternfly/pfe-core';\nimport { Logger } from '@patternfly/pfe-core/controllers/logger.js';\n\nimport { RhAccordionHeader, AccordionHeaderChangeEvent } from './rh-accordion-header.js';\nimport { RhAccordionPanel } from './rh-accordion-panel.js';\n\nimport { context, type RhAccordionContext } from './context.js';\n\nimport styles from './rh-accordion.css';\n\nexport class AccordionExpandEvent extends ComposedEvent {\n constructor(\n public toggle: RhAccordionHeader,\n public panel: RhAccordionPanel,\n ) {\n super('expand');\n }\n}\n\nexport class AccordionCollapseEvent extends ComposedEvent {\n constructor(\n public toggle: RhAccordionHeader,\n public panel: RhAccordionPanel,\n ) {\n super('collapse');\n }\n}\n\n/**\n * An accordion is a stacked list of panels which allows users to expand or collapse information when selected. They feature panels that consist of a section text label and a caret icon that collapses or expands to reveal more information.\n * @summary Expands or collapses a stacked list of panels\n * @fires {AccordionExpandEvent} expand - when a panel expands\n * @fires {AccordionCollapseEvent} collapse - when a panel collapses\n * @slot - Place the `rh-accordion-header` and `rh-accordion-panel` elements here.\n * @attr [accents=inline] Position accents in the header either inline or bottom\n */\n@customElement('rh-accordion')\nexport class RhAccordion extends LitElement {\n static readonly styles = [styles];\n\n static isAccordion(target: EventTarget | null): target is RhAccordion {\n return target instanceof RhAccordion;\n }\n\n static isHeader(target: EventTarget | null): target is RhAccordionHeader {\n return target instanceof RhAccordionHeader;\n }\n\n static isPanel(target: EventTarget | null): target is RhAccordionPanel {\n return target instanceof RhAccordionPanel;\n }\n\n static isAccordionChangeEvent(event: Event): event is AccordionHeaderChangeEvent {\n return event instanceof AccordionHeaderChangeEvent;\n }\n\n /**\n * Sets accordion header's accents position to inline or bottom\n */\n @property({ attribute: true, reflect: true }) accents?: 'inline' | 'bottom';\n\n /**\n * If this accordion uses large styles\n */\n @property({ reflect: true, type: Boolean }) large = false;\n\n /**\n * If this accordion has a border\n */\n @property({ reflect: true, type: Boolean }) bordered = true;\n\n /**\n * Color Palette for this accordion.\n * @see https://ux.redhat.com/theming/color-palettes/\n */\n @colorContextProvider()\n @property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette;\n\n @colorContextConsumer() private on?: ColorTheme;\n\n /**\n * Sets and reflects the currently expanded accordion 0-based indexes.\n * Use commas to separate multiple indexes.\n * ```html\n * \n * ...\n * \n * ```\n */\n @property({\n attribute: 'expanded-index',\n converter: NumberListConverter,\n hasChanged(value, old) {\n return JSON.stringify(old) !== JSON.stringify(value);\n },\n })\n get expandedIndex() {\n return this.#expandedIndex;\n }\n\n set expandedIndex(value) {\n this.#expandedIndex = value;\n this.#expanded = !!this.#expandedIndex.length;\n this.headers.forEach((header, i) => {\n const expanded = this.#expandedIndexSet.has(i);\n header.expanded = expanded;\n const panel = this.panels[i];\n if (panel) {\n panel.expanded = expanded;\n panel.hidden = !expanded;\n }\n });\n }\n\n /** All headers for this accordion */\n get headers() {\n return this.#allHeaders();\n }\n\n /** All panels for this accordion */\n get panels() {\n return this.#allPanels();\n }\n\n #expandedIndexSet = new Set();\n\n #expanded = false;\n\n #expandedIndex: number[] = [];\n\n #logger = new Logger(this);\n\n #mo = new MutationObserver(() => this.updateAccessibility());\n\n @provide({ context }) private ctx = this.#makeContext();\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('change', this.#onChange as EventListener);\n this.#mo.observe(this, { childList: true });\n this.updateAccessibility();\n }\n\n override render(): TemplateResult {\n const { on = 'light' } = this;\n const expanded = this.#expanded;\n return html`\n
\n `;\n }\n\n protected override async getUpdateComplete(): Promise {\n const c = await super.getUpdateComplete();\n const results = await Promise.all([\n ...this.headers.map(x => x.updateComplete),\n ...this.panels.map(x => x.updateComplete),\n ]);\n return c && results.every(Boolean);\n }\n\n override firstUpdated() {\n this.headers.forEach((header, index) => {\n if (header.expanded) {\n this.#expandedIndexSet.add(index);\n }\n });\n this.expandedIndex = [...this.#expandedIndexSet];\n this.#expanded = !!this.#expandedIndex.length;\n }\n\n @observes('accents')\n @observes('large')\n @observes('bordered')\n @observes('expandedIndex')\n private contextChanged() {\n this.ctx = this.#makeContext();\n }\n\n #makeContext(): RhAccordionContext {\n const { accents = 'inline', large } = this;\n const expanded = this.#expanded;\n return { accents, large, expanded };\n }\n\n #panelForHeader(header: RhAccordionHeader) {\n const next = header.nextElementSibling;\n if (!RhAccordion.isPanel(next)) {\n return next?.querySelector('rh-accordion-panel');\n } else {\n return next;\n }\n }\n\n #expand(index: number) {\n // If this index is not already listed in the expandedSets array, add it\n this.expandedIndex = [...this.#expandedIndexSet.add(index)];\n }\n\n #collapse(index: number) {\n if (this.#expandedIndexSet.delete(index)) {\n this.expandedIndex = [...this.#expandedIndexSet];\n }\n }\n\n #onChange(event: AccordionHeaderChangeEvent) {\n if (RhAccordion.isAccordionChangeEvent(event)) {\n const index = this.#getIndex(event.target);\n if (event.expanded) {\n this.expand(index, event.accordion);\n } else {\n this.collapse(index);\n }\n }\n this.requestUpdate('expandedIndex');\n }\n\n #allHeaders(accordion: RhAccordion = this): RhAccordionHeader[] {\n return Array.from(accordion.children).filter((x): x is RhAccordionHeader =>\n x instanceof RhAccordionHeader\n );\n }\n\n #allPanels(accordion: RhAccordion = this): RhAccordionPanel[] {\n return Array.from(accordion.children).filter((x =>\n RhAccordion.isPanel(x)) as typeof RhAccordion.isPanel\n );\n }\n\n #getIndex(el: Element | null) {\n if (RhAccordion.isHeader(el)) {\n return this.headers.findIndex(header => header.id === el.id);\n }\n\n if (RhAccordion.isPanel(el)) {\n return this.panels.findIndex(panel => panel.id === el.id);\n }\n\n this.#logger.warn('The #getIndex method expects to receive a header or panel element.');\n return -1;\n }\n\n /**\n * Initialize the accordion by connecting headers and panels\n * with aria controls and labels; set up the default disclosure\n * state if not set by the author; and check the URL for default\n * open\n */\n public updateAccessibility() {\n const { headers } = this;\n\n // For each header in the accordion, attach the aria connections\n for (const header of headers) {\n const panel = this.#panelForHeader(header);\n if (panel) {\n header.setAttribute('aria-controls', panel.id);\n panel.setAttribute('aria-labelledby', header.id);\n }\n }\n }\n\n /**\n * Accepts a 0-based index value (integer) for the set of accordion items to expand or collapse.\n * @param index header index to toggle\n */\n public async toggle(index: number) {\n const { headers } = this;\n const header = headers[index];\n\n if (!header.expanded) {\n await this.expand(index);\n } else {\n await this.collapse(index);\n }\n }\n\n /**\n * Accepts a 0-based index value (integer) for the set of accordion items to expand.\n * Accepts an optional parent accordion to search for headers and panels.\n * @param index header index to toggle\n * @param parentAccordion target accordion to expand in\n */\n public async expand(index: number, parentAccordion?: RhAccordion) {\n const allHeaders: RhAccordionHeader[] = this.#allHeaders(parentAccordion);\n\n const header = allHeaders[index];\n if (!header) {\n return;\n }\n\n const panel = this.#panelForHeader(header);\n if (!panel) {\n return;\n }\n\n // If the header and panel exist, open both\n this.#expand(index);\n\n header.focus();\n\n this.dispatchEvent(new AccordionExpandEvent(header, panel));\n\n await this.updateComplete;\n }\n\n /**\n * Expands all accordion items.\n */\n public async expandAll() {\n this.headers.forEach((_, i) => this.#expand(i));\n await this.updateComplete;\n }\n\n /**\n * Accepts a 0-based index value (integer) for the set of accordion items to collapse.\n * @param index header index to collapse\n */\n public async collapse(index: number) {\n const header = this.headers.at(index);\n const panel = this.panels.at(index);\n\n if (!header || !panel) {\n return;\n }\n\n this.#collapse(index);\n\n this.dispatchEvent(new AccordionCollapseEvent(header, panel));\n await this.updateComplete;\n }\n\n /**\n * Collapses all accordion items.\n */\n public async collapseAll() {\n this.headers.forEach((_, i) => this.#collapse(i));\n await this.updateComplete;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'rh-accordion': RhAccordion;\n }\n\n interface HTMLElementEventMap {\n 'expand': AccordionExpandEvent;\n 'collapse': AccordionCollapseEvent;\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"rh-accordion.js","sourceRoot":"","sources":["rh-accordion.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,oBAAoB,EAAmB,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAqB,MAAM,qCAAqC,CAAC;AAE9F,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,OAAO,EAA2B,MAAM,cAAc,CAAC;;;AAIhE,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IACrD,YACS,MAAyB,EACzB,KAAuB;QAE9B,KAAK,CAAC,QAAQ,CAAC,CAAC;QAHT,WAAM,GAAN,MAAM,CAAmB;QACzB,UAAK,GAAL,KAAK,CAAkB;IAGhC,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAAQ,aAAa;IACvD,YACS,MAAyB,EACzB,KAAuB;QAE9B,KAAK,CAAC,UAAU,CAAC,CAAC;QAHX,WAAM,GAAN,MAAM,CAAmB;QACzB,UAAK,GAAL,KAAK,CAAkB;IAGhC,CAAC;CACF;AAED;;;;;;;GAOG;AAEI,IAAM,WAAW,wBAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;;QAwBL;;WAEG;QACyC,UAAK,GAAG,KAAK,CAAC;QAE1D;;WAEG;QACyC,aAAQ,GAAG,IAAI,CAAC;QAuD5D,wCAAoB,IAAI,GAAG,EAAU,EAAC;QAEtC,gCAAY,KAAK,EAAC;QAElB,qCAA2B,EAAE,EAAC;QAE9B,8BAAU,IAAI,MAAM,CAAC,IAAI,CAAC,EAAC;QAE3B,0BAAM,IAAI,gBAAgB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,EAAC;QAE/B,QAAG,GAAG,uBAAA,IAAI,wDAAa,MAAjB,IAAI,CAAe,CAAC;IAgN1D,CAAC;IA9SC,MAAM,CAAC,WAAW,CAAC,MAA0B;QAC3C,OAAO,MAAM,YAAY,aAAW,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,MAA0B;QACxC,OAAO,MAAM,YAAY,iBAAiB,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,MAA0B;QACvC,OAAO,MAAM,YAAY,gBAAgB,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,sBAAsB,CAAC,KAAY;QACxC,OAAO,KAAK,YAAY,0BAA0B,CAAC;IACrD,CAAC;IA0BD;;;;;;;;OAQG;IAQH,IAAI,aAAa;QACf,OAAO,uBAAA,IAAI,kCAAe,CAAC;IAC7B,CAAC;IAED,IAAI,aAAa,CAAC,KAAK;QACrB,uBAAA,IAAI,8BAAkB,KAAK,MAAA,CAAC;QAC5B,uBAAA,IAAI,yBAAa,CAAC,CAAC,uBAAA,IAAI,kCAAe,CAAC,MAAM,MAAA,CAAC;QAC9C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACjC,MAAM,QAAQ,GAAG,uBAAA,IAAI,qCAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YAC/C,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,KAAK,EAAE,CAAC;gBACV,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;gBAC1B,KAAK,CAAC,MAAM,GAAG,CAAC,QAAQ,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,qCAAqC;IACrC,IAAI,OAAO;QACT,OAAO,uBAAA,IAAI,uDAAY,MAAhB,IAAI,CAAc,CAAC;IAC5B,CAAC;IAED,oCAAoC;IACpC,IAAI,MAAM;QACR,OAAO,uBAAA,IAAI,sDAAW,MAAf,IAAI,CAAa,CAAC;IAC3B,CAAC;IAcD,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,uBAAA,IAAI,qDAA2B,CAAC,CAAC;QACjE,uBAAA,IAAI,uBAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5C,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAEQ,MAAM;QACb,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC;QACpB,MAAM,QAAQ,GAAG,uBAAA,IAAI,6BAAU,CAAC;QAChC,OAAO,IAAI,CAAA;;oBAEK,QAAQ,CAAC;YAChB,EAAE,EAAE,IAAI;YACR,CAAC,EAAE,IAAI,OAAO,CAAC,EAAE,IAAI;YACrB,QAAQ;SACT,CAAC;KACR,CAAC;IACJ,CAAC;IAEkB,KAAK,CAAC,iBAAiB;QACxC,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAChC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC;YAC1C,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC;SAC1C,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAEQ,YAAY;QACnB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACrC,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;gBACpB,uBAAA,IAAI,qCAAkB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACpC,CAAC;QACH,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,uBAAA,IAAI,qCAAkB,CAAC,CAAC;QACjD,uBAAA,IAAI,yBAAa,CAAC,CAAC,uBAAA,IAAI,kCAAe,CAAC,MAAM,MAAA,CAAC;IAChD,CAAC;IAMO,cAAc;QACpB,IAAI,CAAC,GAAG,GAAG,uBAAA,IAAI,wDAAa,MAAjB,IAAI,CAAe,CAAC;IACjC,CAAC;IAiED;;;;;OAKG;IACI,mBAAmB;QACxB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAEzB,gEAAgE;QAChE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,MAAM,KAAK,GAAG,uBAAA,IAAI,2DAAgB,MAApB,IAAI,EAAiB,MAAM,CAAC,CAAC;YAC3C,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,CAAC,YAAY,CAAC,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;gBAC/C,KAAK,CAAC,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,KAAa;QAC/B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;QAE9B,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACrB,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,eAA6B;QAC9D,MAAM,UAAU,GAAwB,uBAAA,IAAI,uDAAY,MAAhB,IAAI,EAAa,eAAe,CAAC,CAAC;QAE1E,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO;QACT,CAAC;QAED,MAAM,KAAK,GAAG,uBAAA,IAAI,2DAAgB,MAApB,IAAI,EAAiB,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO;QACT,CAAC;QAED,2CAA2C;QAC3C,uBAAA,IAAI,mDAAQ,MAAZ,IAAI,EAAS,KAAK,CAAC,CAAC;QAEpB,MAAM,CAAC,KAAK,EAAE,CAAC;QAEf,IAAI,CAAC,aAAa,CAAC,IAAI,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAE5D,MAAM,IAAI,CAAC,cAAc,CAAC;IAC5B,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,SAAS;QACpB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,uBAAA,IAAI,mDAAQ,MAAZ,IAAI,EAAS,CAAC,CAAC,CAAC,CAAC;QAChD,MAAM,IAAI,CAAC,cAAc,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,QAAQ,CAAC,KAAa;QACjC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QACtC,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAEpC,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;YACtB,OAAO;QACT,CAAC;QAED,uBAAA,IAAI,qDAAU,MAAd,IAAI,EAAW,KAAK,CAAC,CAAC;QAEtB,IAAI,CAAC,aAAa,CAAC,IAAI,sBAAsB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAC9D,MAAM,IAAI,CAAC,cAAc,CAAC;IAC5B,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,WAAW;QACtB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,uBAAA,IAAI,qDAAU,MAAd,IAAI,EAAW,CAAC,CAAC,CAAC,CAAC;QAClD,MAAM,IAAI,CAAC,cAAc,CAAC;IAC5B,CAAC;;;;;;;;;IA7JC,MAAM,EAAE,OAAO,GAAG,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC3C,MAAM,QAAQ,GAAG,uBAAA,IAAI,6BAAU,CAAC;IAChC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AACtC,CAAC;mEAEe,MAAyB;IACvC,MAAM,IAAI,GAAG,MAAM,CAAC,kBAAkB,CAAC;IACvC,IAAI,CAAC,aAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,OAAO,IAAI,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACnD,CAAC;SAAM,CAAC;QACN,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;mDAEO,KAAa;IACnB,wEAAwE;IACxE,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,uBAAA,IAAI,qCAAkB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9D,CAAC;uDAES,KAAa;IACrB,IAAI,uBAAA,IAAI,qCAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,uBAAA,IAAI,qCAAkB,CAAC,CAAC;IACnD,CAAC;AACH,CAAC;uDAES,KAAiC;IACzC,IAAI,aAAW,CAAC,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,uBAAA,IAAI,qDAAU,MAAd,IAAI,EAAW,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACtC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IACD,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;AACtC,CAAC;2DAEW,YAAyB,IAAI;IACvC,OAAO,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAA0B,EAAE,CACzE,CAAC,YAAY,iBAAiB,CAC/B,CAAC;AACJ,CAAC;yDAEU,YAAyB,IAAI;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAChD,aAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAA+B,CACtD,CAAC;AACJ,CAAC;uDAES,EAAkB;IAC1B,IAAI,aAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,aAAW,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,uBAAA,IAAI,2BAAQ,CAAC,IAAI,CAAC,oEAAoE,CAAC,CAAC;IACxF,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC;AA9Me,kBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAqBY;IAA7C,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAA+B;AAKhC;IAA3C,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0CAAe;AAKd;IAA3C,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;6CAAiB;AAOH;IADxD,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;iDAA6B;AAErD;IAA/B,oBAAoB,EAAE;uCAAyB;AAkBhD;IAPC,QAAQ,CAAC;QACR,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,mBAAmB;QAC9B,UAAU,CAAC,KAAK,EAAE,GAAG;YACnB,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACvD,CAAC;KACF,CAAC;gDAGD;AAoC6B;IAA7B,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;wCAAmC;AA6ChD;IAJP,QAAQ,CAAC,SAAS,CAAC;IACnB,QAAQ,CAAC,OAAO,CAAC;IACjB,QAAQ,CAAC,UAAU,CAAC;IACpB,QAAQ,CAAC,eAAe,CAAC;iDAGzB;AAhJU,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAiTvB","sourcesContent":["import { LitElement, html, type TemplateResult } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { customElement } from 'lit/decorators/custom-element.js';\nimport { property } from 'lit/decorators/property.js';\n\nimport { observes } from '@patternfly/pfe-core/decorators/observes.js';\nimport { provide } from '@lit/context';\n\nimport { colorContextConsumer, type ColorTheme } from '../../lib/context/color/consumer.js';\nimport { colorContextProvider, type ColorPalette } from '../../lib/context/color/provider.js';\n\nimport { NumberListConverter, ComposedEvent } from '@patternfly/pfe-core';\nimport { Logger } from '@patternfly/pfe-core/controllers/logger.js';\n\nimport { RhAccordionHeader, AccordionHeaderChangeEvent } from './rh-accordion-header.js';\nimport { RhAccordionPanel } from './rh-accordion-panel.js';\n\nimport { context, type RhAccordionContext } from './context.js';\n\nimport styles from './rh-accordion.css';\n\nexport class AccordionExpandEvent extends ComposedEvent {\n constructor(\n public toggle: RhAccordionHeader,\n public panel: RhAccordionPanel,\n ) {\n super('expand');\n }\n}\n\nexport class AccordionCollapseEvent extends ComposedEvent {\n constructor(\n public toggle: RhAccordionHeader,\n public panel: RhAccordionPanel,\n ) {\n super('collapse');\n }\n}\n\n/**\n * An accordion is a stacked list of panels which allows users to expand or collapse information when selected. They feature panels that consist of a section text label and a caret icon that collapses or expands to reveal more information.\n * @summary Expands or collapses a stacked list of panels\n * @fires {AccordionExpandEvent} expand - when a panel expands\n * @fires {AccordionCollapseEvent} collapse - when a panel collapses\n * @slot - Place the `rh-accordion-header` and `rh-accordion-panel` elements here.\n * @attr [accents=inline] Position accents in the header either inline or bottom\n */\n@customElement('rh-accordion')\nexport class RhAccordion extends LitElement {\n static readonly styles = [styles];\n\n static isAccordion(target: EventTarget | null): target is RhAccordion {\n return target instanceof RhAccordion;\n }\n\n static isHeader(target: EventTarget | null): target is RhAccordionHeader {\n return target instanceof RhAccordionHeader;\n }\n\n static isPanel(target: EventTarget | null): target is RhAccordionPanel {\n return target instanceof RhAccordionPanel;\n }\n\n static isAccordionChangeEvent(event: Event): event is AccordionHeaderChangeEvent {\n return event instanceof AccordionHeaderChangeEvent;\n }\n\n /**\n * Sets accordion header's accents position to inline or bottom\n */\n @property({ attribute: true, reflect: true }) accents?: 'inline' | 'bottom';\n\n /**\n * If this accordion uses large styles\n */\n @property({ reflect: true, type: Boolean }) large = false;\n\n /**\n * If this accordion has a border\n */\n @property({ reflect: true, type: Boolean }) bordered = true;\n\n /**\n * Color Palette for this accordion.\n * @see https://ux.redhat.com/theming/color-palettes/\n */\n @colorContextProvider()\n @property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette;\n\n @colorContextConsumer() private on?: ColorTheme;\n\n /**\n * Sets and reflects the currently expanded accordion 0-based indexes.\n * Use commas to separate multiple indexes.\n * ```html\n * \n * ...\n * \n * ```\n */\n @property({\n attribute: 'expanded-index',\n converter: NumberListConverter,\n hasChanged(value, old) {\n return JSON.stringify(old) !== JSON.stringify(value);\n },\n })\n get expandedIndex() {\n return this.#expandedIndex;\n }\n\n set expandedIndex(value) {\n this.#expandedIndex = value;\n this.#expanded = !!this.#expandedIndex.length;\n this.headers.forEach((header, i) => {\n const expanded = this.#expandedIndexSet.has(i);\n header.expanded = expanded;\n const panel = this.panels[i];\n if (panel) {\n panel.expanded = expanded;\n panel.hidden = !expanded;\n }\n });\n }\n\n /** All headers for this accordion */\n get headers() {\n return this.#allHeaders();\n }\n\n /** All panels for this accordion */\n get panels() {\n return this.#allPanels();\n }\n\n #expandedIndexSet = new Set();\n\n #expanded = false;\n\n #expandedIndex: number[] = [];\n\n #logger = new Logger(this);\n\n #mo = new MutationObserver(() => this.updateAccessibility());\n\n @provide({ context }) private ctx = this.#makeContext();\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('change', this.#onChange as EventListener);\n this.#mo.observe(this, { childList: true });\n this.updateAccessibility();\n }\n\n override render(): TemplateResult {\n const { on } = this;\n const expanded = this.#expanded;\n return html`\n
\n `;\n }\n\n protected override async getUpdateComplete(): Promise {\n const c = await super.getUpdateComplete();\n const results = await Promise.all([\n ...this.headers.map(x => x.updateComplete),\n ...this.panels.map(x => x.updateComplete),\n ]);\n return c && results.every(Boolean);\n }\n\n override firstUpdated() {\n this.headers.forEach((header, index) => {\n if (header.expanded) {\n this.#expandedIndexSet.add(index);\n }\n });\n this.expandedIndex = [...this.#expandedIndexSet];\n this.#expanded = !!this.#expandedIndex.length;\n }\n\n @observes('accents')\n @observes('large')\n @observes('bordered')\n @observes('expandedIndex')\n private contextChanged() {\n this.ctx = this.#makeContext();\n }\n\n #makeContext(): RhAccordionContext {\n const { accents = 'inline', large } = this;\n const expanded = this.#expanded;\n return { accents, large, expanded };\n }\n\n #panelForHeader(header: RhAccordionHeader) {\n const next = header.nextElementSibling;\n if (!RhAccordion.isPanel(next)) {\n return next?.querySelector('rh-accordion-panel');\n } else {\n return next;\n }\n }\n\n #expand(index: number) {\n // If this index is not already listed in the expandedSets array, add it\n this.expandedIndex = [...this.#expandedIndexSet.add(index)];\n }\n\n #collapse(index: number) {\n if (this.#expandedIndexSet.delete(index)) {\n this.expandedIndex = [...this.#expandedIndexSet];\n }\n }\n\n #onChange(event: AccordionHeaderChangeEvent) {\n if (RhAccordion.isAccordionChangeEvent(event)) {\n const index = this.#getIndex(event.target);\n if (event.expanded) {\n this.expand(index, event.accordion);\n } else {\n this.collapse(index);\n }\n }\n this.requestUpdate('expandedIndex');\n }\n\n #allHeaders(accordion: RhAccordion = this): RhAccordionHeader[] {\n return Array.from(accordion.children).filter((x): x is RhAccordionHeader =>\n x instanceof RhAccordionHeader\n );\n }\n\n #allPanels(accordion: RhAccordion = this): RhAccordionPanel[] {\n return Array.from(accordion.children).filter((x =>\n RhAccordion.isPanel(x)) as typeof RhAccordion.isPanel\n );\n }\n\n #getIndex(el: Element | null) {\n if (RhAccordion.isHeader(el)) {\n return this.headers.findIndex(header => header.id === el.id);\n }\n\n if (RhAccordion.isPanel(el)) {\n return this.panels.findIndex(panel => panel.id === el.id);\n }\n\n this.#logger.warn('The #getIndex method expects to receive a header or panel element.');\n return -1;\n }\n\n /**\n * Initialize the accordion by connecting headers and panels\n * with aria controls and labels; set up the default disclosure\n * state if not set by the author; and check the URL for default\n * open\n */\n public updateAccessibility() {\n const { headers } = this;\n\n // For each header in the accordion, attach the aria connections\n for (const header of headers) {\n const panel = this.#panelForHeader(header);\n if (panel) {\n header.setAttribute('aria-controls', panel.id);\n panel.setAttribute('aria-labelledby', header.id);\n }\n }\n }\n\n /**\n * Accepts a 0-based index value (integer) for the set of accordion items to expand or collapse.\n * @param index header index to toggle\n */\n public async toggle(index: number) {\n const { headers } = this;\n const header = headers[index];\n\n if (!header.expanded) {\n await this.expand(index);\n } else {\n await this.collapse(index);\n }\n }\n\n /**\n * Accepts a 0-based index value (integer) for the set of accordion items to expand.\n * Accepts an optional parent accordion to search for headers and panels.\n * @param index header index to toggle\n * @param parentAccordion target accordion to expand in\n */\n public async expand(index: number, parentAccordion?: RhAccordion) {\n const allHeaders: RhAccordionHeader[] = this.#allHeaders(parentAccordion);\n\n const header = allHeaders[index];\n if (!header) {\n return;\n }\n\n const panel = this.#panelForHeader(header);\n if (!panel) {\n return;\n }\n\n // If the header and panel exist, open both\n this.#expand(index);\n\n header.focus();\n\n this.dispatchEvent(new AccordionExpandEvent(header, panel));\n\n await this.updateComplete;\n }\n\n /**\n * Expands all accordion items.\n */\n public async expandAll() {\n this.headers.forEach((_, i) => this.#expand(i));\n await this.updateComplete;\n }\n\n /**\n * Accepts a 0-based index value (integer) for the set of accordion items to collapse.\n * @param index header index to collapse\n */\n public async collapse(index: number) {\n const header = this.headers.at(index);\n const panel = this.panels.at(index);\n\n if (!header || !panel) {\n return;\n }\n\n this.#collapse(index);\n\n this.dispatchEvent(new AccordionCollapseEvent(header, panel));\n await this.updateComplete;\n }\n\n /**\n * Collapses all accordion items.\n */\n public async collapseAll() {\n this.headers.forEach((_, i) => this.#collapse(i));\n await this.updateComplete;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'rh-accordion': RhAccordion;\n }\n\n interface HTMLElementEventMap {\n 'expand': AccordionExpandEvent;\n 'collapse': AccordionCollapseEvent;\n }\n}\n"]} \ No newline at end of file diff --git a/assets/packages/@rhds/elements/elements/rh-surface/test/elements.js.map b/assets/packages/@rhds/elements/elements/rh-surface/test/elements.js.map index d2799f86c6..a1be31dd40 100644 --- a/assets/packages/@rhds/elements/elements/rh-surface/test/elements.js.map +++ b/assets/packages/@rhds/elements/elements/rh-surface/test/elements.js.map @@ -1 +1 @@ -{"version":3,"file":"elements.js","sourceRoot":"","sources":["elements.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EACL,oBAAoB,GAErB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,oBAAoB,GAErB,MAAM,8CAA8C,CAAC;AAG/C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,eAAe;CAInD,CAAA;AADC;IAFC,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CACZ;AAHL,eAAe;IAD3B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,eAAe,CAI3B;;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,eAAe;CAO3D,CAAA;AAJC;IAFC,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACZ;AAGyC;IADxD,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;6DAA6B;AAN1E,uBAAuB;IADnC,aAAa,CAAC,gCAAgC,CAAC;GACnC,uBAAuB,CAOnC;;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,eAAe;CAO3D,CAAA;AAL0D;IADxD,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;6DAA6B;AAIrF;IAFC,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACZ;AANL,uBAAuB;IADnC,aAAa,CAAC,gCAAgC,CAAC;GACnC,uBAAuB,CAOnC","sourcesContent":["import { ReactiveElement } from 'lit';\nimport { customElement } from 'lit/decorators/custom-element.js';\nimport { property } from 'lit/decorators/property.js';\n\nimport {\n colorContextConsumer,\n type ColorTheme,\n} from '@rhds/elements/lib/context/color/consumer.js';\nimport {\n colorContextProvider,\n type ColorPalette,\n} from '@rhds/elements/lib/context/color/provider.js';\n\n@customElement('test-context-consumer')\nexport class ContextConsumer extends ReactiveElement {\n @colorContextConsumer()\n @property({ reflect: true })\n on?: ColorTheme;\n}\n\n@customElement('test-context-consumer-provider')\nexport class ContextConsumerProvider extends ReactiveElement {\n @colorContextConsumer()\n @property({ reflect: true })\n on?: ColorTheme;\n\n @colorContextProvider()\n @property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette;\n}\n\n@customElement('test-context-provider-consumer')\nexport class ContextProviderConsumer extends ReactiveElement {\n @colorContextProvider()\n @property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette;\n\n @colorContextConsumer()\n @property({ reflect: true })\n on?: ColorTheme;\n}\n\n"]} \ No newline at end of file +{"version":3,"file":"elements.js","sourceRoot":"","sources":["elements.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EACL,oBAAoB,GAErB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EACL,oBAAoB,GAErB,MAAM,8CAA8C,CAAC;AAG/C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,eAAe;CAInD,CAAA;AADC;IAFC,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CACZ;AAHL,eAAe;IAD3B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,eAAe,CAI3B;;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,eAAe;CAO3D,CAAA;AAJC;IAFC,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACZ;AAGyC;IADxD,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;6DAA6B;AAN1E,uBAAuB;IADnC,aAAa,CAAC,gCAAgC,CAAC;GACnC,uBAAuB,CAOnC;;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,eAAe;CAO3D,CAAA;AAL0D;IADxD,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;6DAA6B;AAIrF;IAFC,oBAAoB,EAAE;IACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACZ;AANL,uBAAuB;IADnC,aAAa,CAAC,gCAAgC,CAAC;GACnC,uBAAuB,CAOnC","sourcesContent":["import { ReactiveElement } from 'lit';\nimport { customElement } from 'lit/decorators/custom-element.js';\nimport { property } from 'lit/decorators/property.js';\n\nimport {\n colorContextConsumer,\n type ColorTheme,\n} from '@rhds/elements/lib/context/color/consumer.js';\n\nimport {\n colorContextProvider,\n type ColorPalette,\n} from '@rhds/elements/lib/context/color/provider.js';\n\n@customElement('test-context-consumer')\nexport class ContextConsumer extends ReactiveElement {\n @colorContextConsumer()\n @property({ reflect: true })\n on?: ColorTheme;\n}\n\n@customElement('test-context-consumer-provider')\nexport class ContextConsumerProvider extends ReactiveElement {\n @colorContextConsumer()\n @property({ reflect: true })\n on?: ColorTheme;\n\n @colorContextProvider()\n @property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette;\n}\n\n@customElement('test-context-provider-consumer')\nexport class ContextProviderConsumer extends ReactiveElement {\n @colorContextProvider()\n @property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette;\n\n @colorContextConsumer()\n @property({ reflect: true })\n on?: ColorTheme;\n}\n"]} \ No newline at end of file diff --git a/assets/packages/@rhds/elements/lib/context/color/consumer.d.ts b/assets/packages/@rhds/elements/lib/context/color/consumer.d.ts index 5b677fa951..637a4ca9c7 100644 --- a/assets/packages/@rhds/elements/lib/context/color/consumer.d.ts +++ b/assets/packages/@rhds/elements/lib/context/color/consumer.d.ts @@ -22,7 +22,7 @@ export declare class ColorContextConsumer extends Col constructor(host: T, options?: ColorContextConsumerOptions | undefined); /** When a consumer connects, it requests colour context from the closest provider. */ hostConnected(): Promise; - hostUpdated(): void; + hostUpdated(): Promise; /** When a consumer disconnects, it's removed from the list of consumers. */ hostDisconnected(): void; /** diff --git a/assets/packages/@rhds/elements/lib/context/color/consumer.js b/assets/packages/@rhds/elements/lib/context/color/consumer.js index 54d97f0160..2b75c8cca6 100644 --- a/assets/packages/@rhds/elements/lib/context/color/consumer.js +++ b/assets/packages/@rhds/elements/lib/context/color/consumer.js @@ -32,11 +32,17 @@ export class ColorContextConsumer extends ColorContextController { this.host.dispatchEvent(event); __classPrivateFieldSet(this, _ColorContextConsumer_override, null, "f"); } - hostUpdated() { + async hostUpdated() { if (!isServer && !this.host.hasUpdated) { // This is definitely overkill, but it's the only // way we've found so far to work around lit-ssr hydration woes - this.hostConnected(); + const original = __classPrivateFieldGet(this, _ColorContextConsumer_instances, "a", _ColorContextConsumer_propertyValue_get); + if (original) { + await this.host.updateComplete; + __classPrivateFieldSet(this, _ColorContextConsumer_instances, '__LIT_SSR_WORKAROUND__', "a", _ColorContextConsumer_propertyValue_set); + await this.host.updateComplete; + __classPrivateFieldSet(this, _ColorContextConsumer_instances, original, "a", _ColorContextConsumer_propertyValue_set); + } } } /** When a consumer disconnects, it's removed from the list of consumers. */ diff --git a/assets/packages/@rhds/elements/lib/context/color/consumer.js.map b/assets/packages/@rhds/elements/lib/context/color/consumer.js.map index c2f4db4711..b3b6515b4e 100644 --- a/assets/packages/@rhds/elements/lib/context/color/consumer.js.map +++ b/assets/packages/@rhds/elements/lib/context/color/consumer.js.map @@ -1 +1 @@ -{"version":3,"file":"consumer.js","sourceRoot":"","sources":["consumer.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAiD,MAAM,KAAK,CAAC;AAE9E,OAAO,EACL,aAAa,EACb,sBAAsB,GAEvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,MAAM,MAAM,gDAAgD,CAAC;AAkBpE;;;;GAIG;AACH,MAAM,OAAO,oBAEX,SAAQ,sBAAyB;IAYjC,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,gFAAe,CAAC;IAC7B,CAAC;IAMD,YAAY,IAAO,EAAU,OAAwC;QACnE,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;;QADO,YAAO,GAAP,OAAO,CAAiC;QAnBrE,qDAAuB;QAevB,gDAAsB;QAEtB,yCAA+B,IAAI,EAAC;QAIlC,uBAAA,IAAI,sCAAiB,OAAO,EAAE,YAAY,IAAI,IAAe,MAAA,CAAC;IAChE,CAAC;IAED,sFAAsF;IACtF,KAAK,CAAC,aAAa;QACjB,MAAM,EAAE,OAAO,EAAE,GAAG,sBAAsB,CAAC;QAC3C,MAAM,KAAK,GAAG,IAAI,mBAAmB,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,uBAAA,IAAI,8EAAiB,MAArB,IAAI,EAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACpF,uBAAA,IAAI,kCAAa,uBAAA,IAAI,gFAAe,MAAA,CAAC;QACrC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACpC,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;QAC/B,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/B,uBAAA,IAAI,kCAAa,IAAI,MAAA,CAAC;IACxB,CAAC;IAED,WAAW;QACT,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACvC,iDAAiD;YACjD,+DAA+D;YAC/D,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,CAAC;IACH,CAAC;IAED,4EAA4E;IAC5E,gBAAgB;QACd,uBAAA,IAAI,qCAAS,EAAE,KAAf,IAAI,CAAa,CAAC;QAClB,uBAAA,IAAI,iCAAY,SAAS,MAAA,CAAC;QAC1B,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAiBD;;;OAGG;IACI,MAAM,CAAC,IAAuB;QACnC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,uBAAA,IAAI,sCAAU,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,uBAAA,IAAI,mCAAkB,CAAC,IAAI,IAAI,SAAS,CAAe,+CAAA,CAAC;QAC1D,CAAC;QACD,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,uBAAA,IAAI,gFAAe,CAAC,CAAC;IAChD,CAAC;CACF;;IA1EG,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAA,IAAI,0CAAc,CAAe,CAAC;AACrD,CAAC,6FAEkB,CAAC;IAClB,IAAI,CAAC,IAAI,CAAC,uBAAA,IAAI,0CAAc,CAAC,GAAG,CAAe,CAAC;IAChD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;AAC5B,CAAC,yFA+CgB,KAAwB,EAAE,OAAoB;IAC7D,qCAAqC;IACrC,IAAI,OAAO,IAAI,OAAO,KAAK,uBAAA,IAAI,qCAAS,EAAE,CAAC;QACzC,uBAAA,IAAI,qCAAS,EAAE,KAAf,IAAI,CAAa,CAAC;QAClB,uBAAA,IAAI,iCAAY,OAAO,MAAA,CAAC;IAC1B,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACrB,CAAC;AAgBH;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAElC,OAAgC;IAChC,OAAO,UAAS,KAAQ,EAAE,aAA+B;QACvD,MAAM,YAAY,GAAG,aAAwB,CAAC;QAC7C,KAAK,CAAC,WAAsC,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;YACtE,MAAM,UAAU,GAAG,IAAI,oBAAoB,CAAC,QAAa,EAAE,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;YACzF,uEAAuE;YACvE,QAAQ,CAAC,4BAA4B,GAAG,UAAU,CAAC;QACrD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { isServer, type ReactiveController, type ReactiveElement } from 'lit';\n\nimport {\n contextEvents,\n ColorContextController,\n type ColorContextOptions,\n} from './controller.js';\n\nimport { ContextRequestEvent } from '../event.js';\n\nimport styles from '@rhds/tokens/css/color-context-consumer.css.js';\n\n/**\n * A Color theme is a context-specific restriction on the available color palettes\n *\n * `ColorTheme` is associated with the `on` attribute and the `--context` css property\n */\nexport type ColorTheme = (\n | 'dark'\n | 'light'\n | 'saturated'\n);\n\ninterface ColorContextConsumerOptions extends ColorContextOptions {\n /** Private callback for instances where a consumer is also a provider. */\n callback?: (value: ColorTheme) => void;\n}\n\n/**\n * A color context consumer receives sets it's context property based on the context provided\n * by the closest color context provider.\n * The consumer has no direct access to the context, it must receive it from the provider.\n */\nexport class ColorContextConsumer<\n T extends ReactiveElement\n> extends ColorContextController implements ReactiveController {\n #propertyName: keyof T;\n\n get #propertyValue() {\n return this.host[this.#propertyName] as ColorTheme;\n }\n\n set #propertyValue(x) {\n this.host[this.#propertyName] = x as T[keyof T];\n this.host.requestUpdate();\n }\n\n get value() {\n return this.#propertyValue;\n }\n\n #dispose?: () => void;\n\n #override: ColorTheme | null = null;\n\n constructor(host: T, private options?: ColorContextConsumerOptions) {\n super(host, styles);\n this.#propertyName = options?.propertyName ?? 'on' as keyof T;\n }\n\n /** When a consumer connects, it requests colour context from the closest provider. */\n async hostConnected() {\n const { context } = ColorContextController;\n const event = new ContextRequestEvent(context, e => this.#contextCallback(e), true);\n this.#override = this.#propertyValue;\n contextEvents.set(this.host, event);\n await this.host.updateComplete;\n this.host.dispatchEvent(event);\n this.#override = null;\n }\n\n hostUpdated() {\n if (!isServer && !this.host.hasUpdated) {\n // This is definitely overkill, but it's the only\n // way we've found so far to work around lit-ssr hydration woes\n this.hostConnected();\n }\n }\n\n /** When a consumer disconnects, it's removed from the list of consumers. */\n hostDisconnected() {\n this.#dispose?.();\n this.#dispose = undefined;\n contextEvents.delete(this.host);\n }\n\n /**\n * Register the dispose callback for hosts that requested multiple updates,\n * then update the colour-context\n * @param value the color theme\n * @param dispose cleanup callback\n */\n #contextCallback(value: ColorTheme | null, dispose?: () => void) {\n // protect against changing providers\n if (dispose && dispose !== this.#dispose) {\n this.#dispose?.();\n this.#dispose = dispose;\n }\n this.update(value);\n }\n\n /**\n * Sets the `on` attribute on the host and any children that requested multiple updates\n * @param next the color theme\n */\n public update(next: ColorTheme | null) {\n const { last } = this;\n if (!this.#override && next !== last) {\n this.last = next;\n this.#propertyValue = (next ?? undefined) as ColorTheme;\n }\n this.options?.callback?.(this.#propertyValue);\n }\n}\n\n/**\n * Makes this element a color context consumer\n * @param options options\n */\nexport function colorContextConsumer<\n T extends ReactiveElement\n>(options?: ColorContextOptions) {\n return function(proto: T, _propertyName: string | keyof T) {\n const propertyName = _propertyName as keyof T;\n (proto.constructor as typeof ReactiveElement).addInitializer(instance => {\n const controller = new ColorContextConsumer(instance as T, { propertyName, ...options });\n // @ts-expect-error: this assignment is strictly for debugging purposes\n instance.__DEBUG_colorContextConsumer = controller;\n });\n };\n}\n"]} \ No newline at end of file +{"version":3,"file":"consumer.js","sourceRoot":"","sources":["consumer.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAiD,MAAM,KAAK,CAAC;AAE9E,OAAO,EACL,aAAa,EACb,sBAAsB,GAEvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,MAAM,MAAM,gDAAgD,CAAC;AAkBpE;;;;GAIG;AACH,MAAM,OAAO,oBAEX,SAAQ,sBAAyB;IAYjC,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,gFAAe,CAAC;IAC7B,CAAC;IAMD,YAAY,IAAO,EAAU,OAAwC;QACnE,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;;QADO,YAAO,GAAP,OAAO,CAAiC;QAnBrE,qDAAuB;QAevB,gDAAsB;QAEtB,yCAA+B,IAAI,EAAC;QAIlC,uBAAA,IAAI,sCAAiB,OAAO,EAAE,YAAY,IAAI,IAAe,MAAA,CAAC;IAChE,CAAC;IAED,sFAAsF;IACtF,KAAK,CAAC,aAAa;QACjB,MAAM,EAAE,OAAO,EAAE,GAAG,sBAAsB,CAAC;QAC3C,MAAM,KAAK,GAAG,IAAI,mBAAmB,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,uBAAA,IAAI,8EAAiB,MAArB,IAAI,EAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACpF,uBAAA,IAAI,kCAAa,uBAAA,IAAI,gFAAe,MAAA,CAAC;QACrC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACpC,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;QAC/B,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/B,uBAAA,IAAI,kCAAa,IAAI,MAAA,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACvC,iDAAiD;YACjD,+DAA+D;YAC/D,MAAM,QAAQ,GAAG,uBAAA,IAAI,gFAAe,CAAC;YAErC,IAAI,QAAQ,EAAE,CAAC;gBACb,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;gBAC/B,uBAAA,IAAI,mCAAkB,wBAAsC,+CAAA,CAAC;gBAC7D,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;gBAC/B,uBAAA,IAAI,mCAAkB,QAAsB,+CAAA,CAAC;YAC/C,CAAC;QACH,CAAC;IACH,CAAC;IAED,4EAA4E;IAC5E,gBAAgB;QACd,uBAAA,IAAI,qCAAS,EAAE,KAAf,IAAI,CAAa,CAAC;QAClB,uBAAA,IAAI,iCAAY,SAAS,MAAA,CAAC;QAC1B,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAiBD;;;OAGG;IACI,MAAM,CAAC,IAAuB;QACnC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,uBAAA,IAAI,sCAAU,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,uBAAA,IAAI,mCAAkB,CAAC,IAAI,IAAI,SAAS,CAAe,+CAAA,CAAC;QAC1D,CAAC;QACD,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,uBAAA,IAAI,gFAAe,CAAC,CAAC;IAChD,CAAC;CACF;;IAjFG,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAA,IAAI,0CAAc,CAAe,CAAC;AACrD,CAAC,6FAEkB,CAAC;IAClB,IAAI,CAAC,IAAI,CAAC,uBAAA,IAAI,0CAAc,CAAC,GAAG,CAAe,CAAC;IAChD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;AAC5B,CAAC,yFAsDgB,KAAwB,EAAE,OAAoB;IAC7D,qCAAqC;IACrC,IAAI,OAAO,IAAI,OAAO,KAAK,uBAAA,IAAI,qCAAS,EAAE,CAAC;QACzC,uBAAA,IAAI,qCAAS,EAAE,KAAf,IAAI,CAAa,CAAC;QAClB,uBAAA,IAAI,iCAAY,OAAO,MAAA,CAAC;IAC1B,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACrB,CAAC;AAgBH;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAElC,OAAgC;IAChC,OAAO,UAAS,KAAQ,EAAE,aAA+B;QACvD,MAAM,YAAY,GAAG,aAAwB,CAAC;QAC7C,KAAK,CAAC,WAAsC,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;YACtE,MAAM,UAAU,GAAG,IAAI,oBAAoB,CAAC,QAAa,EAAE,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;YACzF,uEAAuE;YACvE,QAAQ,CAAC,4BAA4B,GAAG,UAAU,CAAC;QACrD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { isServer, type ReactiveController, type ReactiveElement } from 'lit';\n\nimport {\n contextEvents,\n ColorContextController,\n type ColorContextOptions,\n} from './controller.js';\n\nimport { ContextRequestEvent } from '../event.js';\n\nimport styles from '@rhds/tokens/css/color-context-consumer.css.js';\n\n/**\n * A Color theme is a context-specific restriction on the available color palettes\n *\n * `ColorTheme` is associated with the `on` attribute and the `--context` css property\n */\nexport type ColorTheme = (\n | 'dark'\n | 'light'\n | 'saturated'\n);\n\ninterface ColorContextConsumerOptions extends ColorContextOptions {\n /** Private callback for instances where a consumer is also a provider. */\n callback?: (value: ColorTheme) => void;\n}\n\n/**\n * A color context consumer receives sets it's context property based on the context provided\n * by the closest color context provider.\n * The consumer has no direct access to the context, it must receive it from the provider.\n */\nexport class ColorContextConsumer<\n T extends ReactiveElement\n> extends ColorContextController implements ReactiveController {\n #propertyName: keyof T;\n\n get #propertyValue() {\n return this.host[this.#propertyName] as ColorTheme;\n }\n\n set #propertyValue(x) {\n this.host[this.#propertyName] = x as T[keyof T];\n this.host.requestUpdate();\n }\n\n get value() {\n return this.#propertyValue;\n }\n\n #dispose?: () => void;\n\n #override: ColorTheme | null = null;\n\n constructor(host: T, private options?: ColorContextConsumerOptions) {\n super(host, styles);\n this.#propertyName = options?.propertyName ?? 'on' as keyof T;\n }\n\n /** When a consumer connects, it requests colour context from the closest provider. */\n async hostConnected() {\n const { context } = ColorContextController;\n const event = new ContextRequestEvent(context, e => this.#contextCallback(e), true);\n this.#override = this.#propertyValue;\n contextEvents.set(this.host, event);\n await this.host.updateComplete;\n this.host.dispatchEvent(event);\n this.#override = null;\n }\n\n async hostUpdated() {\n if (!isServer && !this.host.hasUpdated) {\n // This is definitely overkill, but it's the only\n // way we've found so far to work around lit-ssr hydration woes\n const original = this.#propertyValue;\n\n if (original) {\n await this.host.updateComplete;\n this.#propertyValue = '__LIT_SSR_WORKAROUND__' as ColorTheme;\n await this.host.updateComplete;\n this.#propertyValue = original as ColorTheme;\n }\n }\n }\n\n /** When a consumer disconnects, it's removed from the list of consumers. */\n hostDisconnected() {\n this.#dispose?.();\n this.#dispose = undefined;\n contextEvents.delete(this.host);\n }\n\n /**\n * Register the dispose callback for hosts that requested multiple updates,\n * then update the colour-context\n * @param value the color theme\n * @param dispose cleanup callback\n */\n #contextCallback(value: ColorTheme | null, dispose?: () => void) {\n // protect against changing providers\n if (dispose && dispose !== this.#dispose) {\n this.#dispose?.();\n this.#dispose = dispose;\n }\n this.update(value);\n }\n\n /**\n * Sets the `on` attribute on the host and any children that requested multiple updates\n * @param next the color theme\n */\n public update(next: ColorTheme | null) {\n const { last } = this;\n if (!this.#override && next !== last) {\n this.last = next;\n this.#propertyValue = (next ?? undefined) as ColorTheme;\n }\n this.options?.callback?.(this.#propertyValue);\n }\n}\n\n/**\n * Makes this element a color context consumer\n * @param options options\n */\nexport function colorContextConsumer<\n T extends ReactiveElement\n>(options?: ColorContextOptions) {\n return function(proto: T, _propertyName: string | keyof T) {\n const propertyName = _propertyName as keyof T;\n (proto.constructor as typeof ReactiveElement).addInitializer(instance => {\n const controller = new ColorContextConsumer(instance as T, { propertyName, ...options });\n // @ts-expect-error: this assignment is strictly for debugging purposes\n instance.__DEBUG_colorContextConsumer = controller;\n });\n };\n}\n"]} \ No newline at end of file diff --git a/assets/packages/@rhds/elements/lib/context/color/provider.js b/assets/packages/@rhds/elements/lib/context/color/provider.js index c2ae2b9d13..708dd5687b 100644 --- a/assets/packages/@rhds/elements/lib/context/color/provider.js +++ b/assets/packages/@rhds/elements/lib/context/color/provider.js @@ -52,10 +52,10 @@ export class ColorContextProvider extends ColorContextController { async hostConnected() { this.host.addEventListener('context-request', e => __classPrivateFieldGet(this, _ColorContextProvider_instances, "m", _ColorContextProvider_onChildContextRequestEvent).call(this, e)); __classPrivateFieldGet(this, _ColorContextProvider_mo, "f").observe(this.host, { attributes: true, attributeFilter: [__classPrivateFieldGet(this, _ColorContextProvider_attribute, "f")] }); + await this.host.updateComplete; for (const [host, fired] of contextEvents) { host.dispatchEvent(fired); } - await this.host.updateComplete; this.update(); return true; } diff --git a/assets/packages/@rhds/elements/lib/context/color/provider.js.map b/assets/packages/@rhds/elements/lib/context/color/provider.js.map index 8baec8f82f..8bbba8f8ea 100644 --- a/assets/packages/@rhds/elements/lib/context/color/provider.js.map +++ b/assets/packages/@rhds/elements/lib/context/color/provider.js.map @@ -1 +1 @@ -{"version":3,"file":"provider.js","sourceRoot":"","sources":["provider.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAiD,MAAM,KAAK,CAAC;AAG9E,OAAO,EACL,aAAa,EACb,sBAAsB,GAEvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,oBAAoB,EAAmB,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAEpE,OAAO,MAAM,MAAM,gDAAgD,CAAC;AA2BpE;;;GAGG;AACH,MAAM,OAAO,oBAEX,SAAQ,sBAAyB;IA+BjC,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,wEAAO,CAAC;IACrB,CAAC;IAOD,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,wEAAO,IAAI,uBAAA,IAAI,sCAAU,CAAC,KAAK,CAAC;IAC7C,CAAC;IAED,YAAY,IAAO,EAAE,OAAwC;QAC3D,MAAM,EAAE,SAAS,GAAG,eAAe,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;QACtD,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;;QApCtB,kDAAmB;QAEnB,gEAAgE;QAChE,0CAAa,IAAI,GAAG,EAAsC,EAAC;QAE3D,uFAAuF;QACvF,mCAAM,IAAI,gBAAgB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAC;QAEhD;;;WAGG;QACH,2DAA2D;QAC3D,8CAA4B;QAE5B,4CAAe,KAAK,EAAC;QAErB,+CAAgB;QAEhB,iDAAmC;QAkBjC,uBAAA,IAAI,kCAAa,IAAI,oBAAoB,CAAC,IAAI,EAAE;YAC9C,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;SACtC,CAAC,MAAA,CAAC;QACH,uBAAA,IAAI,gCAAW,IAAI,MAAM,CAAC,IAAI,CAAC,MAAA,CAAC;QAChC,uBAAA,IAAI,+BAAU,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAA,CAAC;QAC5C,uBAAA,IAAI,mCAAc,SAAS,MAAA,CAAC;QAC5B,IAAI,uBAAA,IAAI,uCAAW,KAAK,eAAe,EAAE,CAAC;YACxC,uBAAA,IAAI,oCAAQ,CAAC,IAAI,CAAC,sEAAsE,CAAC,CAAC;QAC5F,CAAC;IACH,CAAC;IAED;;;;SAIK;IACL,KAAK,CAAC,aAAa;QACjB,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,uBAAA,IAAI,yFAA4B,MAAhC,IAAI,EAA6B,CAAC,CAAC,CAAC,CAAC;QACxF,uBAAA,IAAI,gCAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,uBAAA,IAAI,uCAAW,CAAC,EAAE,CAAC,CAAC;QACtF,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,aAAa,EAAE,CAAC;YAC1C,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;QACD,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,uBAAA,IAAI,yCAAa,EAAE,CAAC;YACvB,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,CAAC;QACD,wIAAsB,MAAM,IAAI,CAAC,aAAa,EAAE,MAAA,CAAC;QACjD,IAAI,uBAAA,IAAI,wEAAO,IAAI,IAAI,CAAC,KAAK,KAAK,uBAAA,IAAI,sCAAU,CAAC,KAAK,EAAE,CAAC;YACvD,uBAAA,IAAI,sCAAU,CAAC,MAAM,CAAC,uBAAA,IAAI,wEAAO,CAAC,CAAC;YACnC,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,CAAC;QACD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,iDAAiD;YACjD,+DAA+D;YAC/D,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,CAAC;IACH,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,uBAAA,IAAI,uCAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,uBAAA,IAAI,uCAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,uBAAA,IAAI,gCAAI,CAAC,UAAU,EAAE,CAAC;IACxB,CAAC;IAkCD;;;OAGG;IACa,KAAK,CAAC,MAAM,CAAC,KAAkB;QAC7C,KAAK,MAAM,EAAE,IAAI,uBAAA,IAAI,uCAAW,EAAE,CAAC;YACjC,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;;IAtGC,OAAO,EAAoB;SACtB,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,uBAAA,IAAI,uCAAW,CAAC,IAAI,EAAE,CAAC,CAAC;AACnE,CAAC,iGAiEC,KAA0C;IAE1C,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI;WAC1C,KAAK,CAAC,OAAO,KAAK,sBAAsB,CAAC,OAAO,CAAC;AACxD,CAAC;AAED;;;;;GAKG;AACH,KAAK,2DAA6B,KAA0C;IAC1E,uDAAuD;IACvD,IAAI,uBAAA,IAAI,kFAAqB,MAAzB,IAAI,EAAsB,KAAK,CAAC,EAAE,CAAC;QACrC,KAAK,CAAC,eAAe,EAAE,CAAC;QAExB,4DAA4D;QAC5D,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAE3B,sDAAsD;QACtD,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACpB,uBAAA,IAAI,uCAAW,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;AACH,CAAC;AA/HM,6BAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC;IACvC,OAAO,EAAE,MAAe;IACxB,MAAM,EAAE,MAAe;IACvB,IAAI,EAAE,MAAe;IACrB,KAAK,EAAE,OAAgB;IACvB,OAAO,EAAE,OAAgB;IACzB,QAAQ,EAAE,OAAgB;CAC3B,CAAC,CAAC,AAPY,CAOX;AAqIN;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAA4B,OAAgC;IAC9F,OAAO,UAAS,KAAQ,EAAE,aAAqB;QAC7C,MAAM,YAAY,GAAG,aAAwB,CAAC;QAC9C,MAAM,KAAK,GAAI,KAAK,CAAC,WAAsC,CAAC;QAC5D,MAAM,QAAQ,GAAG,KAAK,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,OAAO,QAAQ,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC3F,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;YAC9B,MAAM,UAAU,GAAG,IAAI,oBAAoB,CAAC,QAAa,EAAE;gBACzD,YAAY;gBACZ,SAAS;gBACT,GAAG,OAAO;aACX,CAAC,CAAC;YACH,uEAAuE;YACvE,QAAQ,CAAC,4BAA4B,GAAG,UAAU,CAAC;QACrD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { isServer, type ReactiveController, type ReactiveElement } from 'lit';\nimport type { ContextCallback, ContextRequestEvent, UnknownContext } from '../event.js';\n\nimport {\n contextEvents,\n ColorContextController,\n type ColorContextOptions,\n} from './controller.js';\n\nimport { ColorContextConsumer, type ColorTheme } from './consumer.js';\n\nimport { Logger } from '@patternfly/pfe-core/controllers/logger.js';\n\nimport styles from '@rhds/tokens/css/color-context-provider.css.js';\n\n/**\n * A `ColorPalette` is a collection of specific color values\n * Choosing a palette sets both color properties and, if the component is a context provider,\n * implies a color theme for descendents.\n *\n * `ColorPalette` is associated with the `color-palette` attribute\n */\nexport type ColorPalette = (\n | 'base'\n | 'accent'\n | 'complement'\n | 'light'\n | 'lighter'\n | 'lightest'\n | 'dark'\n | 'darker'\n | 'darkest'\n);\n\nexport interface ColorContextProviderOptions\n extends ColorContextOptions {\n /** Attribute to set context. Providers only */\n attribute?: string;\n}\n\n/**\n * `ColorContextProvider` is responsible to derive a context value from CSS and provide it to its\n * descendents.\n */\nexport class ColorContextProvider<\n T extends ReactiveElement\n> extends ColorContextController implements ReactiveController {\n static contexts = new Map(Object.entries({\n darkest: 'dark' as const,\n darker: 'dark' as const,\n dark: 'dark' as const,\n light: 'light' as const,\n lighter: 'light' as const,\n lightest: 'light' as const,\n }));\n\n #attribute: string;\n\n /** Cache of context callbacks. Call each to update consumers */\n #callbacks = new Set>();\n\n /** Mutation observer which updates consumers when `color-palette` attribute change. */\n #mo = new MutationObserver(() => this.update());\n\n /**\n * Cached (live) computed style declaration\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle\n */\n // eslint-disable-next-line no-unused-private-class-members\n #style: CSSStyleDeclaration;\n\n #initialized = false;\n\n #logger: Logger;\n\n #consumer: ColorContextConsumer;\n\n get local() {\n return this.#local;\n }\n\n get #local() {\n return ColorContextProvider\n .contexts.get(this.host.getAttribute(this.#attribute) ?? '');\n }\n\n get value(): ColorTheme {\n return this.#local ?? this.#consumer.value;\n }\n\n constructor(host: T, options?: ColorContextProviderOptions) {\n const { attribute = 'color-palette' } = options ?? {};\n super(host, styles);\n this.#consumer = new ColorContextConsumer(host, {\n callback: value => this.update(value),\n });\n this.#logger = new Logger(host);\n this.#style = window.getComputedStyle(host);\n this.#attribute = attribute;\n if (this.#attribute !== 'color-palette') {\n this.#logger.warn('color context currently supports the `color-palette` attribute only.');\n }\n }\n\n /**\n * When a context provider connects, it listens for context-request events\n * it also fires all previously fired context-request events from their hosts,\n * in case this context provider upgraded after and is closer to a given consumer.\n */\n async hostConnected() {\n this.host.addEventListener('context-request', e => this.#onChildContextRequestEvent(e));\n this.#mo.observe(this.host, { attributes: true, attributeFilter: [this.#attribute] });\n for (const [host, fired] of contextEvents) {\n host.dispatchEvent(fired);\n }\n await this.host.updateComplete;\n this.update();\n return true;\n }\n\n async hostUpdated() {\n if (!this.#initialized) {\n this.hostConnected();\n }\n this.#initialized ||= await this.hostConnected();\n if (this.#local && this.value !== this.#consumer.value) {\n this.#consumer.update(this.#local);\n this.update();\n }\n if (!isServer) {\n // This is definitely overkill, but it's the only\n // way we've found so far to work around lit-ssr hydration woes\n this.update();\n }\n }\n\n /**\n * When a context provider disconnects, it disconnects its mutation observer\n */\n hostDisconnected() {\n this.#callbacks.forEach(x => this.#callbacks.delete(x));\n this.#mo.disconnect();\n }\n\n /**\n * Was the context event fired requesting our colour-context context?\n * @param event some event\n */\n #isColorContextEvent(\n event: ContextRequestEvent\n ): event is ContextRequestEvent {\n return event.composedPath().at(0) !== this.host\n && event.context === ColorContextController.context;\n }\n\n /**\n * Provider part of context API\n * When a child connects, claim its context-request event\n * and add its callback to the Set of children if it requests multiple updates\n * @param event context-request event\n */\n async #onChildContextRequestEvent(event: ContextRequestEvent) {\n // only handle ContextEvents relevant to colour context\n if (this.#isColorContextEvent(event)) {\n event.stopPropagation();\n\n // Run the callback to initialize the child's colour-context\n event.callback(this.value);\n\n // Cache the callback for future updates, if requested\n if (event.subscribe) {\n this.#callbacks.add(event.callback);\n }\n }\n }\n\n /**\n * Calls the context callback for all consumers\n * @param [force] override theme\n */\n public override async update(force?: ColorTheme) {\n for (const cb of this.#callbacks) {\n cb(force ?? this.value);\n }\n }\n}\n\n/**\n * Makes this element a color context provider which updates its consumers when the decorated field changes\n * @param options options\n */\nexport function colorContextProvider(options?: ColorContextOptions) {\n return function(proto: T, _propertyName: string) {\n const propertyName = _propertyName as keyof T;\n const klass = (proto.constructor as typeof ReactiveElement);\n const propOpts = klass.getPropertyOptions(_propertyName);\n const attribute = typeof propOpts.attribute === 'boolean' ? undefined : propOpts.attribute;\n klass.addInitializer(instance => {\n const controller = new ColorContextProvider(instance as T, {\n propertyName,\n attribute,\n ...options,\n });\n // @ts-expect-error: this assignment is strictly for debugging purposes\n instance.__DEBUG_colorContextProvider = controller;\n });\n };\n}\n"]} \ No newline at end of file +{"version":3,"file":"provider.js","sourceRoot":"","sources":["provider.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAiD,MAAM,KAAK,CAAC;AAG9E,OAAO,EACL,aAAa,EACb,sBAAsB,GAEvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,oBAAoB,EAAmB,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAEpE,OAAO,MAAM,MAAM,gDAAgD,CAAC;AA2BpE;;;GAGG;AACH,MAAM,OAAO,oBAEX,SAAQ,sBAAyB;IA+BjC,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,wEAAO,CAAC;IACrB,CAAC;IAOD,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,wEAAO,IAAI,uBAAA,IAAI,sCAAU,CAAC,KAAK,CAAC;IAC7C,CAAC;IAED,YAAY,IAAO,EAAE,OAAwC;QAC3D,MAAM,EAAE,SAAS,GAAG,eAAe,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;QACtD,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;;QApCtB,kDAAmB;QAEnB,gEAAgE;QAChE,0CAAa,IAAI,GAAG,EAAsC,EAAC;QAE3D,uFAAuF;QACvF,mCAAM,IAAI,gBAAgB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAC;QAEhD;;;WAGG;QACH,2DAA2D;QAC3D,8CAA4B;QAE5B,4CAAe,KAAK,EAAC;QAErB,+CAAgB;QAEhB,iDAAmC;QAkBjC,uBAAA,IAAI,kCAAa,IAAI,oBAAoB,CAAC,IAAI,EAAE;YAC9C,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;SACtC,CAAC,MAAA,CAAC;QACH,uBAAA,IAAI,gCAAW,IAAI,MAAM,CAAC,IAAI,CAAC,MAAA,CAAC;QAChC,uBAAA,IAAI,+BAAU,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAA,CAAC;QAC5C,uBAAA,IAAI,mCAAc,SAAS,MAAA,CAAC;QAC5B,IAAI,uBAAA,IAAI,uCAAW,KAAK,eAAe,EAAE,CAAC;YACxC,uBAAA,IAAI,oCAAQ,CAAC,IAAI,CAAC,sEAAsE,CAAC,CAAC;QAC5F,CAAC;IACH,CAAC;IAED;;;;SAIK;IACL,KAAK,CAAC,aAAa;QACjB,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,uBAAA,IAAI,yFAA4B,MAAhC,IAAI,EAA6B,CAAC,CAAC,CAAC,CAAC;QACxF,uBAAA,IAAI,gCAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,uBAAA,IAAI,uCAAW,CAAC,EAAE,CAAC,CAAC;QACtF,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;QAC/B,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,aAAa,EAAE,CAAC;YAC1C,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;QACD,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,uBAAA,IAAI,yCAAa,EAAE,CAAC;YACvB,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,CAAC;QACD,wIAAsB,MAAM,IAAI,CAAC,aAAa,EAAE,MAAA,CAAC;QACjD,IAAI,uBAAA,IAAI,wEAAO,IAAI,IAAI,CAAC,KAAK,KAAK,uBAAA,IAAI,sCAAU,CAAC,KAAK,EAAE,CAAC;YACvD,uBAAA,IAAI,sCAAU,CAAC,MAAM,CAAC,uBAAA,IAAI,wEAAO,CAAC,CAAC;YACnC,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,CAAC;QACD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,iDAAiD;YACjD,+DAA+D;YAC/D,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,CAAC;IACH,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,uBAAA,IAAI,uCAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,uBAAA,IAAI,uCAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,uBAAA,IAAI,gCAAI,CAAC,UAAU,EAAE,CAAC;IACxB,CAAC;IAkCD;;;OAGG;IACa,KAAK,CAAC,MAAM,CAAC,KAAkB;QAC7C,KAAK,MAAM,EAAE,IAAI,uBAAA,IAAI,uCAAW,EAAE,CAAC;YACjC,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;;IAtGC,OAAO,EAAoB;SACtB,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,uBAAA,IAAI,uCAAW,CAAC,IAAI,EAAE,CAAC,CAAC;AACnE,CAAC,iGAiEC,KAA0C;IAE1C,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI;WAC1C,KAAK,CAAC,OAAO,KAAK,sBAAsB,CAAC,OAAO,CAAC;AACxD,CAAC;AAED;;;;;GAKG;AACH,KAAK,2DAA6B,KAA0C;IAC1E,uDAAuD;IACvD,IAAI,uBAAA,IAAI,kFAAqB,MAAzB,IAAI,EAAsB,KAAK,CAAC,EAAE,CAAC;QACrC,KAAK,CAAC,eAAe,EAAE,CAAC;QAExB,4DAA4D;QAC5D,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAE3B,sDAAsD;QACtD,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACpB,uBAAA,IAAI,uCAAW,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;AACH,CAAC;AA/HM,6BAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC;IACvC,OAAO,EAAE,MAAe;IACxB,MAAM,EAAE,MAAe;IACvB,IAAI,EAAE,MAAe;IACrB,KAAK,EAAE,OAAgB;IACvB,OAAO,EAAE,OAAgB;IACzB,QAAQ,EAAE,OAAgB;CAC3B,CAAC,CAAC,AAPY,CAOX;AAqIN;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAA4B,OAAgC;IAC9F,OAAO,UAAS,KAAQ,EAAE,aAAqB;QAC7C,MAAM,YAAY,GAAG,aAAwB,CAAC;QAC9C,MAAM,KAAK,GAAI,KAAK,CAAC,WAAsC,CAAC;QAC5D,MAAM,QAAQ,GAAG,KAAK,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,OAAO,QAAQ,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC3F,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;YAC9B,MAAM,UAAU,GAAG,IAAI,oBAAoB,CAAC,QAAa,EAAE;gBACzD,YAAY;gBACZ,SAAS;gBACT,GAAG,OAAO;aACX,CAAC,CAAC;YACH,uEAAuE;YACvE,QAAQ,CAAC,4BAA4B,GAAG,UAAU,CAAC;QACrD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { isServer, type ReactiveController, type ReactiveElement } from 'lit';\nimport type { ContextCallback, ContextRequestEvent, UnknownContext } from '../event.js';\n\nimport {\n contextEvents,\n ColorContextController,\n type ColorContextOptions,\n} from './controller.js';\n\nimport { ColorContextConsumer, type ColorTheme } from './consumer.js';\n\nimport { Logger } from '@patternfly/pfe-core/controllers/logger.js';\n\nimport styles from '@rhds/tokens/css/color-context-provider.css.js';\n\n/**\n * A `ColorPalette` is a collection of specific color values\n * Choosing a palette sets both color properties and, if the component is a context provider,\n * implies a color theme for descendents.\n *\n * `ColorPalette` is associated with the `color-palette` attribute\n */\nexport type ColorPalette = (\n | 'base'\n | 'accent'\n | 'complement'\n | 'light'\n | 'lighter'\n | 'lightest'\n | 'dark'\n | 'darker'\n | 'darkest'\n);\n\nexport interface ColorContextProviderOptions\n extends ColorContextOptions {\n /** Attribute to set context. Providers only */\n attribute?: string;\n}\n\n/**\n * `ColorContextProvider` is responsible to derive a context value from CSS and provide it to its\n * descendents.\n */\nexport class ColorContextProvider<\n T extends ReactiveElement\n> extends ColorContextController implements ReactiveController {\n static contexts = new Map(Object.entries({\n darkest: 'dark' as const,\n darker: 'dark' as const,\n dark: 'dark' as const,\n light: 'light' as const,\n lighter: 'light' as const,\n lightest: 'light' as const,\n }));\n\n #attribute: string;\n\n /** Cache of context callbacks. Call each to update consumers */\n #callbacks = new Set>();\n\n /** Mutation observer which updates consumers when `color-palette` attribute change. */\n #mo = new MutationObserver(() => this.update());\n\n /**\n * Cached (live) computed style declaration\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle\n */\n // eslint-disable-next-line no-unused-private-class-members\n #style: CSSStyleDeclaration;\n\n #initialized = false;\n\n #logger: Logger;\n\n #consumer: ColorContextConsumer;\n\n get local() {\n return this.#local;\n }\n\n get #local() {\n return ColorContextProvider\n .contexts.get(this.host.getAttribute(this.#attribute) ?? '');\n }\n\n get value(): ColorTheme {\n return this.#local ?? this.#consumer.value;\n }\n\n constructor(host: T, options?: ColorContextProviderOptions) {\n const { attribute = 'color-palette' } = options ?? {};\n super(host, styles);\n this.#consumer = new ColorContextConsumer(host, {\n callback: value => this.update(value),\n });\n this.#logger = new Logger(host);\n this.#style = window.getComputedStyle(host);\n this.#attribute = attribute;\n if (this.#attribute !== 'color-palette') {\n this.#logger.warn('color context currently supports the `color-palette` attribute only.');\n }\n }\n\n /**\n * When a context provider connects, it listens for context-request events\n * it also fires all previously fired context-request events from their hosts,\n * in case this context provider upgraded after and is closer to a given consumer.\n */\n async hostConnected() {\n this.host.addEventListener('context-request', e => this.#onChildContextRequestEvent(e));\n this.#mo.observe(this.host, { attributes: true, attributeFilter: [this.#attribute] });\n await this.host.updateComplete;\n for (const [host, fired] of contextEvents) {\n host.dispatchEvent(fired);\n }\n this.update();\n return true;\n }\n\n async hostUpdated() {\n if (!this.#initialized) {\n this.hostConnected();\n }\n this.#initialized ||= await this.hostConnected();\n if (this.#local && this.value !== this.#consumer.value) {\n this.#consumer.update(this.#local);\n this.update();\n }\n if (!isServer) {\n // This is definitely overkill, but it's the only\n // way we've found so far to work around lit-ssr hydration woes\n this.update();\n }\n }\n\n /**\n * When a context provider disconnects, it disconnects its mutation observer\n */\n hostDisconnected() {\n this.#callbacks.forEach(x => this.#callbacks.delete(x));\n this.#mo.disconnect();\n }\n\n /**\n * Was the context event fired requesting our colour-context context?\n * @param event some event\n */\n #isColorContextEvent(\n event: ContextRequestEvent\n ): event is ContextRequestEvent {\n return event.composedPath().at(0) !== this.host\n && event.context === ColorContextController.context;\n }\n\n /**\n * Provider part of context API\n * When a child connects, claim its context-request event\n * and add its callback to the Set of children if it requests multiple updates\n * @param event context-request event\n */\n async #onChildContextRequestEvent(event: ContextRequestEvent) {\n // only handle ContextEvents relevant to colour context\n if (this.#isColorContextEvent(event)) {\n event.stopPropagation();\n\n // Run the callback to initialize the child's colour-context\n event.callback(this.value);\n\n // Cache the callback for future updates, if requested\n if (event.subscribe) {\n this.#callbacks.add(event.callback);\n }\n }\n }\n\n /**\n * Calls the context callback for all consumers\n * @param [force] override theme\n */\n public override async update(force?: ColorTheme) {\n for (const cb of this.#callbacks) {\n cb(force ?? this.value);\n }\n }\n}\n\n/**\n * Makes this element a color context provider which updates its consumers when the decorated field changes\n * @param options options\n */\nexport function colorContextProvider(options?: ColorContextOptions) {\n return function(proto: T, _propertyName: string) {\n const propertyName = _propertyName as keyof T;\n const klass = (proto.constructor as typeof ReactiveElement);\n const propOpts = klass.getPropertyOptions(_propertyName);\n const attribute = typeof propOpts.attribute === 'boolean' ? undefined : propOpts.attribute;\n klass.addInitializer(instance => {\n const controller = new ColorContextProvider(instance as T, {\n propertyName,\n attribute,\n ...options,\n });\n // @ts-expect-error: this assignment is strictly for debugging purposes\n instance.__DEBUG_colorContextProvider = controller;\n });\n };\n}\n"]} \ No newline at end of file diff --git a/elements/accordion/code/index.html b/elements/accordion/code/index.html index eb26414880..29c23c9060 100644 --- a/elements/accordion/code/index.html +++ b/elements/accordion/code/index.html @@ -9637,7 +9637,6 @@

rh-accordion

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9682,12 +9681,6 @@

rh-accordion

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9695,6 +9688,11 @@

rh-accordion

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9705,36 +9703,60 @@

rh-accordion

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9747,54 +9769,26 @@

rh-accordion

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9802,23 +9796,21 @@

rh-accordion

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -10019,7 +10011,6 @@

rh-accordion

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10064,12 +10055,6 @@

rh-accordion

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10077,6 +10062,11 @@

rh-accordion

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10087,36 +10077,60 @@

rh-accordion

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10129,54 +10143,26 @@

rh-accordion

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10184,23 +10170,21 @@

rh-accordion

flex-direction: row; } } - -
- -
+ + Attributes 5 @@ -10440,7 +10424,6 @@

rh-accordion

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10485,12 +10468,6 @@

rh-accordion

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10498,6 +10475,11 @@

rh-accordion

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10508,36 +10490,60 @@

rh-accordion

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10550,54 +10556,26 @@

rh-accordion

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10605,23 +10583,21 @@

rh-accordion

flex-direction: row; } } - -
- -
+ + Methods 6 @@ -10847,7 +10823,6 @@

rh-accordion

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10892,12 +10867,6 @@

rh-accordion

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10905,6 +10874,11 @@

rh-accordion

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10915,36 +10889,60 @@

rh-accordion

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10957,54 +10955,26 @@

rh-accordion

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11012,23 +10982,21 @@

rh-accordion

flex-direction: row; } } - -
- -
+ + Events 3 @@ -11238,7 +11206,6 @@

rh-accordion

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11283,12 +11250,6 @@

rh-accordion

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11296,6 +11257,11 @@

rh-accordion

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11306,36 +11272,60 @@

rh-accordion

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11348,54 +11338,26 @@

rh-accordion

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11403,23 +11365,21 @@

rh-accordion

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11525,7 +11485,6 @@

rh-accordion

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11570,12 +11529,6 @@

rh-accordion

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11583,6 +11536,11 @@

rh-accordion

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11593,36 +11551,60 @@

rh-accordion

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11635,54 +11617,26 @@

rh-accordion

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11690,23 +11644,21 @@

rh-accordion

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11812,7 +11764,6 @@

rh-accordion

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11857,12 +11808,6 @@

rh-accordion

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11870,6 +11815,11 @@

rh-accordion

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11880,36 +11830,60 @@

rh-accordion

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11922,54 +11896,26 @@

rh-accordion

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11977,23 +11923,21 @@

rh-accordion

flex-direction: row; } } - -
- -
+ + Design Tokens 4 @@ -14073,7 +14017,6 @@

rh-accordion-header

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -14118,12 +14061,6 @@

rh-accordion-header

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -14131,6 +14068,11 @@

rh-accordion-header

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -14141,36 +14083,60 @@

rh-accordion-header

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -14183,54 +14149,26 @@

rh-accordion-header

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -14238,23 +14176,21 @@

rh-accordion-header

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -14459,7 +14395,6 @@

rh-accordion-header

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -14504,12 +14439,6 @@

rh-accordion-header

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -14517,6 +14446,11 @@

rh-accordion-header

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -14527,36 +14461,60 @@

rh-accordion-header

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -14569,54 +14527,26 @@

rh-accordion-header

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -14624,23 +14554,21 @@

rh-accordion-header

flex-direction: row; } } - -
- -
+ + Attributes 1 @@ -14848,7 +14776,6 @@

rh-accordion-header

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -14893,12 +14820,6 @@

rh-accordion-header

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -14906,6 +14827,11 @@

rh-accordion-header

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -14916,36 +14842,60 @@

rh-accordion-header

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -14958,54 +14908,26 @@

rh-accordion-header

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -15013,23 +14935,21 @@

rh-accordion-header

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -15135,7 +15055,6 @@

rh-accordion-header

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -15180,12 +15099,6 @@

rh-accordion-header

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -15193,6 +15106,11 @@

rh-accordion-header

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -15203,36 +15121,60 @@

rh-accordion-header

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -15245,54 +15187,26 @@

rh-accordion-header

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -15300,23 +15214,21 @@

rh-accordion-header

flex-direction: row; } } - -
- -
+ + Events 1 @@ -15518,7 +15430,6 @@

rh-accordion-header

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -15563,12 +15474,6 @@

rh-accordion-header

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -15576,6 +15481,11 @@

rh-accordion-header

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -15586,36 +15496,60 @@

rh-accordion-header

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -15628,54 +15562,26 @@

rh-accordion-header

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} - -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -15683,23 +15589,21 @@

rh-accordion-header

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 2 @@ -15905,7 +15809,6 @@

rh-accordion-header

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -15950,12 +15853,6 @@

rh-accordion-header

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -15963,6 +15860,11 @@

rh-accordion-header

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -15973,36 +15875,60 @@

rh-accordion-header

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -16015,54 +15941,26 @@

rh-accordion-header

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -16070,23 +15968,21 @@

rh-accordion-header

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -16192,7 +16088,6 @@

rh-accordion-header

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -16237,12 +16132,6 @@

rh-accordion-header

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -16250,6 +16139,11 @@

rh-accordion-header

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -16260,36 +16154,60 @@

rh-accordion-header

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -16302,54 +16220,26 @@

rh-accordion-header

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -16357,25 +16247,23 @@

rh-accordion-header

flex-direction: row; } } - -
- -
+ + Design Tokens - 15 + 18 - - + + Full CSS Variable + + + + + Permalink to this token + + + + + + + + + --rh-space-md + + + +
+ + + Full CSS Variable + + + + + Permalink to this token + + +
+ + + + + + --rh-space-xl + + + +
+ + + Full CSS Variable + + + + + Permalink to this token + + +
+ + + + + + +
+ + + +

rh-accordion-panel

+ +

Accordion Panel

-#button:hover, -#button:active, -#button:focus { + + + Slots 1 @@ -23905,7 +25168,6 @@

rh-accordion-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -23950,12 +25212,6 @@

rh-accordion-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -23963,6 +25219,11 @@

rh-accordion-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -23973,36 +25234,60 @@

rh-accordion-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -24015,54 +25300,26 @@

rh-accordion-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -24070,23 +25327,21 @@

rh-accordion-panel

flex-direction: row; } } - -
- -
+ + Attributes 2 @@ -24301,7 +25556,6 @@

rh-accordion-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -24346,12 +25600,6 @@

rh-accordion-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -24359,6 +25607,11 @@

rh-accordion-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -24369,36 +25622,60 @@

rh-accordion-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -24411,54 +25688,26 @@

rh-accordion-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -24466,23 +25715,21 @@

rh-accordion-panel

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -24588,7 +25835,6 @@

rh-accordion-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -24633,12 +25879,6 @@

rh-accordion-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -24646,6 +25886,11 @@

rh-accordion-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -24656,36 +25901,60 @@

rh-accordion-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -24698,54 +25967,26 @@

rh-accordion-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -24753,23 +25994,21 @@

rh-accordion-panel

flex-direction: row; } } - -
- -
+ + Events 0 @@ -24875,7 +26114,6 @@

rh-accordion-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -24917,13 +26155,7 @@

rh-accordion-panel

:host(.animating) #button, :host([expanded]) #button { border-inline-end-color: var(--rh-color-border-subtle); - border-inline-start-color: var(--rh-color-border-subtle); -} - -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); + border-inline-start-color: var(--rh-color-border-subtle); } #icon { @@ -24933,6 +26165,11 @@

rh-accordion-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -24943,36 +26180,60 @@

rh-accordion-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -24985,54 +26246,26 @@

rh-accordion-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -25040,23 +26273,21 @@

rh-accordion-panel

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -25162,7 +26393,6 @@

rh-accordion-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -25207,12 +26437,6 @@

rh-accordion-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -25220,6 +26444,11 @@

rh-accordion-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -25230,36 +26459,60 @@

rh-accordion-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -25272,54 +26525,26 @@

rh-accordion-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -25327,23 +26552,21 @@

rh-accordion-panel

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -25449,7 +26672,6 @@

rh-accordion-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -25494,12 +26716,6 @@

rh-accordion-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -25507,6 +26723,11 @@

rh-accordion-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -25517,36 +26738,60 @@

rh-accordion-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -25559,54 +26804,26 @@

rh-accordion-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -25614,23 +26831,21 @@

rh-accordion-panel

flex-direction: row; } } - -
- -
+ + Design Tokens 12
diff --git a/elements/accordion/demo/accents-bottom/index.html b/elements/accordion/demo/accents-bottom/index.html index 1de087de3c..db0cbce11b 100644 --- a/elements/accordion/demo/accents-bottom/index.html +++ b/elements/accordion/demo/accents-bottom/index.html @@ -120,7 +120,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -165,12 +164,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -178,6 +171,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -188,36 +186,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -230,54 +252,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -285,23 +279,21 @@ flex-direction: row; } } - -
- -
+ + Item One Item Two Item Three Item One Item Two Item Three Item One Forced Palette Item Two Item Two Item Three Item One Item Two Item Three Item One Item Two Item Three Item One Item Two Item Three Item One Item One Item Two Item Two Item Three תוכנה חופשית תוכנה חופשית תוכנה חופשית תוכנה חופשית תוכנה חופשית Item One Item Two Item Three Slots 3 @@ -10020,7 +10012,6 @@

rh-alert

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10065,12 +10056,6 @@

rh-alert

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10078,6 +10063,11 @@

rh-alert

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10088,36 +10078,60 @@

rh-alert

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10130,54 +10144,26 @@

rh-alert

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10185,23 +10171,21 @@

rh-alert

flex-direction: row; } } - -
- -
+ + Attributes 3 @@ -10438,7 +10422,6 @@

rh-alert

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10483,12 +10466,6 @@

rh-alert

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10496,6 +10473,11 @@

rh-alert

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10506,36 +10488,60 @@

rh-alert

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10548,54 +10554,26 @@

rh-alert

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10603,23 +10581,21 @@

rh-alert

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10725,7 +10701,6 @@

rh-alert

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10770,12 +10745,6 @@

rh-alert

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10783,6 +10752,11 @@

rh-alert

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10793,36 +10767,60 @@

rh-alert

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10835,54 +10833,26 @@

rh-alert

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10890,23 +10860,21 @@

rh-alert

flex-direction: row; } } - -
- -
+ + Events 1 @@ -11108,7 +11076,6 @@

rh-alert

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11153,12 +11120,6 @@

rh-alert

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11166,6 +11127,11 @@

rh-alert

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11176,36 +11142,60 @@

rh-alert

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11218,54 +11208,26 @@

rh-alert

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11273,23 +11235,21 @@

rh-alert

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11395,7 +11355,6 @@

rh-alert

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11440,12 +11399,6 @@

rh-alert

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11453,6 +11406,11 @@

rh-alert

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11463,36 +11421,60 @@

rh-alert

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11505,54 +11487,26 @@

rh-alert

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11560,23 +11514,21 @@

rh-alert

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11682,7 +11634,6 @@

rh-alert

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11727,12 +11678,6 @@

rh-alert

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11740,6 +11685,11 @@

rh-alert

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11750,36 +11700,60 @@

rh-alert

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11792,54 +11766,26 @@

rh-alert

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11847,23 +11793,21 @@

rh-alert

flex-direction: row; } } - -
- -
+ + Design Tokens 37 diff --git a/elements/audio-player/code/index.html b/elements/audio-player/code/index.html index db4d94354a..0d93422264 100644 --- a/elements/audio-player/code/index.html +++ b/elements/audio-player/code/index.html @@ -11103,7 +11103,6 @@

rh-audio-player

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11148,12 +11147,6 @@

rh-audio-player

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11161,6 +11154,11 @@

rh-audio-player

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11171,36 +11169,60 @@

rh-audio-player

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11213,54 +11235,26 @@

rh-audio-player

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11268,23 +11262,21 @@

rh-audio-player

flex-direction: row; } } - -
- -
+ + Slots 6 @@ -11505,7 +11497,6 @@

rh-audio-player

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11550,12 +11541,6 @@

rh-audio-player

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11563,6 +11548,11 @@

rh-audio-player

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11573,36 +11563,60 @@

rh-audio-player

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11615,54 +11629,26 @@

rh-audio-player

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11670,23 +11656,21 @@

rh-audio-player

flex-direction: row; } } - -
- -
+ + Attributes 9 @@ -11956,7 +11940,6 @@

rh-audio-player

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12001,12 +11984,6 @@

rh-audio-player

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12014,6 +11991,11 @@

rh-audio-player

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12024,36 +12006,60 @@

rh-audio-player

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12066,54 +12072,26 @@

rh-audio-player

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12121,23 +12099,21 @@

rh-audio-player

flex-direction: row; } } - -
- -
+ + Methods 8 @@ -12367,7 +12343,6 @@

rh-audio-player

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12412,12 +12387,6 @@

rh-audio-player

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12425,6 +12394,11 @@

rh-audio-player

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12435,36 +12409,60 @@

rh-audio-player

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12477,54 +12475,26 @@

rh-audio-player

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12532,23 +12502,21 @@

rh-audio-player

flex-direction: row; } } - -
- -
+ + Events 0 @@ -12654,7 +12622,6 @@

rh-audio-player

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12699,12 +12666,6 @@

rh-audio-player

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12712,6 +12673,11 @@

rh-audio-player

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12722,36 +12688,60 @@

rh-audio-player

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12764,54 +12754,26 @@

rh-audio-player

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12819,23 +12781,21 @@

rh-audio-player

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 5 @@ -13053,7 +13013,6 @@

rh-audio-player

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13098,12 +13057,6 @@

rh-audio-player

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13111,6 +13064,11 @@

rh-audio-player

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13121,36 +13079,60 @@

rh-audio-player

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13163,54 +13145,26 @@

rh-audio-player

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13218,23 +13172,21 @@

rh-audio-player

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 10 @@ -13502,7 +13454,6 @@

rh-audio-player

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13547,12 +13498,6 @@

rh-audio-player

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13560,6 +13505,11 @@

rh-audio-player

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13570,36 +13520,60 @@

rh-audio-player

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13612,54 +13586,26 @@

rh-audio-player

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13667,23 +13613,21 @@

rh-audio-player

flex-direction: row; } } - -
- -
+ + Design Tokens 33 @@ -29131,7 +29075,6 @@

rh-audio-player-about

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29176,12 +29119,6 @@

rh-audio-player-about

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29189,6 +29126,11 @@

rh-audio-player-about

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29199,36 +29141,60 @@

rh-audio-player-about

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29241,54 +29207,26 @@

rh-audio-player-about

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29296,23 +29234,21 @@

rh-audio-player-about

flex-direction: row; } } - -
- -
+ + Slots 3 @@ -29521,7 +29457,6 @@

rh-audio-player-about

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29566,12 +29501,6 @@

rh-audio-player-about

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29579,6 +29508,11 @@

rh-audio-player-about

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29589,36 +29523,60 @@

rh-audio-player-about

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29631,54 +29589,26 @@

rh-audio-player-about

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29686,23 +29616,21 @@

rh-audio-player-about

flex-direction: row; } } - -
- -
+ + Attributes 3 @@ -29924,7 +29852,6 @@

rh-audio-player-about

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29969,12 +29896,6 @@

rh-audio-player-about

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29982,6 +29903,11 @@

rh-audio-player-about

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29992,36 +29918,60 @@

rh-audio-player-about

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -30034,54 +29984,26 @@

rh-audio-player-about

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -30089,23 +30011,21 @@

rh-audio-player-about

flex-direction: row; } } - -
- -
+ + Methods 1 @@ -30307,7 +30227,6 @@

rh-audio-player-about

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -30352,12 +30271,6 @@

rh-audio-player-about

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -30365,6 +30278,11 @@

rh-audio-player-about

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -30375,36 +30293,60 @@

rh-audio-player-about

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -30417,54 +30359,26 @@

rh-audio-player-about

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -30472,23 +30386,21 @@

rh-audio-player-about

flex-direction: row; } } - -
- -
+ + Events 0 @@ -30594,7 +30506,6 @@

rh-audio-player-about

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -30639,12 +30550,6 @@

rh-audio-player-about

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -30652,6 +30557,11 @@

rh-audio-player-about

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -30662,36 +30572,60 @@

rh-audio-player-about

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -30704,54 +30638,26 @@

rh-audio-player-about

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -30759,23 +30665,21 @@

rh-audio-player-about

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 3 @@ -30985,7 +30889,6 @@

rh-audio-player-about

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -31030,12 +30933,6 @@

rh-audio-player-about

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -31043,6 +30940,11 @@

rh-audio-player-about

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -31053,36 +30955,60 @@

rh-audio-player-about

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -31095,54 +31021,26 @@

rh-audio-player-about

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -31150,23 +31048,21 @@

rh-audio-player-about

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -31272,7 +31168,6 @@

rh-audio-player-about

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -31317,12 +31212,6 @@

rh-audio-player-about

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -31330,6 +31219,11 @@

rh-audio-player-about

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -31340,36 +31234,60 @@

rh-audio-player-about

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -31382,54 +31300,26 @@

rh-audio-player-about

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -31437,23 +31327,21 @@

rh-audio-player-about

flex-direction: row; } } - -
- -
+ + Design Tokens 12 @@ -37220,7 +37108,6 @@

rh-audio-player-rate-stepper

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -37265,12 +37152,6 @@

rh-audio-player-rate-stepper

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -37278,6 +37159,11 @@

rh-audio-player-rate-stepper

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -37288,36 +37174,60 @@

rh-audio-player-rate-stepper

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -37330,54 +37240,26 @@

rh-audio-player-rate-stepper

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -37385,23 +37267,21 @@

rh-audio-player-rate-stepper

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -37506,7 +37386,6 @@

rh-audio-player-rate-stepper

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -37551,12 +37430,6 @@

rh-audio-player-rate-stepper

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -37564,6 +37437,11 @@

rh-audio-player-rate-stepper

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -37574,36 +37452,60 @@

rh-audio-player-rate-stepper

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -37616,54 +37518,26 @@

rh-audio-player-rate-stepper

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -37671,23 +37545,21 @@

rh-audio-player-rate-stepper

flex-direction: row; } } - -
- -
+ + Attributes 3 @@ -37909,7 +37781,6 @@

rh-audio-player-rate-stepper

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -37954,12 +37825,6 @@

rh-audio-player-rate-stepper

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -37967,6 +37832,11 @@

rh-audio-player-rate-stepper

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -37977,36 +37847,60 @@

rh-audio-player-rate-stepper

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -38019,54 +37913,26 @@

rh-audio-player-rate-stepper

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -38074,23 +37940,21 @@

rh-audio-player-rate-stepper

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -38196,7 +38060,6 @@

rh-audio-player-rate-stepper

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -38241,12 +38104,6 @@

rh-audio-player-rate-stepper

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -38254,6 +38111,11 @@

rh-audio-player-rate-stepper

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -38264,36 +38126,60 @@

rh-audio-player-rate-stepper

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -38306,54 +38192,26 @@

rh-audio-player-rate-stepper

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -38361,23 +38219,21 @@

rh-audio-player-rate-stepper

flex-direction: row; } } - -
- -
+ + Events 1 @@ -38579,7 +38435,6 @@

rh-audio-player-rate-stepper

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -38624,12 +38479,6 @@

rh-audio-player-rate-stepper

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -38637,6 +38486,11 @@

rh-audio-player-rate-stepper

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -38647,36 +38501,60 @@

rh-audio-player-rate-stepper

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -38689,54 +38567,26 @@

rh-audio-player-rate-stepper

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -38744,23 +38594,21 @@

rh-audio-player-rate-stepper

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -38866,7 +38714,6 @@

rh-audio-player-rate-stepper

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -38911,12 +38758,6 @@

rh-audio-player-rate-stepper

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -38924,6 +38765,11 @@

rh-audio-player-rate-stepper

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -38934,36 +38780,60 @@

rh-audio-player-rate-stepper

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -38976,54 +38846,26 @@

rh-audio-player-rate-stepper

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -39031,23 +38873,21 @@

rh-audio-player-rate-stepper

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -39153,7 +38993,6 @@

rh-audio-player-rate-stepper

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -39198,12 +39037,6 @@

rh-audio-player-rate-stepper

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -39211,6 +39044,11 @@

rh-audio-player-rate-stepper

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -39221,36 +39059,60 @@

rh-audio-player-rate-stepper

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -39263,54 +39125,26 @@

rh-audio-player-rate-stepper

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -39318,23 +39152,21 @@

rh-audio-player-rate-stepper

flex-direction: row; } } - -
- -
+ + Design Tokens 2 @@ -40491,7 +40323,6 @@

rh-audio-player-scrolling- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -40536,12 +40367,6 @@

rh-audio-player-scrolling- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -40549,6 +40374,11 @@

rh-audio-player-scrolling- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -40559,36 +40389,60 @@

rh-audio-player-scrolling- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -40601,54 +40455,26 @@

rh-audio-player-scrolling- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -40656,23 +40482,21 @@

rh-audio-player-scrolling- flex-direction: row; } } - -
- -
+ + Slots 1 @@ -40873,7 +40697,6 @@

rh-audio-player-scrolling- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -40918,12 +40741,6 @@

rh-audio-player-scrolling- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -40931,6 +40748,11 @@

rh-audio-player-scrolling- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -40941,36 +40763,60 @@

rh-audio-player-scrolling- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -40983,54 +40829,26 @@

rh-audio-player-scrolling- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -41038,23 +40856,21 @@

rh-audio-player-scrolling- flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -41160,7 +40976,6 @@

rh-audio-player-scrolling- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -41205,12 +41020,6 @@

rh-audio-player-scrolling- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -41218,6 +41027,11 @@

rh-audio-player-scrolling- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -41228,36 +41042,60 @@

rh-audio-player-scrolling- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -41270,54 +41108,26 @@

rh-audio-player-scrolling- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -41325,23 +41135,21 @@

rh-audio-player-scrolling- flex-direction: row; } } - -
- -
+ + Methods 2 @@ -41547,7 +41355,6 @@

rh-audio-player-scrolling- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -41592,12 +41399,6 @@

rh-audio-player-scrolling- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -41605,6 +41406,11 @@

rh-audio-player-scrolling- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -41615,36 +41421,60 @@

rh-audio-player-scrolling- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -41657,54 +41487,26 @@

rh-audio-player-scrolling- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -41712,23 +41514,21 @@

rh-audio-player-scrolling- flex-direction: row; } } - -
- -
+ + Events 0 @@ -41834,7 +41634,6 @@

rh-audio-player-scrolling- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -41879,12 +41678,6 @@

rh-audio-player-scrolling- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -41892,6 +41685,11 @@

rh-audio-player-scrolling- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -41902,36 +41700,60 @@

rh-audio-player-scrolling- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -41944,54 +41766,26 @@

rh-audio-player-scrolling- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -41999,23 +41793,21 @@

rh-audio-player-scrolling- flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -42121,7 +41913,6 @@

rh-audio-player-scrolling- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -42166,12 +41957,6 @@

rh-audio-player-scrolling- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -42179,6 +41964,11 @@

rh-audio-player-scrolling- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -42189,36 +41979,60 @@

rh-audio-player-scrolling- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -42231,54 +42045,26 @@

rh-audio-player-scrolling- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -42286,23 +42072,21 @@

rh-audio-player-scrolling- flex-direction: row; } } - -
- -
+ + CSS Custom Properties 1 @@ -42507,7 +42291,6 @@

rh-audio-player-scrolling- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -42552,12 +42335,6 @@

rh-audio-player-scrolling- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -42565,6 +42342,11 @@

rh-audio-player-scrolling- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -42575,36 +42357,60 @@

rh-audio-player-scrolling- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -42617,54 +42423,26 @@

rh-audio-player-scrolling- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -42672,23 +42450,21 @@

rh-audio-player-scrolling- flex-direction: row; } } - -
- -
+ + Design Tokens 2 @@ -43845,7 +43621,6 @@

rh-audio-player-subscribe

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -43890,12 +43665,6 @@

rh-audio-player-subscribe

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -43903,6 +43672,11 @@

rh-audio-player-subscribe

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -43913,36 +43687,60 @@

rh-audio-player-subscribe

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -43955,54 +43753,26 @@

rh-audio-player-subscribe

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -44010,23 +43780,21 @@

rh-audio-player-subscribe

flex-direction: row; } } - -
- -
+ + Slots 3 @@ -44235,7 +44003,6 @@

rh-audio-player-subscribe

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -44280,12 +44047,6 @@

rh-audio-player-subscribe

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -44293,6 +44054,11 @@

rh-audio-player-subscribe

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -44303,36 +44069,60 @@

rh-audio-player-subscribe

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -44345,54 +44135,26 @@

rh-audio-player-subscribe

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -44400,23 +44162,21 @@

rh-audio-player-subscribe

flex-direction: row; } } - -
- -
+ + Attributes 2 @@ -44631,7 +44391,6 @@

rh-audio-player-subscribe

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -44676,12 +44435,6 @@

rh-audio-player-subscribe

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -44689,6 +44442,11 @@

rh-audio-player-subscribe

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -44699,36 +44457,60 @@

rh-audio-player-subscribe

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -44741,54 +44523,26 @@

rh-audio-player-subscribe

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -44796,23 +44550,21 @@

rh-audio-player-subscribe

flex-direction: row; } } - -
- -
+ + Methods 1 @@ -45014,7 +44766,6 @@

rh-audio-player-subscribe

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -45059,12 +44810,6 @@

rh-audio-player-subscribe

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -45072,6 +44817,11 @@

rh-audio-player-subscribe

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -45082,36 +44832,60 @@

rh-audio-player-subscribe

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -45124,54 +44898,26 @@

rh-audio-player-subscribe

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -45179,23 +44925,21 @@

rh-audio-player-subscribe

flex-direction: row; } } - -
- -
+ + Events 0 @@ -45301,7 +45045,6 @@

rh-audio-player-subscribe

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -45346,12 +45089,6 @@

rh-audio-player-subscribe

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -45359,6 +45096,11 @@

rh-audio-player-subscribe

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -45369,36 +45111,60 @@

rh-audio-player-subscribe

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -45411,54 +45177,26 @@

rh-audio-player-subscribe

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -45466,23 +45204,21 @@

rh-audio-player-subscribe

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 3 @@ -45692,7 +45428,6 @@

rh-audio-player-subscribe

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -45737,12 +45472,6 @@

rh-audio-player-subscribe

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -45750,6 +45479,11 @@

rh-audio-player-subscribe

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -45760,36 +45494,60 @@

rh-audio-player-subscribe

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -45802,54 +45560,26 @@

rh-audio-player-subscribe

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -45857,23 +45587,21 @@

rh-audio-player-subscribe

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -45979,7 +45707,6 @@

rh-audio-player-subscribe

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -46024,12 +45751,6 @@

rh-audio-player-subscribe

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -46037,6 +45758,11 @@

rh-audio-player-subscribe

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -46047,36 +45773,60 @@

rh-audio-player-subscribe

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -46089,54 +45839,26 @@

rh-audio-player-subscribe

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -46144,23 +45866,21 @@

rh-audio-player-subscribe

flex-direction: row; } } - -
- -
+ + Design Tokens 0 @@ -46304,7 +46024,6 @@

rh-cue

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -46349,12 +46068,6 @@

rh-cue

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -46362,6 +46075,11 @@

rh-cue

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -46372,36 +46090,60 @@

rh-cue

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -46414,54 +46156,26 @@

rh-cue

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -46469,23 +46183,21 @@

rh-cue

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -46686,7 +46398,6 @@

rh-cue

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -46731,12 +46442,6 @@

rh-cue

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -46744,6 +46449,11 @@

rh-cue

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -46754,36 +46464,60 @@

rh-cue

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -46796,54 +46530,26 @@

rh-cue

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -46851,23 +46557,21 @@

rh-cue

flex-direction: row; } } - -
- -
+ + Attributes 5 @@ -47103,7 +46807,6 @@

rh-cue

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -47148,12 +46851,6 @@

rh-cue

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -47161,6 +46858,11 @@

rh-cue

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -47171,36 +46873,60 @@

rh-cue

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -47213,54 +46939,26 @@

rh-cue

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -47268,23 +46966,21 @@

rh-cue

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -47390,7 +47086,6 @@

rh-cue

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -47435,12 +47130,6 @@

rh-cue

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -47448,6 +47137,11 @@

rh-cue

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -47458,36 +47152,60 @@

rh-cue

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -47500,54 +47218,26 @@

rh-cue

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -47555,23 +47245,21 @@

rh-cue

flex-direction: row; } } - -
- -
+ + Events 1 @@ -47773,7 +47461,6 @@

rh-cue

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -47818,12 +47505,6 @@

rh-cue

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -47831,6 +47512,11 @@

rh-cue

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -47841,36 +47527,60 @@

rh-cue

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -47883,54 +47593,26 @@

rh-cue

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -47938,23 +47620,21 @@

rh-cue

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -48060,7 +47740,6 @@

rh-cue

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -48105,12 +47784,6 @@

rh-cue

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -48118,6 +47791,11 @@

rh-cue

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -48128,36 +47806,60 @@

rh-cue

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -48170,54 +47872,26 @@

rh-cue

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -48225,23 +47899,21 @@

rh-cue

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -48347,7 +48019,6 @@

rh-cue

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -48392,12 +48063,6 @@

rh-cue

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -48405,6 +48070,11 @@

rh-cue

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -48415,36 +48085,60 @@

rh-cue

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -48457,54 +48151,26 @@

rh-cue

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -48512,23 +48178,21 @@

rh-cue

flex-direction: row; } } - -
- -
+ + Design Tokens 3 @@ -50146,7 +49810,6 @@

rh-transcript

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -50191,12 +49854,6 @@

rh-transcript

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -50204,6 +49861,11 @@

rh-transcript

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -50214,36 +49876,60 @@

rh-transcript

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -50256,54 +49942,26 @@

rh-transcript

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -50311,23 +49969,21 @@

rh-transcript

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -50532,7 +50188,6 @@

rh-transcript

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -50577,12 +50232,6 @@

rh-transcript

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -50590,6 +50239,11 @@

rh-transcript

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -50600,36 +50254,60 @@

rh-transcript

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -50642,54 +50320,26 @@

rh-transcript

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -50697,23 +50347,21 @@

rh-transcript

flex-direction: row; } } - -
- -
+ + Attributes 3 @@ -50935,7 +50583,6 @@

rh-transcript

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -50980,12 +50627,6 @@

rh-transcript

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -50993,6 +50634,11 @@

rh-transcript

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -51003,36 +50649,60 @@

rh-transcript

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -51045,54 +50715,26 @@

rh-transcript

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -51100,23 +50742,21 @@

rh-transcript

flex-direction: row; } } - -
- -
+ + Methods 3 @@ -51326,7 +50966,6 @@

rh-transcript

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -51371,12 +51010,6 @@

rh-transcript

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -51384,6 +51017,11 @@

rh-transcript

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -51394,36 +51032,60 @@

rh-transcript

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -51436,54 +51098,26 @@

rh-transcript

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -51491,23 +51125,21 @@

rh-transcript

flex-direction: row; } } - -
- -
+ + Events 1 @@ -51709,7 +51341,6 @@

rh-transcript

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -51754,12 +51385,6 @@

rh-transcript

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -51767,6 +51392,11 @@

rh-transcript

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -51777,36 +51407,60 @@

rh-transcript

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -51819,54 +51473,26 @@

rh-transcript

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -51874,23 +51500,21 @@

rh-transcript

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 2 @@ -52096,7 +51720,6 @@

rh-transcript

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -52141,12 +51764,6 @@

rh-transcript

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -52154,6 +51771,11 @@

rh-transcript

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -52164,36 +51786,60 @@

rh-transcript

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -52206,54 +51852,26 @@

rh-transcript

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -52261,23 +51879,21 @@

rh-transcript

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -52383,7 +51999,6 @@

rh-transcript

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -52428,12 +52043,6 @@

rh-transcript

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -52441,6 +52050,11 @@

rh-transcript

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -52451,36 +52065,60 @@

rh-transcript

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -52493,54 +52131,26 @@

rh-transcript

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -52548,23 +52158,21 @@

rh-transcript

flex-direction: row; } } - -
- -
+ + Design Tokens 1 diff --git a/elements/avatar/code/index.html b/elements/avatar/code/index.html index 087be21b76..5626411533 100644 --- a/elements/avatar/code/index.html +++ b/elements/avatar/code/index.html @@ -9629,7 +9629,6 @@

rh-avatar

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9674,12 +9673,6 @@

rh-avatar

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9687,6 +9680,11 @@

rh-avatar

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9697,36 +9695,60 @@

rh-avatar

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9739,54 +9761,26 @@

rh-avatar

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9794,23 +9788,21 @@

rh-avatar

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -10015,7 +10007,6 @@

rh-avatar

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10060,12 +10051,6 @@

rh-avatar

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10073,6 +10058,11 @@

rh-avatar

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10083,36 +10073,60 @@

rh-avatar

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10125,54 +10139,26 @@

rh-avatar

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10180,23 +10166,21 @@

rh-avatar

flex-direction: row; } } - -
- -
+ + Attributes 7 @@ -10448,7 +10432,6 @@

rh-avatar

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10493,12 +10476,6 @@

rh-avatar

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10506,6 +10483,11 @@

rh-avatar

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10516,36 +10498,60 @@

rh-avatar

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10558,54 +10564,26 @@

rh-avatar

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10613,23 +10591,21 @@

rh-avatar

flex-direction: row; } } - -
- -
+ + Methods 1 @@ -10831,7 +10807,6 @@

rh-avatar

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10876,12 +10851,6 @@

rh-avatar

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10889,6 +10858,11 @@

rh-avatar

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10899,36 +10873,60 @@

rh-avatar

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10941,54 +10939,26 @@

rh-avatar

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10996,23 +10966,21 @@

rh-avatar

flex-direction: row; } } - -
- -
+ + Events 0 @@ -11118,7 +11086,6 @@

rh-avatar

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11163,12 +11130,6 @@

rh-avatar

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11176,6 +11137,11 @@

rh-avatar

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11186,36 +11152,60 @@

rh-avatar

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11228,54 +11218,26 @@

rh-avatar

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11283,23 +11245,21 @@

rh-avatar

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11405,7 +11365,6 @@

rh-avatar

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11450,12 +11409,6 @@

rh-avatar

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11463,6 +11416,11 @@

rh-avatar

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11473,36 +11431,60 @@

rh-avatar

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11515,54 +11497,26 @@

rh-avatar

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11570,23 +11524,21 @@

rh-avatar

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 2 @@ -11798,7 +11750,6 @@

rh-avatar

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11843,12 +11794,6 @@

rh-avatar

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11856,6 +11801,11 @@

rh-avatar

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11866,36 +11816,60 @@

rh-avatar

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11908,54 +11882,26 @@

rh-avatar

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11963,23 +11909,21 @@

rh-avatar

flex-direction: row; } } - -
- -
+ + Design Tokens 25 diff --git a/elements/back-to-top/code/index.html b/elements/back-to-top/code/index.html index 960e580540..262b2d100b 100644 --- a/elements/back-to-top/code/index.html +++ b/elements/back-to-top/code/index.html @@ -9624,7 +9624,6 @@

rh-back-to-top

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9669,12 +9668,6 @@

rh-back-to-top

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9682,6 +9675,11 @@

rh-back-to-top

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9692,36 +9690,60 @@

rh-back-to-top

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9734,54 +9756,26 @@

rh-back-to-top

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9789,23 +9783,21 @@

rh-back-to-top

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -10006,7 +9998,6 @@

rh-back-to-top

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10051,12 +10042,6 @@

rh-back-to-top

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10064,6 +10049,11 @@

rh-back-to-top

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10074,36 +10064,60 @@

rh-back-to-top

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10116,54 +10130,26 @@

rh-back-to-top

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10171,23 +10157,21 @@

rh-back-to-top

flex-direction: row; } } - -
- -
+ + Attributes 4 @@ -10416,7 +10400,6 @@

rh-back-to-top

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10461,12 +10444,6 @@

rh-back-to-top

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10474,6 +10451,11 @@

rh-back-to-top

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10484,36 +10466,60 @@

rh-back-to-top

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10526,54 +10532,26 @@

rh-back-to-top

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10581,23 +10559,21 @@

rh-back-to-top

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10703,7 +10679,6 @@

rh-back-to-top

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10748,12 +10723,6 @@

rh-back-to-top

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10761,6 +10730,11 @@

rh-back-to-top

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10771,36 +10745,60 @@

rh-back-to-top

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10813,54 +10811,26 @@

rh-back-to-top

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10868,23 +10838,21 @@

rh-back-to-top

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10990,7 +10958,6 @@

rh-back-to-top

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11035,12 +11002,6 @@

rh-back-to-top

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11048,6 +11009,11 @@

rh-back-to-top

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11058,36 +11024,60 @@

rh-back-to-top

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11100,54 +11090,26 @@

rh-back-to-top

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11155,23 +11117,21 @@

rh-back-to-top

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 1 @@ -11373,7 +11333,6 @@

rh-back-to-top

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11418,12 +11377,6 @@

rh-back-to-top

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11431,6 +11384,11 @@

rh-back-to-top

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11441,36 +11399,60 @@

rh-back-to-top

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11483,54 +11465,26 @@

rh-back-to-top

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11538,23 +11492,21 @@

rh-back-to-top

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11660,7 +11612,6 @@

rh-back-to-top

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11705,12 +11656,6 @@

rh-back-to-top

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11718,6 +11663,11 @@

rh-back-to-top

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11728,36 +11678,60 @@

rh-back-to-top

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11770,54 +11744,26 @@

rh-back-to-top

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11825,23 +11771,21 @@

rh-back-to-top

flex-direction: row; } } - -
- -
+ + Design Tokens 12 diff --git a/elements/badge/code/index.html b/elements/badge/code/index.html index 81ec92349f..a2d54b3213 100644 --- a/elements/badge/code/index.html +++ b/elements/badge/code/index.html @@ -9631,7 +9631,6 @@

rh-badge

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9676,12 +9675,6 @@

rh-badge

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9689,6 +9682,11 @@

rh-badge

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9699,36 +9697,60 @@

rh-badge

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9741,54 +9763,26 @@

rh-badge

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9796,23 +9790,21 @@

rh-badge

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -9917,7 +9909,6 @@

rh-badge

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9962,12 +9953,6 @@

rh-badge

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9975,6 +9960,11 @@

rh-badge

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9985,36 +9975,60 @@

rh-badge

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10027,54 +10041,26 @@

rh-badge

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10082,23 +10068,21 @@

rh-badge

flex-direction: row; } } - -
- -
+ + Attributes 3 @@ -10323,7 +10307,6 @@

rh-badge

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10368,12 +10351,6 @@

rh-badge

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10381,6 +10358,11 @@

rh-badge

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10391,36 +10373,60 @@

rh-badge

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10433,54 +10439,26 @@

rh-badge

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10488,23 +10466,21 @@

rh-badge

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10610,7 +10586,6 @@

rh-badge

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10655,12 +10630,6 @@

rh-badge

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10668,6 +10637,11 @@

rh-badge

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10678,36 +10652,60 @@

rh-badge

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10720,54 +10718,26 @@

rh-badge

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10775,23 +10745,21 @@

rh-badge

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10897,7 +10865,6 @@

rh-badge

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10942,12 +10909,6 @@

rh-badge

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10955,6 +10916,11 @@

rh-badge

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10965,36 +10931,60 @@

rh-badge

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11007,54 +10997,26 @@

rh-badge

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11062,23 +11024,21 @@

rh-badge

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11184,7 +11144,6 @@

rh-badge

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11229,12 +11188,6 @@

rh-badge

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11242,6 +11195,11 @@

rh-badge

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11252,36 +11210,60 @@

rh-badge

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11294,54 +11276,26 @@

rh-badge

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11349,23 +11303,21 @@

rh-badge

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11471,7 +11423,6 @@

rh-badge

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11516,12 +11467,6 @@

rh-badge

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11529,6 +11474,11 @@

rh-badge

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11539,36 +11489,60 @@

rh-badge

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11581,54 +11555,26 @@

rh-badge

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11636,23 +11582,21 @@

rh-badge

flex-direction: row; } } - -
- -
+ + Design Tokens 13 diff --git a/elements/blockquote/code/index.html b/elements/blockquote/code/index.html index 5cc7e684df..43e8aeae8e 100644 --- a/elements/blockquote/code/index.html +++ b/elements/blockquote/code/index.html @@ -9625,7 +9625,6 @@

rh-blockquote

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9670,12 +9669,6 @@

rh-blockquote

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9683,6 +9676,11 @@

rh-blockquote

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9693,36 +9691,60 @@

rh-blockquote

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9735,54 +9757,26 @@

rh-blockquote

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9790,23 +9784,21 @@

rh-blockquote

flex-direction: row; } } - -
- -
+ + Slots 3 @@ -10015,7 +10007,6 @@

rh-blockquote

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10060,12 +10051,6 @@

rh-blockquote

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10073,6 +10058,11 @@

rh-blockquote

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10083,36 +10073,60 @@

rh-blockquote

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10125,54 +10139,26 @@

rh-blockquote

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10180,23 +10166,21 @@

rh-blockquote

flex-direction: row; } } - -
- -
+ + Attributes 5 @@ -10444,7 +10428,6 @@

rh-blockquote

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10489,12 +10472,6 @@

rh-blockquote

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10502,6 +10479,11 @@

rh-blockquote

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10512,36 +10494,60 @@

rh-blockquote

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10554,54 +10560,26 @@

rh-blockquote

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10609,23 +10587,21 @@

rh-blockquote

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10731,7 +10707,6 @@

rh-blockquote

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10776,12 +10751,6 @@

rh-blockquote

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10789,6 +10758,11 @@

rh-blockquote

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10799,36 +10773,60 @@

rh-blockquote

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10841,54 +10839,26 @@

rh-blockquote

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10896,23 +10866,21 @@

rh-blockquote

flex-direction: row; } } - -
- -
+ + Events 0 @@ -11018,7 +10986,6 @@

rh-blockquote

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11063,12 +11030,6 @@

rh-blockquote

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11076,6 +11037,11 @@

rh-blockquote

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11086,36 +11052,60 @@

rh-blockquote

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11128,54 +11118,26 @@

rh-blockquote

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11183,23 +11145,21 @@

rh-blockquote

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11305,7 +11265,6 @@

rh-blockquote

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11350,12 +11309,6 @@

rh-blockquote

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11363,6 +11316,11 @@

rh-blockquote

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11373,36 +11331,60 @@

rh-blockquote

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11415,54 +11397,26 @@

rh-blockquote

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11470,23 +11424,21 @@

rh-blockquote

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11592,7 +11544,6 @@

rh-blockquote

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11637,12 +11588,6 @@

rh-blockquote

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11650,6 +11595,11 @@

rh-blockquote

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11660,36 +11610,60 @@

rh-blockquote

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11702,54 +11676,26 @@

rh-blockquote

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11757,23 +11703,21 @@

rh-blockquote

flex-direction: row; } } - -
- -
+ + Design Tokens 18 diff --git a/elements/breadcrumb/code/index.html b/elements/breadcrumb/code/index.html index c1eae19c9b..def94bda75 100644 --- a/elements/breadcrumb/code/index.html +++ b/elements/breadcrumb/code/index.html @@ -10678,7 +10678,6 @@

rh-breadcrumb

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10723,12 +10722,6 @@

rh-breadcrumb

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10736,6 +10729,11 @@

rh-breadcrumb

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10746,36 +10744,60 @@

rh-breadcrumb

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10788,54 +10810,26 @@

rh-breadcrumb

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10843,23 +10837,21 @@

rh-breadcrumb

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -11060,7 +11052,6 @@

rh-breadcrumb

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11105,12 +11096,6 @@

rh-breadcrumb

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11118,6 +11103,11 @@

rh-breadcrumb

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11128,36 +11118,60 @@

rh-breadcrumb

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11170,54 +11184,26 @@

rh-breadcrumb

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11225,23 +11211,21 @@

rh-breadcrumb

flex-direction: row; } } - -
- -
+ + Attributes 2 @@ -11457,7 +11441,6 @@

rh-breadcrumb

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11502,12 +11485,6 @@

rh-breadcrumb

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11515,6 +11492,11 @@

rh-breadcrumb

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11525,36 +11507,60 @@

rh-breadcrumb

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11567,54 +11573,26 @@

rh-breadcrumb

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11622,23 +11600,21 @@

rh-breadcrumb

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -11744,7 +11720,6 @@

rh-breadcrumb

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11789,12 +11764,6 @@

rh-breadcrumb

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11802,6 +11771,11 @@

rh-breadcrumb

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11812,36 +11786,60 @@

rh-breadcrumb

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11854,54 +11852,26 @@

rh-breadcrumb

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11909,23 +11879,21 @@

rh-breadcrumb

flex-direction: row; } } - -
- -
+ + Events 0 @@ -12031,7 +11999,6 @@

rh-breadcrumb

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12073,13 +12040,7 @@

rh-breadcrumb

:host(.animating) #button, :host([expanded]) #button { border-inline-end-color: var(--rh-color-border-subtle); - border-inline-start-color: var(--rh-color-border-subtle); -} - -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); + border-inline-start-color: var(--rh-color-border-subtle); } #icon { @@ -12089,6 +12050,11 @@

rh-breadcrumb

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12099,36 +12065,60 @@

rh-breadcrumb

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12141,54 +12131,26 @@

rh-breadcrumb

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12196,23 +12158,21 @@

rh-breadcrumb

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 1 @@ -12414,7 +12374,6 @@

rh-breadcrumb

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12459,12 +12418,6 @@

rh-breadcrumb

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12472,6 +12425,11 @@

rh-breadcrumb

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12482,36 +12440,60 @@

rh-breadcrumb

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12524,54 +12506,26 @@

rh-breadcrumb

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12579,23 +12533,21 @@

rh-breadcrumb

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 10 @@ -12863,7 +12815,6 @@

rh-breadcrumb

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12908,12 +12859,6 @@

rh-breadcrumb

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12921,6 +12866,11 @@

rh-breadcrumb

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12931,36 +12881,60 @@

rh-breadcrumb

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12973,54 +12947,26 @@

rh-breadcrumb

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13028,23 +12974,21 @@

rh-breadcrumb

flex-direction: row; } } - -
- -
+ + Design Tokens 11 diff --git a/elements/button/code/index.html b/elements/button/code/index.html index 5ef2a08da8..e345ff6523 100644 --- a/elements/button/code/index.html +++ b/elements/button/code/index.html @@ -9623,7 +9623,6 @@

rh-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9668,12 +9667,6 @@

rh-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9681,6 +9674,11 @@

rh-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9691,36 +9689,60 @@

rh-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9733,54 +9755,26 @@

rh-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9788,23 +9782,21 @@

rh-button

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -10009,7 +10001,6 @@

rh-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10054,12 +10045,6 @@

rh-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10067,6 +10052,11 @@

rh-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10077,36 +10067,60 @@

rh-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10119,54 +10133,26 @@

rh-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10174,23 +10160,21 @@

rh-button

flex-direction: row; } } - -
- -
+ + Attributes 9 @@ -10465,7 +10449,6 @@

rh-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10510,12 +10493,6 @@

rh-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10523,6 +10500,11 @@

rh-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10533,36 +10515,60 @@

rh-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10575,54 +10581,26 @@

rh-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10630,23 +10608,21 @@

rh-button

flex-direction: row; } } - -
- -
+ + Methods 1 @@ -10848,7 +10824,6 @@

rh-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10893,12 +10868,6 @@

rh-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10906,6 +10875,11 @@

rh-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10916,36 +10890,60 @@

rh-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10958,54 +10956,26 @@

rh-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11013,23 +10983,21 @@

rh-button

flex-direction: row; } } - -
- -
+ + Events 0 @@ -11135,7 +11103,6 @@

rh-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11180,12 +11147,6 @@

rh-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11193,6 +11154,11 @@

rh-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11203,36 +11169,60 @@

rh-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11245,54 +11235,26 @@

rh-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11300,23 +11262,21 @@

rh-button

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 2 @@ -11522,7 +11482,6 @@

rh-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11567,12 +11526,6 @@

rh-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11580,6 +11533,11 @@

rh-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11590,36 +11548,60 @@

rh-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11632,54 +11614,26 @@

rh-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11687,23 +11641,21 @@

rh-button

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11809,7 +11761,6 @@

rh-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11854,12 +11805,6 @@

rh-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11867,6 +11812,11 @@

rh-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11877,36 +11827,60 @@

rh-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11919,54 +11893,26 @@

rh-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11974,23 +11920,21 @@

rh-button

flex-direction: row; } } - -
- -
+ + Design Tokens 33 diff --git a/elements/call-to-action/code/index.html b/elements/call-to-action/code/index.html index cb332ce75f..f68488fa3b 100644 --- a/elements/call-to-action/code/index.html +++ b/elements/call-to-action/code/index.html @@ -11166,7 +11166,6 @@

rh-cta

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11211,12 +11210,6 @@

rh-cta

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11224,6 +11217,11 @@

rh-cta

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11234,36 +11232,60 @@

rh-cta

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11276,54 +11298,26 @@

rh-cta

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11331,23 +11325,21 @@

rh-cta

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -11548,7 +11540,6 @@

rh-cta

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11593,12 +11584,6 @@

rh-cta

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11606,6 +11591,11 @@

rh-cta

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11616,36 +11606,60 @@

rh-cta

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11658,54 +11672,26 @@

rh-cta

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11713,23 +11699,21 @@

rh-cta

flex-direction: row; } } - -
- -
+ + Attributes 8 @@ -11997,7 +11981,6 @@

rh-cta

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12042,12 +12025,6 @@

rh-cta

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12055,6 +12032,11 @@

rh-cta

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12065,36 +12047,60 @@

rh-cta

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12107,54 +12113,26 @@

rh-cta

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12162,23 +12140,21 @@

rh-cta

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -12284,7 +12260,6 @@

rh-cta

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12329,12 +12304,6 @@

rh-cta

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12342,6 +12311,11 @@

rh-cta

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12352,36 +12326,60 @@

rh-cta

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12394,54 +12392,26 @@

rh-cta

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12449,23 +12419,21 @@

rh-cta

flex-direction: row; } } - -
- -
+ + Events 0 @@ -12571,7 +12539,6 @@

rh-cta

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12613,13 +12580,7 @@

rh-cta

:host(.animating) #button, :host([expanded]) #button { border-inline-end-color: var(--rh-color-border-subtle); - border-inline-start-color: var(--rh-color-border-subtle); -} - -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); + border-inline-start-color: var(--rh-color-border-subtle); } #icon { @@ -12629,6 +12590,11 @@

rh-cta

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12639,36 +12605,60 @@

rh-cta

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12681,54 +12671,26 @@

rh-cta

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12736,23 +12698,21 @@

rh-cta

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 1 @@ -12954,7 +12914,6 @@

rh-cta

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12999,12 +12958,6 @@

rh-cta

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13012,6 +12965,11 @@

rh-cta

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13022,36 +12980,60 @@

rh-cta

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13064,54 +13046,26 @@

rh-cta

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13119,23 +13073,21 @@

rh-cta

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 20 @@ -13473,7 +13425,6 @@

rh-cta

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13518,12 +13469,6 @@

rh-cta

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13531,6 +13476,11 @@

rh-cta

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13541,36 +13491,60 @@

rh-cta

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13583,54 +13557,26 @@

rh-cta

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13638,23 +13584,21 @@

rh-cta

flex-direction: row; } } - -
- -
+ + Design Tokens 32 diff --git a/elements/card/code/index.html b/elements/card/code/index.html index 5cba17fd8b..8cd0e1bc36 100644 --- a/elements/card/code/index.html +++ b/elements/card/code/index.html @@ -9639,7 +9639,6 @@

rh-card

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9684,12 +9683,6 @@

rh-card

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9697,6 +9690,11 @@

rh-card

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9707,36 +9705,60 @@

rh-card

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9749,54 +9771,26 @@

rh-card

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9804,23 +9798,21 @@

rh-card

flex-direction: row; } } - -
- -
+ + Slots 4 @@ -10033,7 +10025,6 @@

rh-card

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10078,12 +10069,6 @@

rh-card

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10091,6 +10076,11 @@

rh-card

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10101,36 +10091,60 @@

rh-card

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10143,54 +10157,26 @@

rh-card

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10198,23 +10184,21 @@

rh-card

flex-direction: row; } } - -
- -
+ + Attributes 3 @@ -10440,7 +10424,6 @@

rh-card

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10485,12 +10468,6 @@

rh-card

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10498,6 +10475,11 @@

rh-card

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10508,36 +10490,60 @@

rh-card

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10550,54 +10556,26 @@

rh-card

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10605,23 +10583,21 @@

rh-card

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10727,7 +10703,6 @@

rh-card

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10772,12 +10747,6 @@

rh-card

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10785,6 +10754,11 @@

rh-card

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10795,36 +10769,60 @@

rh-card

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10837,54 +10835,26 @@

rh-card

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10892,23 +10862,21 @@

rh-card

flex-direction: row; } } - -
- -
+ + Events 0 @@ -11014,7 +10982,6 @@

rh-card

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11056,13 +11023,7 @@

rh-card

:host(.animating) #button, :host([expanded]) #button { border-inline-end-color: var(--rh-color-border-subtle); - border-inline-start-color: var(--rh-color-border-subtle); -} - -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); + border-inline-start-color: var(--rh-color-border-subtle); } #icon { @@ -11072,6 +11033,11 @@

rh-card

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11082,36 +11048,60 @@

rh-card

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11124,54 +11114,26 @@

rh-card

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11179,23 +11141,21 @@

rh-card

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 5 @@ -11413,7 +11373,6 @@

rh-card

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11458,12 +11417,6 @@

rh-card

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11471,6 +11424,11 @@

rh-card

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11481,36 +11439,60 @@

rh-card

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11523,54 +11505,26 @@

rh-card

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11578,23 +11532,21 @@

rh-card

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 4 @@ -11820,7 +11772,6 @@

rh-card

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11865,12 +11816,6 @@

rh-card

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11878,6 +11823,11 @@

rh-card

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11888,36 +11838,60 @@

rh-card

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11930,54 +11904,26 @@

rh-card

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11985,23 +11931,21 @@

rh-card

flex-direction: row; } } - -
- -
+ + Design Tokens 37 diff --git a/elements/code-block/code/index.html b/elements/code-block/code/index.html index dfeceda823..cc67e79f68 100644 --- a/elements/code-block/code/index.html +++ b/elements/code-block/code/index.html @@ -13253,7 +13253,6 @@

rh-code-block

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13298,12 +13297,6 @@

rh-code-block

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13311,6 +13304,11 @@

rh-code-block

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13321,36 +13319,60 @@

rh-code-block

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13363,54 +13385,26 @@

rh-code-block

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13418,23 +13412,21 @@

rh-code-block

flex-direction: row; } } - -
- -
+ + Slots 6 @@ -13655,7 +13647,6 @@

rh-code-block

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13700,12 +13691,6 @@

rh-code-block

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13713,6 +13698,11 @@

rh-code-block

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13723,36 +13713,60 @@

rh-code-block

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13765,54 +13779,26 @@

rh-code-block

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13820,23 +13806,21 @@

rh-code-block

flex-direction: row; } } - -
- -
+ + Attributes 8 @@ -14095,7 +14079,6 @@

rh-code-block

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -14140,12 +14123,6 @@

rh-code-block

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -14153,6 +14130,11 @@

rh-code-block

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -14163,36 +14145,60 @@

rh-code-block

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -14205,54 +14211,26 @@

rh-code-block

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -14260,23 +14238,21 @@

rh-code-block

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -14382,7 +14358,6 @@

rh-code-block

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -14427,12 +14402,6 @@

rh-code-block

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -14440,6 +14409,11 @@

rh-code-block

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -14450,36 +14424,60 @@

rh-code-block

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -14492,54 +14490,26 @@

rh-code-block

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -14547,23 +14517,21 @@

rh-code-block

flex-direction: row; } } - -
- -
+ + Events 0 @@ -14669,7 +14637,6 @@

rh-code-block

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -14714,12 +14681,6 @@

rh-code-block

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -14727,6 +14688,11 @@

rh-code-block

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -14737,36 +14703,60 @@

rh-code-block

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -14779,54 +14769,26 @@

rh-code-block

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -14834,23 +14796,21 @@

rh-code-block

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -14956,7 +14916,6 @@

rh-code-block

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -15001,12 +14960,6 @@

rh-code-block

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -15014,6 +14967,11 @@

rh-code-block

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -15024,36 +14982,60 @@

rh-code-block

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -15066,54 +15048,26 @@

rh-code-block

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -15121,23 +15075,21 @@

rh-code-block

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -15243,7 +15195,6 @@

rh-code-block

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -15288,12 +15239,6 @@

rh-code-block

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -15301,6 +15246,11 @@

rh-code-block

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -15311,36 +15261,60 @@

rh-code-block

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -15353,54 +15327,26 @@

rh-code-block

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -15408,23 +15354,21 @@

rh-code-block

flex-direction: row; } } - -
- -
+ + Design Tokens 45 diff --git a/elements/dialog/code/index.html b/elements/dialog/code/index.html index e8a85456aa..3760cfad19 100644 --- a/elements/dialog/code/index.html +++ b/elements/dialog/code/index.html @@ -9634,7 +9634,6 @@

rh-dialog

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9679,12 +9678,6 @@

rh-dialog

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9692,6 +9685,11 @@

rh-dialog

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9702,36 +9700,60 @@

rh-dialog

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9744,54 +9766,26 @@

rh-dialog

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9799,23 +9793,21 @@

rh-dialog

flex-direction: row; } } - -
- -
+ + Slots 3 @@ -10024,7 +10016,6 @@

rh-dialog

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10069,12 +10060,6 @@

rh-dialog

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10082,6 +10067,11 @@

rh-dialog

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10092,36 +10082,60 @@

rh-dialog

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10134,54 +10148,26 @@

rh-dialog

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10189,23 +10175,21 @@

rh-dialog

flex-direction: row; } } - -
- -
+ + Attributes 5 @@ -10442,7 +10426,6 @@

rh-dialog

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10487,12 +10470,6 @@

rh-dialog

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10500,6 +10477,11 @@

rh-dialog

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10510,36 +10492,60 @@

rh-dialog

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10552,54 +10558,26 @@

rh-dialog

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10607,23 +10585,21 @@

rh-dialog

flex-direction: row; } } - -
- -
+ + Methods 5 @@ -10843,7 +10819,6 @@

rh-dialog

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10888,12 +10863,6 @@

rh-dialog

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10901,6 +10870,11 @@

rh-dialog

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10911,36 +10885,60 @@

rh-dialog

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10953,54 +10951,26 @@

rh-dialog

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11008,23 +10978,21 @@

rh-dialog

flex-direction: row; } } - -
- -
+ + Events 3 @@ -11234,7 +11202,6 @@

rh-dialog

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11279,12 +11246,6 @@

rh-dialog

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11292,6 +11253,11 @@

rh-dialog

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11302,36 +11268,60 @@

rh-dialog

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11344,54 +11334,26 @@

rh-dialog

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11399,23 +11361,21 @@

rh-dialog

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 7 @@ -11641,7 +11601,6 @@

rh-dialog

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11686,12 +11645,6 @@

rh-dialog

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11699,6 +11652,11 @@

rh-dialog

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11709,36 +11667,60 @@

rh-dialog

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11751,54 +11733,26 @@

rh-dialog

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11806,23 +11760,21 @@

rh-dialog

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 2 @@ -12034,7 +11986,6 @@

rh-dialog

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12079,12 +12030,6 @@

rh-dialog

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12092,6 +12037,11 @@

rh-dialog

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12102,36 +12052,60 @@

rh-dialog

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12144,54 +12118,26 @@

rh-dialog

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12199,23 +12145,21 @@

rh-dialog

flex-direction: row; } } - -
- -
+ + Design Tokens 16 diff --git a/elements/footer/code/index.html b/elements/footer/code/index.html index d5402da24e..0967de2e0a 100644 --- a/elements/footer/code/index.html +++ b/elements/footer/code/index.html @@ -10745,7 +10745,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10790,12 +10789,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10803,6 +10796,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10813,36 +10811,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10855,54 +10877,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10910,23 +10904,21 @@ flex-direction: row; } } - -
- -
+ + Slots 12 @@ -11171,7 +11163,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11216,12 +11207,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11229,6 +11214,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11239,36 +11229,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11281,54 +11295,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11336,23 +11322,21 @@ flex-direction: row; } } - -
- -
+ + Attributes 1 @@ -11560,7 +11544,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11605,12 +11588,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11618,6 +11595,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11628,36 +11610,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11670,54 +11676,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11725,23 +11703,21 @@ flex-direction: row; } } - -
- -
+ + Methods 1 @@ -11944,7 +11920,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11989,12 +11964,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12002,6 +11971,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12012,36 +11986,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12054,54 +12052,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12109,23 +12079,21 @@ flex-direction: row; } } - -
- -
+ + Events 0 @@ -12231,7 +12199,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12276,12 +12243,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12289,6 +12250,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12299,36 +12265,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12341,54 +12331,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12396,23 +12358,21 @@ flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 12 @@ -12658,7 +12618,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12703,12 +12662,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12716,6 +12669,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12726,36 +12684,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12768,54 +12750,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12823,23 +12777,21 @@ flex-direction: row; } } - -
- -
+ + CSS Custom Properties 8 @@ -13093,7 +13045,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13138,12 +13089,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13151,6 +13096,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13161,36 +13111,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13203,54 +13177,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13258,23 +13204,21 @@ flex-direction: row; } } - -
- -
+ + Design Tokens 32 @@ -28261,7 +28205,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28306,12 +28249,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28319,6 +28256,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28329,36 +28271,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28371,54 +28337,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28426,23 +28364,21 @@ flex-direction: row; } } - -
- -
+ + Slots 0 @@ -28547,7 +28483,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28592,12 +28527,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28605,6 +28534,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28615,36 +28549,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28657,54 +28615,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28712,23 +28642,21 @@ flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -28834,7 +28762,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28879,12 +28806,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28892,6 +28813,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28902,36 +28828,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28944,54 +28894,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28999,23 +28921,21 @@ flex-direction: row; } } - -
- -
+ + Methods 0 @@ -29121,7 +29041,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29166,12 +29085,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29179,6 +29092,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29189,36 +29107,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29231,54 +29173,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29286,23 +29200,21 @@ flex-direction: row; } } - -
- -
+ + Events 0 @@ -29408,7 +29320,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29453,12 +29364,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29466,6 +29371,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29476,36 +29386,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29518,54 +29452,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} - -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29573,23 +29479,21 @@ flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -29695,7 +29599,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29740,12 +29643,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29753,6 +29650,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29763,36 +29665,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29805,54 +29731,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29860,23 +29758,21 @@ flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -29982,7 +29878,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -30027,12 +29922,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -30040,6 +29929,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -30050,36 +29944,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -30092,54 +30010,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -30147,23 +30037,21 @@ flex-direction: row; } } - -
- -
+ + Design Tokens 8 @@ -34086,7 +33974,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -34131,12 +34018,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -34144,6 +34025,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -34154,36 +34040,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -34196,54 +34106,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} - -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -34251,23 +34133,21 @@ flex-direction: row; } } - -
- -
+ + Slots 0 @@ -34372,7 +34252,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -34417,12 +34296,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -34430,6 +34303,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -34440,36 +34318,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -34482,54 +34384,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -34537,23 +34411,21 @@ flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -34659,7 +34531,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -34704,12 +34575,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -34717,6 +34582,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -34727,36 +34597,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -34769,54 +34663,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -34824,23 +34690,21 @@ flex-direction: row; } } - -
- -
+ + Methods 0 @@ -34946,7 +34810,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -34991,12 +34854,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -35004,6 +34861,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -35014,36 +34876,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -35056,54 +34942,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} - -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &, + &:before, + &:after { + padding: 0; + margin: 0; + } + + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -35111,23 +34969,21 @@ flex-direction: row; } } - -
- -
+ + Events 0 @@ -35233,7 +35089,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -35278,12 +35133,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -35291,6 +35140,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -35301,36 +35155,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -35343,54 +35221,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -35398,23 +35248,21 @@ flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -35520,7 +35368,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -35565,12 +35412,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -35578,6 +35419,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -35588,36 +35434,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -35630,54 +35500,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -35685,23 +35527,21 @@ flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -35807,7 +35647,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -35852,12 +35691,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -35865,6 +35698,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -35875,36 +35713,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -35917,54 +35779,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} - -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -35972,23 +35806,21 @@ flex-direction: row; } } - -
- -
+ + Design Tokens 0 @@ -36132,7 +35964,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -36177,12 +36008,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -36190,6 +36015,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -36200,36 +36030,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -36242,54 +36096,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -36297,23 +36123,21 @@ flex-direction: row; } } - -
- -
+ + Slots 0 @@ -36418,7 +36242,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -36463,12 +36286,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -36476,6 +36293,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -36486,36 +36308,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -36528,54 +36374,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -36583,23 +36401,21 @@ flex-direction: row; } } - -
- -
+ + Attributes 1 @@ -36808,7 +36624,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -36853,12 +36668,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -36866,6 +36675,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -36876,36 +36690,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -36918,54 +36756,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -36973,23 +36783,21 @@ flex-direction: row; } } - -
- -
+ + Methods 1 @@ -37191,7 +36999,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -37236,12 +37043,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -37249,6 +37050,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -37259,36 +37065,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -37301,54 +37131,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -37356,23 +37158,21 @@ flex-direction: row; } } - -
- -
+ + Events 0 @@ -37478,7 +37278,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -37523,12 +37322,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -37536,6 +37329,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -37546,36 +37344,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -37588,54 +37410,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -37643,23 +37437,21 @@ flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -37765,7 +37557,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -37810,12 +37601,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -37823,6 +37608,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -37833,36 +37623,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -37875,54 +37689,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -37930,23 +37716,21 @@ flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -38052,7 +37836,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -38097,12 +37880,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -38110,6 +37887,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -38120,36 +37902,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -38162,54 +37968,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -38217,23 +37995,21 @@ flex-direction: row; } } - -
- -
+ + Design Tokens 0 @@ -38377,7 +38153,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -38422,12 +38197,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -38435,6 +38204,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -38445,36 +38219,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -38487,54 +38285,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -38542,23 +38312,21 @@ flex-direction: row; } } - -
- -
+ + Slots 0 @@ -38663,7 +38431,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -38708,12 +38475,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -38721,6 +38482,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -38731,36 +38497,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -38773,54 +38563,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -38828,23 +38590,21 @@ flex-direction: row; } } - -
- -
+ + Attributes 1 @@ -39052,7 +38812,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -39097,12 +38856,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -39110,6 +38863,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -39120,36 +38878,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -39162,54 +38944,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -39217,23 +38971,21 @@ flex-direction: row; } } - -
- -
+ + Methods 0 @@ -39339,7 +39091,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -39384,12 +39135,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -39397,6 +39142,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -39407,36 +39157,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -39449,54 +39223,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -39504,23 +39250,21 @@ flex-direction: row; } } - -
- -
+ + Events 0 @@ -39626,7 +39370,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -39671,12 +39414,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -39684,6 +39421,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -39694,36 +39436,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -39736,54 +39502,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -39791,23 +39529,21 @@ flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -39913,7 +39649,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -39958,12 +39693,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -39971,6 +39700,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -39981,36 +39715,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -40023,54 +39781,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -40078,23 +39808,21 @@ flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -40200,7 +39928,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -40245,12 +39972,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -40258,6 +39979,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -40268,36 +39994,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -40310,54 +40060,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -40365,23 +40087,21 @@ flex-direction: row; } } - -
- -
+ + Design Tokens 1 @@ -41077,7 +40797,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -41122,12 +40841,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -41135,6 +40848,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -41145,36 +40863,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -41187,54 +40929,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -41242,23 +40956,21 @@ flex-direction: row; } } - -
- -
+ + Slots 12 @@ -41503,7 +41215,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -41548,12 +41259,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -41561,6 +41266,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -41571,36 +41281,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -41613,54 +41347,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -41668,23 +41374,21 @@ flex-direction: row; } } - -
- -
+ + Attributes 1 @@ -41892,7 +41596,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -41937,12 +41640,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -41950,6 +41647,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -41960,36 +41662,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -42002,54 +41728,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -42057,23 +41755,21 @@ flex-direction: row; } } - -
- -
+ + Methods 0 @@ -42179,7 +41875,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -42224,12 +41919,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -42237,6 +41926,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -42247,36 +41941,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -42289,54 +42007,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -42344,23 +42034,21 @@ flex-direction: row; } } - -
- -
+ + Events 0 @@ -42466,7 +42154,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -42508,13 +42195,7 @@ :host(.animating) #button, :host([expanded]) #button { border-inline-end-color: var(--rh-color-border-subtle); - border-inline-start-color: var(--rh-color-border-subtle); -} - -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); + border-inline-start-color: var(--rh-color-border-subtle); } #icon { @@ -42524,6 +42205,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -42534,36 +42220,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -42576,54 +42286,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -42631,23 +42313,21 @@ flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 13 @@ -42897,7 +42577,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -42942,12 +42621,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -42955,6 +42628,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -42965,36 +42643,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -43007,54 +42709,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -43062,23 +42736,21 @@ flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -43184,7 +42856,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -43229,12 +42900,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -43242,6 +42907,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -43252,36 +42922,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -43294,54 +42988,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -43349,23 +43015,21 @@ flex-direction: row; } } - -
- -
+ + Design Tokens 0 diff --git a/elements/footnote/code/index.html b/elements/footnote/code/index.html index ba126ab520..036a4125c0 100644 --- a/elements/footnote/code/index.html +++ b/elements/footnote/code/index.html @@ -9265,7 +9265,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9310,12 +9309,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9323,6 +9316,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9333,36 +9331,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9375,54 +9397,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9430,23 +9424,21 @@

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -9551,7 +9543,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9596,12 +9587,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9609,6 +9594,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9619,36 +9609,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9661,54 +9675,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9716,23 +9702,21 @@

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -9838,7 +9822,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9883,12 +9866,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9896,6 +9873,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9906,36 +9888,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9948,54 +9954,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10003,23 +9981,21 @@

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10125,7 +10101,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10170,12 +10145,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10183,6 +10152,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10193,36 +10167,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10235,54 +10233,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10290,23 +10260,21 @@

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10412,7 +10380,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10457,12 +10424,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10470,6 +10431,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10480,36 +10446,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10522,54 +10512,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10577,23 +10539,21 @@

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -10699,7 +10659,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10744,12 +10703,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10757,6 +10710,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10767,36 +10725,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10809,54 +10791,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10864,23 +10818,21 @@

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -10986,7 +10938,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11031,12 +10982,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11044,6 +10989,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11054,36 +11004,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11096,54 +11070,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11151,23 +11097,21 @@

flex-direction: row; } } - -
- -
+ + Design Tokens 0 diff --git a/elements/health-index/code/index.html b/elements/health-index/code/index.html index 7d81cd8dcb..13d7eceb12 100644 --- a/elements/health-index/code/index.html +++ b/elements/health-index/code/index.html @@ -9622,7 +9622,6 @@

rh-health-index

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9667,12 +9666,6 @@

rh-health-index

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9680,6 +9673,11 @@

rh-health-index

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9690,36 +9688,60 @@

rh-health-index

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9732,54 +9754,26 @@

rh-health-index

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9787,23 +9781,21 @@

rh-health-index

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -9908,7 +9900,6 @@

rh-health-index

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9953,12 +9944,6 @@

rh-health-index

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9966,6 +9951,11 @@

rh-health-index

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9976,36 +9966,60 @@

rh-health-index

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10018,54 +10032,26 @@

rh-health-index

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10073,23 +10059,21 @@

rh-health-index

flex-direction: row; } } - -
- -
+ + Attributes 2 @@ -10306,7 +10290,6 @@

rh-health-index

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10351,12 +10334,6 @@

rh-health-index

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10364,6 +10341,11 @@

rh-health-index

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10374,36 +10356,60 @@

rh-health-index

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10416,54 +10422,26 @@

rh-health-index

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10471,23 +10449,21 @@

rh-health-index

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10593,7 +10569,6 @@

rh-health-index

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10638,12 +10613,6 @@

rh-health-index

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10651,6 +10620,11 @@

rh-health-index

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10661,36 +10635,60 @@

rh-health-index

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10703,54 +10701,26 @@

rh-health-index

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10758,23 +10728,21 @@

rh-health-index

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10880,7 +10848,6 @@

rh-health-index

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10925,12 +10892,6 @@

rh-health-index

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10938,6 +10899,11 @@

rh-health-index

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10948,36 +10914,60 @@

rh-health-index

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10990,54 +10980,26 @@

rh-health-index

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11045,23 +11007,21 @@

rh-health-index

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11167,7 +11127,6 @@

rh-health-index

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11212,12 +11171,6 @@

rh-health-index

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11225,6 +11178,11 @@

rh-health-index

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11235,36 +11193,60 @@

rh-health-index

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11277,54 +11259,26 @@

rh-health-index

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11332,23 +11286,21 @@

rh-health-index

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11454,7 +11406,6 @@

rh-health-index

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11499,12 +11450,6 @@

rh-health-index

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11512,6 +11457,11 @@

rh-health-index

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11522,36 +11472,60 @@

rh-health-index

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11564,54 +11538,26 @@

rh-health-index

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11619,23 +11565,21 @@

rh-health-index

flex-direction: row; } } - -
- -
+ + Design Tokens 39 diff --git a/elements/icon/code/index.html b/elements/icon/code/index.html index e9d514f557..caac6b61f8 100644 --- a/elements/icon/code/index.html +++ b/elements/icon/code/index.html @@ -10242,7 +10242,6 @@

rh-icon

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10287,12 +10286,6 @@

rh-icon

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10300,6 +10293,11 @@

rh-icon

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10310,36 +10308,60 @@

rh-icon

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10352,54 +10374,26 @@

rh-icon

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10407,23 +10401,21 @@

rh-icon

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -10624,7 +10616,6 @@

rh-icon

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10669,12 +10660,6 @@

rh-icon

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10682,6 +10667,11 @@

rh-icon

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10692,36 +10682,60 @@

rh-icon

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10734,54 +10748,26 @@

rh-icon

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10789,23 +10775,21 @@

rh-icon

flex-direction: row; } } - -
- -
+ + Attributes 4 @@ -11040,7 +11024,6 @@

rh-icon

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11085,12 +11068,6 @@

rh-icon

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11098,6 +11075,11 @@

rh-icon

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11108,36 +11090,60 @@

rh-icon

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11150,54 +11156,26 @@

rh-icon

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11205,23 +11183,21 @@

rh-icon

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -11327,7 +11303,6 @@

rh-icon

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11372,12 +11347,6 @@

rh-icon

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11385,6 +11354,11 @@

rh-icon

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11395,36 +11369,60 @@

rh-icon

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11437,54 +11435,26 @@

rh-icon

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11492,23 +11462,21 @@

rh-icon

flex-direction: row; } } - -
- -
+ + Events 3 @@ -11718,7 +11686,6 @@

rh-icon

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11763,12 +11730,6 @@

rh-icon

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11776,6 +11737,11 @@

rh-icon

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11786,36 +11752,60 @@

rh-icon

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11828,54 +11818,26 @@

rh-icon

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11883,23 +11845,21 @@

rh-icon

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 1 @@ -12101,7 +12061,6 @@

rh-icon

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12146,12 +12105,6 @@

rh-icon

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12159,6 +12112,11 @@

rh-icon

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12169,36 +12127,60 @@

rh-icon

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12211,54 +12193,26 @@

rh-icon

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12266,23 +12220,21 @@

rh-icon

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 1 @@ -12487,7 +12439,6 @@

rh-icon

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12532,12 +12483,6 @@

rh-icon

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12545,6 +12490,11 @@

rh-icon

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12555,36 +12505,60 @@

rh-icon

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12597,54 +12571,26 @@

rh-icon

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12652,23 +12598,21 @@

rh-icon

flex-direction: row; } } - -
- -
+ + Design Tokens 2 diff --git a/elements/jump-links/code/index.html b/elements/jump-links/code/index.html index eab20f6e28..7e3cbf1a17 100644 --- a/elements/jump-links/code/index.html +++ b/elements/jump-links/code/index.html @@ -8927,7 +8927,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -8972,12 +8971,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -8985,6 +8978,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -8995,36 +8993,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9037,54 +9059,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9092,23 +9086,21 @@

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -9213,7 +9205,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9258,12 +9249,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9271,6 +9256,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9281,36 +9271,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9323,54 +9337,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9378,23 +9364,21 @@

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -9500,7 +9484,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9545,12 +9528,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9558,6 +9535,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9568,36 +9550,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9610,54 +9616,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9665,23 +9643,21 @@

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -9787,7 +9763,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9832,12 +9807,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9845,6 +9814,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9855,36 +9829,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9897,54 +9895,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9952,23 +9922,21 @@

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10074,7 +10042,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10119,12 +10086,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10132,6 +10093,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10142,36 +10108,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10184,54 +10174,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10239,23 +10201,21 @@

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -10361,7 +10321,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10406,12 +10365,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10419,6 +10372,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10429,36 +10387,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10471,54 +10453,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10526,23 +10480,21 @@

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -10648,7 +10600,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10693,12 +10644,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10706,6 +10651,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10716,36 +10666,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10758,54 +10732,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10813,23 +10759,21 @@

flex-direction: row; } } - -
- -
+ + Design Tokens 0 diff --git a/elements/menu/code/index.html b/elements/menu/code/index.html index d1fd15b516..27abfeaf3e 100644 --- a/elements/menu/code/index.html +++ b/elements/menu/code/index.html @@ -9627,7 +9627,6 @@

rh-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9672,12 +9671,6 @@

rh-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9685,6 +9678,11 @@

rh-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9695,36 +9693,60 @@

rh-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9737,54 +9759,26 @@

rh-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9792,23 +9786,21 @@

rh-menu

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -10009,7 +10001,6 @@

rh-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10054,12 +10045,6 @@

rh-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10067,6 +10052,11 @@

rh-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10077,36 +10067,60 @@

rh-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10119,54 +10133,26 @@

rh-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10174,23 +10160,21 @@

rh-menu

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -10296,7 +10280,6 @@

rh-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10341,12 +10324,6 @@

rh-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10354,6 +10331,11 @@

rh-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10364,36 +10346,60 @@

rh-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10406,54 +10412,26 @@

rh-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10461,23 +10439,21 @@

rh-menu

flex-direction: row; } } - -
- -
+ + Methods 3 @@ -10687,7 +10663,6 @@

rh-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10732,12 +10707,6 @@

rh-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10745,6 +10714,11 @@

rh-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10755,36 +10729,60 @@

rh-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10797,54 +10795,26 @@

rh-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10852,23 +10822,21 @@

rh-menu

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10974,7 +10942,6 @@

rh-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11019,12 +10986,6 @@

rh-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11032,6 +10993,11 @@

rh-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11042,36 +11008,60 @@

rh-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11084,54 +11074,26 @@

rh-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11139,23 +11101,21 @@

rh-menu

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11261,7 +11221,6 @@

rh-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11306,12 +11265,6 @@

rh-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11319,6 +11272,11 @@

rh-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11329,36 +11287,60 @@

rh-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11371,54 +11353,26 @@

rh-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11426,23 +11380,21 @@

rh-menu

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11548,7 +11500,6 @@

rh-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11593,12 +11544,6 @@

rh-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11606,6 +11551,11 @@

rh-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11616,36 +11566,60 @@

rh-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11658,54 +11632,26 @@

rh-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11713,23 +11659,21 @@

rh-menu

flex-direction: row; } } - -
- -
+ + Design Tokens 3 diff --git a/elements/navigation-primary/code/index.html b/elements/navigation-primary/code/index.html index 0c34d96442..0a42e2172d 100644 --- a/elements/navigation-primary/code/index.html +++ b/elements/navigation-primary/code/index.html @@ -9265,7 +9265,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9310,12 +9309,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9323,6 +9316,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9333,36 +9331,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9375,54 +9397,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9430,23 +9424,21 @@

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -9551,7 +9543,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9596,12 +9587,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9609,6 +9594,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9619,36 +9609,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9661,54 +9675,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9716,23 +9702,21 @@

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -9838,7 +9822,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9883,12 +9866,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9896,6 +9873,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9906,36 +9888,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9948,54 +9954,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10003,23 +9981,21 @@

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10125,7 +10101,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10170,12 +10145,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10183,6 +10152,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10193,36 +10167,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10235,54 +10233,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10290,23 +10260,21 @@

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10412,7 +10380,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10457,12 +10424,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10470,6 +10431,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10480,36 +10446,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10522,54 +10512,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10577,23 +10539,21 @@

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -10699,7 +10659,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10744,12 +10703,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10757,6 +10710,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10767,36 +10725,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10809,54 +10791,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10864,23 +10818,21 @@

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -10986,7 +10938,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11031,12 +10982,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11044,6 +10989,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11054,36 +11004,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11096,54 +11070,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11151,23 +11097,21 @@

flex-direction: row; } } - -
- -
+ + Design Tokens 0 diff --git a/elements/navigation-secondary/code/index.html b/elements/navigation-secondary/code/index.html index 06c2994ff8..b135dc4c83 100644 --- a/elements/navigation-secondary/code/index.html +++ b/elements/navigation-secondary/code/index.html @@ -11420,7 +11420,6 @@

rh-navigation-secondary

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11465,12 +11464,6 @@

rh-navigation-secondary

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11478,6 +11471,11 @@

rh-navigation-secondary

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11488,36 +11486,60 @@

rh-navigation-secondary

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11530,54 +11552,26 @@

rh-navigation-secondary

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11585,23 +11579,21 @@

rh-navigation-secondary

flex-direction: row; } } - -
- -
+ + Slots 4 @@ -11814,7 +11806,6 @@

rh-navigation-secondary

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11859,12 +11850,6 @@

rh-navigation-secondary

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11872,6 +11857,11 @@

rh-navigation-secondary

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11882,36 +11872,60 @@

rh-navigation-secondary

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11924,54 +11938,26 @@

rh-navigation-secondary

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11979,23 +11965,21 @@

rh-navigation-secondary

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -12101,7 +12085,6 @@

rh-navigation-secondary

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12146,12 +12129,6 @@

rh-navigation-secondary

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12159,6 +12136,11 @@

rh-navigation-secondary

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12169,36 +12151,60 @@

rh-navigation-secondary

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12211,54 +12217,26 @@

rh-navigation-secondary

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12266,23 +12244,21 @@

rh-navigation-secondary

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -12388,7 +12364,6 @@

rh-navigation-secondary

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12433,12 +12408,6 @@

rh-navigation-secondary

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12446,6 +12415,11 @@

rh-navigation-secondary

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12456,36 +12430,60 @@

rh-navigation-secondary

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12498,54 +12496,26 @@

rh-navigation-secondary

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12553,23 +12523,21 @@

rh-navigation-secondary

flex-direction: row; } } - -
- -
+ + Events 1 @@ -12771,7 +12739,6 @@

rh-navigation-secondary

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12816,12 +12783,6 @@

rh-navigation-secondary

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12829,6 +12790,11 @@

rh-navigation-secondary

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12839,36 +12805,60 @@

rh-navigation-secondary

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12881,54 +12871,26 @@

rh-navigation-secondary

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12936,23 +12898,21 @@

rh-navigation-secondary

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 3 @@ -13162,7 +13122,6 @@

rh-navigation-secondary

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13207,12 +13166,6 @@

rh-navigation-secondary

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13220,6 +13173,11 @@

rh-navigation-secondary

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13230,36 +13188,60 @@

rh-navigation-secondary

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13272,54 +13254,26 @@

rh-navigation-secondary

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13327,23 +13281,21 @@

rh-navigation-secondary

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 2 @@ -13555,7 +13507,6 @@

rh-navigation-secondary

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13600,12 +13551,6 @@

rh-navigation-secondary

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13613,6 +13558,11 @@

rh-navigation-secondary

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13623,36 +13573,60 @@

rh-navigation-secondary

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13665,54 +13639,26 @@

rh-navigation-secondary

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13720,23 +13666,21 @@

rh-navigation-secondary

flex-direction: row; } } - -
- -
+ + Design Tokens 30 @@ -27801,7 +27745,6 @@

rh-navigation-secondary-dropdown< --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -27846,12 +27789,6 @@

rh-navigation-secondary-dropdown< border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -27859,6 +27796,11 @@

rh-navigation-secondary-dropdown< transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -27869,36 +27811,60 @@

rh-navigation-secondary-dropdown< font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -27911,54 +27877,26 @@

rh-navigation-secondary-dropdown< gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -27966,23 +27904,21 @@

rh-navigation-secondary-dropdown< flex-direction: row; } } - -
- -
+ + Slots 2 @@ -28187,7 +28123,6 @@

rh-navigation-secondary-dropdown< --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28232,12 +28167,6 @@

rh-navigation-secondary-dropdown< border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28245,6 +28174,11 @@

rh-navigation-secondary-dropdown< transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28255,36 +28189,60 @@

rh-navigation-secondary-dropdown< font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28297,54 +28255,26 @@

rh-navigation-secondary-dropdown< gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28352,23 +28282,21 @@

rh-navigation-secondary-dropdown< flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -28474,7 +28402,6 @@

rh-navigation-secondary-dropdown< --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28519,12 +28446,6 @@

rh-navigation-secondary-dropdown< border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28532,6 +28453,11 @@

rh-navigation-secondary-dropdown< transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28542,36 +28468,60 @@

rh-navigation-secondary-dropdown< font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28584,54 +28534,26 @@

rh-navigation-secondary-dropdown< gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28639,23 +28561,21 @@

rh-navigation-secondary-dropdown< flex-direction: row; } } - -
- -
+ + Methods 0 @@ -28761,7 +28681,6 @@

rh-navigation-secondary-dropdown< --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28806,12 +28725,6 @@

rh-navigation-secondary-dropdown< border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28819,6 +28732,11 @@

rh-navigation-secondary-dropdown< transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28829,36 +28747,60 @@

rh-navigation-secondary-dropdown< font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28871,54 +28813,26 @@

rh-navigation-secondary-dropdown< gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28926,23 +28840,21 @@

rh-navigation-secondary-dropdown< flex-direction: row; } } - -
- -
+ + Events 1 @@ -29144,7 +29056,6 @@

rh-navigation-secondary-dropdown< --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29189,12 +29100,6 @@

rh-navigation-secondary-dropdown< border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29202,6 +29107,11 @@

rh-navigation-secondary-dropdown< transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29212,36 +29122,60 @@

rh-navigation-secondary-dropdown< font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29254,54 +29188,26 @@

rh-navigation-secondary-dropdown< gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29309,23 +29215,21 @@

rh-navigation-secondary-dropdown< flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -29431,7 +29335,6 @@

rh-navigation-secondary-dropdown< --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29476,12 +29379,6 @@

rh-navigation-secondary-dropdown< border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29489,6 +29386,11 @@

rh-navigation-secondary-dropdown< transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29499,36 +29401,60 @@

rh-navigation-secondary-dropdown< font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29541,54 +29467,26 @@

rh-navigation-secondary-dropdown< gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29596,23 +29494,21 @@

rh-navigation-secondary-dropdown< flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -29718,7 +29614,6 @@

rh-navigation-secondary-dropdown< --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29763,12 +29658,6 @@

rh-navigation-secondary-dropdown< border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29776,6 +29665,11 @@

rh-navigation-secondary-dropdown< transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29786,36 +29680,60 @@

rh-navigation-secondary-dropdown< font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29828,54 +29746,26 @@

rh-navigation-secondary-dropdown< gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29883,23 +29773,21 @@

rh-navigation-secondary-dropdown< flex-direction: row; } } - -
- -
+ + Design Tokens 10 @@ -34744,7 +34632,6 @@

rh-navigation-secondary-menu- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -34789,12 +34676,6 @@

rh-navigation-secondary-menu- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -34802,6 +34683,11 @@

rh-navigation-secondary-menu- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -34812,36 +34698,60 @@

rh-navigation-secondary-menu- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -34854,54 +34764,26 @@

rh-navigation-secondary-menu- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -34909,23 +34791,21 @@

rh-navigation-secondary-menu- flex-direction: row; } } - -
- -
+ + Slots 3 @@ -35134,7 +35014,6 @@

rh-navigation-secondary-menu- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -35179,12 +35058,6 @@

rh-navigation-secondary-menu- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -35192,6 +35065,11 @@

rh-navigation-secondary-menu- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -35202,36 +35080,60 @@

rh-navigation-secondary-menu- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -35244,54 +35146,26 @@

rh-navigation-secondary-menu- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -35299,23 +35173,21 @@

rh-navigation-secondary-menu- flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -35421,7 +35293,6 @@

rh-navigation-secondary-menu- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -35466,12 +35337,6 @@

rh-navigation-secondary-menu- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -35479,6 +35344,11 @@

rh-navigation-secondary-menu- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -35489,36 +35359,60 @@

rh-navigation-secondary-menu- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -35531,54 +35425,26 @@

rh-navigation-secondary-menu- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -35586,23 +35452,21 @@

rh-navigation-secondary-menu- flex-direction: row; } } - -
- -
+ + Methods 0 @@ -35708,7 +35572,6 @@

rh-navigation-secondary-menu- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -35753,12 +35616,6 @@

rh-navigation-secondary-menu- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -35766,6 +35623,11 @@

rh-navigation-secondary-menu- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -35776,36 +35638,60 @@

rh-navigation-secondary-menu- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -35818,54 +35704,26 @@

rh-navigation-secondary-menu- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -35873,23 +35731,21 @@

rh-navigation-secondary-menu- flex-direction: row; } } - -
- -
+ + Events 0 @@ -35995,7 +35851,6 @@

rh-navigation-secondary-menu- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -36040,12 +35895,6 @@

rh-navigation-secondary-menu- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -36053,6 +35902,11 @@

rh-navigation-secondary-menu- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -36063,36 +35917,60 @@

rh-navigation-secondary-menu- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -36105,54 +35983,26 @@

rh-navigation-secondary-menu- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -36160,23 +36010,21 @@

rh-navigation-secondary-menu- flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 1 @@ -36378,7 +36226,6 @@

rh-navigation-secondary-menu- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -36423,12 +36270,6 @@

rh-navigation-secondary-menu- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -36436,6 +36277,11 @@

rh-navigation-secondary-menu- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -36446,36 +36292,60 @@

rh-navigation-secondary-menu- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -36488,54 +36358,26 @@

rh-navigation-secondary-menu- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -36543,23 +36385,21 @@

rh-navigation-secondary-menu- flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -36665,7 +36505,6 @@

rh-navigation-secondary-menu- --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -36710,12 +36549,6 @@

rh-navigation-secondary-menu- border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -36723,6 +36556,11 @@

rh-navigation-secondary-menu- transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -36733,36 +36571,60 @@

rh-navigation-secondary-menu- font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -36775,54 +36637,26 @@

rh-navigation-secondary-menu- gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -36830,23 +36664,21 @@

rh-navigation-secondary-menu- flex-direction: row; } } - -
- -
+ + Design Tokens 3 @@ -38464,7 +38296,6 @@

rh-navigation-secondary-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -38509,12 +38340,6 @@

rh-navigation-secondary-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -38522,6 +38347,11 @@

rh-navigation-secondary-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -38532,36 +38362,60 @@

rh-navigation-secondary-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -38574,54 +38428,26 @@

rh-navigation-secondary-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -38629,23 +38455,21 @@

rh-navigation-secondary-menu

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -38846,7 +38670,6 @@

rh-navigation-secondary-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -38891,12 +38714,6 @@

rh-navigation-secondary-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -38904,6 +38721,11 @@

rh-navigation-secondary-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -38914,36 +38736,60 @@

rh-navigation-secondary-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -38956,54 +38802,26 @@

rh-navigation-secondary-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -39011,23 +38829,21 @@

rh-navigation-secondary-menu

flex-direction: row; } } - -
- -
+ + Attributes 3 @@ -39251,7 +39067,6 @@

rh-navigation-secondary-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -39296,12 +39111,6 @@

rh-navigation-secondary-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -39309,6 +39118,11 @@

rh-navigation-secondary-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -39319,36 +39133,60 @@

rh-navigation-secondary-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -39361,54 +39199,26 @@

rh-navigation-secondary-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -39416,23 +39226,21 @@

rh-navigation-secondary-menu

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -39538,7 +39346,6 @@

rh-navigation-secondary-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -39583,12 +39390,6 @@

rh-navigation-secondary-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -39596,6 +39397,11 @@

rh-navigation-secondary-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -39606,36 +39412,60 @@

rh-navigation-secondary-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -39648,54 +39478,26 @@

rh-navigation-secondary-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -39703,23 +39505,21 @@

rh-navigation-secondary-menu

flex-direction: row; } } - -
- -
+ + Events 0 @@ -39825,7 +39625,6 @@

rh-navigation-secondary-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -39870,12 +39669,6 @@

rh-navigation-secondary-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -39883,6 +39676,11 @@

rh-navigation-secondary-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -39893,36 +39691,60 @@

rh-navigation-secondary-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -39935,54 +39757,26 @@

rh-navigation-secondary-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -39990,23 +39784,21 @@

rh-navigation-secondary-menu

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 4 @@ -40220,7 +40012,6 @@

rh-navigation-secondary-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -40265,12 +40056,6 @@

rh-navigation-secondary-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -40278,6 +40063,11 @@

rh-navigation-secondary-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -40288,36 +40078,60 @@

rh-navigation-secondary-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -40330,54 +40144,26 @@

rh-navigation-secondary-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -40385,23 +40171,21 @@

rh-navigation-secondary-menu

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 3 @@ -40620,7 +40404,6 @@

rh-navigation-secondary-menu

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -40665,12 +40448,6 @@

rh-navigation-secondary-menu

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -40678,6 +40455,11 @@

rh-navigation-secondary-menu

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -40688,36 +40470,60 @@

rh-navigation-secondary-menu

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -40730,54 +40536,26 @@

rh-navigation-secondary-menu

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -40785,23 +40563,21 @@

rh-navigation-secondary-menu

flex-direction: row; } } - -
- -
+ + Design Tokens 8 @@ -44724,7 +44500,6 @@

rh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlay -
- -
+ + Slots 0 @@ -45010,7 +44778,6 @@

rh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlay -
- -
+ + Attributes 1 @@ -45399,7 +45159,6 @@

rh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlay -
- -
+ + Methods 0 @@ -45686,7 +45438,6 @@

rh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlay -
- -
+ + Events 0 @@ -45973,7 +45717,6 @@

rh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlay -
- -
+ + CSS Shadow Parts 0 @@ -46260,7 +45996,6 @@

rh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlay -
- -
+ + CSS Custom Properties 0 @@ -46547,7 +46275,6 @@

rh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlayrh-navigation-secondary-overlay -
- -
+ + Design Tokens 2 diff --git a/elements/pagination/code/index.html b/elements/pagination/code/index.html index ac692ec7ea..7f6321c056 100644 --- a/elements/pagination/code/index.html +++ b/elements/pagination/code/index.html @@ -10676,7 +10676,6 @@

rh-pagination

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10721,12 +10720,6 @@

rh-pagination

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10734,6 +10727,11 @@

rh-pagination

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10744,36 +10742,60 @@

rh-pagination

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10786,54 +10808,26 @@

rh-pagination

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10841,23 +10835,21 @@

rh-pagination

flex-direction: row; } } - -
- -
+ + Slots 3 @@ -11066,7 +11058,6 @@

rh-pagination

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11111,12 +11102,6 @@

rh-pagination

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11124,6 +11109,11 @@

rh-pagination

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11134,36 +11124,60 @@

rh-pagination

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11176,54 +11190,26 @@

rh-pagination

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11231,23 +11217,21 @@

rh-pagination

flex-direction: row; } } - -
- -
+ + Attributes 8 @@ -11508,7 +11492,6 @@

rh-pagination

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11553,12 +11536,6 @@

rh-pagination

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11566,6 +11543,11 @@

rh-pagination

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11576,36 +11558,60 @@

rh-pagination

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11618,54 +11624,26 @@

rh-pagination

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11673,23 +11651,21 @@

rh-pagination

flex-direction: row; } } - -
- -
+ + Methods 5 @@ -11907,7 +11883,6 @@

rh-pagination

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11952,12 +11927,6 @@

rh-pagination

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11965,6 +11934,11 @@

rh-pagination

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11975,36 +11949,60 @@

rh-pagination

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12017,54 +12015,26 @@

rh-pagination

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12072,23 +12042,21 @@

rh-pagination

flex-direction: row; } } - -
- -
+ + Events 0 @@ -12194,7 +12162,6 @@

rh-pagination

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12239,12 +12206,6 @@

rh-pagination

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12252,6 +12213,11 @@

rh-pagination

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12262,36 +12228,60 @@

rh-pagination

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12304,54 +12294,26 @@

rh-pagination

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12359,23 +12321,21 @@

rh-pagination

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 4 @@ -12589,7 +12549,6 @@

rh-pagination

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12634,12 +12593,6 @@

rh-pagination

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12647,6 +12600,11 @@

rh-pagination

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12657,36 +12615,60 @@

rh-pagination

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12699,54 +12681,26 @@

rh-pagination

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12754,23 +12708,21 @@

rh-pagination

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 3 @@ -12989,7 +12941,6 @@

rh-pagination

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13034,12 +12985,6 @@

rh-pagination

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13047,6 +12992,11 @@

rh-pagination

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13057,36 +13007,60 @@

rh-pagination

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13099,54 +13073,26 @@

rh-pagination

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13154,23 +13100,21 @@

rh-pagination

flex-direction: row; } } - -
- -
+ + Design Tokens 37 diff --git a/elements/popover/code/index.html b/elements/popover/code/index.html index 5aa7cc7262..2da92e5343 100644 --- a/elements/popover/code/index.html +++ b/elements/popover/code/index.html @@ -9342,7 +9342,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9387,12 +9386,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9400,6 +9393,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9410,36 +9408,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9452,54 +9474,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9507,23 +9501,21 @@

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -9628,7 +9620,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9673,12 +9664,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9686,6 +9671,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9696,36 +9686,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9738,54 +9752,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9793,23 +9779,21 @@

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -9915,7 +9899,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9960,12 +9943,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9973,6 +9950,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9983,36 +9965,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10025,54 +10031,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10080,23 +10058,21 @@

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10202,7 +10178,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10247,12 +10222,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10260,6 +10229,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10270,36 +10244,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10312,54 +10310,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10367,23 +10337,21 @@

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10489,7 +10457,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10531,13 +10498,7 @@

:host(.animating) #button, :host([expanded]) #button { border-inline-end-color: var(--rh-color-border-subtle); - border-inline-start-color: var(--rh-color-border-subtle); -} - -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); + border-inline-start-color: var(--rh-color-border-subtle); } #icon { @@ -10547,6 +10508,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10557,36 +10523,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10599,54 +10589,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10654,23 +10616,21 @@

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -10776,7 +10736,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10821,12 +10780,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10834,6 +10787,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10844,36 +10802,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10886,54 +10868,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10941,23 +10895,21 @@

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11063,7 +11015,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11108,12 +11059,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11121,6 +11066,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11131,36 +11081,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11173,54 +11147,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11228,23 +11174,21 @@

flex-direction: row; } } - -
- -
+ + Design Tokens 0 diff --git a/elements/progress-steps/code/index.html b/elements/progress-steps/code/index.html index 442f74f10e..80e3ed7a0d 100644 --- a/elements/progress-steps/code/index.html +++ b/elements/progress-steps/code/index.html @@ -9342,7 +9342,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9387,12 +9386,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9400,6 +9393,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9410,36 +9408,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9452,54 +9474,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9507,23 +9501,21 @@

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -9628,7 +9620,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9673,12 +9664,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9686,6 +9671,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9696,36 +9686,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9738,54 +9752,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9793,23 +9779,21 @@

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -9915,7 +9899,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9960,12 +9943,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9973,6 +9950,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9983,36 +9965,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10025,54 +10031,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10080,23 +10058,21 @@

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10202,7 +10178,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10247,12 +10222,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10260,6 +10229,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10270,36 +10244,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10312,54 +10310,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10367,23 +10337,21 @@

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10489,7 +10457,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10531,13 +10498,7 @@

:host(.animating) #button, :host([expanded]) #button { border-inline-end-color: var(--rh-color-border-subtle); - border-inline-start-color: var(--rh-color-border-subtle); -} - -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); + border-inline-start-color: var(--rh-color-border-subtle); } #icon { @@ -10547,6 +10508,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10557,36 +10523,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10599,54 +10589,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10654,23 +10616,21 @@

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -10776,7 +10736,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10821,12 +10780,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10834,6 +10787,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10844,36 +10802,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10886,54 +10868,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10941,23 +10895,21 @@

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11063,7 +11015,6 @@

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11108,12 +11059,6 @@

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11121,6 +11066,11 @@

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11131,36 +11081,60 @@

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11173,54 +11147,26 @@

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11228,23 +11174,21 @@

flex-direction: row; } } - -
- -
+ + Design Tokens 0 diff --git a/elements/site-status/code/index.html b/elements/site-status/code/index.html index 9a943b67ca..789a14fc5a 100644 --- a/elements/site-status/code/index.html +++ b/elements/site-status/code/index.html @@ -9622,7 +9622,6 @@

rh-site-status

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9667,12 +9666,6 @@

rh-site-status

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9680,6 +9673,11 @@

rh-site-status

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9690,36 +9688,60 @@

rh-site-status

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9732,54 +9754,26 @@

rh-site-status

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9787,23 +9781,21 @@

rh-site-status

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -10004,7 +9996,6 @@

rh-site-status

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10049,12 +10040,6 @@

rh-site-status

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10062,6 +10047,11 @@

rh-site-status

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10072,36 +10062,60 @@

rh-site-status

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10114,54 +10128,26 @@

rh-site-status

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10169,23 +10155,21 @@

rh-site-status

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -10291,7 +10275,6 @@

rh-site-status

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10336,12 +10319,6 @@

rh-site-status

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10349,6 +10326,11 @@

rh-site-status

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10359,36 +10341,60 @@

rh-site-status

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10401,54 +10407,26 @@

rh-site-status

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10456,23 +10434,21 @@

rh-site-status

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10578,7 +10554,6 @@

rh-site-status

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10623,12 +10598,6 @@

rh-site-status

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10636,6 +10605,11 @@

rh-site-status

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10646,36 +10620,60 @@

rh-site-status

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10688,54 +10686,26 @@

rh-site-status

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10743,23 +10713,21 @@

rh-site-status

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10865,7 +10833,6 @@

rh-site-status

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10910,12 +10877,6 @@

rh-site-status

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10923,6 +10884,11 @@

rh-site-status

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10933,36 +10899,60 @@

rh-site-status

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10975,54 +10965,26 @@

rh-site-status

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11030,23 +10992,21 @@

rh-site-status

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11152,7 +11112,6 @@

rh-site-status

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11197,12 +11156,6 @@

rh-site-status

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11210,6 +11163,11 @@

rh-site-status

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11220,36 +11178,60 @@

rh-site-status

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11262,54 +11244,26 @@

rh-site-status

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11317,23 +11271,21 @@

rh-site-status

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11439,7 +11391,6 @@

rh-site-status

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11484,12 +11435,6 @@

rh-site-status

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11497,6 +11442,11 @@

rh-site-status

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11507,36 +11457,60 @@

rh-site-status

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11549,54 +11523,26 @@

rh-site-status

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11604,23 +11550,21 @@

rh-site-status

flex-direction: row; } } - -
- -
+ + Design Tokens 14 diff --git a/elements/skip-link/code/index.html b/elements/skip-link/code/index.html index f54d654220..288b092a3f 100644 --- a/elements/skip-link/code/index.html +++ b/elements/skip-link/code/index.html @@ -11168,7 +11168,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11213,12 +11212,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11226,6 +11219,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11236,36 +11234,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11278,54 +11300,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11333,23 +11327,21 @@ flex-direction: row; } } - -
- -
+ + Slots 1 @@ -11550,7 +11542,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11595,12 +11586,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11608,6 +11593,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11618,36 +11608,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11660,54 +11674,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11715,23 +11701,21 @@ flex-direction: row; } } - -
- -
+ + Attributes 1 @@ -11939,7 +11923,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11984,12 +11967,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11997,6 +11974,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12007,36 +11989,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12049,54 +12055,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12104,23 +12082,21 @@ flex-direction: row; } } - -
- -
+ + Methods 0 @@ -12226,7 +12202,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12271,12 +12246,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12284,6 +12253,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12294,36 +12268,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12336,54 +12334,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12391,23 +12361,21 @@ flex-direction: row; } } - -
- -
+ + Events 0 @@ -12513,7 +12481,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12558,12 +12525,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12571,6 +12532,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12581,36 +12547,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12623,54 +12613,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12678,23 +12640,21 @@ flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -12800,7 +12760,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12845,12 +12804,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12858,6 +12811,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12868,36 +12826,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12910,54 +12892,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12965,23 +12919,21 @@ flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -13087,7 +13039,6 @@ --_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13132,12 +13083,6 @@ border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13145,6 +13090,11 @@ transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13155,36 +13105,60 @@ font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13197,54 +13171,26 @@ gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13252,23 +13198,21 @@ flex-direction: row; } } - -
- -
+ + Design Tokens 11 diff --git a/elements/spinner/code/index.html b/elements/spinner/code/index.html index ff5f8e25ed..0e8a1ba610 100644 --- a/elements/spinner/code/index.html +++ b/elements/spinner/code/index.html @@ -9930,7 +9930,6 @@

rh-spinner

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9975,12 +9974,6 @@

rh-spinner

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9988,6 +9981,11 @@

rh-spinner

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9998,36 +9996,60 @@

rh-spinner

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10040,54 +10062,26 @@

rh-spinner

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10095,23 +10089,21 @@

rh-spinner

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -10312,7 +10304,6 @@

rh-spinner

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10357,12 +10348,6 @@

rh-spinner

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10370,6 +10355,11 @@

rh-spinner

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10380,36 +10370,60 @@

rh-spinner

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10422,54 +10436,26 @@

rh-spinner

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10477,23 +10463,21 @@

rh-spinner

flex-direction: row; } } - -
- -
+ + Attributes 1 @@ -10701,7 +10685,6 @@

rh-spinner

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10746,12 +10729,6 @@

rh-spinner

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10759,6 +10736,11 @@

rh-spinner

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10769,36 +10751,60 @@

rh-spinner

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10811,54 +10817,26 @@

rh-spinner

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10866,23 +10844,21 @@

rh-spinner

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10988,7 +10964,6 @@

rh-spinner

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11033,12 +11008,6 @@

rh-spinner

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11046,6 +11015,11 @@

rh-spinner

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11056,36 +11030,60 @@

rh-spinner

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11098,54 +11096,26 @@

rh-spinner

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11153,23 +11123,21 @@

rh-spinner

flex-direction: row; } } - -
- -
+ + Events 0 @@ -11275,7 +11243,6 @@

rh-spinner

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11320,12 +11287,6 @@

rh-spinner

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11333,6 +11294,11 @@

rh-spinner

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11343,36 +11309,60 @@

rh-spinner

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11385,54 +11375,26 @@

rh-spinner

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11440,23 +11402,21 @@

rh-spinner

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11562,7 +11522,6 @@

rh-spinner

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11607,12 +11566,6 @@

rh-spinner

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11620,6 +11573,11 @@

rh-spinner

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11630,36 +11588,60 @@

rh-spinner

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11672,54 +11654,26 @@

rh-spinner

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11727,23 +11681,21 @@

rh-spinner

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11849,7 +11801,6 @@

rh-spinner

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11894,12 +11845,6 @@

rh-spinner

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11907,6 +11852,11 @@

rh-spinner

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11917,36 +11867,60 @@

rh-spinner

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11959,54 +11933,26 @@

rh-spinner

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12014,23 +11960,21 @@

rh-spinner

flex-direction: row; } } - -
- -
+ + Design Tokens 18 diff --git a/elements/statistic/code/index.html b/elements/statistic/code/index.html index c4bee165d7..c045616fcd 100644 --- a/elements/statistic/code/index.html +++ b/elements/statistic/code/index.html @@ -9624,7 +9624,6 @@

rh-stat

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9669,12 +9668,6 @@

rh-stat

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9682,6 +9675,11 @@

rh-stat

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9692,36 +9690,60 @@

rh-stat

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9734,54 +9756,26 @@

rh-stat

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9789,23 +9783,21 @@

rh-stat

flex-direction: row; } } - -
- -
+ + Slots 5 @@ -10022,7 +10014,6 @@

rh-stat

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10067,12 +10058,6 @@

rh-stat

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10080,6 +10065,11 @@

rh-stat

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10090,36 +10080,60 @@

rh-stat

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10132,54 +10146,26 @@

rh-stat

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10187,23 +10173,21 @@

rh-stat

flex-direction: row; } } - -
- -
+ + Attributes 5 @@ -10439,7 +10423,6 @@

rh-stat

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10484,12 +10467,6 @@

rh-stat

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10497,6 +10474,11 @@

rh-stat

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10507,36 +10489,60 @@

rh-stat

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10549,54 +10555,26 @@

rh-stat

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10604,23 +10582,21 @@

rh-stat

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10726,7 +10702,6 @@

rh-stat

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10771,12 +10746,6 @@

rh-stat

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10784,6 +10753,11 @@

rh-stat

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10794,36 +10768,60 @@

rh-stat

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10836,54 +10834,26 @@

rh-stat

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10891,23 +10861,21 @@

rh-stat

flex-direction: row; } } - -
- -
+ + Events 0 @@ -11013,7 +10981,6 @@

rh-stat

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11058,12 +11025,6 @@

rh-stat

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11071,6 +11032,11 @@

rh-stat

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11081,36 +11047,60 @@

rh-stat

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11123,54 +11113,26 @@

rh-stat

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11178,23 +11140,21 @@

rh-stat

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11300,7 +11260,6 @@

rh-stat

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11345,12 +11304,6 @@

rh-stat

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11358,6 +11311,11 @@

rh-stat

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11368,36 +11326,60 @@

rh-stat

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11410,54 +11392,26 @@

rh-stat

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11465,23 +11419,21 @@

rh-stat

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11587,7 +11539,6 @@

rh-stat

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11632,12 +11583,6 @@

rh-stat

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11645,6 +11590,11 @@

rh-stat

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11655,36 +11605,60 @@

rh-stat

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11697,54 +11671,26 @@

rh-stat

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11752,23 +11698,21 @@

rh-stat

flex-direction: row; } } - -
- -
+ + Design Tokens 16 diff --git a/elements/subnavigation/code/index.html b/elements/subnavigation/code/index.html index 3407cfdd0e..3e2697ef1a 100644 --- a/elements/subnavigation/code/index.html +++ b/elements/subnavigation/code/index.html @@ -10675,7 +10675,6 @@

rh-subnav

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10720,12 +10719,6 @@

rh-subnav

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10733,6 +10726,11 @@

rh-subnav

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10743,36 +10741,60 @@

rh-subnav

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10785,54 +10807,26 @@

rh-subnav

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10840,23 +10834,21 @@

rh-subnav

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -11057,7 +11049,6 @@

rh-subnav

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11102,12 +11093,6 @@

rh-subnav

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11115,6 +11100,11 @@

rh-subnav

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11125,36 +11115,60 @@

rh-subnav

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11167,54 +11181,26 @@

rh-subnav

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11222,23 +11208,21 @@

rh-subnav

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -11344,7 +11328,6 @@

rh-subnav

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11389,12 +11372,6 @@

rh-subnav

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11402,6 +11379,11 @@

rh-subnav

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11412,36 +11394,60 @@

rh-subnav

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11454,54 +11460,26 @@

rh-subnav

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11509,23 +11487,21 @@

rh-subnav

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -11631,7 +11607,6 @@

rh-subnav

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11676,12 +11651,6 @@

rh-subnav

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11689,6 +11658,11 @@

rh-subnav

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11699,36 +11673,60 @@

rh-subnav

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11741,54 +11739,26 @@

rh-subnav

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11796,23 +11766,21 @@

rh-subnav

flex-direction: row; } } - -
- -
+ + Events 0 @@ -11918,7 +11886,6 @@

rh-subnav

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11960,13 +11927,7 @@

rh-subnav

:host(.animating) #button, :host([expanded]) #button { border-inline-end-color: var(--rh-color-border-subtle); - border-inline-start-color: var(--rh-color-border-subtle); -} - -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); + border-inline-start-color: var(--rh-color-border-subtle); } #icon { @@ -11976,6 +11937,11 @@

rh-subnav

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11986,36 +11952,60 @@

rh-subnav

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12028,54 +12018,26 @@

rh-subnav

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12083,23 +12045,21 @@

rh-subnav

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 2 @@ -12305,7 +12265,6 @@

rh-subnav

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12350,12 +12309,6 @@

rh-subnav

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12363,6 +12316,11 @@

rh-subnav

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12373,36 +12331,60 @@

rh-subnav

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12415,54 +12397,26 @@

rh-subnav

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12470,23 +12424,21 @@

rh-subnav

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -12592,7 +12544,6 @@

rh-subnav

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12637,12 +12588,6 @@

rh-subnav

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12650,6 +12595,11 @@

rh-subnav

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12660,36 +12610,60 @@

rh-subnav

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12702,54 +12676,26 @@

rh-subnav

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12757,23 +12703,21 @@

rh-subnav

flex-direction: row; } } - -
- -
+ + Design Tokens 13 diff --git a/elements/surface/code/index.html b/elements/surface/code/index.html index 1dfda63841..2c7a73e99d 100644 --- a/elements/surface/code/index.html +++ b/elements/surface/code/index.html @@ -9644,7 +9644,6 @@

rh-surface

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9689,12 +9688,6 @@

rh-surface

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9702,6 +9695,11 @@

rh-surface

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9712,36 +9710,60 @@

rh-surface

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9754,54 +9776,26 @@

rh-surface

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9809,23 +9803,21 @@

rh-surface

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -10026,7 +10018,6 @@

rh-surface

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10071,12 +10062,6 @@

rh-surface

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10084,6 +10069,11 @@

rh-surface

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10094,36 +10084,60 @@

rh-surface

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10136,54 +10150,26 @@

rh-surface

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10191,23 +10177,21 @@

rh-surface

flex-direction: row; } } - -
- -
+ + Attributes 1 @@ -10419,7 +10403,6 @@

rh-surface

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10464,12 +10447,6 @@

rh-surface

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10477,6 +10454,11 @@

rh-surface

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10487,36 +10469,60 @@

rh-surface

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10529,54 +10535,26 @@

rh-surface

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10584,23 +10562,21 @@

rh-surface

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10706,7 +10682,6 @@

rh-surface

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10751,12 +10726,6 @@

rh-surface

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10764,6 +10733,11 @@

rh-surface

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10774,36 +10748,60 @@

rh-surface

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10816,54 +10814,26 @@

rh-surface

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10871,23 +10841,21 @@

rh-surface

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10993,7 +10961,6 @@

rh-surface

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11038,12 +11005,6 @@

rh-surface

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11051,6 +11012,11 @@

rh-surface

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11061,36 +11027,60 @@

rh-surface

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11103,54 +11093,26 @@

rh-surface

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11158,23 +11120,21 @@

rh-surface

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11280,7 +11240,6 @@

rh-surface

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11325,12 +11284,6 @@

rh-surface

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11338,6 +11291,11 @@

rh-surface

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11348,36 +11306,60 @@

rh-surface

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11390,54 +11372,26 @@

rh-surface

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11445,23 +11399,21 @@

rh-surface

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11567,7 +11519,6 @@

rh-surface

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11612,12 +11563,6 @@

rh-surface

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11625,6 +11570,11 @@

rh-surface

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11635,36 +11585,60 @@

rh-surface

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11677,54 +11651,26 @@

rh-surface

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11732,23 +11678,21 @@

rh-surface

flex-direction: row; } } - -
- -
+ + Design Tokens 8 diff --git a/elements/switch/code/index.html b/elements/switch/code/index.html index 0ff3c703ae..951c9f35b6 100644 --- a/elements/switch/code/index.html +++ b/elements/switch/code/index.html @@ -9631,7 +9631,6 @@

rh-switch

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9676,12 +9675,6 @@

rh-switch

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9689,6 +9682,11 @@

rh-switch

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9699,36 +9697,60 @@

rh-switch

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9741,54 +9763,26 @@

rh-switch

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9796,23 +9790,21 @@

rh-switch

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -10017,7 +10009,6 @@

rh-switch

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10062,12 +10053,6 @@

rh-switch

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10075,6 +10060,11 @@

rh-switch

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10085,36 +10075,60 @@

rh-switch

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10127,54 +10141,26 @@

rh-switch

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10182,23 +10168,21 @@

rh-switch

flex-direction: row; } } - -
- -
+ + Attributes 7 @@ -10448,7 +10432,6 @@

rh-switch

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10493,12 +10476,6 @@

rh-switch

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10506,6 +10483,11 @@

rh-switch

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10516,36 +10498,60 @@

rh-switch

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10558,54 +10564,26 @@

rh-switch

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10613,23 +10591,21 @@

rh-switch

flex-direction: row; } } - -
- -
+ + Methods 1 @@ -10831,7 +10807,6 @@

rh-switch

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10876,12 +10851,6 @@

rh-switch

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10889,6 +10858,11 @@

rh-switch

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10899,36 +10873,60 @@

rh-switch

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10941,54 +10939,26 @@

rh-switch

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10996,23 +10966,21 @@

rh-switch

flex-direction: row; } } - -
- -
+ + Events 1 @@ -11214,7 +11182,6 @@

rh-switch

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11259,12 +11226,6 @@

rh-switch

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11272,6 +11233,11 @@

rh-switch

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11282,36 +11248,60 @@

rh-switch

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11324,54 +11314,26 @@

rh-switch

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11379,23 +11341,21 @@

rh-switch

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11501,7 +11461,6 @@

rh-switch

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11546,12 +11505,6 @@

rh-switch

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11559,6 +11512,11 @@

rh-switch

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11569,36 +11527,60 @@

rh-switch

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11611,54 +11593,26 @@

rh-switch

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11666,23 +11620,21 @@

rh-switch

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 3 @@ -11901,7 +11853,6 @@

rh-switch

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11946,12 +11897,6 @@

rh-switch

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11959,6 +11904,11 @@

rh-switch

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11969,36 +11919,60 @@

rh-switch

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12011,54 +11985,26 @@

rh-switch

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12066,23 +12012,21 @@

rh-switch

flex-direction: row; } } - -
- -
+ + Design Tokens 15 diff --git a/elements/table/code/index.html b/elements/table/code/index.html index b3cae0c9c2..c00af4ffc1 100644 --- a/elements/table/code/index.html +++ b/elements/table/code/index.html @@ -14620,7 +14620,6 @@

rh-table

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -14665,12 +14664,6 @@

rh-table

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -14678,6 +14671,11 @@

rh-table

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -14688,36 +14686,60 @@

rh-table

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -14730,54 +14752,26 @@

rh-table

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -14785,23 +14779,21 @@

rh-table

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -15006,7 +14998,6 @@

rh-table

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -15051,12 +15042,6 @@

rh-table

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -15064,6 +15049,11 @@

rh-table

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -15074,36 +15064,60 @@

rh-table

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -15116,54 +15130,26 @@

rh-table

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -15171,23 +15157,21 @@

rh-table

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -15293,7 +15277,6 @@

rh-table

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -15338,12 +15321,6 @@

rh-table

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -15351,6 +15328,11 @@

rh-table

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -15361,36 +15343,60 @@

rh-table

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -15403,54 +15409,26 @@

rh-table

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -15458,23 +15436,21 @@

rh-table

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -15580,7 +15556,6 @@

rh-table

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -15625,12 +15600,6 @@

rh-table

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -15638,6 +15607,11 @@

rh-table

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -15648,36 +15622,60 @@

rh-table

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -15690,54 +15688,26 @@

rh-table

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -15745,23 +15715,21 @@

rh-table

flex-direction: row; } } - -
- -
+ + Events 0 @@ -15867,7 +15835,6 @@

rh-table

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -15912,12 +15879,6 @@

rh-table

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -15925,6 +15886,11 @@

rh-table

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -15935,36 +15901,60 @@

rh-table

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -15977,54 +15967,26 @@

rh-table

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -16032,23 +15994,21 @@

rh-table

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -16154,7 +16114,6 @@

rh-table

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -16199,12 +16158,6 @@

rh-table

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -16212,6 +16165,11 @@

rh-table

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -16222,36 +16180,60 @@

rh-table

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -16264,54 +16246,26 @@

rh-table

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} - -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -16319,23 +16273,21 @@

rh-table

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 3 @@ -16554,7 +16506,6 @@

rh-table

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -16599,12 +16550,6 @@

rh-table

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -16612,6 +16557,11 @@

rh-table

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -16622,36 +16572,60 @@

rh-table

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -16664,54 +16638,26 @@

rh-table

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -16719,23 +16665,21 @@

rh-table

flex-direction: row; } } - -
- -
+ + Design Tokens 24 @@ -28034,7 +27978,6 @@

rh-sort-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28079,12 +28022,6 @@

rh-sort-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28092,6 +28029,11 @@

rh-sort-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28102,36 +28044,60 @@

rh-sort-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28144,54 +28110,26 @@

rh-sort-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28199,23 +28137,21 @@

rh-sort-button

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -28320,7 +28256,6 @@

rh-sort-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28365,12 +28300,6 @@

rh-sort-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28378,6 +28307,11 @@

rh-sort-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28388,36 +28322,60 @@

rh-sort-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28430,54 +28388,26 @@

rh-sort-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} - -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28485,23 +28415,21 @@

rh-sort-button

flex-direction: row; } } - -
- -
+ + Attributes 2 @@ -28716,7 +28644,6 @@

rh-sort-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28761,12 +28688,6 @@

rh-sort-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28774,6 +28695,11 @@

rh-sort-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28784,36 +28710,60 @@

rh-sort-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28826,54 +28776,26 @@

rh-sort-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28881,23 +28803,21 @@

rh-sort-button

flex-direction: row; } } - -
- -
+ + Methods 1 @@ -29099,7 +29019,6 @@

rh-sort-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29144,12 +29063,6 @@

rh-sort-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29157,6 +29070,11 @@

rh-sort-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29167,36 +29085,60 @@

rh-sort-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29209,54 +29151,26 @@

rh-sort-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29264,23 +29178,21 @@

rh-sort-button

flex-direction: row; } } - -
- -
+ + Events 2 @@ -29486,7 +29398,6 @@

rh-sort-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29531,12 +29442,6 @@

rh-sort-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29544,6 +29449,11 @@

rh-sort-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29554,36 +29464,60 @@

rh-sort-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29596,54 +29530,26 @@

rh-sort-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29651,23 +29557,21 @@

rh-sort-button

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 2 @@ -29873,7 +29777,6 @@

rh-sort-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29918,12 +29821,6 @@

rh-sort-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29931,6 +29828,11 @@

rh-sort-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29941,36 +29843,60 @@

rh-sort-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29983,54 +29909,26 @@

rh-sort-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -30038,23 +29936,21 @@

rh-sort-button

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -30160,7 +30056,6 @@

rh-sort-button

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -30205,12 +30100,6 @@

rh-sort-button

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -30218,6 +30107,11 @@

rh-sort-button

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -30228,36 +30122,60 @@

rh-sort-button

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -30270,54 +30188,26 @@

rh-sort-button

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -30325,23 +30215,21 @@

rh-sort-button

flex-direction: row; } } - -
- -
+ + Design Tokens 2 diff --git a/elements/tabs/code/index.html b/elements/tabs/code/index.html index 511fa28042..00419c6cb5 100644 --- a/elements/tabs/code/index.html +++ b/elements/tabs/code/index.html @@ -9649,7 +9649,6 @@

rh-tabs

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9694,12 +9693,6 @@

rh-tabs

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9707,6 +9700,11 @@

rh-tabs

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9717,36 +9715,60 @@

rh-tabs

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9759,54 +9781,26 @@

rh-tabs

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9814,23 +9808,21 @@

rh-tabs

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -10035,7 +10027,6 @@

rh-tabs

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10080,12 +10071,6 @@

rh-tabs

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10093,6 +10078,11 @@

rh-tabs

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10103,36 +10093,60 @@

rh-tabs

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10145,54 +10159,26 @@

rh-tabs

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10200,23 +10186,21 @@

rh-tabs

flex-direction: row; } } - -
- -
+ + Attributes 8 @@ -10474,7 +10458,6 @@

rh-tabs

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10519,12 +10502,6 @@

rh-tabs

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10532,6 +10509,11 @@

rh-tabs

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10542,36 +10524,60 @@

rh-tabs

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10584,54 +10590,26 @@

rh-tabs

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10639,23 +10617,21 @@

rh-tabs

flex-direction: row; } } - -
- -
+ + Methods 1 @@ -10857,7 +10833,6 @@

rh-tabs

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10902,12 +10877,6 @@

rh-tabs

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10915,6 +10884,11 @@

rh-tabs

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10925,36 +10899,60 @@

rh-tabs

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10967,54 +10965,26 @@

rh-tabs

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11022,23 +10992,21 @@

rh-tabs

flex-direction: row; } } - -
- -
+ + Events 0 @@ -11144,7 +11112,6 @@

rh-tabs

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11189,12 +11156,6 @@

rh-tabs

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11202,6 +11163,11 @@

rh-tabs

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11212,36 +11178,60 @@

rh-tabs

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11254,54 +11244,26 @@

rh-tabs

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11309,23 +11271,21 @@

rh-tabs

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 4 @@ -11539,7 +11499,6 @@

rh-tabs

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11584,12 +11543,6 @@

rh-tabs

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11597,6 +11550,11 @@

rh-tabs

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11607,36 +11565,60 @@

rh-tabs

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11649,54 +11631,26 @@

rh-tabs

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11704,23 +11658,21 @@

rh-tabs

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 2 @@ -11932,7 +11884,6 @@

rh-tabs

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11977,12 +11928,6 @@

rh-tabs

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11990,6 +11935,11 @@

rh-tabs

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12000,36 +11950,60 @@

rh-tabs

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12042,54 +12016,26 @@

rh-tabs

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12097,23 +12043,21 @@

rh-tabs

flex-direction: row; } } - -
- -
+ + Design Tokens 14 @@ -18802,7 +18746,6 @@

rh-tab-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -18847,12 +18790,6 @@

rh-tab-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -18860,6 +18797,11 @@

rh-tab-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -18870,36 +18812,60 @@

rh-tab-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -18912,54 +18878,26 @@

rh-tab-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -18967,23 +18905,21 @@

rh-tab-panel

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -19184,7 +19120,6 @@

rh-tab-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -19229,12 +19164,6 @@

rh-tab-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -19242,6 +19171,11 @@

rh-tab-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -19252,36 +19186,60 @@

rh-tab-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -19294,54 +19252,26 @@

rh-tab-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -19349,23 +19279,21 @@

rh-tab-panel

flex-direction: row; } } - -
- -
+ + Attributes 0 @@ -19471,7 +19399,6 @@

rh-tab-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -19516,12 +19443,6 @@

rh-tab-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -19529,6 +19450,11 @@

rh-tab-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -19539,36 +19465,60 @@

rh-tab-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -19581,54 +19531,26 @@

rh-tab-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -19636,23 +19558,21 @@

rh-tab-panel

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -19758,7 +19678,6 @@

rh-tab-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -19803,12 +19722,6 @@

rh-tab-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -19816,6 +19729,11 @@

rh-tab-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -19826,36 +19744,60 @@

rh-tab-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -19868,54 +19810,26 @@

rh-tab-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -19923,23 +19837,21 @@

rh-tab-panel

flex-direction: row; } } - -
- -
+ + Events 0 @@ -20045,7 +19957,6 @@

rh-tab-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -20090,12 +20001,6 @@

rh-tab-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -20103,6 +20008,11 @@

rh-tab-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -20113,36 +20023,60 @@

rh-tab-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -20155,54 +20089,26 @@

rh-tab-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -20210,23 +20116,21 @@

rh-tab-panel

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -20332,7 +20236,6 @@

rh-tab-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -20377,12 +20280,6 @@

rh-tab-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -20390,6 +20287,11 @@

rh-tab-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -20400,36 +20302,60 @@

rh-tab-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -20442,54 +20368,26 @@

rh-tab-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -20497,23 +20395,21 @@

rh-tab-panel

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -20619,7 +20515,6 @@

rh-tab-panel

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -20664,12 +20559,6 @@

rh-tab-panel

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -20677,6 +20566,11 @@

rh-tab-panel

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -20687,36 +20581,60 @@

rh-tab-panel

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -20729,54 +20647,26 @@

rh-tab-panel

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -20784,23 +20674,21 @@

rh-tab-panel

flex-direction: row; } } - -
- -
+ + Design Tokens 1 @@ -21496,7 +21384,6 @@

rh-tab

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -21541,12 +21428,6 @@

rh-tab

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -21554,6 +21435,11 @@

rh-tab

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -21564,36 +21450,60 @@

rh-tab

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -21606,54 +21516,26 @@

rh-tab

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -21661,23 +21543,21 @@

rh-tab

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -21882,7 +21762,6 @@

rh-tab

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -21927,12 +21806,6 @@

rh-tab

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -21940,6 +21813,11 @@

rh-tab

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -21950,36 +21828,60 @@

rh-tab

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -21992,54 +21894,26 @@

rh-tab

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -22047,23 +21921,21 @@

rh-tab

flex-direction: row; } } - -
- -
+ + Attributes 2 @@ -22278,7 +22150,6 @@

rh-tab

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -22323,12 +22194,6 @@

rh-tab

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -22336,6 +22201,11 @@

rh-tab

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -22346,36 +22216,60 @@

rh-tab

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -22388,54 +22282,26 @@

rh-tab

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -22443,23 +22309,21 @@

rh-tab

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -22565,7 +22429,6 @@

rh-tab

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -22610,12 +22473,6 @@

rh-tab

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -22623,6 +22480,11 @@

rh-tab

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -22633,36 +22495,60 @@

rh-tab

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -22675,54 +22561,26 @@

rh-tab

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -22730,23 +22588,21 @@

rh-tab

flex-direction: row; } } - -
- -
+ + Events 1 @@ -22948,7 +22804,6 @@

rh-tab

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -22990,13 +22845,7 @@

rh-tab

:host(.animating) #button, :host([expanded]) #button { border-inline-end-color: var(--rh-color-border-subtle); - border-inline-start-color: var(--rh-color-border-subtle); -} - -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); + border-inline-start-color: var(--rh-color-border-subtle); } #icon { @@ -23006,6 +22855,11 @@

rh-tab

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -23016,36 +22870,60 @@

rh-tab

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -23058,54 +22936,26 @@

rh-tab

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -23113,23 +22963,21 @@

rh-tab

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 3 @@ -23339,7 +23187,6 @@

rh-tab

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -23384,12 +23231,6 @@

rh-tab

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -23397,6 +23238,11 @@

rh-tab

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -23407,36 +23253,60 @@

rh-tab

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -23449,54 +23319,26 @@

rh-tab

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -23504,23 +23346,21 @@

rh-tab

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 6 @@ -23760,7 +23600,6 @@

rh-tab

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -23805,12 +23644,6 @@

rh-tab

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -23818,6 +23651,11 @@

rh-tab

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -23828,36 +23666,60 @@

rh-tab

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -23870,54 +23732,26 @@

rh-tab

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -23925,23 +23759,21 @@

rh-tab

flex-direction: row; } } - -
- -
+ + Design Tokens 16 diff --git a/elements/tag/code/index.html b/elements/tag/code/index.html index 48066ac632..bd638ad09b 100644 --- a/elements/tag/code/index.html +++ b/elements/tag/code/index.html @@ -9627,7 +9627,6 @@

rh-tag

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9672,12 +9671,6 @@

rh-tag

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9685,6 +9678,11 @@

rh-tag

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9695,36 +9693,60 @@

rh-tag

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9737,54 +9759,26 @@

rh-tag

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9792,23 +9786,21 @@

rh-tag

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -10013,7 +10005,6 @@

rh-tag

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10058,12 +10049,6 @@

rh-tag

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10071,6 +10056,11 @@

rh-tag

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10081,36 +10071,60 @@

rh-tag

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10123,54 +10137,26 @@

rh-tag

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10178,23 +10164,21 @@

rh-tag

flex-direction: row; } } - -
- -
+ + Attributes 6 @@ -10437,7 +10421,6 @@

rh-tag

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10482,12 +10465,6 @@

rh-tag

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10495,6 +10472,11 @@

rh-tag

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10505,36 +10487,60 @@

rh-tag

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10547,54 +10553,26 @@

rh-tag

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10602,23 +10580,21 @@

rh-tag

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10724,7 +10700,6 @@

rh-tag

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10769,12 +10744,6 @@

rh-tag

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10782,6 +10751,11 @@

rh-tag

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10792,36 +10766,60 @@

rh-tag

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10834,54 +10832,26 @@

rh-tag

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10889,23 +10859,21 @@

rh-tag

flex-direction: row; } } - -
- -
+ + Events 1 @@ -11107,7 +11075,6 @@

rh-tag

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11152,12 +11119,6 @@

rh-tag

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11165,6 +11126,11 @@

rh-tag

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11175,36 +11141,60 @@

rh-tag

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11217,54 +11207,26 @@

rh-tag

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11272,23 +11234,21 @@

rh-tag

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 1 @@ -11490,7 +11450,6 @@

rh-tag

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11535,12 +11494,6 @@

rh-tag

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11548,6 +11501,11 @@

rh-tag

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11558,36 +11516,60 @@

rh-tag

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11600,54 +11582,26 @@

rh-tag

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11655,23 +11609,21 @@

rh-tag

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 5 @@ -11904,7 +11856,6 @@

rh-tag

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11949,12 +11900,6 @@

rh-tag

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11962,6 +11907,11 @@

rh-tag

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11972,36 +11922,60 @@

rh-tag

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12014,54 +11988,26 @@

rh-tag

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12069,23 +12015,21 @@

rh-tag

flex-direction: row; } } - -
- -
+ + Design Tokens 70 diff --git a/elements/tile/code/index.html b/elements/tile/code/index.html index 8d33c9f04a..e9dd12de3b 100644 --- a/elements/tile/code/index.html +++ b/elements/tile/code/index.html @@ -10680,7 +10680,6 @@

rh-tile

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10725,12 +10724,6 @@

rh-tile

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10738,6 +10731,11 @@

rh-tile

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10748,36 +10746,60 @@

rh-tile

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10790,54 +10812,26 @@

rh-tile

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10845,23 +10839,21 @@

rh-tile

flex-direction: row; } } - -
- -
+ + Slots 6 @@ -11082,7 +11074,6 @@

rh-tile

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11127,12 +11118,6 @@

rh-tile

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11140,6 +11125,11 @@

rh-tile

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11150,36 +11140,60 @@

rh-tile

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11192,54 +11206,26 @@

rh-tile

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11247,23 +11233,21 @@

rh-tile

flex-direction: row; } } - -
- -
+ + Attributes 13 @@ -11562,7 +11546,6 @@

rh-tile

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11607,12 +11590,6 @@

rh-tile

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11620,6 +11597,11 @@

rh-tile

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11630,36 +11612,60 @@

rh-tile

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11672,54 +11678,26 @@

rh-tile

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11727,23 +11705,21 @@

rh-tile

flex-direction: row; } } - -
- -
+ + Methods 5 @@ -11961,7 +11937,6 @@

rh-tile

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12006,12 +11981,6 @@

rh-tile

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12019,6 +11988,11 @@

rh-tile

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12029,36 +12003,60 @@

rh-tile

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12071,54 +12069,26 @@

rh-tile

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12126,23 +12096,21 @@

rh-tile

flex-direction: row; } } - -
- -
+ + Events 2 @@ -12348,7 +12316,6 @@

rh-tile

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12393,12 +12360,6 @@

rh-tile

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12406,6 +12367,11 @@

rh-tile

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12416,36 +12382,60 @@

rh-tile

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12458,54 +12448,26 @@

rh-tile

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12513,23 +12475,21 @@

rh-tile

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -12635,7 +12595,6 @@

rh-tile

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -12680,12 +12639,6 @@

rh-tile

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -12693,6 +12646,11 @@

rh-tile

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -12703,36 +12661,60 @@

rh-tile

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -12745,54 +12727,26 @@

rh-tile

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -12800,23 +12754,21 @@

rh-tile

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 9 @@ -13077,7 +13029,6 @@

rh-tile

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -13122,12 +13073,6 @@

rh-tile

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -13135,6 +13080,11 @@

rh-tile

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -13145,36 +13095,60 @@

rh-tile

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -13187,54 +13161,26 @@

rh-tile

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -13242,23 +13188,21 @@

rh-tile

flex-direction: row; } } - -
- -
+ + Design Tokens 30 @@ -27323,7 +27267,6 @@

rh-tile-group

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -27368,12 +27311,6 @@

rh-tile-group

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -27381,6 +27318,11 @@

rh-tile-group

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -27391,36 +27333,60 @@

rh-tile-group

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -27433,54 +27399,26 @@

rh-tile-group

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -27488,23 +27426,21 @@

rh-tile-group

flex-direction: row; } } - -
- -
+ + Slots 1 @@ -27705,7 +27641,6 @@

rh-tile-group

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -27750,12 +27685,6 @@

rh-tile-group

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -27763,6 +27692,11 @@

rh-tile-group

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -27773,36 +27707,60 @@

rh-tile-group

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -27815,54 +27773,26 @@

rh-tile-group

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -27870,23 +27800,21 @@

rh-tile-group

flex-direction: row; } } - -
- -
+ + Attributes 3 @@ -28112,7 +28040,6 @@

rh-tile-group

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28157,12 +28084,6 @@

rh-tile-group

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28170,6 +28091,11 @@

rh-tile-group

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28180,36 +28106,60 @@

rh-tile-group

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28222,54 +28172,26 @@

rh-tile-group

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28277,23 +28199,21 @@

rh-tile-group

flex-direction: row; } } - -
- -
+ + Methods 4 @@ -28507,7 +28427,6 @@

rh-tile-group

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28552,12 +28471,6 @@

rh-tile-group

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28565,6 +28478,11 @@

rh-tile-group

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28575,36 +28493,60 @@

rh-tile-group

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28617,54 +28559,26 @@

rh-tile-group

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28672,23 +28586,21 @@

rh-tile-group

flex-direction: row; } } - -
- -
+ + Events 0 @@ -28794,7 +28706,6 @@

rh-tile-group

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -28839,12 +28750,6 @@

rh-tile-group

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -28852,6 +28757,11 @@

rh-tile-group

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -28862,36 +28772,60 @@

rh-tile-group

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -28904,54 +28838,26 @@

rh-tile-group

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -28959,23 +28865,21 @@

rh-tile-group

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -29081,7 +28985,6 @@

rh-tile-group

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29126,12 +29029,6 @@

rh-tile-group

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29139,6 +29036,11 @@

rh-tile-group

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29149,36 +29051,60 @@

rh-tile-group

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29191,54 +29117,26 @@

rh-tile-group

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29246,23 +29144,21 @@

rh-tile-group

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -29368,7 +29264,6 @@

rh-tile-group

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -29413,12 +29308,6 @@

rh-tile-group

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -29426,6 +29315,11 @@

rh-tile-group

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -29436,36 +29330,60 @@

rh-tile-group

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -29478,54 +29396,26 @@

rh-tile-group

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -29533,23 +29423,21 @@

rh-tile-group

flex-direction: row; } } - -
- -
+ + Design Tokens 1 diff --git a/elements/timestamp/code/index.html b/elements/timestamp/code/index.html index 6c0a7ee9ca..e53a4ebd61 100644 --- a/elements/timestamp/code/index.html +++ b/elements/timestamp/code/index.html @@ -9621,7 +9621,6 @@

rh-timestamp

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9666,12 +9665,6 @@

rh-timestamp

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9679,6 +9672,11 @@

rh-timestamp

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9689,36 +9687,60 @@

rh-timestamp

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9731,54 +9753,26 @@

rh-timestamp

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9786,23 +9780,21 @@

rh-timestamp

flex-direction: row; } } - -
- -
+ + Slots 0 @@ -9907,7 +9899,6 @@

rh-timestamp

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9952,12 +9943,6 @@

rh-timestamp

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9965,6 +9950,11 @@

rh-timestamp

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9975,36 +9965,60 @@

rh-timestamp

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10017,54 +10031,26 @@

rh-timestamp

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10072,23 +10058,21 @@

rh-timestamp

flex-direction: row; } } - -
- -
+ + Attributes 8 @@ -10345,7 +10329,6 @@

rh-timestamp

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10390,12 +10373,6 @@

rh-timestamp

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10403,6 +10380,11 @@

rh-timestamp

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10413,36 +10395,60 @@

rh-timestamp

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10455,54 +10461,26 @@

rh-timestamp

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10510,23 +10488,21 @@

rh-timestamp

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10632,7 +10608,6 @@

rh-timestamp

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10677,12 +10652,6 @@

rh-timestamp

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10690,6 +10659,11 @@

rh-timestamp

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10700,36 +10674,60 @@

rh-timestamp

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10742,54 +10740,26 @@

rh-timestamp

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10797,23 +10767,21 @@

rh-timestamp

flex-direction: row; } } - -
- -
+ + Events 0 @@ -10919,7 +10887,6 @@

rh-timestamp

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10964,12 +10931,6 @@

rh-timestamp

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10977,6 +10938,11 @@

rh-timestamp

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10987,36 +10953,60 @@

rh-timestamp

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11029,54 +11019,26 @@

rh-timestamp

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11084,23 +11046,21 @@

rh-timestamp

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11206,7 +11166,6 @@

rh-timestamp

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11251,12 +11210,6 @@

rh-timestamp

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11264,6 +11217,11 @@

rh-timestamp

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11274,36 +11232,60 @@

rh-timestamp

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11316,54 +11298,26 @@

rh-timestamp

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11371,23 +11325,21 @@

rh-timestamp

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11493,7 +11445,6 @@

rh-timestamp

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11538,12 +11489,6 @@

rh-timestamp

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11551,6 +11496,11 @@

rh-timestamp

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11561,36 +11511,60 @@

rh-timestamp

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11603,54 +11577,26 @@

rh-timestamp

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11658,23 +11604,21 @@

rh-timestamp

flex-direction: row; } } - -
- -
+ + Design Tokens 0 diff --git a/elements/tooltip/code/index.html b/elements/tooltip/code/index.html index 4321479688..fadccb2e33 100644 --- a/elements/tooltip/code/index.html +++ b/elements/tooltip/code/index.html @@ -9627,7 +9627,6 @@

rh-tooltip

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9672,12 +9671,6 @@

rh-tooltip

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9685,6 +9678,11 @@

rh-tooltip

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9695,36 +9693,60 @@

rh-tooltip

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9737,54 +9759,26 @@

rh-tooltip

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9792,23 +9786,21 @@

rh-tooltip

flex-direction: row; } } - -
- -
+ + Slots 2 @@ -10013,7 +10005,6 @@

rh-tooltip

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10058,12 +10049,6 @@

rh-tooltip

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10071,6 +10056,11 @@

rh-tooltip

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10081,36 +10071,60 @@

rh-tooltip

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10123,54 +10137,26 @@

rh-tooltip

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10178,23 +10164,21 @@

rh-tooltip

flex-direction: row; } } - -
- -
+ + Attributes 2 @@ -10409,7 +10393,6 @@

rh-tooltip

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10454,12 +10437,6 @@

rh-tooltip

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10467,6 +10444,11 @@

rh-tooltip

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10477,36 +10459,60 @@

rh-tooltip

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10519,54 +10525,26 @@

rh-tooltip

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10574,23 +10552,21 @@

rh-tooltip

flex-direction: row; } } - -
- -
+ + Methods 2 @@ -10796,7 +10772,6 @@

rh-tooltip

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10841,12 +10816,6 @@

rh-tooltip

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10854,6 +10823,11 @@

rh-tooltip

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10864,36 +10838,60 @@

rh-tooltip

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10906,54 +10904,26 @@

rh-tooltip

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10961,23 +10931,21 @@

rh-tooltip

flex-direction: row; } } - -
- -
+ + Events 0 @@ -11083,7 +11051,6 @@

rh-tooltip

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11128,12 +11095,6 @@

rh-tooltip

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11141,6 +11102,11 @@

rh-tooltip

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11151,36 +11117,60 @@

rh-tooltip

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11193,54 +11183,26 @@

rh-tooltip

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11248,23 +11210,21 @@

rh-tooltip

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 0 @@ -11370,7 +11330,6 @@

rh-tooltip

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11415,12 +11374,6 @@

rh-tooltip

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11428,6 +11381,11 @@

rh-tooltip

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11438,36 +11396,60 @@

rh-tooltip

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11480,54 +11462,26 @@

rh-tooltip

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11535,23 +11489,21 @@

rh-tooltip

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 9 @@ -11812,7 +11764,6 @@

rh-tooltip

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11857,12 +11808,6 @@

rh-tooltip

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11870,6 +11815,11 @@

rh-tooltip

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11880,36 +11830,60 @@

rh-tooltip

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11922,54 +11896,26 @@

rh-tooltip

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11977,23 +11923,21 @@

rh-tooltip

flex-direction: row; } } - -
- -
+ + Design Tokens 9 diff --git a/elements/video-embed/code/index.html b/elements/video-embed/code/index.html index e07ff174e9..4f58e0096d 100644 --- a/elements/video-embed/code/index.html +++ b/elements/video-embed/code/index.html @@ -9627,7 +9627,6 @@

rh-video-embed

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -9672,12 +9671,6 @@

rh-video-embed

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -9685,6 +9678,11 @@

rh-video-embed

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -9695,36 +9693,60 @@

rh-video-embed

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -9737,54 +9759,26 @@

rh-video-embed

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -9792,23 +9786,21 @@

rh-video-embed

flex-direction: row; } } - -
- -
+ + Slots 7 @@ -10033,7 +10025,6 @@

rh-video-embed

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10078,12 +10069,6 @@

rh-video-embed

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10091,6 +10076,11 @@

rh-video-embed

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10101,36 +10091,60 @@

rh-video-embed

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10143,54 +10157,26 @@

rh-video-embed

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} - -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10198,23 +10184,21 @@

rh-video-embed

flex-direction: row; } } - -
- -
+ + Attributes 2 @@ -10430,7 +10414,6 @@

rh-video-embed

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10475,12 +10458,6 @@

rh-video-embed

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10488,6 +10465,11 @@

rh-video-embed

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10498,36 +10480,60 @@

rh-video-embed

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10540,54 +10546,26 @@

rh-video-embed

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10595,23 +10573,21 @@

rh-video-embed

flex-direction: row; } } - -
- -
+ + Methods 0 @@ -10717,7 +10693,6 @@

rh-video-embed

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -10762,12 +10737,6 @@

rh-video-embed

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -10775,6 +10744,11 @@

rh-video-embed

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -10785,36 +10759,60 @@

rh-video-embed

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -10827,54 +10825,26 @@

rh-video-embed

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -10882,23 +10852,21 @@

rh-video-embed

flex-direction: row; } } - -
- -
+ + Events 3 @@ -11108,7 +11076,6 @@

rh-video-embed

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11153,12 +11120,6 @@

rh-video-embed

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11166,6 +11127,11 @@

rh-video-embed

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11176,36 +11142,60 @@

rh-video-embed

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11218,54 +11208,26 @@

rh-video-embed

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11273,23 +11235,21 @@

rh-video-embed

flex-direction: row; } } - -
- -
+ + CSS Shadow Parts 5 @@ -11507,7 +11467,6 @@

rh-video-embed

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11552,12 +11511,6 @@

rh-video-embed

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11565,6 +11518,11 @@

rh-video-embed

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11575,36 +11533,60 @@

rh-video-embed

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11617,54 +11599,26 @@

rh-video-embed

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11672,23 +11626,21 @@

rh-video-embed

flex-direction: row; } } - -
- -
+ + CSS Custom Properties 0 @@ -11794,7 +11746,6 @@

rh-video-embed

--_padding-inline-end: var(--rh-space-xl, 24px); --_padding-block-end: var(--rh-space-lg, 16px); --_padding-inline-start: var(--rh-space-xl, 24px); - --_active-text-color: var(--rh-color-text-primary); --_font-size: var(--rh-font-size-body-text-lg, 1.125rem); --_after-background-color: transparent; --_expanded-background-color: var(--rh-color-accent-brand); @@ -11839,12 +11790,6 @@

rh-video-embed

border-inline-start-color: var(--rh-color-border-subtle); } -#button, -#button:before, -#button:after { - background-color: var(--rh-color-surface); -} - #icon { width: 16px; height: 16px; @@ -11852,6 +11797,11 @@

rh-video-embed

transition: rotate 0.2s ease-in 0s; } +span { + overflow: hidden; + text-align: start; +} + #button { width: 100%; padding: @@ -11862,36 +11812,60 @@

rh-video-embed

font-family: var(--rh-font-family-body-text, RedHatText, 'Red Hat Text', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Malayalam', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', Helvetica, Arial, sans-serif); font-size: var(--_font-size); color: var(--rh-color-text-primary); -} -#button #icon { - fill: currentcolor; -} + & #icon { + fill: currentcolor; + } -#button:after { - inset-block-start: -1px; - width: var(--rh-border-width-lg, 3px); - background-color: var(--_after-background-color); -} + &:is(:hover,:active,:focus) { + &.light { background-color: var(--rh-color-surface-lighter); } + &.dark { background-color: var(--rh-color-surface-dark-alt); } -span { - overflow: hidden; - text-align: start; -} + & span { + color: var(--rh-color-text-primary); + } + } -[part='container'] { - display: flex; - gap: var(--rh-space-xl, 24px); - container-type: inline-size; + &:focus { + outline: 2px solid var(--rh-color-interactive-primary-default); + } + + &, + &:before, + &:after { + background-color: var(--rh-color-surface); + } + + &:after { + inset-block-start: -1px; + width: var(--rh-border-width-lg, 3px); + background-color: var(--_after-background-color); + } + + &.expanded { + --_after-background-color: var(--rh-color-accent-brand); + + & #icon { + rotate: calc(var(--_isRTL, -1) * 180deg); + } + + &.on.light { + --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); + } + + &.on.dark { + --rh-color-surface: var(--rh-color-surface-darkest, #151515); + } + } } #header-container { display: flex; gap: var(--rh-space-md, 8px); -} -#header-container.bottom { - flex-direction: column; + &.bottom { + flex-direction: column; + } } #header-text { @@ -11904,54 +11878,26 @@

rh-video-embed

gap: var(--rh-space-md, 8px); } -.expanded #button { - --_after-background-color: var(--rh-color-accent-brand); -} - -.expanded #button #icon { - rotate: calc(var(--_isRTL, -1) * 180deg); -} - -#button:hover, -#button:active, -#button:focus { - background-color: var(--rh-color-surface); -} - -#button:hover span, -#button:focus span, -#button:active span { - color: var(--_active-text-color); -} - -.toggle, -.toggle:before, -.toggle:after { - padding: 0; - margin: 0; -} - .toggle { position: relative; display: flex; align-items: center; justify-content: space-between; border: 0; -} -.toggle:after { - content: ''; - position: absolute; - inset-block: 0; - inset-inline-start: 0; -} - -.expanded.on.light { - --rh-color-surface: var(--rh-color-surface-lightest, #ffffff); -} + &, + &:before, + &:after { + padding: 0; + margin: 0; + } -.expanded.on.dark { - --rh-color-surface: var(--rh-color-surface-darkest, #151515); + &:after { + content: ''; + position: absolute; + inset-block: 0; + inset-inline-start: 0; + } } @container (min-width: 576px) { @@ -11959,23 +11905,21 @@

rh-video-embed

flex-direction: row; } } - -
- -
+ + Design Tokens 20 diff --git a/get-started/designers/index.html b/get-started/designers/index.html index d2f1152f9f..f1c75df17e 100644 --- a/get-started/designers/index.html +++ b/get-started/designers/index.html @@ -8178,7 +8178,6 @@

-
- -
+ + How can I get better at Figma?

How do foundational styles, elements, and patterns get updated? What if an element or pattern I need is missing? How can I contribute an idea? How can I report a bug? Results from Customer Portal Officia eu id pariatur enim exercitation ipsum laboris irure reprehenderit Results from Customer Portal Results from Customer Portal