style: convert px layout values to rem across all components (rule 18)

This commit is contained in:
Hibryda 2026-03-08 20:54:43 +01:00
parent dba6a88a28
commit 9738776bae
9 changed files with 75 additions and 75 deletions

View file

@ -574,20 +574,20 @@
min-height: 0; min-height: 0;
} }
.message { padding: 4px 0; } .message { padding: 0.25rem 0; }
.msg-init { .msg-init {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 0.5rem;
color: var(--ctp-overlay0); color: var(--ctp-overlay0);
font-size: 11px; font-size: 0.6875rem;
} }
.msg-init .model { .msg-init .model {
background: var(--ctp-surface0); background: var(--ctp-surface0);
padding: 1px 6px; padding: 0.0625rem 0.375rem;
border-radius: 3px; border-radius: 0.1875rem;
font-family: var(--term-font-family, monospace); font-family: var(--term-font-family, monospace);
} }
@ -623,8 +623,8 @@
.msg-text.markdown-body :global(code) { .msg-text.markdown-body :global(code) {
background: var(--ctp-surface0); background: var(--ctp-surface0);
padding: 1px 5px; padding: 0.0625rem 0.3125rem;
border-radius: 3px; border-radius: 0.1875rem;
font-family: var(--term-font-family, monospace); font-family: var(--term-font-family, monospace);
font-size: 0.9em; font-size: 0.9em;
color: var(--ctp-green); color: var(--ctp-green);
@ -632,10 +632,10 @@
.msg-text.markdown-body :global(pre) { .msg-text.markdown-body :global(pre) {
background: var(--ctp-surface0); background: var(--ctp-surface0);
padding: 10px 12px; padding: 0.625rem 0.75rem;
border-radius: 0.25rem; border-radius: 0.25rem;
overflow-x: auto; overflow-x: auto;
font-size: 12px; font-size: 0.75rem;
line-height: 1.5; line-height: 1.5;
margin: 0.5em 0; margin: 0.5em 0;
} }
@ -648,10 +648,10 @@
.msg-text.markdown-body :global(.shiki) { .msg-text.markdown-body :global(.shiki) {
background: var(--ctp-surface0) !important; background: var(--ctp-surface0) !important;
padding: 10px 12px; padding: 0.625rem 0.75rem;
border-radius: 0.25rem; border-radius: 0.25rem;
overflow-x: auto; overflow-x: auto;
font-size: 12px; font-size: 0.75rem;
line-height: 1.5; line-height: 1.5;
margin: 0.5em 0; margin: 0.5em 0;
} }
@ -664,12 +664,12 @@
.msg-text.markdown-body :global(blockquote) { .msg-text.markdown-body :global(blockquote) {
border-left: 3px solid var(--ctp-mauve); border-left: 3px solid var(--ctp-mauve);
margin: 0.4em 0; margin: 0.4em 0;
padding: 2px 10px; padding: 0.125rem 0.625rem;
color: var(--ctp-subtext0); color: var(--ctp-subtext0);
} }
.msg-text.markdown-body :global(ul), .msg-text.markdown-body :global(ol) { .msg-text.markdown-body :global(ul), .msg-text.markdown-body :global(ol) {
padding-left: 20px; padding-left: 1.25rem;
margin: 0.3em 0; margin: 0.3em 0;
} }
@ -690,12 +690,12 @@
border-collapse: collapse; border-collapse: collapse;
width: 100%; width: 100%;
margin: 0.4em 0; margin: 0.4em 0;
font-size: 12px; font-size: 0.75rem;
} }
.msg-text.markdown-body :global(th), .msg-text.markdown-body :global(td) { .msg-text.markdown-body :global(th), .msg-text.markdown-body :global(td) {
border: 1px solid var(--ctp-surface0); border: 1px solid var(--ctp-surface0);
padding: 4px 8px; padding: 0.25rem 0.5rem;
text-align: left; text-align: left;
} }
@ -706,7 +706,7 @@
.msg-thinking { .msg-thinking {
color: var(--ctp-overlay1); color: var(--ctp-overlay1);
font-size: 12px; font-size: 0.75rem;
} }
.msg-thinking summary { .msg-thinking summary {
@ -715,17 +715,17 @@
} }
.msg-thinking pre { .msg-thinking pre {
margin: 4px 0 0 12px; margin: 0.25rem 0 0 0.75rem;
white-space: pre-wrap; white-space: pre-wrap;
font-size: 11px; font-size: 0.6875rem;
max-height: 200px; max-height: 12.5rem;
overflow-y: auto; overflow-y: auto;
} }
.msg-tool-call, .msg-tool-result { .msg-tool-call, .msg-tool-result {
border-left: 2px solid var(--ctp-blue); border-left: 2px solid var(--ctp-blue);
padding-left: 8px; padding-left: 0.5rem;
font-size: 12px; font-size: 0.75rem;
} }
.msg-tool-call summary, .msg-tool-result summary { .msg-tool-call summary, .msg-tool-result summary {
@ -733,7 +733,7 @@
color: var(--ctp-blue); color: var(--ctp-blue);
display: flex; display: flex;
align-items: center; align-items: center;
gap: 6px; gap: 0.375rem;
} }
.tool-name { .tool-name {
@ -743,19 +743,19 @@
.tool-id { .tool-id {
font-family: var(--term-font-family, monospace); font-family: var(--term-font-family, monospace);
font-size: 10px; font-size: 0.625rem;
color: var(--ctp-overlay0); color: var(--ctp-overlay0);
} }
.tool-input, .tool-output { .tool-input, .tool-output {
margin: 4px 0 0 0; margin: 0.25rem 0 0 0;
white-space: pre-wrap; white-space: pre-wrap;
font-size: 11px; font-size: 0.6875rem;
max-height: 300px; max-height: 18.75rem;
overflow-y: auto; overflow-y: auto;
background: var(--ctp-surface0); background: var(--ctp-surface0);
padding: 6px 8px; padding: 0.375rem 0.5rem;
border-radius: 3px; border-radius: 0.1875rem;
color: var(--ctp-subtext0); color: var(--ctp-subtext0);
} }
@ -769,11 +769,11 @@
.msg-cost { .msg-cost {
display: flex; display: flex;
gap: 12px; gap: 0.75rem;
padding: 4px 8px; padding: 0.25rem 0.5rem;
background: var(--ctp-surface0); background: var(--ctp-surface0);
border-radius: 3px; border-radius: 0.1875rem;
font-size: 11px; font-size: 0.6875rem;
color: var(--ctp-yellow); color: var(--ctp-yellow);
font-family: var(--term-font-family, monospace); font-family: var(--term-font-family, monospace);
} }
@ -781,14 +781,14 @@
.msg-error { .msg-error {
color: var(--ctp-red); color: var(--ctp-red);
background: color-mix(in srgb, var(--ctp-red) 10%, transparent); background: color-mix(in srgb, var(--ctp-red) 10%, transparent);
padding: 6px 8px; padding: 0.375rem 0.5rem;
border-radius: 3px; border-radius: 0.1875rem;
font-size: 12px; font-size: 0.75rem;
} }
.msg-status { .msg-status {
color: var(--ctp-overlay0); color: var(--ctp-overlay0);
font-size: 11px; font-size: 0.6875rem;
font-style: italic; font-style: italic;
} }

View file

@ -163,7 +163,7 @@
<style> <style>
.agent-tree { .agent-tree {
overflow: auto; overflow: auto;
padding: 4px; padding: 0.25rem;
background: var(--bg-primary); background: var(--bg-primary);
} }

View file

@ -25,22 +25,22 @@
<style> <style>
.toast-container { .toast-container {
position: fixed; position: fixed;
top: 12px; top: 0.75rem;
right: 12px; right: 0.75rem;
z-index: 9999; z-index: 9999;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 6px; gap: 0.375rem;
max-width: 360px; max-width: 22.5rem;
} }
.toast { .toast {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 0.5rem;
padding: 8px 12px; padding: 0.5rem 0.75rem;
border-radius: var(--border-radius); border-radius: var(--border-radius);
font-size: 12px; font-size: 0.75rem;
color: var(--text-primary); color: var(--text-primary);
background: var(--bg-surface); background: var(--bg-surface);
border: 1px solid var(--border); border: 1px solid var(--border);
@ -60,7 +60,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 10px; font-size: 0.625rem;
font-weight: 700; font-weight: 700;
flex-shrink: 0; flex-shrink: 0;
} }
@ -85,8 +85,8 @@
border: none; border: none;
color: var(--text-muted); color: var(--text-muted);
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 0.875rem;
padding: 0 2px; padding: 0 0.125rem;
flex-shrink: 0; flex-shrink: 0;
} }

