This commit is contained in:
Mateusz Gruszczyński
2026-07-25 22:41:29 +02:00
parent 8b4a0b5186
commit e3abc3e7be
5 changed files with 75 additions and 9 deletions
+68
View File
@@ -4144,3 +4144,71 @@ dialog::backdrop {
.public-content :is(h1, h2, h3, h4, h5, h6)[id] {
scroll-margin-top: 88px;
}
/* Shared semantic action buttons. Keep legacy class names as aliases. */
.action-button,
.primary-button,
.secondary-button,
.danger-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 42px;
padding: 0 16px;
border: 1px solid var(--border);
border-radius: 9px;
font: inherit;
font-weight: 650;
line-height: 1;
text-decoration: none;
cursor: pointer;
transition: background-color .15s, border-color .15s, color .15s;
}
.action-button--primary,
.primary-button {
border-color: #8372ef;
background: var(--accent);
color: white;
}
.action-button--primary:hover,
.primary-button:hover {
background: var(--accent-hover);
}
.action-button--secondary,
.secondary-button {
border-color: var(--border-strong);
background: var(--surface-2);
color: #d2d8e1;
}
.action-button--secondary:hover,
.secondary-button:hover {
border-color: #4b5565;
background: var(--surface-3);
}
.action-button--danger,
.danger-button {
border-color: #7f3340;
background: #6e2935;
color: white;
}
.action-button--danger:hover,
.danger-button:hover {
background: #7c3040;
}
.action-button.compact-button {
min-height: 36px;
padding: 7px 11px;
}
.file-actions button,
.file-code button {
height: auto;
}