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