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 {
108 margin: 1em 2em .5em 2em;
114 .newcard a[href="#top"] {
118 text-decoration: none;
121 .newcard a[href="#top"]:before {
125 box-shadow: 0 0 .5ex #888;
144 display: inline-block;
155 .card .control .item {
156 display: inline-block;
165 text-decoration: none;
166 border: 1px solid #888;
167 box-shadow: 0 0 .5ex #888;
169 .card .control button.item { text-align: right;}
170 .card .control .item:hover{ border-color: #008; box-shadow: 0 0 .5ex #008; }
172 .card .control .item[name=newfield] {
173 width: calc(100% - 2.5em);
175 .card .control .item[value=addfield] {
177 border-style: solid solid solid none;
181 .card .control #delete + label + button,
182 .card .control #delete { display: none; }
183 .card .control #delete + label { background-color: #FEE; }
184 .card .control #delete:checked + label + button {
185 position: fixed; display: block;
186 left: 40%; top: 30%; width: 20%;
189 background-color: #FAA;
191 border-radius: .25em 0 0 .25em;
193 .card .control #delete:checked + label:after {
194 position: fixed; display: block;
195 left: 60%; top: 30%; width: 5%;
196 margin: .25em 0; padding: .5em .75ex 0 .75ex;
201 color: #AAA; background-color: #000;
202 border-radius: 0 .25em .25em 0;
206 display: inline-block;
212 margin: .125em 0 .5ex 0;
213 padding: 0 1ex .25em 1ex;
215 .card .section:nth-of-type(2n){ background: #EEE;}
217 .card .section h2, .card .section h3 {
221 margin: .25em -.5ex .25em -.5ex;
222 border-style: none none solid none;
225 .card .section .FN { /* will override h2 */
230 .card .section .item {
233 word-wrap: break-word;
234 white-space: pre-line;
236 .card .section .item label {
240 .card .section textarea.NOTE {
243 .card .section textarea.ADR {
247 .card .section .PHOTO {
251 .card .section .GENDER { display: inline-block; padding-right: .5ex; }
252 .card .section .BDAY { display: inline-block;}
253 .card .section .TEL .type { color: #444; }
255 .card .section select {
257 background-color: #FFF;
258 border: 1px solid black;
261 .card .section.attendance ul { margin: 0; padding: 0; }
262 .card .section.attendance ul li {
264 word-wrap: break-word;
267 .card .section.prescriptions ul { margin: 0; padding: 0; }
268 .card .section.prescriptions ul li {
270 word-wrap: break-word;
274 .card .section.prescriptions { width: 40ex;}
276 .card .section.therapies a.therapy {
277 display: inline-block;
279 margin-bottom: .25em;
281 text-decoration: none;
282 background-color: #DDF;
283 border: 1px solid black;
286 form.card input.delete { display: none; }
287 form.card input.delete + label {
288 display: inline-block;
291 left: calc(100% - 1.5em);
293 margin-bottom: -1.5em;
296 vertical-align: bottom;
298 form.card input.delete + label:before {
299 display: inline-block;
301 width: calc(1.5em - 2px); height: calc(1.5em - 2px);
302 vertical-align: bottom;
305 background-color: #FBB;
306 border: 1px solid #BBB;
308 form.card input.delete + label + input[type=text],
309 form.card input.delete + label + input:not([type]),
310 form.card input.delete + label + select + input.TEL {
311 width: calc(100% - 1.5em);
313 form.card input.delete[name^=TEL_] + label { top: 1.5em; }
314 form.card input.delete[name^=TEL_] + label:before { border-top: none; }
315 form.card input.delete[name^=NOTE_] + label,
316 form.card input.delete[name^=ADR_] + label { margin-bottom: 0; }
317 form.card input.delete[name^=NOTE_] + label:before,
318 form.card input.delete[name^=ADR_] + label:before { border-bottom: none; }
320 form.card input.delete:checked + label,
321 form.card input.delete:checked + label + input,
322 form.card input.delete:checked + label + select,
323 form.card input.delete:checked + label + select + input,
324 form.card input.delete:checked + label + textarea {
328 form.card .section input[type=text],
329 form.card .section input:not([type]),
330 form.card .section textarea,
331 form.card .section select {
333 margin-bottom: .25em;
336 form.card .section select.teltype { margin-bottom: 0; }
337 form.card .section input.TEL { margin-bottom: .5em; }
339 form.card .attendance {
342 form.card .attendance label {
344 display: inline-block;
348 form.card .attendance label input[type=checkbox] {
353 form.card .insurance input[type=radio] {display: none;}
354 form.card .insurance input[type=radio] + label {
355 display: inline-block;
359 border: 1px solid black;
362 form.card .insurance input[type=radio]:checked + label {
364 background-color: #FFF;
365 border-width: 1px 1px 0 1px;
367 form.card .insurance input[type=radio] + label + input + label + select,
368 form.card .insurance input[type=radio] + label + select + input {display: none;}
369 form.card .insurance input[type=radio]:checked + label + input + label + select,
370 form.card .insurance input[type=radio]:checked + label + select + input {
372 border: 1px solid black;
373 background-color: #FFF;
374 border-width: 0 1px 1px 1px;