]> git.plutz.net Git - lobster/blob - therapies/therapy.css
function and ui for adding new therapy
[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   content: "x";
204   top: .5ex; right: .5ex;
205   padding: .125ex .75ex;
206   background-color: #000;
207   color: #FFF;
208   border-radius: 1ex;
209   z-index: 2;
210 }
211
212 fieldset.penwidth,
213 fieldset.color {
214   position: absolute;
215   right: 0; width: 2em;
216   margin: .5em .5em .125em 2%;
217   border: none;
218   padding: 0;
219 }
220 fieldset.penwidth { bottom: 19em; }
221 fieldset.penwidth > input {display: none;}
222 fieldset.penwidth > input + label { display: none;}
223 fieldset.penwidth > input:checked + label {
224   display: block;
225   width: 2em; height: 2em;
226   background-color: #000;
227   border: 1em solid #FFF;
228   border-radius: 1em;
229 }
230 fieldset.penwidth > input[value="4"]  + label { border-width: .75em; }
231 fieldset.penwidth > input[value="12"] + label { border-width:  .5em; }
232 fieldset.penwidth > input[value="36"] + label { border-width: .25em; }
233
234 fieldset.color { bottom: 0; }
235 fieldset.color > input.color + label {
236   width: 2em; height: 2em;
237 }
238 .dotmark {
239   max-width: 90%;
240   margin: .5em 1em .125em 2%; padding: 0;
241   text-align: left;
242   border: 1px solid black;
243 }
244 .dotmark.ov {
245   position: absolute;
246   left: 0; bottom: .25em;
247   z-index: 1;
248 }
249
250 @media(min-width: 800px){
251   h1, label.tab, div.tab, fieldset.tab,
252   div.patient, div.prescription, div.therapies {
253     width: 38%;
254     margin-right: 0;
255   }
256   input.stickynote:checked + .stickynote { right: 50%; }
257   fieldset.penwidth,
258   fieldset.color { position: fixed; }
259   .dotmark {
260     position: fixed;
261     max-width: 52%;
262     max-height: 98%;
263     right: 2em; bottom: .25em;
264   }
265   .dotmark.ov {
266     position: fixed;
267     right: 2em; left: auto;
268   }
269 }
270
271 h1 {display: none;}
272
273 div.patient, div.prescription, div.therapies { margin-top: .5em; }
274 div.prescription, div.therapies {
275   border: 1px solid black;
276   padding: .125em 1.25ex .5em 1.25ex;
277 }
278 div > h2 { margin: 0; border-bottom: 1px solid black; }
279 /*
280 div:nth-child(n+2) > a:first-of-type {
281   display: block;
282   margin: .125em 0 .5em 0;
283   text-decoration: none;
284 }
285 */
286
287 #report fieldset.tab,
288 #report label.tab {
289   font-size: 1.25em;
290   font-weight: bold;
291   padding: .125em 1ex .25em 1ex;
292   color: #FFF;
293   background-color: #333;
294   margin-top: .125em;
295   text-align: right;
296   border: none;
297 }
298 #report label.heading {
299   background-color: #FFF;
300   margin-top: 1em;
301   border: 2px solid black;
302   border-bottom-width: 1px;
303   color: black;
304 }
305 #report label.heading > span {
306   text-decoration: underline;
307 }
308
309 #report fieldset.tab > *,
310 #report label > input,
311 #report label > span {
312   display: inline-block;
313   text-align: right;
314 }
315 #report .tab > .no {
316   width:  10%; float: left;
317   border: solid 1px #FFF;
318   background-color: #555;
319   border-radius: 2ex;
320   padding: 0;
321   text-align: center;
322 }
323 #report label.heading > span.no {
324   background-color: inherit;
325   border: none;
326 }
327 #report .tab > .date      { width: 30%; }
328 #report .tab > .therapist { width: 30%; }
329 #report .tab > .signature { width: 20%; }
330 #report label.tab > .signature { font-size: .75em; }
331
332 #report .signature > input[type=checkbox] {
333   display: inline;
334   font-weight: bold;
335   font-size: 1.25em;
336 }
337 #report .signature > input[type=checkbox]:before {
338   display: block; width: 1.25em;
339   margin: -.125em 0 0 -.5ex;
340   background-color: #FFF;
341   text-align: center;
342   content: "\00a0 \00a0 \00a0";
343 }
344 #report .signature > input[type=checkbox]:checked::before {
345   content: "\2713";
346 }
347
348 #report input.tab + label.tab > input.date,
349 #report input.tab + label.tab > input.therapist {
350   display: none;
351 }
352 #report input.tab:checked + label.tab > input.date,
353 #report input.tab:checked + label.tab > input.therapist {
354   display: inline;
355 }
356 #report input.tab:checked + label.tab > span.date,
357 #report input.tab:checked + label.tab > span.therapist {
358   display: none;
359 }
360
361 #report div.tab {
362   border: 2px solid #333;
363   border-top-width: 1px;
364   margin-top: -1px;
365   padding: .25em .5ex 1em .5ex;
366 }
367 #report div.tab > fieldset.note {
368   border: none;
369   margin: 0; padding: 0;
370 }
371 #report div.tab > fieldset.note > textarea {
372   display: block;
373   width: 93%; height: 8em;
374   margin: -8em 0 .5em 2em;
375   font: normal 1em sans-serif;
376 }
377 div.tab > fieldset.note > input.color + label { margin: 0; display: block; }
378 div.tab > fieldset.note > input.color[value="#888"]:checked ~ textarea { background-color: #AAA; }
379 div.tab > fieldset.note > input.color[value="#00A"]:checked ~ textarea { background-color: #88F; }
380 div.tab > fieldset.note > input.color[value="#0A0"]:checked ~ textarea { background-color: #8F8; }
381 div.tab > fieldset.note > input.color[value="#0AA"]:checked ~ textarea { background-color: #8FF; }
382 div.tab > fieldset.note > input.color[value="#A00"]:checked ~ textarea { background-color: #F88; }
383 div.tab > fieldset.note > input.color[value="#A0A"]:checked ~ textarea { background-color: #F8F; }
384 div.tab > fieldset.note > input.color[value="#AA0"]:checked ~ textarea { background-color: #FF8; }
385 div.tab > fieldset.note > input.color[value="#FFF"]:checked ~ textarea { background-color: #FFF; }
386
387 div.tab > button.delete {float: right; display: inline-block; margin-top: -1em; display: none;}