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