]> git.plutz.net Git - confetti/blob - static/therapy.css
5a169d8b520187fdfb40b25442916a6a2cf53b11
[confetti] / static / therapy.css
1 .trailbtn:checked + fieldset.trailbox { display: block;}
2
3 * { box-sizing: border-box; }
4 body {
5   overflow: scroll;
6   position: relative;
7   width: 100%;
8   margin: 0; padding: 0;
9   padding-top: 2em;
10 }
11
12 form > button[type=submit] {
13   position: fixed; display: block;
14   top: 0; left: 15em;
15   height: 2.25em; padding: 0 3ex;
16   font-size: 1em; font-weight: bold;
17   color: #000; background-color: #FDD;
18   border-width: 1px; border-color: #000;
19   border-style: none solid solid solid;
20   border-radius: 0 0 4px 4px;
21   z-index: 3;
22 }
23 form > button[type=submit]:hover {
24   background-color: #FEE;
25 }
26
27 input.tab { display: none; }
28 input.tab + label.tab { display: block; }
29 input.tab + label.tab::before { content: '\25b8 \00a0'; float: left;}
30 input.tab:checked + label.tab::before { content: '\25be \00a0'; }
31 input.tab + label.tab + div.tab { display: none; }
32 input.tab:checked + label.tab + div.tab { display: block; }
33
34 input.color { display: none }
35 input.color + label{
36   display: inline-block;
37   width: 1em; height: 1em;
38   border: 1px solid black;
39 }
40 input.color:checked + label{ border-width: 3px;}
41 input.color[value="#000"] + label,
42 input.color[value="#888"] + label { background-color: #888;}
43 input.color[value="#00A"] + label { background-color: #00F;}
44 input.color[value="#0A0"] + label { background-color: #0F0;}
45 input.color[value="#0AA"] + label { background-color: #0FF;}
46 input.color[value="#A00"] + label { background-color: #F00;}
47 input.color[value="#A0A"] + label { background-color: #F0F;}
48 input.color[value="#AA0"] + label { background-color: #FF0;}
49 input.color[value="#FFF"] + label { background-color: #FFF;}
50
51 h1, label.tab, div.tab, fieldset.tab,
52 div.patient, div.prescription {
53   display: block;
54   width: 96%;
55   margin: 0 2%;
56 }
57
58 div.prescription span {
59   display: inline-block;
60   width: 50%;
61   margin-right: -.75ex;
62   vertical-align: top;
63 }
64 div.prescription span label { font-weight: bold; margin-right: 1ex;}
65 div.prescription span.prescno,
66 div.prescription span.catalogue {
67   width: 33%;
68   font-weight: bold;
69   margin-bottom: .5em;
70   padding: .5ex 1ex;
71 }
72
73 div.prescription label.checkbox,
74 div.prescription label.radio {
75   display: block;
76   padding-left: 1.25em;
77   font-size: 1em;
78   margin: .5em 0;
79 }
80
81 div.prescription label.checkbox:before,
82 div.prescription label.radio:before {
83   display: inline-block;
84   color: #000;
85   background-color: #FFF;
86   height: 1.375em; width: 1.125em;
87   padding: .125em 0 0 .375em;
88   margin: 0 .5em .25em -1.25em;
89   border: 1px solid #000;
90   vertical-align: middle;
91   content: ' ';
92 }
93 div.prescription label.radio:before { border-radius: .5em;}
94 div.prescription label.checkbox.checked:before,
95 div.prescription label.radio.checked:before { content: "\2713";}
96
97 div.prescription label[for=prescreviewed] {
98   margin-left: 1ex;
99   font-weight: bold;
100   text-decoration: underline;
101   background-color: #FCC;
102 }
103 div.prescription label[for=prescreviewed].checked {
104   font-weight: normal;
105   text-decoration: none;
106   background-color: transparent;
107 }
108
109 input.stickynote { display:none; }
110 input.stickynote + .stickynote {
111   position: fixed;
112   background-color: #FF8;
113   top: 4em; bottom: 4em;
114   left: -4.5em; width: 5em;
115   padding: 1ex;
116   max-height: 90%;
117   z-index: 2;
118 }
119 input.stickynote + .stickynote > * { display: none; }
120 input.stickynote + .stickynote > label {
121   position: absolute;
122   top: 0; bottom: 0;
123   display: block;
124   text-align: right;
125   font-weight: bold;
126 }
127 input.stickynote + .stickynote:hover {
128   left: -1ex;
129 }
130 input.stickynote:checked + .stickynote {
131   width: auto;
132   left: 1em;
133   right: 1em;
134 }
135 input.stickynote:checked + .stickynote > textarea {
136   display: block;
137   position: absolute;
138   left; 0; right: 0; bottom: 0; top: 0;
139   width: 100%; height: 100%;
140   background-color: #FF8;
141   padding: 2em 1em;
142 }
143 input.stickynote:checked + .stickynote > button {
144   display: block;
145   position: absolute;
146   right: .5ex; bottom: .5ex;
147   z-index: 2;
148 }
149 input.stickynote:checked + .stickynote > label {
150   display: block;
151   position: static;
152   font-size: 0;
153 }
154 input.stickynote:checked + .stickynote > label:before {
155   position: absolute;
156   font-size: initial;
157   content: "x";
158   top: .5ex; right: .5ex;
159   padding: .125ex .75ex;
160   background-color: #000;
161   color: #FFF;
162   border-radius: 1ex;
163   z-index: 2;
164 }
165
166
167 fieldset.color {
168   position: absolute;
169   bottom: 0; right: 0; width: 2em;
170   margin: .5em .5em .125em 2%;
171   border: none;
172   padding: 0;
173 }
174 fieldset.color > input.color + label {
175   width: 2em; height: 2em;
176 }
177 .dotmark {
178   max-width: 90%;
179   margin: .5em 1em .125em 2%; padding: 0;
180   text-align: left;
181   border: 1px solid black;
182 }
183 .dotmark.ov {
184   position: absolute;
185   left: 0; bottom: .25em;
186   z-index: 1;
187 }
188
189 @media(min-width: 800px){
190   h1, label.tab, div.tab, fieldset.tab,
191   div.patient, div.prescription {
192     width: 38%;
193     margin-right: 0;
194   }
195   input.stickynote:checked + .stickynote { right: 50%; }
196   fieldset.color { position: fixed; }
197   .dotmark {
198     position: fixed;
199     max-width: 52%;
200     max-height: 98%;
201     right: 2em; bottom: .25em;
202   }
203   .dotmark.ov {
204     position: fixed;
205     right: 2em; left: auto;
206   }
207 }
208
209 h1 {display: none;}
210
211 div.patient, div.prescription { margin-top: 1em; }
212 div.prescription {
213   border: 1px solid black;
214   background-color: #EEE;
215   padding: .125em 1.25ex .5em 1.25ex;
216 }
217 div > h2 { margin: 0; border-bottom: 1px solid black; }
218 div:nth-child(n+2) > a:first-of-type {
219   display: block;
220   margin: .125em 0 .5em 0;
221   text-decoration: none;
222 }
223
224 fieldset.tab,
225 label.tab {
226   font-size: 1.25em;
227   font-weight: bold;
228   padding: .125em 1ex .25em 1ex;
229   color: #FFF;
230   background-color: #333;
231   margin-top: .125em;
232   text-align: right;
233   border: none;
234 }
235 label.heading {
236   background-color: #FFF;
237   margin-top: 1em;
238   border: 2px solid black;
239   border-bottom-width: 1px;
240   color: black;
241 }
242 label.heading > span {
243   text-decoration: underline;
244 }
245
246 fieldset.tab > *,
247 label > input,
248 label > span {
249   display: inline-block;
250   text-align: right;
251 }
252 .tab > .no {
253   width:  10%; float: left;
254   border: solid 1px #FFF;
255   background-color: #555;
256   border-radius: 2ex;
257   padding: 0;
258   text-align: center;
259 }
260 label.heading > span.no {
261   background-color: inherit;
262   border: none;
263 }
264 .tab > .date      { width: 30%; }
265 .tab > .therapist { width: 30%; }
266 .tab > .signature { width: 20%; }
267 label.tab > .signature { font-size: .75em; }
268
269 .signature > input[type=checkbox] {
270   display: inline;
271   font-weight: bold;
272   font-size: 1.25em;
273 }
274 .signature > input[type=checkbox]:before {
275   display: block; width: 1.25em;
276   margin: -.125em 0 0 -.5ex;
277   background-color: #FFF;
278   text-align: center;
279   content: "\00a0 \00a0 \00a0";
280 }
281 .signature > input[type=checkbox]:checked::before {
282   content: "\2713";
283 }
284
285 input.tab + label.tab > input.date,
286 input.tab + label.tab > input.therapist {
287   display: none;
288 }
289 input.tab:checked + label.tab > input.date,
290 input.tab:checked + label.tab > input.therapist {
291   display: inline;
292 }
293 input.tab:checked + label.tab > span.date,
294 input.tab:checked + label.tab > span.therapist {
295   display: none;
296 }
297
298 div.tab {
299   border: 2px solid #333;
300   border-top-width: 1px;
301   margin-top: -1px;
302   padding: .25em .5ex 1em .5ex;
303 }
304 div.tab > fieldset.note {
305   border: none;
306   margin: 0; padding: 0;
307 }
308 div.tab > fieldset.note > textarea {
309   display: block;
310   width: 93%; height: 8em;
311   margin: -8em 0 .5em 2em;
312   font: normal 1em sans-serif;
313 }
314 div.tab > fieldset.note > input.color + label { margin: 0; display: block; }
315 div.tab > fieldset.note > input.color[value="#888"]:checked ~ textarea { background-color: #AAA; }
316 div.tab > fieldset.note > input.color[value="#00A"]:checked ~ textarea { background-color: #88F; }
317 div.tab > fieldset.note > input.color[value="#0A0"]:checked ~ textarea { background-color: #8F8; }
318 div.tab > fieldset.note > input.color[value="#0AA"]:checked ~ textarea { background-color: #8FF; }
319 div.tab > fieldset.note > input.color[value="#A00"]:checked ~ textarea { background-color: #F88; }
320 div.tab > fieldset.note > input.color[value="#A0A"]:checked ~ textarea { background-color: #F8F; }
321 div.tab > fieldset.note > input.color[value="#AA0"]:checked ~ textarea { background-color: #FF8; }
322 div.tab > fieldset.note > input.color[value="#FFF"]:checked ~ textarea { background-color: #FFF; }
323
324 div.tab > button.delete {float: right; display: inline-block; margin-top: -1em;}