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