]> git.plutz.net Git - lobster/blob - therapies/therapy.css
Merge commit 'a27498203e5d589514f082a0fcdcca53e31c595e' into cgilite
[lobster] / therapies / therapy.css
1 * { position: static; }
2
3 .trailbtn { display: none; }
4 .trailbtn + .trailbox { display: none; }
5 .trailbtn:checked + .trailbox { display: inline-block; }
6 .trailbtn:checked + .trailbox + .trailbtn { display: block; }
7 .trailbtn:checked + .trailbox + .trailbtn:before {
8    display: block; content: '+';
9    width: 3ex; text-align: center;
10    margin-top: .25em; padding: .25em 0;
11    background-color: #FFF;
12    border-width: 1px; border-style: solid;
13 }
14 .trailbtn:checked + .trailbox + .trailbtn:checked,
15 .trailbtn:checked { display: none; }
16
17 .trailbtn:checked + fieldset.trailbox { display: block;}
18
19 .trailbtn:checked + .trailbox + .trailbtn {
20   display: block;
21   height: 2.25em; padding: 0 3ex;
22   font-size: 1em; font-weight: normal;
23   color: #000; background-color: #FDD;
24   border: 1px solid #000;
25   border-radius: 4px;
26 }
27 .trailbtn:checked + .trailbox + .trailbtn[type=submit]:before {content: none;}
28
29 body {
30   overflow: scroll;
31   position: relative;
32   width: 100%;
33   margin: 0; padding: 0;
34   padding-top: 2em;
35 }
36
37 form > button[type=submit] {
38   position: fixed; display: block;
39   top: 0; right: 2.5em;
40   height: 2.25em; padding: 0 3ex;
41   font-size: 1em; font-weight: bold;
42   color: #000; background-color: #FDD;
43   border-width: 1px; border-color: #000;
44   border-style: none solid solid solid;
45   border-radius: 0 0 4px 4px;
46   z-index: 3;
47 }
48 form > button[type=submit]:hover {
49   background-color: #FEE;
50 }
51
52 form#report {
53   position: static;
54   width: 100%;
55   margin:0; padding: 0;
56   box-shadow: none;
57 }
58
59 form#report button#backbutton {
60   display: inline;
61   position: absolute;
62   top: 1.75em; left: 2%;
63   font-size: 1.125em;
64   background: transparent;
65   padding: 0;
66   border: none; box-shadow: none;
67 }
68
69 input.tab { display: none; }
70 input.tab + label.tab { display: block; }
71 input.tab + label.tab::before { content: '\25b8 \00a0'; float: left;}
72 input.tab:checked + label.tab::before { content: '\25be \00a0'; }
73 input.tab + label.tab + div.tab { display: none; }
74 input.tab:checked + label.tab + div.tab { display: block; }
75
76 input.color { display: none }
77 input.color + label{
78   display: inline-block;
79   width: 1em; height: 1em;
80   border: 1px solid black;
81 }
82 input.color:checked + label{ border-width: 3px;}
83 input.color[value="#000"] + label,
84 input.color[value="#888"] + label { background-color: #888;}
85 input.color[value="#00A"] + label { background-color: #00F;}
86 input.color[value="#0A0"] + label { background-color: #0F0;}
87 input.color[value="#0AA"] + label { background-color: #0FF;}
88 input.color[value="#A00"] + label { background-color: #F00;}
89 input.color[value="#A0A"] + label { background-color: #F0F;}
90 input.color[value="#AA0"] + label { background-color: #FF0;}
91 input.color[value="#FFF"] + label { background-color: #FFF;}
92
93 h1, label.tab, div.tab, fieldset.tab,
94 div.patient, div.prescription, div.therapies {
95   display: block;
96   width: 96%;
97   margin: 0 2%;
98 }
99
100 div.patient a {
101   text-decoration: none; color: #000;
102 }
103
104 div.therapies > a {
105   display: inline-block;
106   text-decoration: none;
107   border: 1px solid black;
108   margin-top: .5em; padding: .25em .5em;
109   background-color: #DDF;
110   color: #000;
111 }
112 div.therapies > a.current {
113   background-color: #AAF;
114 }
115
116 div.prescription {
117   background-color: #CFF;
118 }
119 div.prescription h3 {
120   margin-top: .5em;
121 }
122
123 div.prescription span {
124   display: inline-block;
125   width: 50%;
126   margin-right: -.75ex;
127   vertical-align: top;
128 }
129 div.prescription span label { font-weight: bold; margin-right: 1ex;}
130 div.prescription span.prescno,
131 div.prescription span.catalogue {
132   width: 33%;
133   font-weight: bold;
134   margin-bottom: .5em;
135   padding: .5ex 1ex;
136 }
137
138 div.prescription ul {
139   margin-top: .5em;
140   margin-left: 1.5em;
141 }
142
143 div.prescription label.checkbox,
144 div.prescription label.radio {
145   display: block;
146   padding-left: 1.25em;
147   font-size: 1em;
148   margin: .5em 0;
149 }
150
151 div.prescription label.checkbox:before,
152 div.prescription label.radio:before {
153   display: inline-block;
154   color: #000;
155   background-color: #FFF;
156   height: 1.375em; width: 1.125em;
157   padding: .125em 0 0 .375em;
158   margin: 0 .5em .25em -1.25em;
159   border: 1px solid #000;
160   vertical-align: middle;
161   content: ' ';
162 }
163 div.prescription label.radio:before { border-radius: .5em;}
164 div.prescription label.checkbox.checked:before,
165 div.prescription label.radio.checked:before { content: "\2713";}
166
167 div.prescription label[for=prescreviewed] {
168   margin-left: 1ex;
169   font-weight: bold;
170   text-decoration: underline;
171   background-color: #FCC;
172 }
173 div.prescription label[for=prescreviewed].checked {
174   font-weight: normal;
175   text-decoration: none;
176   background-color: transparent;
177 }
178
179 div.prescription label.tab {width: 96%; border: none; border-bottom: 1px dotted;}
180 div.prescription div.tab { width: 96%; background-color: #DDD;}
181
182 input.stickynote { display:none; }
183 input.stickynote + .stickynote {
184   position: fixed;
185   background-color: #FF8;
186   top: 4em; bottom: 4em;
187   left: -4.5em; width: 5em;
188   padding: 1ex;
189   max-height: 90%;
190   z-index: 2;
191 }
192 input.stickynote + .stickynote:nth-of-type(2n) {
193   background-color: #8FF;
194   top: 8em;
195 }
196
197 input.stickynote + .stickynote > * { display: none; }
198 input.stickynote + .stickynote > textarea {
199   display: block;
200   position: absolute;
201   left; 0; right: 0; bottom: 0; top: 0;
202   width: 100%; height: 100%;
203   background-color: #FF8;
204   padding: 2em 1em;
205 }
206 input.stickynote + .stickynote > label {
207   position: absolute;
208   top: 0; bottom: 0; right: .5ex; left: 0;
209   display: block;
210   text-align: right;
211   font-weight: bold;
212   z-index: 1;
213 }
214 input.stickynote + .stickynote:hover {
215   width: auto; left: 0em; right: 2em;
216 }
217 input.stickynote:checked + .stickynote {
218   width: auto; left: 1em; right: 1em;
219 }
220 input.stickynote:checked + .stickynote > * { display: block; }
221 input.stickynote:checked + .stickynote > button[type="submit"] {
222   display: block;
223   position: absolute;
224   right: .5ex; bottom: .5ex;
225   z-index: 2;
226 }
227 input.stickynote:checked + .stickynote > label {
228   display: block;
229   position: static;
230   font-size: 0;
231 }
232 input.stickynote:checked + .stickynote > label:before {
233   position: absolute;
234   font-size: initial;
235   line-height: 1em;
236   content: "x";
237   top: .5ex; right: .5ex;
238   padding: .125ex .75ex;
239   background-color: #000;
240   color: #FFF;
241   border-radius: 1ex;
242   z-index: 2;
243 }
244
245 fieldset.penwidth,
246 fieldset.color {
247   position: absolute;
248   right: 0; width: 2em;
249   margin-bottom: .375em;
250   border: none;
251   padding: 0;
252 }
253 fieldset.penwidth { bottom: 17em; }
254 fieldset.penwidth > input {display: none;}
255 fieldset.penwidth > input + label { display: none;}
256 fieldset.penwidth > input:checked + label {
257   display: block;
258   width: 2em; height: 2em;
259   background-color: #000;
260   border: 1em solid #FFF;
261   border-radius: 1em;
262 }
263 fieldset.penwidth > input[value="4"]  + label { border-width: .75em; }
264 fieldset.penwidth > input[value="12"] + label { border-width:  .5em; }
265 fieldset.penwidth > input[value="36"] + label { border-width: .25em; }
266
267 fieldset.color { bottom: 0; }
268 fieldset.color > input.color + label {
269   width: 2em; height: 2em;
270 }
271 .dotmark {
272   max-width: 90%;
273   margin: .5em 1em .125em 2%; padding: 0;
274   text-align: left;
275   border: 1px solid black;
276 }
277 .dotmark.ov {
278   position: absolute;
279   left: 0; bottom: .25em;
280   z-index: 1;
281 }
282
283 @media(min-width: 800px){
284   h1, label.tab, div.tab, fieldset.tab,
285   div.patient, div.prescription, div.therapies {
286     width: 38%;
287     margin-right: 0;
288   }
289   input.stickynote + .stickynote:hover { right: calc(50% + 1em); }
290   input.stickynote:checked + .stickynote { right: 50%; }
291   fieldset.penwidth,
292   fieldset.color { position: fixed; }
293   .dotmark {
294     position: fixed;
295     max-width: 52%;
296     max-height: 98%;
297     right: 2em; bottom: .25em;
298   }
299   .dotmark.ov {
300     position: fixed;
301     right: 2em; left: auto;
302   }
303 }
304
305 h1 {display: none;}
306
307 div.patient, div.prescription, div.therapies { margin-top: .5em; }
308 div.prescription, div.therapies {
309   border: 1px solid black;
310   padding: .125em 1.25ex .5em 1.25ex;
311 }
312 div > h2 { margin: 0; border-bottom: 1px solid black; }
313 /*
314 div:nth-child(n+2) > a:first-of-type {
315   display: block;
316   margin: .125em 0 .5em 0;
317   text-decoration: none;
318 }
319 */
320
321 #report fieldset.tab,
322 #report label.tab {
323   font-size: 1.25em;
324   font-weight: bold;
325   padding: .125em 1ex .25em 1ex;
326   color: #FFF;
327   background-color: #333;
328   margin-top: .125em;
329   text-align: right;
330   border: none;
331 }
332 #report label.heading {
333   background-color: #FFF;
334   margin-top: 1em;
335   border: 2px solid black;
336   border-bottom-width: 1px;
337   color: black;
338 }
339 #report label.heading > span {
340   text-decoration: underline;
341 }
342
343 #report fieldset.tab > *,
344 #report label > input,
345 #report label > span {
346   display: inline-block;
347   text-align: right;
348 }
349 #report .tab > .no {
350   width:  10%; float: left;
351   border: solid 1px #FFF;
352   background-color: #555;
353   border-radius: 2ex;
354   padding: 0;
355   text-align: center;
356 }
357 #report label.heading > span.no {
358   background-color: inherit;
359   border: none;
360 }
361 #report .tab > .date      { width: 30%; }
362 #report .tab > .therapist { width: 30%; }
363 #report .tab > .signature { width: 20%; }
364 #report label.tab > .signature { font-size: .75em; }
365
366 #report .signature > input[type=checkbox] {
367   display: inline;
368   font-weight: bold;
369   font-size: 1.25em;
370 }
371 #report .signature > input[type=checkbox]:before {
372   display: block; width: 1.25em;
373   margin: -.125em 0 0 -.5ex;
374   background-color: #FFF;
375   text-align: center;
376   content: "\00a0 \00a0 \00a0";
377 }
378 #report .signature > input[type=checkbox]:checked::before {
379   content: "\2713";
380 }
381
382 #report input.tab + label.tab > input.date,
383 #report input.tab + label.tab > input.therapist {
384   display: none;
385 }
386 #report input.tab:checked + label.tab > input.date,
387 #report input.tab:checked + label.tab > input.therapist {
388   display: inline;
389 }
390 #report input.tab:checked + label.tab > span.date,
391 #report input.tab:checked + label.tab > span.therapist {
392   display: none;
393 }
394
395 #report div.tab {
396   border: 2px solid #333;
397   border-top-width: 1px;
398   margin-top: -1px;
399   padding: .25em .5ex 1em .5ex;
400 }
401 #report div.tab > fieldset.note {
402   border: none;
403   margin: 0; padding: 0;
404 }
405 #report div.tab > fieldset.note > textarea {
406   display: block;
407   width: 93%; width: calc(100% - 1.25em);
408   height: 8em;
409   margin: -8em 0 .5em 1.25em;
410   font: normal 1em sans-serif;
411 }
412 div.tab > fieldset.note > input.color + label { margin: 0; display: block; }
413 div.tab > fieldset.note > input.color[value="#888"]:checked ~ textarea { background-color: #AAA; }
414 div.tab > fieldset.note > input.color[value="#00A"]:checked ~ textarea { background-color: #88F; }
415 div.tab > fieldset.note > input.color[value="#0A0"]:checked ~ textarea { background-color: #8F8; }
416 div.tab > fieldset.note > input.color[value="#0AA"]:checked ~ textarea { background-color: #8FF; }
417 div.tab > fieldset.note > input.color[value="#A00"]:checked ~ textarea { background-color: #F88; }
418 div.tab > fieldset.note > input.color[value="#A0A"]:checked ~ textarea { background-color: #F8F; }
419 div.tab > fieldset.note > input.color[value="#AA0"]:checked ~ textarea { background-color: #FF8; }
420 div.tab > fieldset.note > input.color[value="#FFF"]:checked ~ textarea { background-color: #FFF; }
421
422 div.tab > button.delete {float: right; display: inline-block; margin-top: -1em; display: none;}