mirror of
https://github.com/bitbaum/writingkit.git
synced 2026-12-03 18:17:28 +01:00
* fix(pile): chip classes no longer collide with whenkit; v0.4.1 .wk-chip/.wk-chips are whenkit's; where both stylesheets load each restyled the other's chips. Renamed to .wk-pile-chip(s). Version bump so publish.yml ships it on merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsN9mz8QfGDCrNhY9p * fix(styles): words use the text colour, not the hairline colour .wk-meta, .wk-diff del and .wk-chart-problem used --ck-muted (dots and hairlines; ~2:1 in OrangeCat). They use --ck-fg-3 (4.5:1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsN9mz8QfGDCrNhY9p * test(browser): wait for Bold's placeholder selection before typing Bold selects its placeholder a frame later. Filling before that frame let the late selection turn the fill into "replace the word bold", failing the improve/speak/preview checks in about 1 run in 3 (on main too: 3/8). Now 0/10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsN9mz8QfGDCrNhY9p * ci: re-run verify Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsN9mz8QfGDCrNhY9p --------- Co-authored-by: Claude <noreply@anthropic.com>
295 lines
5.7 KiB
CSS
295 lines
5.7 KiB
CSS
/*
|
|
* ArticleComposer. Colours, radii and sizes are chatkit's --ck-* tokens, the
|
|
* same ones an app already maps for its chats, so there is no second set to
|
|
* keep in step. Phone first: 16px text, 44px targets, nothing scrolls sideways.
|
|
*/
|
|
.wk-composer {
|
|
display: grid;
|
|
gap: 1rem;
|
|
min-width: 0;
|
|
font-family: var(--ck-font, inherit);
|
|
color: var(--ck-fg);
|
|
}
|
|
.wk-form {
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
min-width: 0;
|
|
}
|
|
.wk-title .ck-field-input {
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
}
|
|
.wk-body .ck-field-input {
|
|
line-height: 1.7;
|
|
min-height: 15rem;
|
|
}
|
|
.wk-sr {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
white-space: nowrap;
|
|
}
|
|
.wk-meta {
|
|
margin: 0;
|
|
color: var(--ck-fg-3);
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
}
|
|
.wk-meta a {
|
|
color: inherit;
|
|
font-weight: 600;
|
|
}
|
|
.wk-editor-head {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
.wk-tabs,
|
|
.wk-tools {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
grid-auto-columns: minmax(0, 1fr);
|
|
gap: 0.25rem;
|
|
min-width: 0;
|
|
}
|
|
.wk-format {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 0.25rem;
|
|
}
|
|
.wk-tab,
|
|
.wk-tool,
|
|
.wk-btn {
|
|
min-height: var(--ck-target, 44px);
|
|
min-width: 0;
|
|
padding: 0 0.75rem;
|
|
border: 1px solid var(--ck-line-2, var(--ck-line));
|
|
border-radius: var(--ck-radius-sm);
|
|
background: var(--ck-raised);
|
|
color: var(--ck-fg);
|
|
font: inherit;
|
|
font-size: 0.9375rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
.wk-tab[aria-selected="true"],
|
|
.wk-tool[aria-pressed="true"] {
|
|
background: var(--ck-fg);
|
|
border-color: var(--ck-fg);
|
|
color: var(--ck-bg);
|
|
}
|
|
.wk-tab:disabled,
|
|
.wk-tool:disabled,
|
|
.wk-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
.wk-btn-primary {
|
|
background: var(--ck-accent);
|
|
border-color: var(--ck-accent);
|
|
color: var(--ck-on-accent, #fff);
|
|
}
|
|
.wk-btn-wide {
|
|
width: 100%;
|
|
}
|
|
.wk-link {
|
|
font: inherit;
|
|
font-weight: 700;
|
|
color: var(--ck-accent);
|
|
background: none;
|
|
border: 0;
|
|
padding: 0.5rem 0;
|
|
min-height: var(--ck-target, 44px);
|
|
cursor: pointer;
|
|
}
|
|
.wk-panel {
|
|
display: grid;
|
|
gap: 0.625rem;
|
|
min-width: 0;
|
|
padding: 0.875rem;
|
|
border: 1px solid var(--ck-line);
|
|
border-radius: var(--ck-radius);
|
|
background: var(--ck-raised);
|
|
}
|
|
.wk-panel-title {
|
|
margin: 0;
|
|
font-size: 1.0625rem;
|
|
}
|
|
.wk-code {
|
|
margin: 0;
|
|
padding: 0.75rem;
|
|
overflow-x: auto;
|
|
border-radius: var(--ck-radius-sm);
|
|
background: var(--ck-bg);
|
|
font-family: var(--ck-mono, monospace);
|
|
font-size: 0.8125rem;
|
|
line-height: 1.5;
|
|
}
|
|
.wk-actions-row {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
grid-auto-columns: minmax(0, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
.wk-preview {
|
|
min-height: 15rem;
|
|
padding: 0.875rem;
|
|
border: 1px solid var(--ck-line);
|
|
border-radius: var(--ck-radius-sm);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.wk-problems {
|
|
padding: 0.75rem 0.875rem;
|
|
border: 1px solid var(--ck-danger);
|
|
border-radius: var(--ck-radius-sm);
|
|
background: var(--ck-danger-soft, transparent);
|
|
font-size: 0.9375rem;
|
|
}
|
|
.wk-problems ul {
|
|
margin: 0;
|
|
padding-left: 1.25rem;
|
|
}
|
|
.wk-publish {
|
|
display: grid;
|
|
gap: 0.5rem;
|
|
}
|
|
@media (max-width: 420px) {
|
|
.wk-btn {
|
|
white-space: normal;
|
|
}
|
|
.wk-actions-row {
|
|
grid-auto-flow: row;
|
|
grid-auto-columns: auto;
|
|
}
|
|
}
|
|
|
|
/* A suggestion: what changes, then "Use this" / "Keep mine". */
|
|
.wk-suggestion {
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
min-width: 0;
|
|
padding: 0.875rem;
|
|
border: 1px solid var(--ck-line);
|
|
border-radius: var(--ck-radius, 0.5rem);
|
|
background: var(--ck-raised);
|
|
}
|
|
.wk-diff {
|
|
max-height: 20rem;
|
|
overflow-y: auto;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: break-word;
|
|
line-height: 1.6;
|
|
font-size: 1rem;
|
|
}
|
|
.wk-diff ins {
|
|
text-decoration: none;
|
|
background: var(--ck-accent-soft);
|
|
border-radius: 2px;
|
|
}
|
|
.wk-replaces {
|
|
display: block;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
.wk-diff ins:only-child,
|
|
.wk-replaces + ins {
|
|
background: none;
|
|
}
|
|
.wk-diff del {
|
|
color: var(--ck-fg-3);
|
|
text-decoration: line-through;
|
|
}
|
|
.wk-options {
|
|
display: grid;
|
|
gap: 0.25rem;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
min-width: 0;
|
|
}
|
|
.wk-option {
|
|
display: grid;
|
|
grid-template-columns: 1.25rem minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-height: 2.75rem;
|
|
overflow-wrap: break-word;
|
|
}
|
|
.wk-option input {
|
|
width: 1.125rem;
|
|
height: 1.125rem;
|
|
}
|
|
|
|
/* A chart inside the article (chartkit draws it and its caption). */
|
|
.wk-chart {
|
|
margin: 1.5rem 0;
|
|
min-width: 0;
|
|
}
|
|
.wk-chart-problem {
|
|
margin: 1rem 0;
|
|
padding: 0.75rem;
|
|
border: 1px dashed var(--ck-line);
|
|
border-radius: var(--ck-radius, 0.5rem);
|
|
color: var(--ck-fg-3);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* PileComposer: everything thrown in, one action. */
|
|
.wk-pile-group {
|
|
display: grid;
|
|
gap: 0.375rem;
|
|
min-width: 0;
|
|
}
|
|
.wk-pile-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
min-width: 0;
|
|
}
|
|
.wk-pile-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
max-width: 100%;
|
|
min-height: 2.75rem;
|
|
padding: 0 0 0 0.75rem;
|
|
border: 1px solid var(--ck-line);
|
|
border-radius: var(--ck-radius);
|
|
background: var(--ck-bg, transparent);
|
|
font-size: 0.875rem;
|
|
}
|
|
.wk-pile-chip-name {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
}
|
|
.wk-pile-chip:not(:has(button)) {
|
|
padding-right: 0.75rem;
|
|
}
|
|
.wk-pile-chip-thumb {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
object-fit: cover;
|
|
border-radius: calc(var(--ck-radius) / 2);
|
|
}
|
|
.wk-pile-chip .wk-tool {
|
|
min-width: 2.75rem;
|
|
min-height: 2.75rem;
|
|
border: 0;
|
|
background: transparent;
|
|
}
|
|
.wk-pile-chip:has(button) {
|
|
min-height: calc(2.75rem + 2px);
|
|
}
|