]> git.plutz.net Git - confetti/blob - static/prescriptions.css
support euro symbol
[confetti] / static / prescriptions.css
1 /*
2 # Copyright 2016 Paul Hänsch
3 #
4 # This file is part of Confetti.
5
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.
10
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.
15
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/>. 
18 */
19
20 @import url("?static=cards.css");
21
22 body {padding-bottom: 3em; }
23
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;
34 }
35 .trailbtn:checked + .trailbox + .trailbtn:checked,
36 .trailbtn:checked { display: none; }
37
38 .prescription {
39   display: inline-block;
40   width: 96%; max-width: 460px;
41   color: #800;
42   background-color: #DDD;
43   margin: 1em -1% 0 2%; padding: 0;
44   border: 1px solid #888;
45   overflow: hidden;
46   vertical-align: top;
47 }
48 form.prescription { padding-top: 1ex;}
49
50 .newprescription {
51   display: block;
52   margin: 0 2em; padding: .5ex 2ex;
53   background-color: #CFF;
54   border: 1px solid #888;
55   border-radius: 0 0 1ex 1ex;
56 }
57
58 .prescription * {
59   display: inline-block;
60   font-size: 1em;
61   line-height: 1em;
62   margin: 0; padding: 0;
63 }
64 .prescription label {
65   padding-left: .5ex;
66   font-size: .75em;
67 }
68
69 .prescription fieldset {
70   display: inline-block;
71   margin: 0; padding: 1ex;
72   margin-right: -.625ex;
73   border: none;
74   vertical-align: top;
75 }
76 .prescription fieldset br { display: none;}
77
78 .prescription span,
79 .prescription input,
80 .prescription textarea {
81   height: 1.5em;
82   border: 1px solid #800;
83   padding: .25ex;
84   background-color: #FFF;
85 }
86 .prescription span {
87   background-color: #EEE;
88   padding: .5ex .25ex;
89   white-space: pre-wrap;
90   font-size: .75em;
91   overflow: hidden;
92 }
93
94 .prescription input[type=checkbox],
95 .prescription input[type=radio] { display: none;}
96
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;}
101
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;
107   position: absolute;
108   margin-left: -1.25em;
109   width: .75em; height: .75em;
110   background-color: #FFF;
111   border: 1px solid #800;
112   content: ' ';
113 }
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";}
120
121 .prescription a.button,
122 .prescription input[type=submit],
123 .prescription button {
124   height: 1.5em;
125   color: #FFF;
126   background-color: #800;
127   text-align: center;
128   text-decoration: none;
129   margin: 0; padding: .125em 0 0 0;
130   border: none;
131 }
132 .prescription a.button {padding: .5ex;}
133
134 /* ======== Specific ========== */
135
136 .prescription label.presctype,
137 .prescription input[name=presctype] + label {
138   font-size: medium;
139   width: 22%;
140   margin: 0; margin-right: -.5ex;
141   vertical-align: top;
142   padding: .25em .5ex .25em 3ex;
143   height: 2.5em;
144   border-top: 1px solid #DDD;
145 }
146 .prescription label.presctype {
147   text-align: right;
148   font-weight: bold;
149   font-size: .875em;
150   padding-right: 1ex;
151   padding-left: 0;
152 }
153
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;}
169
170 .prescription .baseinfo { width: 60%;}
171
172   .baseinfo label[for=insurance],
173   .baseinfo #insurance { width: 100%; }
174  
175   .baseinfo label[for=name],
176   .baseinfo #name { width: 65%; margin-right: -.875ex;}
177   .baseinfo #name { height: 4em; }
178  
179   .baseinfo label[for=bday],
180   .baseinfo #bday { width: 35%;}
181   .baseinfo #bday { height: 4em; text-align: center; vertical-align: top;}
182  
183   .baseinfo label[for=date],
184   .baseinfo #date { width: 34%; margin-left: 65%;}
185   .baseinfo #date { text-align: right;}
186
187 .prescription .misc { width: 40%; }
188
189   .misc h1 {
190     font-size: 1.25em;
191     font-weight: bold;
192     width: 100%;
193   }
194   .misc label[for=addcontrib],
195   .misc label[for=contribconfirm] {width: 100%;}
196   .misc #addcontrib,
197   .misc #contribconfirm {width: 100%; text-align: right;}
198
199 .prescription label[for=prescreviewed] {
200   margin-left: 1ex;
201   font-weight: bold;
202   text-decoration: underline;
203   background-color: #FCC;
204 }
205 .prescription label[for=prescreviewed].checked,
206 .prescription :checked + label[for=prescreviewed] {
207   font-weight: normal;
208   text-decoration: none;
209   background-color: transparent;
210 }
211
212 .prescription .catalogue { width: 100%; }
213
214   .catalogue h2:nth-of-type(1) {
215     font-weight: bold;
216     width: 100%;
217     margin-bottom: .25em;
218   }
219   .catalogue label {
220     display: inline-block;
221     width: 33%;
222     margin-right: -.625ex;
223     margin-top: .25em;
224     vertical-align: top;
225   }
226   .catalogue label[for=presccontinual] { margin-right: 33%;}
227
228 .prescription .description { width: 100%; position: relative;}
229   .description * { margin-right: -.625ex; vertical-align: top; }
230   .description label {vertical-align: bottom;}
231
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;}
241
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%;}
245   .description #icd10,
246   .description #indicator {width: 100%; text-align: right;}
247
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;}
252
253 .prescription .therapy_dates span { min-width: 8em; margin: 0 .5ex;}
254
255 .prescription .issuer { display: inline-block; width: 50%; padding: 0; padding-top: 0; margin-left: 50%;}
256 .prescription .issuer label:first-of-type {
257    display: block;
258    position: relative;
259    width: 50%; left: -50%; top: 2.25em;
260    font-size: 1em;
261    text-align: right;
262    padding-right: 1ex;
263  }
264 .prescription .issuer input[type=radio] + label:before { content: none; }
265 .prescription .issuer input[type=radio] { display: none; }
266 .prescription .issuer input[type=radio] + label {
267   display: inline-block;
268   width: 50%;
269   padding: .25ex 0; margin: 0;
270   text-align: center;
271   border: 1px solid black;
272 }
273 .prescription .issuer input[type=radio]:checked + label {
274   font-weight: bold;
275   background-color: #FFF;
276   border-width: 1px;
277   border-bottom: 1px solid #FFF;
278 }
279 .prescription .issuer input[type=radio] + label + input + label + select,
280 .prescription .issuer input[type=radio] + label + select + input { display: none; }
281 .prescription .issuer input[type=radio]:checked + label + input + label + select,
282 .prescription .issuer input[type=radio]:checked + label + select + input {
283   display: block; width: 100%;
284   border: 1px solid black;
285   background-color: #FFF;
286   border-width: 0 1px 1px 1px;
287   padding: .25ex .5ex;
288   margin-top: -1px;
289 }
290 .prescription .issuer input[type=radio]:checked + label + input + label + select option { display: block;}
291 .prescription span#issuer { width: 100%; height: 3em; padding: 1ex 2ex;}
292
293 .prescription .controls { width: 100%; }
294   .controls a.button,
295   .controls button[value=save],
296   .controls button[value=cancel],
297   .controls button[value=delete] { width: 25%;}
298