Skip to content

Commit

Permalink
Merge pull request #47 from HiDeoo/hd-fix-ui-details
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo authored Oct 1, 2024
2 parents 506675d + dfdbcb8 commit ba1a770
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import { Icon } from '@astrojs/starlight/components'
import { getProperties, isAdditionalPropertiesWithSchemaObject, type SchemaObject } from '../../libs/schemaObject'
import Key from '../Key.astro'
import Tags from '../Tags.astro'
Expand All @@ -23,7 +21,6 @@ const properties = getProperties(schemaObject)
<details class:list={[!nested && 'root']} open={!nested}>
<summary>
<span class="type">object</span>
<Icon class="caret" name="right-caret" size="1.25rem" />
</summary>
<Tags
tags={[
Expand Down Expand Up @@ -79,20 +76,6 @@ const properties = getProperties(schemaObject)
display: none;
}

@media (prefers-reduced-motion: no-preference) {
.caret {
transition: transform 0.2s ease-in-out;
}
}

details[open] > summary > .caret {
transform: rotateZ(90deg);
}

:global([dir='rtl']) .caret {
transform: rotateZ(180deg);
}

.type {
color: var(--sl-color-text-accent);
font-weight: 600;
Expand Down

0 comments on commit ba1a770

Please sign in to comment.