2 # Copyright 2016 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/>.
19 . ${0%/*}/cards.css.sh
23 body {padding-bottom: 3em; }
25 .trailbtn { display: none; }
26 .trailbtn + .trailbox { display: none; }
27 .trailbtn:checked + .trailbox { display: inline-block; }
28 .trailbtn:checked + .trailbox + .trailbtn { display: block; }
29 .trailbtn:checked + .trailbox + .trailbtn:before {
30 display: block; content: '+';
31 width: 3ex; text-align: center;
32 margin-top: .25em; padding: .25em 0;
33 background-color: #FFF;
34 border-width: 1px; border-style: solid;
36 .trailbtn:checked + .trailbox + .trailbtn:checked,
37 .trailbtn:checked { display: none; }
40 display: inline-block;
41 width: 96%; max-width: 460px;
43 background-color: #DDD;
44 margin: 1em -1% 0 2%; padding: 0;
45 border: 1px solid #888;
49 form.prescription { padding-top: 1ex;}
53 margin: 0 2em; padding: .5ex 2ex;
54 background-color: #CFF;
55 border: 1px solid #888;
56 border-radius: 0 0 1ex 1ex;
60 display: inline-block;
63 margin: 0; padding: 0;
70 .prescription fieldset {
71 display: inline-block;
72 margin: 0; padding: 1ex;
73 margin-right: -.625ex;
77 .prescription fieldset br { display: none;}
81 .prescription textarea {
83 border: 1px solid #800;
85 background-color: #FFF;
88 background-color: #EEE;
90 white-space: pre-wrap;
95 .prescription input[type=checkbox],
96 .prescription input[type=radio] { display: none;}
98 .prescription label.checkbox,
99 .prescription label.radio,
100 .prescription input[type=checkbox] + label,
101 .prescription input[type=radio] + label { padding-left: 1.25em; font-size: 1em;}
103 .prescription label.checkbox:before,
104 .prescription label.radio:before,
105 .prescription input[type=checkbox] + label:before,
106 .prescription input[type=radio] + label:before {
107 display: inline-block;
109 margin-left: -1.25em;
110 width: .75em; height: .75em;
111 background-color: #FFF;
112 border: 1px solid #800;
115 .prescription label.radio:before,
116 .prescription input[type=radio] + label:before { border-radius: .5em;}
117 .prescription label.checkbox.checked:before,
118 .prescription label.radio.checked:before,
119 .prescription input[type=checkbox]:checked + label:before,
120 .prescription input[type=radio]:checked + label:before { content: "\2713";}
122 .prescription a.button,
123 .prescription input[type=submit],
124 .prescription button {
127 background-color: #800;
129 text-decoration: none;
130 margin: 0; padding: .125em 0 0 0;
133 .prescription a.button {padding: .5ex;}
135 /* ======== Specific ========== */
137 .prescription label.presctype,
138 .prescription input[name=presctype] + label {
141 margin: 0; margin-right: -.75ex;
142 vertical-align: bottom;
143 padding: .125em .5ex .25em 3ex;
145 .prescription label.presctype {
152 input[name=presctype][value\$=private]:checked ~ fieldset,
153 input[name=presctype][value\$=private] + label,
154 .prescription.private { background-color: #CFC;}
155 input[name=presctype][value\$=selfpaid]:checked ~ fieldset,
156 input[name=presctype][value\$=selfpaid] + label,
157 .prescription.selfpaid { background-color: #FFC;}
158 input[name=presctype][value=doctor_compulsory]:checked ~ fieldset,
159 input[name=presctype][value=doctor_compulsory] + label,
160 .prescription.doctor.compulsory { background-color: #CFF;}
161 input[name=presctype][value=dentist_compulsory]:checked ~ fieldset,
162 input[name=presctype][value=dentist_compulsory] + label,
163 .prescription.dentist.compulsory { background-color: #FCC;}
164 input[name=presctype][value^=altpractition]:checked ~ fieldset,
165 input[name=presctype][value^=altpractition] + label,
166 .prescription.altpractition { background-color: #FCF;}
168 .prescription .baseinfo { width: 60%;}
170 .baseinfo label[for=insurance],
171 .baseinfo #insurance { width: 100%; }
173 .baseinfo label[for=name],
174 .baseinfo #name { width: 65%; margin-right: -.875ex;}
175 .baseinfo #name { height: 4em; }
177 .baseinfo label[for=bday],
178 .baseinfo #bday { width: 35%;}
179 .baseinfo #bday { height: 4em; text-align: center; vertical-align: top;}
181 .baseinfo label[for=date],
182 .baseinfo #date { width: 34%; margin-left: 65%;}
183 .baseinfo #date { text-align: right;}
185 .prescription .misc { width: 40%; }
192 .misc label[for=addcontrib],
193 .misc label[for=contribconfirm] {width: 100%;}
195 .misc #contribconfirm {width: 100%; text-align: right;}
197 .prescription label[for=prescreviewed] {
200 text-decoration: underline;
201 background-color: #FCC;
203 .prescription label[for=prescreviewed].checked,
204 .prescription :checked + label[for=prescreviewed] {
206 text-decoration: none;
207 background-color: transparent;
210 .prescription .catalogue { width: 100%; }
212 .catalogue h2:nth-of-type(1) {
215 margin-bottom: .25em;
218 display: inline-block;
220 margin-right: -.625ex;
224 .catalogue label[for=presccontinual] { margin-right: 33%;}
226 .prescription .description { width: 100%; position: relative;}
227 .description * { margin-right: -.625ex; vertical-align: top; }
228 .description label {vertical-align: bottom;}
230 .description label[for=quantity] { width: 20%;}
231 .description label[for=remidy] { width: 60%; }
232 .description label[for=quantity_weekly] { width: 20%;}
233 .description #quantity,
234 .description .quantity { width: 20%; height: 3em; text-align: center;}
235 .description #remidy,
236 .description .remidy { width: 60%; height: 3em;}
237 .description #quantity_weekly,
238 .description .quantity_weekly { width: 20%; height: 3em; text-align: center;}
240 .description .indicator_codes {display: inline-block; width: 20%; padding: 0; padding-top: 1.5ex;}
241 .description label[for=indicator],
242 .description label[for=icd10] { display: block; width: 100%;}
244 .description #indicator {width: 100%; text-align: right;}
246 .description .indicator_reading { display: inline-block; width: 78%; padding: 0; padding-top: 1.5ex; margin-left: 2%;}
247 .description label[for=indicator_reading],
248 .description #indicator_reading { width: 100%; display: block;}
249 .description #indicator_reading { height: 4em;}
251 .prescription .controls { width: 100%; }
253 .controls button[value=save],
254 .controls button[value=cancel],
255 .controls button[value=delete] { width: 25%;}
259 # vi:set filetype=css: