refactor(voyage): fix CSS link-order + replace literal pixel font-sizes

This commit is contained in:
Kjell Tore Guttormsen 2026-05-10 10:27:24 +02:00
commit ee1f4055c9

View file

@ -4,9 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Voyage Annotation Playground v4.2</title>
<link rel="stylesheet" href="vendor/playground-design-system/fonts.css">
<link rel="stylesheet" href="vendor/playground-design-system/tokens.css">
<link rel="stylesheet" href="vendor/playground-design-system/base.css">
<link rel="stylesheet" href="vendor/playground-design-system/fonts.css">
<link rel="stylesheet" href="vendor/playground-design-system/components.css">
<link rel="stylesheet" href="vendor/playground-design-system/components-tier2.css">
<link rel="stylesheet" href="vendor/playground-design-system/components-tier3.css">
@ -68,7 +68,7 @@
min-height: 8rem;
padding: var(--space-3);
font-family: var(--font-family-mono);
font-size: 0.875rem;
font-size: var(--font-size-sm);
border: 1px solid var(--color-border-subtle);
border-radius: var(--radius-sm);
resize: vertical;
@ -109,7 +109,7 @@
border-radius: var(--radius-md);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
cursor: pointer;
font-size: 0.875rem;
font-size: var(--font-size-sm);
transition: opacity 200ms ease;
}
.voyage-adder-popup[hidden] { display: none; }
@ -188,7 +188,7 @@
background: var(--color-bg-soft);
border-left: 3px solid var(--color-scope-voyage);
font-style: italic;
font-size: 0.875rem;
font-size: var(--font-size-sm);
margin-bottom: var(--space-3);
}
.voyage-modal__intents {
@ -291,7 +291,7 @@
background: var(--color-surface);
border-radius: 50%;
cursor: pointer;
font-size: 1rem;
font-size: var(--font-size-md);
line-height: 30px;
text-align: center;
}
@ -307,7 +307,7 @@
background: var(--color-scope-voyage);
color: #fff;
border-radius: 9px;
font-size: 0.625rem;
font-size: var(--font-size-xs);
line-height: 18px;
text-align: center;
}
@ -325,7 +325,7 @@
background: transparent;
cursor: pointer;
font: inherit;
font-size: 0.875rem;
font-size: var(--font-size-sm);
color: var(--color-text-tertiary);
border-bottom: 2px solid transparent;
}
@ -356,14 +356,14 @@
display: flex;
align-items: center;
gap: var(--space-2);
font-size: 0.75rem;
font-size: var(--font-size-xs);
}
.intent-badge {
display: inline-block;
padding: 2px 6px;
border-radius: var(--radius-sm);
color: #fff;
font-size: 0.625rem;
font-size: var(--font-size-xs);
font-weight: 600;
text-transform: uppercase;
}
@ -381,15 +381,15 @@
background: var(--color-bg-soft);
border-left: 2px solid var(--color-border-subtle);
font-style: italic;
font-size: 0.8125rem;
font-size: var(--font-size-xs);
}
.critique-card__comment {
font-size: 0.875rem;
font-size: var(--font-size-sm);
color: var(--color-text-primary);
}
.critique-card__status {
margin-top: var(--space-2);
font-size: 0.75rem;
font-size: var(--font-size-xs);
color: var(--color-text-tertiary);
}
.critique-card__status--exported { color: var(--color-severity-low); }
@ -442,7 +442,7 @@
border: 1px solid var(--color-border-subtle);
border-radius: var(--radius-sm);
font-family: var(--font-family-mono);
font-size: 0.8125rem;
font-size: var(--font-size-xs);
white-space: pre-wrap;
word-break: break-all;
margin-bottom: var(--space-3);
@ -617,7 +617,7 @@
<div id="voyage-modal-title" class="voyage-modal__header">Ny annotation</div>
<div class="voyage-modal__body">
<div id="voyage-modal-snippet" class="voyage-modal__snippet" hidden></div>
<div id="voyage-modal-anchor-info" style="font-size: 0.875rem; color: var(--color-text-tertiary); margin-bottom: var(--space-3);"></div>
<div id="voyage-modal-anchor-info" style="font-size: var(--font-size-sm); color: var(--color-text-tertiary); margin-bottom: var(--space-3);"></div>
<div role="group" aria-label="Velg intent" class="voyage-modal__intents">
<button type="button" class="voyage-modal__intent-btn" data-intent="fix" aria-pressed="false">Fiks</button>
<button type="button" class="voyage-modal__intent-btn" data-intent="change" aria-pressed="true">Endre</button>