fix: update styles

This commit is contained in:
2026-08-31 01:25:46 +05:00
parent 6c8f7b2d8b
commit 2c70c445d5
11 changed files with 63 additions and 77 deletions
+4 -6
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import type { Snippet } from "svelte";
import { Check } from "@lucide/svelte";
import type { Snippet } from "svelte";
type Tone = "default" | "accent" | "success" | "amber";
@@ -19,14 +19,12 @@
<style>
.badge {
display: inline-flex;
display: flex;
align-items: center;
gap: 0.3rem;
gap: 4px;
line-height: normal;
font-family: var(--font-mono);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 0.15rem 0.45rem;
border: 1px solid var(--line);
border-radius: var(--radius);
color: var(--muted);
@@ -1,5 +1,5 @@
<script lang="ts">
import { Download, ArrowDownToLine } from "@lucide/svelte";
import { ArrowDownToLine, Download } from "@lucide/svelte";
interface Props {
label: string;
@@ -16,17 +16,17 @@
<style>
.download-btn {
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid var(--blue);
background: var(--blue);
color: #fff;
font: 12px var(--font-mono);
letter-spacing: 0.04em;
padding: 9px 14px;
border-radius: var(--radius);
cursor: pointer;
width: 100%;
height: 42px;
font: 11px var(--font-mono);
border: 0;
justify-content: center;
align-items: center;
gap: 9px;
margin-top: 18px;
display: flex;
}
.download-btn:hover {
background: color-mix(in srgb, var(--blue) 88%, #000);
@@ -42,6 +42,12 @@
cursor: pointer;
font-size: inherit;
line-height: inherit;
border: 0;
background: 0 0;
border: 0;
place-items: center;
padding: 6px;
display: grid;
}
.icon-btn:hover:not(:disabled) {
color: var(--foreground);
@@ -71,4 +77,11 @@
opacity: 0.5;
cursor: not-allowed;
}
.icon-btn--ghost {
padding: 6px;
border: 0;
border-radius: 0;
color: var(--muted);
}
</style>
+5 -3
View File
@@ -15,8 +15,10 @@
<style>
.meta-list {
display: flex;
flex-direction: column;
gap: 0.15rem;
border-top: 1px solid var(--line);
grid-template-columns: repeat(3, 1fr);
gap: 8px;
padding-top: 14px;
display: grid;
}
</style>
+5 -7
View File
@@ -13,20 +13,18 @@
<style>
.meta-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
padding: 0.25rem 0;
gap: 5px;
display: grid;
}
.meta-caption {
font-family: var(--font-mono);
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--muted);
line-height: normal;
}
.meta-value {
margin-top: 5px;
line-height: normal;
font-family: var(--font-mono);
font-size: 11px;
color: var(--foreground);
+2 -3
View File
@@ -19,11 +19,10 @@
.mono-label {
font-family: var(--font-mono);
font-size: 10px;
line-height: 1.2;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 0.1em;
letter-spacing: 0.12em;
color: var(--muted);
line-height: normal;
}
.accent {
@@ -16,7 +16,9 @@
<div class="section-label">
<div class="section-text">
<MonoLabel>{label}</MonoLabel>
<strong>{title}{#if meta}<em>{meta}</em>{/if}</strong>
<strong
>{title}{#if meta}<em>{meta}</em>{/if}</strong
>
</div>
{#if actions}
{#if unwrapActions}
@@ -34,15 +36,8 @@
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
border-bottom: 1px solid var(--line);
padding-bottom: 12px;
}
.section-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
padding-bottom: 15px;
}
.section-text strong {
display: block;
+1 -2
View File
@@ -2,10 +2,9 @@
<style>
.status-dot {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--success);
background-color: var(--success2);
}
</style>
+5 -22
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { Ellipsis, GripVertical, X } from "@lucide/svelte";
import type { Snippet } from "svelte";
import { GripVertical, X, Ellipsis } from "@lucide/svelte";
interface Props {
index: number;
@@ -61,15 +61,6 @@
padding: 17px 0 6px 15px;
border-right: 1px solid var(--line);
}
.drag {
grid-column: 1;
grid-row: 2;
color: var(--muted);
cursor: grab;
display: inline-flex;
padding: 0 0 17px 15px;
border-right: 1px solid var(--line);
}
.step-body {
grid-column: 2;
grid-row: 1 / span 2;
@@ -79,22 +70,15 @@
}
.step-heading {
display: flex;
align-items: flex-start;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
gap: 15px;
border-bottom: 1px solid var(--line);
}
.step-heading-text {
display: flex;
flex-direction: column;
min-width: 0;
}
.step-type {
color: var(--muted);
font: 10px var(--font-mono);
letter-spacing: 0.12em;
text-transform: uppercase;
}
.step-title {
margin: 5px 0 18px;
@@ -104,14 +88,13 @@
.step-tools {
display: flex;
align-items: center;
gap: 8px;
gap: 13px;
}
.step-remove {
border: none;
border: 0;
background: transparent;
color: var(--muted);
cursor: pointer;
display: inline-flex;
}
.step-remove:hover {
color: var(--danger);
+3 -6
View File
@@ -22,14 +22,10 @@ body {
html {
color-scheme: light dark;
font-family: var(--font-sans);
font-size: 16px;
line-height: 1.5;
-webkit-text-size-adjust: 100%;
}
body {
font-family: var(--font-sans);
font-size: 16px;
line-height: 1.5;
color: var(--foreground);
background: var(--background);
-webkit-font-smoothing: antialiased;
@@ -42,7 +38,7 @@ input,
select,
textarea,
optgroup {
font-family: inherit;
font: inherit;
}
/* Новый дизайн: токены (§2 плана redesign).
@@ -62,7 +58,8 @@ optgroup {
--blue: #1769d2;
--cyan: #00a8c7;
--amber: #bd7411;
--success: #25a96a;
--success: rgb(35, 131, 84);
--success2: rgb(37, 169, 106);
--danger: #e5484d;
--radius: 4px;
+11 -9
View File
@@ -264,19 +264,21 @@
top: 24px;
}
.history-toggle {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
margin-top: 18px;
border: 1px solid var(--line);
color: var(--muted);
font: 10px var(--font-mono);
letter-spacing: 0.04em;
background: none;
padding: 11px 14px;
cursor: pointer;
background: 0 0;
justify-content: center;
align-items: center;
gap: 8px;
display: flex;
width: auto;
margin: 0;
padding: 8px 10px;
& :global(svg) {
transform: rotate(180deg);
}
}
.history-toggle:hover {
color: var(--foreground);