diff --git a/src/features/guides/components/FileUpload.css b/src/features/guides/components/FileUpload.css index 54de590..19f5d47 100644 --- a/src/features/guides/components/FileUpload.css +++ b/src/features/guides/components/FileUpload.css @@ -3,14 +3,14 @@ place-items: center; cursor: pointer; border-style: dashed; - padding: 2rem; + padding: var(--size-lg); font-weight: bold; &:hover, &:focus-visible { - border-color: #ff770080; - color: #ff7700; - background-color: #ff770010; + border-color: var(--color-accent-border); + color: var(--color-accent); + background-color: var(--color-accent-bg-subtle); } } diff --git a/src/features/guides/components/Frame.css b/src/features/guides/components/Frame.css index 74adc21..cbf8e5b 100644 --- a/src/features/guides/components/Frame.css +++ b/src/features/guides/components/Frame.css @@ -1,27 +1,22 @@ .frame { - padding: 1rem; - background: #ddd; - + padding: var(--size-md); + background: var(--color-bg-panel); + border-left: 3px solid var(--color-accent-border); display: flex; flex-direction: column; - gap: 1rem; + gap: var(--size-md); + border-radius: var(--radius); } .frame .buttons { display: flex; - gap: 1rem; + gap: var(--size-md); } .frame .buttons button { - padding: 0.5rem 1rem; + padding: var(--size-sm) var(--size-md); } .frame .buttons .remove { margin-left: auto; } - -.frame .steps { - display: flex; - flex-direction: column; - gap: 1rem; -} diff --git a/src/features/guides/components/Step.css b/src/features/guides/components/Step.css index 99113b8..4c59448 100644 --- a/src/features/guides/components/Step.css +++ b/src/features/guides/components/Step.css @@ -1,12 +1,12 @@ .step { display: flex; - gap: 1rem; + gap: var(--size-md); } .step label { flex-direction: row; align-items: center; - gap: 0.5rem; + gap: var(--size-sm); flex: 1; } diff --git a/src/features/guides/routes/Guide.css b/src/features/guides/routes/Guide.css index 4005065..2d82ec1 100644 --- a/src/features/guides/routes/Guide.css +++ b/src/features/guides/routes/Guide.css @@ -1,73 +1,61 @@ main:has(.guide) { - padding: 1rem 7rem; + padding: var(--size-md) 7rem; display: flex; justify-content: center; } - .guide__frames { display: flex; flex-direction: column; - gap: 3rem; + gap: var(--size-xl); } .guide { max-width: 600px; - .delete-button { position: absolute; - bottom: 1rem; - right: 1rem; + bottom: var(--size-md); + right: var(--size-md); } - .edit-button { position: absolute; - top: 1rem; + top: var(--size-md); right: 8rem; } - .export-button { position: absolute; - top: 1rem; - right: 1rem; + top: var(--size-md); + right: var(--size-md); } - .guide__frame { - padding: 1rem; - background-color: #dedede; + padding: var(--size-md); + background-color: var(--color-bg-panel); display: flex; flex-direction: column; - gap: 0.5rem; + gap: var(--size-sm); } - .guide__frame img { max-height: 350px; object-fit: contain; object-position: left center; } - .guide__frame ol { - margin-left: 1rem; + margin-left: var(--size-md); } } - @media print { main:has(.guide) { padding: 0rem; justify-content: flex-start; } - .guide__frames { display: block; } - .guide__frame { position: relative; break-inside: avoid; page-break-inside: avoid; - background-color: #dedede; - - margin: 2rem 0; + background-color: var(--color-bg-panel); + margin: var(--size-lg) 0; } - .guide__frame img { max-width: 100%; max-height: 100px; diff --git a/src/features/guides/routes/Guide.tsx b/src/features/guides/routes/Guide.tsx index 419094d..779b47b 100644 --- a/src/features/guides/routes/Guide.tsx +++ b/src/features/guides/routes/Guide.tsx @@ -20,7 +20,7 @@ export default function Guide() {