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