cloudaxe-opencode/app/packages/web/src/components/share.module.css

277 lines
5 KiB
CSS
Raw Normal View History

2025-05-27 00:33:21 +00:00
.root {
2025-05-28 00:38:23 +00:00
padding-top: 0.5rem;
display: flex;
flex-direction: column;
gap: 2.5rem;
2025-05-27 00:33:21 +00:00
line-height: 1;
}
2025-05-28 18:10:15 +00:00
[data-element-button-text] {
cursor: pointer;
appearance: none;
background-color: transparent;
border: none;
padding: 0;
color: var(--sl-color-text-secondary);
&:hover {
color: var(--sl-color-text);
}
}
2025-05-28 00:38:23 +00:00
[data-element-label] {
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--sl-color-text-dimmed);
}
2025-05-26 23:01:48 +00:00
.header {
display: flex;
2025-05-27 00:33:21 +00:00
flex-direction: column;
gap: 0.75rem;
[data-section="title"] {
display: flex;
align-items: center;
justify-content: space-between;
}
[data-section="row"] {
display: flex;
flex-direction: column;
gap: 0.375rem;
}
2025-05-26 23:01:48 +00:00
h1 {
2025-05-27 00:33:21 +00:00
font-size: 1.75rem;
2025-05-26 23:01:48 +00:00
font-weight: 500;
2025-05-28 20:42:30 +00:00
line-height: 1.125;
letter-spacing: -0.05em;
2025-05-26 23:01:48 +00:00
}
p {
2025-05-28 20:42:30 +00:00
flex: 0 0 auto;
2025-05-26 23:01:48 +00:00
display: flex;
2025-05-27 00:33:21 +00:00
gap: 0.375rem;
font-size: 0.75rem;
span:first-child {
2025-05-28 18:10:15 +00:00
color: var(--sl-color-divider);
2025-05-27 00:33:21 +00:00
&[data-status="connected"] { color: var(--sl-color-green); }
&[data-status="connecting"] { color: var(--sl-color-orange); }
2025-05-28 18:10:15 +00:00
&[data-status="disconnected"] { color: var(--sl-color-divider); }
2025-05-27 00:33:21 +00:00
&[data-status="reconnecting"] { color: var(--sl-color-orange); }
&[data-status="error"] { color: var(--sl-color-red); }
}
2025-05-28 00:38:23 +00:00
}
[data-section="stats"] {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
gap: 1rem;
li {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
2025-05-28 22:32:38 +00:00
span[data-placeholder] {
2025-05-28 00:38:23 +00:00
color: var(--sl-color-text-dimmed);
}
}
}
2025-05-28 22:32:38 +00:00
[data-section="stats"][data-section-models] {
2025-05-29 00:04:58 +00:00
li {
gap: 0.3125rem;
2025-05-28 22:32:38 +00:00
2025-05-29 00:04:58 +00:00
[data-stat-model-icon] {
flex: 0 0 auto;
color: var(--sl-color-text-dimmed);
opacity: 0.85;
svg {
display: block;
}
2025-05-28 22:32:38 +00:00
}
2025-05-29 00:04:58 +00:00
span[data-stat-model] {
color: var(sl-color-text);
}
2025-05-28 22:32:38 +00:00
}
}
2025-05-28 00:38:23 +00:00
[data-section="date"] {
span {
font-size: 0.875rem;
color: var(--sl-color-text);
&[data-placeholder] {
color: var(--sl-color-text-dimmed);
}
2025-05-27 00:33:21 +00:00
}
}
}
2025-05-28 00:38:23 +00:00
.parts {
2025-05-27 00:33:21 +00:00
display: flex;
2025-05-28 00:38:23 +00:00
flex-direction: column;
gap: 0.625rem;
2025-05-27 00:33:21 +00:00
2025-05-28 00:38:23 +00:00
[data-section="part"] {
2025-05-27 00:33:21 +00:00
display: flex;
2025-05-29 18:24:21 +00:00
gap: 0.625rem;
2025-05-28 00:38:23 +00:00
}
2025-05-26 23:01:48 +00:00
2025-05-28 00:38:23 +00:00
[data-section="decoration"] {
flex: 0 0 auto;
display: flex;
flex-direction: column;
gap: 0.625rem;
align-items: center;
justify-content: flex-start;
div:first-child {
flex: 0 0 auto;
width: 18px;
svg {
color: var(--sl-color-text-secondary);
display: block;
}
}
div:last-child {
width: 3px;
height: 100%;
border-radius: 1px;
background-color: var(--sl-color-hairline);
2025-05-27 00:33:21 +00:00
}
2025-05-28 00:38:23 +00:00
}
[data-section="content"] {
2025-05-29 18:24:21 +00:00
padding: 0 0 0.375rem;
2025-05-28 00:38:23 +00:00
display: flex;
flex-direction: column;
gap: 0.5rem;
2025-05-28 22:32:38 +00:00
span[data-part-title] {
2025-05-29 18:24:21 +00:00
line-height: 18px;
2025-05-28 18:10:15 +00:00
font-size: 0.75rem;
2025-05-29 18:24:21 +00:00
&[data-size="md"] {
font-size: 0.875rem;
}
2025-05-28 18:10:15 +00:00
}
2025-05-28 22:32:38 +00:00
span[data-part-footer] {
2025-05-28 20:42:30 +00:00
align-self: flex-start;
2025-05-28 00:38:23 +00:00
font-size: 0.75rem;
color: var(--sl-color-text-dimmed);
2025-05-26 23:01:48 +00:00
}
2025-05-28 22:32:38 +00:00
span[data-part-model] {
line-height: 1.5;
}
2025-05-29 18:24:21 +00:00
[data-part-tool-args] {
display: inline-grid;
align-items: center;
grid-template-columns: max-content max-content minmax(0, 1fr);
max-width: 100%;
gap: 0.25rem 0.375rem;
& > div:nth-child(3n+1) {
width: 8px;
height: 2px;
border-radius: 1px;
background: var(--sl-color-divider);
}
& > div:nth-child(3n+2),
& > div:nth-child(3n+3) {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 0.75rem;
line-height: 1.5;
}
& > div:nth-child(3n+3) {
padding-left: 0.125rem;
color: var(--sl-color-text-dimmed);
}
}
2025-05-26 23:01:48 +00:00
}
}
2025-05-28 00:38:23 +00:00
[data-element-message-text] {
2025-05-28 18:10:15 +00:00
background-color: var(--sl-color-bg-surface);
padding: 0.5rem calc(0.5rem + 3px);
border-radius: 0.25rem;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 1rem;
2025-05-28 00:38:23 +00:00
pre {
2025-05-28 18:10:15 +00:00
line-height: 1.5;
2025-05-27 00:33:21 +00:00
font-size: 0.875rem;
2025-05-28 00:38:23 +00:00
white-space: pre-wrap;
overflow-wrap: anywhere;
2025-05-29 18:24:21 +00:00
color: var(--sl-color-text);
}
&[data-size="sm"] {
pre {
font-size: 0.75rem;
}
}
&[data-color="dimmed"] {
pre {
color: var(--sl-color-text-dimmed);
}
2025-05-27 00:33:21 +00:00
}
2025-05-28 18:10:15 +00:00
button {
flex: 0 0 auto;
padding: 2px 0;
font-size: 0.75rem;
}
&[data-highlight="true"] {
background-color: var(--sl-color-blue-high);
2025-05-29 18:24:21 +00:00
pre {
color: var(--sl-color-text-invert);
}
2025-05-28 18:10:15 +00:00
button {
opacity: 0.85;
color: var(--sl-color-text-invert);
&:hover {
opacity: 1;
}
}
}
&[data-expanded="true"] {
pre {
display: block;
}
}
&[data-expanded="false"] {
pre {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
}
2025-05-27 00:33:21 +00:00
}