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