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