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