2 # Copyright 2014 - 2017 Paul Hänsch
4 # This file is part of Confetti.
6 # Confetti is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Affero General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # Confetti is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Affero General Public License for more details.
16 # You should have received a copy of the GNU Affero General Public License
17 # along with Confetti. If not, see <http://www.gnu.org/licenses/>.
20 .filter, .newcard, .card { box-shadow: 0 0 1ex; }
25 border-radius: 4px 4px 0 0;
26 margin: .5em 2em .25em 2em;
27 padding: 0 2ex .5em 2ex;
35 border-style: none none solid none;
36 border-radius: 4px 4px 0 0;
38 margin: 0 -1.625ex .5em -1.625ex;
42 .filter input[type="text"] {
54 .filter fieldset legend {
61 display: inline-block;
63 margin: .125em 2ex 0 0;
70 .filter fieldset.item { padding-left: 0; }
71 .filter fieldset.item legend { display: none; }
72 .filter fieldset.item input[type=text],
73 .filter fieldset.item fieldset.categories {
74 background-color: #FFF;
75 border: 1px solid #000;
79 .filter fieldset.item input[type=radio] { display: none; }
80 .filter fieldset.item input[type=radio] + label {
81 position: relative; z-index: 1;
82 margin: 0; padding: .25em 1em;
85 .filter fieldset.item input[type=radio]:checked + label {
86 background-color: #FFF;
87 border: 1px solid #000;
88 border-bottom-color: #FFF;
90 .filter fieldset.item input[type=radio][value="CATEGORIES"]:checked + label + input[type=text],
91 .filter fieldset.item input[type=radio][value="CATEGORIES"] + label + input[type=text] + fieldset.categories {
94 .filter fieldset.item input[type=radio][value="CATEGORIES"]:checked + label + input[type=text] + fieldset.categories {
97 .filter fieldset.item fieldset.categories a {
106 border-radius: 0 0 4px 4px;
107 margin: .25em 2em 1em 2em;
108 padding: .25em 2ex .25em 2ex;
123 display: inline-block;
134 .card .control .item {
135 display: inline-block;
144 text-decoration: none;
145 border: 1px solid #888;
146 box-shadow: 0 0 .5ex #888;
148 .card .control button.item { text-align: right;}
149 .card .control .item:hover{ border-color: #008; box-shadow: 0 0 .5ex #008; }
151 .card .control .item[name=newfield] {
152 width: calc(100% - 2.5em);
154 .card .control .item[value=addfield] {
156 border-style: solid solid solid none;
160 .card .control #delete + label + button,
161 .card .control #delete { display: none; }
162 .card .control #delete + label { background-color: #FEE; }
163 .card .control #delete:checked + label + button {
164 position: fixed; display: block;
165 left: 40%; top: 30%; width: 20%;
168 background-color: #FAA;
170 border-radius: .25em 0 0 .25em;
172 .card .control #delete:checked + label:after {
173 position: fixed; display: block;
174 left: 60%; top: 30%; width: 5%;
175 margin: .25em 0; padding: .5em .75ex 0 .75ex;
180 color: #AAA; background-color: #000;
181 border-radius: 0 .25em .25em 0;
185 display: inline-block;
191 margin: .125em 0 .5ex 0;
192 padding: 0 1ex .25em 1ex;
194 .card .section:nth-of-type(2n){ background: #EEE;}
196 .card .section h2, .card .section h3 {
200 margin: .25em -.5ex .25em -.5ex;
201 border-style: none none solid none;
204 .card .section .FN { /* will override h2 */
209 .card .section .item {
212 word-wrap: break-word;
213 white-space: pre-line;
215 .card .section .item label {
219 .card .section textarea.NOTE {
222 .card .section textarea.ADR {
226 .card .section .PHOTO {
230 .card .section .GENDER { display: inline-block; padding-right: .5ex; }
231 .card .section .BDAY { display: inline-block;}
232 .card .section .TEL .type { color: #444; }
234 .card .section select {
236 background-color: #FFF;
237 border: 1px solid black;
240 .card .section.attendance ul { margin: 0; padding: 0; }
241 .card .section.attendance ul li {
243 word-wrap: break-word;
246 .card .section.prescriptions ul { margin: 0; padding: 0; }
247 .card .section.prescriptions ul li {
249 word-wrap: break-word;
253 .card .section.prescriptions { width: 40ex;}
255 form.card input.delete { display: none; }
256 form.card input.delete + label {
257 display: inline-block;
260 left: calc(100% - 1.5em);
262 margin-bottom: -1.5em;
265 vertical-align: bottom;
267 form.card input.delete + label:before {
268 display: inline-block;
270 width: calc(1.5em - 2px); height: calc(1.5em - 2px);
271 vertical-align: bottom;
274 background-color: #FBB;
275 border: 1px solid #BBB;
277 form.card input.delete + label + input[type=text],
278 form.card input.delete + label + input:not([type]),
279 form.card input.delete + label + select + input.TEL {
280 width: calc(100% - 1.5em);
282 form.card input.delete[name^=TEL_] + label { top: 1.5em; }
283 form.card input.delete[name^=TEL_] + label:before { border-top: none; }
284 form.card input.delete[name^=NOTE_] + label,
285 form.card input.delete[name^=ADR_] + label { margin-bottom: 0; }
286 form.card input.delete[name^=NOTE_] + label:before,
287 form.card input.delete[name^=ADR_] + label:before { border-bottom: none; }
289 form.card input.delete:checked + label,
290 form.card input.delete:checked + label + input,
291 form.card input.delete:checked + label + select,
292 form.card input.delete:checked + label + select + input,
293 form.card input.delete:checked + label + textarea {
297 form.card .section input[type=text],
298 form.card .section input:not([type]),
299 form.card .section textarea,
300 form.card .section select {
302 margin-bottom: .25em;
305 form.card .section select.teltype { margin-bottom: 0; }
306 form.card .section input.TEL { margin-bottom: .5em; }
308 form.card .attendance {
311 form.card .attendance label {
313 display: inline-block;
317 form.card .attendance label input[type=checkbox] {
322 form.card .insurance input[type=radio] {display: none;}
323 form.card .insurance input[type=radio] + label {
324 display: inline-block;
328 border: 1px solid black;
331 form.card .insurance input[type=radio]:checked + label {
333 background-color: #FFF;
334 border-width: 1px 1px 0 1px;
336 form.card .insurance input[type=radio] + label + input + label + select,
337 form.card .insurance input[type=radio] + label + select + input {display: none;}
338 form.card .insurance input[type=radio]:checked + label + input + label + select,
339 form.card .insurance input[type=radio]:checked + label + select + input {
341 border: 1px solid black;
342 background-color: #FFF;
343 border-width: 0 1px 1px 1px;