aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkshay" (aider) <[email protected]>2024-11-08 22:37:48 +0000
committerAkshay" (aider) <[email protected]>2024-11-08 22:37:48 +0000
commitab92c3f6c19e80fe554cfe8d7b109b1196de1fdb (patch)
treeb795e63985ba6b0084c1ba3d3a08122c1f1ab322 /src
parentc208002788791d31fa88a8dd852bbe25dab94c08 (diff)
style: Align and pad form inputs to match background of other elements
Diffstat (limited to 'src')
-rw-r--r--src/public/styles.css42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/public/styles.css b/src/public/styles.css
index e5e04ef..b753bd8 100644
--- a/src/public/styles.css
+++ b/src/public/styles.css
@@ -424,3 +424,45 @@ button {
424 color: var(--text-color); 424 color: var(--text-color);
425 padding: 5px; 425 padding: 5px;
426} 426}
427
428input[type="text"],
429input[type="password"],
430input[type="email"],
431textarea {
432 width: 100%;
433 padding: 10px;
434 margin: 10px 0;
435 box-sizing: border-box;
436 border: 1px solid var(--bg-color-muted);
437 border-radius: 4px;
438 background-color: var(--bg-color-muted);
439 color: var(--text-color);
440}
441
442form {
443 display: flex;
444 flex-direction: column;
445 align-items: center;
446}
447
448form label {
449 width: 100%;
450 margin: 5px 0;
451 color: var(--text-color);
452}
453
454form input[type="submit"] {
455 width: auto;
456 padding: 10px 20px;
457 margin-top: 20px;
458 background-color: var(--link-color);
459 color: var(--bg-color);
460 border: none;
461 border-radius: 4px;
462 cursor: pointer;
463}
464
465form input[type="submit"]:hover {
466 background-color: var(--link-color);
467 opacity: 0.8;
468}