aboutsummaryrefslogtreecommitdiff
path: root/web/style/forms.css
blob: 5927b4ca3b136839f03817813142fbb402b4286b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/*
    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 {
    background-color: var(--background-dark);
    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 var(--background-disable);
}
option {
    font-family: "Cantarell", sans-serif;
}

fieldset {
    background-color: var(--background-light);
    border-radius: 8px;
}

input[type="submit"],
button {
    color: var(--font-highlight);
    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,
button:disabled {
    background-color: var(--background-disable);
}
input[type="submit"]:hover,
button: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);
}

legend {
    font-size: 1.5em;
}
input[type="radio"] {
    appearance: none;
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 2px;
    background-clip: content-box;
    border: 2px solid var(--font);
    background-color: transparent;
    transition: background-color 0.3s;
}
input[type="radio"]:checked {
    background-color: var(--accent-light);
}

input[type="checkbox"] {
    appearance: none;
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    padding: 2px;
    background-clip: content-box;
    border: 2px solid var(--font);
    background-color: transparent;
    transition: background-color 0.3s;
}
input[type="checkbox"]:checked {
    background-color: var(--accent-light);
}

fieldset label {
    transition: color 0.2s;
}
fieldset label:hover {
    color: var(--accent-light);
}

fieldset .categories {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
fieldset .categories .category {
    margin-right: 2em;
    margin-left: 2em;
    min-width: max-content;
    flex-basis: auto;
    display: inline-flex;
    flex-direction: column;
}
fieldset .categories .category h3 {
    margin: 0px;
}