aboutsummaryrefslogtreecommitdiff
path: root/web/style/forms.css
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-10-24 15:08:15 +0200
committermetamuffin <metamuffin@disroot.org>2023-10-24 15:08:15 +0200
commitf4f3a16bca576c202887799066bd896863612e2b (patch)
tree8ddb9cdc47abae7bc615109f241b2cd12e141128 /web/style/forms.css
parentc1afcdc0dc4e59cb2ce1e8c65b69c5647f2132f3 (diff)
downloadjellything-f4f3a16bca576c202887799066bd896863612e2b.tar
jellything-f4f3a16bca576c202887799066bd896863612e2b.tar.bz2
jellything-f4f3a16bca576c202887799066bd896863612e2b.tar.zst
partial theme implementation
Diffstat (limited to 'web/style/forms.css')
-rw-r--r--web/style/forms.css75
1 files changed, 75 insertions, 0 deletions
diff --git a/web/style/forms.css b/web/style/forms.css
new file mode 100644
index 0000000..259d7ef
--- /dev/null
+++ b/web/style/forms.css
@@ -0,0 +1,75 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+ Copyright (C) 2023 tpart
+*/
+input {
+ outline: none;
+ box-sizing: border-box;
+ height: 2.5em;
+}
+input[type="text"],
+input[type="password"] {
+ border-radius: 7px;
+ padding: 0.3em;
+ margin-top: 0.3em;
+ border: 2px solid var(--accent-light);
+}
+input[type="text"]:focus,
+input[type="password"]:focus {
+ background-color: var(--background-light);
+}
+input[type="text"]:disabled,
+input[type="password"]:disabled {
+ border: 2px solid grey;
+}
+
+input[type="submit"],
+form button {
+ padding: 0.5em;
+ margin: 0.5em;
+ justify-self: center;
+ border: 0px solid transparent;
+ background-color: var(--accent-dark);
+ border-radius: 8px;
+ cursor: pointer;
+}
+input[type="submit"]:disabled {
+ background-color: grey;
+}
+input[type="submit"]:hover {
+ filter: brightness(150%);
+}
+
+form.account {
+ padding: 3em;
+ border-radius: 1em;
+ background-color: var(--background-light);
+
+ min-width: 25em;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+}
+form.account input {
+ width: 100%;
+ font-size: large;
+}
+form.account input,
+form.account label {
+ display: block;
+}
+form.account input[type="submit"] {
+ margin: 0;
+ margin-top: 1em;
+ margin-bottom: 1.5em;
+ font-weight: bold;
+}
+form.account h1 {
+ margin-top: 0px;
+}
+form.account p {
+ color: var(--font-dark);
+}