Download packages/ui/src/components/avatar.css from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/ui/src/components/avatar.css
- Command line
-
hf download hf://SaylorTwift/opencode/packages/ui/src/components/avatar.css
-
curl -L -o avatar.css https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/ui/src/components/avatar.css
1.07 kB
| [data-component="avatar"] { | |
| --avatar-bg: var(--color-surface-info-base); | |
| --avatar-fg: var(--color-text-base); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| flex-shrink: 0; | |
| border-radius: var(--radius-sm); | |
| border: 1px solid var(--color-border-weak-base); | |
| font-family: var(--font-mono); | |
| font-weight: 500; | |
| text-transform: uppercase; | |
| background-color: var(--avatar-bg); | |
| color: var(--avatar-fg); | |
| } | |
| [data-component="avatar"][data-has-image] { | |
| background-color: transparent; | |
| border: none; | |
| } | |
| [data-component="avatar"][data-size="small"] { | |
| width: 1.25rem; | |
| height: 1.25rem; | |
| font-size: 0.75rem; | |
| line-height: 1; | |
| } | |
| [data-component="avatar"][data-size="normal"] { | |
| width: 1.5rem; | |
| height: 1.5rem; | |
| font-size: 1.125rem; | |
| line-height: 1.5rem; | |
| } | |
| [data-component="avatar"][data-size="large"] { | |
| width: 2rem; | |
| height: 2rem; | |
| font-size: 1.25rem; | |
| line-height: 2rem; | |
| } | |
| [data-component="avatar"] [data-slot="avatar-image"] { | |
| width: 100%; | |
| height: 100%; | |
| display: block; | |
| object-fit: cover; | |
| border-radius: inherit; | |
| } | |