diff options
| author | winter | 2025-01-13 21:12:22 +0000 |
|---|---|---|
| committer | winter | 2025-01-13 21:12:22 +0000 |
| commit | c298fa4d4cc4277c1f7c2a54d9fb98b395b9bc12 (patch) | |
| tree | 4037c3bfc88a585085a3db5c0c8455fad702eff5 /static/form.css | |
| parent | 5e5b7c5d6d4bbdd4acaea7d4b6c5be1e27b04a86 (diff) | |
tidy stylesheets and improve replies styling
Diffstat (limited to 'static/form.css')
| -rw-r--r-- | static/form.css | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/static/form.css b/static/form.css new file mode 100644 index 0000000..91f755b --- /dev/null +++ b/static/form.css @@ -0,0 +1,71 @@ +form { + border: 1px solid #3334; + background: #9892; + border-radius: 8px; + margin: 16px; + padding: 16px; + display: grid; + grid-auto-flow: row; + gap: 8px; + max-width: max-content; + + label:has(+ input, + textarea) { + display: block; + font-size: 10pt; + color: #555; + } + input:not([type="checkbox"]), + textarea { + display: block; + border: 1px solid #3334; + border-radius: 8px; + margin: 8px 0; + padding: 8px; + font-family: inherit; + font-size: inherit; + color: inherit; + background: #fff; + width: min(60vw, 24em, calc(100% - 16px)); + } + textarea { + resize: vertical; + } + button { + background: #3b005e; + color: #fff; + font-family: inherit; + font-size: inherit; + border-radius: 8px; + border: none; + width: 100%; + padding: 8px; + box-sizing: border-box; + cursor: pointer; + &:disabled { + opacity: 80%; + cursor: default; + } + } + .error { + background: #f004; + border: 1px solid #f007; + border-radius: 8px; + padding: 16px; + margin: 0; + } + + &.noteReplyForm { + background: none; + border: none; + padding: 0; + margin: 0; + margin-top: 8px; + max-width: 100%; + input:not([type="checkbox"]), + textarea, + button { + width: 100%; + box-sizing: border-box; + } + } +} |