View file

@ -48,11 +48,11 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
height: 24px; height: 1.5rem;
padding: 0 10px; padding: 0 0.625rem;
background: var(--ctp-mantle); background: var(--ctp-mantle);
border-top: 1px solid var(--ctp-surface0); border-top: 1px solid var(--ctp-surface0);
font-size: 11px; font-size: 0.6875rem;
color: var(--ctp-overlay1); color: var(--ctp-overlay1);
font-family: 'JetBrains Mono', monospace; font-family: 'JetBrains Mono', monospace;
user-select: none; user-select: none;
@ -62,19 +62,19 @@
.left, .right { .left, .right {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 6px; gap: 0.375rem;
} }
.sep { .sep {
width: 1px; width: 1px;
height: 10px; height: 0.625rem;
background: var(--ctp-surface1); background: var(--ctp-surface1);
} }
.item { .item {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px; gap: 0.25rem;
} }
.group-name { .group-name {

View file

@ -192,6 +192,6 @@
.agent-preview-container :global(.xterm) { .agent-preview-container :global(.xterm) {
height: 100%; height: 100%;
padding: 4px; padding: 0.25rem;
} }
</style> </style>

View file

@ -129,6 +129,6 @@
.terminal-container :global(.xterm) { .terminal-container :global(.xterm) {
height: 100%; height: 100%;
padding: 4px; padding: 0.25rem;
} }
</style> </style>

View file

@ -40,9 +40,9 @@
<style> <style>
.agent-card { .agent-card {
padding: 6px 8px; padding: 0.375rem 0.5rem;
background: var(--ctp-surface0); background: var(--ctp-surface0);
border-radius: 4px; border-radius: 0.25rem;
cursor: pointer; cursor: pointer;
transition: background 0.1s; transition: background 0.1s;
border-left: 2px solid transparent; border-left: 2px solid transparent;
@ -55,8 +55,8 @@
.card-header { .card-header {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px; gap: 0.25rem;
margin-bottom: 3px; margin-bottom: 0.1875rem;
} }
.status-dot { .status-dot {
@ -90,7 +90,7 @@
} }
.card-progress { .card-progress {
margin-top: 3px; margin-top: 0.1875rem;
} }
.turns { .turns {

View file

@ -84,11 +84,11 @@
} }
.palette { .palette {
width: 460px; width: 28.75rem;
max-height: 360px; max-height: 22.5rem;
background: var(--ctp-mantle); background: var(--ctp-mantle);
border: 1px solid var(--ctp-surface1); border: 1px solid var(--ctp-surface1);
border-radius: 8px; border-radius: 0.5rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -97,7 +97,7 @@
} }
.palette-input { .palette-input {
padding: 12px 16px; padding: 0.75rem 1rem;
background: transparent; background: transparent;
border: none; border: none;
border-bottom: 1px solid var(--ctp-surface0); border-bottom: 1px solid var(--ctp-surface0);
@ -113,7 +113,7 @@
.palette-results { .palette-results {
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 4px; padding: 0.25rem;
overflow-y: auto; overflow-y: auto;
} }
@ -122,13 +122,13 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
padding: 8px 12px; padding: 0.5rem 0.75rem;
background: transparent; background: transparent;
border: none; border: none;
color: var(--ctp-text); color: var(--ctp-text);
font-size: 0.85rem; font-size: 0.85rem;
cursor: pointer; cursor: pointer;
border-radius: 4px; border-radius: 0.25rem;
transition: background 0.1s; transition: background 0.1s;
} }
@ -151,7 +151,7 @@
} }
.no-results { .no-results {
padding: 12px; padding: 0.75rem;
color: var(--ctp-overlay0); color: var(--ctp-overlay0);
font-size: 0.85rem; font-size: 0.85rem;
text-align: center; text-align: center;

View file

@ -40,15 +40,15 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
width: 220px; width: 13.75rem;
flex-shrink: 0; flex-shrink: 0;
} }
.panel-header { .panel-header {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px; gap: 0.25rem;
padding: 5px 8px; padding: 0.3125rem 0.5rem;
background: transparent; background: transparent;
border: none; border: none;
color: var(--ctp-subtext0); color: var(--ctp-subtext0);
@ -74,8 +74,8 @@
.agent-count { .agent-count {
margin-left: auto; margin-left: auto;
background: var(--ctp-surface0); background: var(--ctp-surface0);
padding: 0 5px; padding: 0 0.3125rem;
border-radius: 8px; border-radius: 0.5rem;
font-size: 0.65rem; font-size: 0.65rem;
color: var(--ctp-overlay1); color: var(--ctp-overlay1);
} }
@ -83,8 +83,8 @@
.agent-list { .agent-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 3px; gap: 0.1875rem;
padding: 4px; padding: 0.25rem;
overflow-y: auto; overflow-y: auto;
flex: 1; flex: 1;
} }