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/>.
20 @import url("?static=cards.css");
22 body {padding-bottom: 3em; }
24 .trailbtn { display: none; }
25 .trailbtn + .trailbox { display: none; }
26 .trailbtn:checked + .trailbox { display: inline-block; }
27 .trailbtn:checked + .trailbox + .trailbtn { display: block; }
28 .trailbtn:checked + .trailbox + .trailbtn:before {
29 display: block; content: '+';
30 width: 3ex; text-align: center;
31 margin-top: .25em; padding: .25em 0;
32 background-color: #FFF;
33 border-width: 1px; border-style: solid;
35 .trailbtn:checked + .trailbox + .trailbtn:checked,
36 .trailbtn:checked { display: none; }
39 display: inline-block;
40 width: 96%; max-width: 460px;
42 background-color: #DDD;
43 margin: 1em -1% 0 2%; padding: 0;
44 border: 1px solid #888;
48 form.prescription { padding-top: 1ex;}
52 margin: 0 2em; padding: .5ex 2ex;
53 background-color: #CFF;
54 border: 1px solid #888;
55 border-radius: 0 0 1ex 1ex;
59 display: inline-block;
62 margin: 0; padding: 0;
69 .prescription fieldset {
70 display: inline-block;
71 margin: 0; padding: 1ex;
72 margin-right: -.625ex;
76 .prescription fieldset br { display: none;}
80 .prescription textarea {
82 border: 1px solid #800;
84 background-color: #FFF;
87 background-color: #EEE;
89 white-space: pre-wrap;
94 .prescription input[type=checkbox],
95 .prescription input[type=radio] { display: none;}
97 .prescription label.checkbox,
98 .prescription label.radio,
99 .prescription input[type=checkbox] + label,
100 .prescription input[type=radio] + label { padding-left: 1.25em; font-size: 1em;}
102 .prescription label.checkbox:before,
103 .prescription label.radio:before,
104 .prescription input[type=checkbox] + label:before,
105 .prescription input[type=radio] + label:before {
106 display: inline-block;
108 margin-left: -1.25em;
109 width: .75em; height: .75em;
110 background-color: #FFF;
111 border: 1px solid #800;
114 .prescription label.radio:before,
115 .prescription input[type=radio] + label:before { border-radius: .5em;}
116 .prescription label.checkbox.checked:before,
117 .prescription label.radio.checked:before,
118 .prescription input[type=checkbox]:checked + label:before,
119 .prescription input[type=radio]:checked + label:before { content: "\2713";}
121 .prescription a.button,
122 .prescription input[type=submit],
123 .prescription button {
126 background-color: #800;
128 text-decoration: none;
129 margin: 0; padding: .125em 0 0 0;
132 .prescription a.button {padding: .5ex;}
134 /* ======== Specific ========== */
136 .prescription label.presctype,
137 .prescription input[name=presctype] + label {
140 margin: 0; margin-right: -.5ex;
142 padding: .25em .5ex .25em 3ex;
144 border-top: 1px solid #DDD;
146 .prescription label.presctype {
154 input[name=presctype][value\$=private]:checked ~ fieldset,
155 input[name=presctype][value\$=private] + label,
156 .prescription.private { background-color: #CFC;}
157 input[name=presctype][value\$=selfpaid]:checked ~ fieldset,
158 input[name=presctype][value\$=selfpaid] + label,
159 .prescription.selfpaid { background-color: #FFC;}
160 input[name=presctype][value=doctor_compulsory]:checked ~ fieldset,
161 input[name=presctype][value=doctor_compulsory] + label,
162 .prescription.doctor.compulsory { background-color: #CFF;}
163 input[name=presctype][value=dentist_compulsory]:checked ~ fieldset,
164 input[name=presctype][value=dentist_compulsory] + label,
165 .prescription.dentist.compulsory { background-color: #FCC;}
166 input[name=presctype][value^=altpractition]:checked ~ fieldset,
167 input[name=presctype][value^=altpractition] + label,
168 .prescription.altpractition { background-color: #FCF;}
170 .prescription .baseinfo { width: 60%;}
172 .baseinfo label[for=insurance],
173 .baseinfo #insurance { width: 100%; }
175 .baseinfo label[for=name],
176 .baseinfo #name { width: 65%; margin-right: -.875ex;}
177 .baseinfo #name { height: 4em; }
179 .baseinfo label[for=bday],
180 .baseinfo #bday { width: 35%;}
181 .baseinfo #bday { height: 4em; text-align: center; vertical-align: top;}
183 .baseinfo label[for=date],
184 .baseinfo #date { width: 34%; margin-left: 65%;}
185 .baseinfo #date { text-align: right;}
187 .prescription .misc { width: 40%; }
194 .misc label[for=addcontrib],
195 .misc label[for=contribconfirm] {width: 100%;}
197 .misc #contribconfirm {width: 100%; text-align: right;}
199 .prescription label[for=prescreviewed] {
202 text-decoration: underline;
203 background-color: #FCC;
205 .prescription label[for=prescreviewed].checked,
206 .prescription :checked + label[for=prescreviewed] {
208 text-decoration: none;
209 background-color: transparent;
212 .prescription .catalogue { width: 100%; }
214 .catalogue h2:nth-of-type(1) {
217 margin-bottom: .25em;
220 display: inline-block;
222 margin-right: -.625ex;
226 .catalogue label[for=presccontinual] { margin-right: 33%;}
228 .prescription .description { width: 100%; position: relative;}
229 .description * { margin-right: -.625ex; vertical-align: top; }
230 .description label {vertical-align: bottom;}
232 .description label[for=quantity] { width: 20%;}
233 .description label[for=remidy] { width: 60%; }
234 .description label[for=quantity_weekly] { width: 20%;}
235 .description #quantity,
236 .description .quantity { width: 20%; height: 3em; text-align: center;}
237 .description #remidy,
238 .description .remidy { width: 60%; height: 3em;}
239 .description #quantity_weekly,
240 .description .quantity_weekly { width: 20%; height: 3em; text-align: center;}
242 .description .indicator_codes {display: inline-block; width: 20%; padding: 0; padding-top: 1.5ex;}
243 .description label[for=indicator],
244 .description label[for=icd10] { display: block; width: 100%;}
246 .description #indicator {width: 100%; text-align: right;}
248 .description .indicator_reading { display: inline-block; width: 78%; padding: 0; padding-top: 1.5ex; margin-left: 2%;}
249 .description label[for=indicator_reading],
250 .description #indicator_reading { width: 100%; display: block;}
251 .description #indicator_reading { height: 4em;}
253 .description .issuer { display: inline-block; width: 50%; padding: 0; padding-top: 0; margin-left: 50%;}
254 .description .issuer label:first-of-type {
257 width: 50%; left: -50%; top: 2.25em;
262 .description .issuer input[type=radio] + label:before { content: none; }
263 .description .issuer input[type=radio] { display: none; }
264 .description .issuer input[type=radio] + label {
265 display: inline-block;
267 padding: .25ex 0; margin: 0;
269 border: 1px solid black;
271 .description .issuer input[type=radio]:checked + label {
273 background-color: #FFF;
275 border-bottom: 1px solid #FFF;
277 .description .issuer input[type=radio] + label + input + label + select,
278 .description .issuer input[type=radio] + label + select + input { display: none; }
279 .description .issuer input[type=radio]:checked + label + input + label + select,
280 .description .issuer input[type=radio]:checked + label + select + input {
281 display: block; width: 100%;
282 border: 1px solid black;
283 background-color: #FFF;
284 border-width: 0 1px 1px 1px;
288 .description .issuer input[type=radio]:checked + label + input + label + select option { display: block;}
289 .description span#issuer { width: 100%; height: 3em; padding: 1ex 2ex;}
291 .prescription .controls { width: 100%; }
293 .controls button[value=save],
294 .controls button[value=cancel],
295 .controls button[value=delete] { width: 25%;}