]> git.plutz.net Git - confetti/blob - templates/therapy.css.sh
use static file function from shcgi
[confetti] / templates / therapy.css.sh
1 #!/bin/sh
2
3 cat <<EOF
4 * { box-sizing: border-box; }
5 body {
6   overflow: scroll;
7   position: relative;
8   width: 100%;
9   margin: 0; padding: 0;
10   padding-top: 2em;
11 }
12
13 input.tab { display: none; }
14 input.tab + label.tab { display: block; }
15 input.tab + label.tab::before { content: '\25b8 \00a0'; float: left;}
16 input.tab:checked + label.tab::before { content: '\25be \00a0'; }
17 input.tab + label.tab + div.tab { display: none; }
18 input.tab:checked + label.tab + div.tab { display: block; }
19
20 input.color { display: none }
21 input.color + label{
22   display: inline-block;
23   width: 1em; height: 1em;
24   border: 1px solid black;
25 }
26 input.color:checked + label{ border-width: 3px;}
27 input.color[value="#000"] + label,
28 input.color[value="#888"] + label { background-color: #888;}
29 input.color[value="#00A"] + label { background-color: #00F;}
30 input.color[value="#0A0"] + label { background-color: #0F0;}
31 input.color[value="#0AA"] + label { background-color: #0FF;}
32 input.color[value="#A00"] + label { background-color: #F00;}
33 input.color[value="#A0A"] + label { background-color: #F0F;}
34 input.color[value="#AA0"] + label { background-color: #FF0;}
35 input.color[value="#FFF"] + label { background-color: #FFF;}
36
37 h1, label.tab, div.tab, fieldset.tab,
38 div.patient, div.prescription {
39   display: block;
40   width: 96%;
41   margin: 0 2%;
42 }
43
44 div.prescription .insurance{ display: block; margin: .5ex 0 1ex 0; }
45 div.prescription label.checkbox,
46 div.prescription label.radio { padding-left: 1.25em; font-size: 1em;}
47
48 div.prescription label.checkbox:before,
49 div.prescription label.radio:before {
50   display: inline-block;
51   color: #000;
52   background-color: #FFF;
53   height: 1.375em; width: 1.125em;
54   padding: .125em 0 0 .375em;
55   margin: 0 .5em .25em -1.25em;
56   border: 1px solid #000;
57   vertical-align: middle;
58   content: ' ';
59 }
60 div.prescription label.radio:before { border-radius: .5em;}
61 div.prescription label.checkbox.checked:before,
62 div.prescription label.radio.checked:before { content: "\2713";}
63
64 div.prescription label[for=prescreviewed] {
65   margin-left: 1ex;
66   font-weight: bold;
67   text-decoration: underline;
68   background-color: #FCC;
69 }
70 div.prescription label[for=prescreviewed].checked {
71   font-weight: normal;
72   text-decoration: none;
73   background-color: transparent;
74 }
75
76 fieldset.color {
77   margin: .5em 2% 0 2%;
78   border: none;
79   padding: 0;
80 }
81 .dotmark {
82   max-width: 96%;
83   margin: .125em 2%; padding: 0;
84   text-align: left;
85   border: 1px dotted black;
86 }
87 .dotmark.ov {
88   position: absolute;
89   bottom: 5px; right: 0;
90   z-index: 1;
91   border: none;
92 }
93 @media(min-width: 800px){
94   h1, label.tab, div.tab, fieldset.tab,
95   div.patient, div.prescription {
96     width: 38%;
97     margin-right: 0;
98   }
99   fieldset.color{
100     position: fixed;
101     max-width: 56%;
102     right: 0;
103     top: 0em;
104   }
105   .dotmark {
106     position: fixed;
107     max-width: 56%;
108     max-height: 480px;
109     right: 0;
110     top: 2em;
111   }
112   .dotmark.ov {
113     position: fixed;
114     bottom: auto;
115   }
116 }
117
118 h1 {display: none;}
119
120 div.patient, div.prescription { margin-top: 1em; }
121 div.prescription {
122   border: 1px solid black;
123   background-color: #EEE;
124   padding: .125em 1.25ex .5em 1.25ex;
125 }
126 div > h2 { margin: 0; border-bottom: 1px solid black; }
127 div:nth-child(n+2) > a:first-of-type {
128   display: block;
129   margin: .125em 0 .5em 0;
130   text-decoration: none;
131 }
132
133 fieldset.tab,
134 label.tab {
135   font-size: 1.25em;
136   font-weight: bold;
137   padding: .125em 1ex .25em 1ex;
138   color: #FFF;
139   background-color: #333;
140   margin-top: .125em;
141   text-align: right;
142   border: none;
143 }
144 label.heading {
145   background-color: #FFF;
146   margin-top: 1em;
147   border: 2px solid black;
148   border-bottom-width: 1px;
149   color: black;
150 }
151 label.heading > span {
152   text-decoration: underline;
153 }
154
155 fieldset.tab > *,
156 label > input,
157 label > span {
158   display: inline-block;
159   text-align: right;
160 }
161 .tab > .no {
162   width:  10%; float: left;
163   border: solid 1px #FFF;
164   background-color: #555;
165   border-radius: 2ex;
166   padding: 0;
167   text-align: center;
168 }
169 label.heading > span.no {
170   background-color: inherit;
171   border: none;
172 }
173 .tab > .date      { width: 30%; }
174 .tab > .therapist { width: 30%; }
175 .tab > .signature { width: 20%; }
176 label.tab > .signature { font-size: .75em; }
177 .tab > .signature > button { display: inline-block; margin: 0; }
178 /* fieldset.tab > button[type=submit] { width: 5%; text-align: center; margin-left: 5%;} */
179 fieldset.tab > button[type=submit] { height: 2em; color: #FFF; font-weight: bold;}
180 fieldset.tab > button[type=submit]::first-letter { font-size: 1.75em;}
181
182 .signature > button[value=pos],
183 .signature > button[value=neg] {
184   margin-bottom: .25em;
185   border: 1px solid black;
186   height: 1.5em; width: 1.5em;
187   vertical-align: top;
188   background-color: #FFF;
189   color: #000;
190   white-space: nowrap;
191 }
192 .signature > input[type=checkbox] {display: none;}
193 .signature > button[value=neg]::before { padding: 0 1ex 0 .25ex; content: "\2713"; }
194 .signature > button[value=pos]::before { padding: 0 1ex 0 .25ex; content: "\00a0 \00a0 \00a0"; }
195
196 input.tab + label.tab > input.date,
197 input.tab + label.tab > input.therapist {
198   display: none;
199 }
200 input.tab:checked + label.tab > input.date,
201 input.tab:checked + label.tab > input.therapist {
202   display: inline;
203 }
204 input.tab:checked + label.tab > span.date,
205 input.tab:checked + label.tab > span.therapist {
206   display: none;
207 }
208
209
210 div.tab {
211   border: 2px solid #333;
212   border-top-width: 1px;
213   margin-top: -1px;
214   padding: .25em .5ex;
215 }
216 div.tab > fieldset.note {
217   border: none;
218   margin: 0; padding: 0;
219 }
220 div.tab > fieldset.note > textarea {
221   display: block;
222   width: 95%; height: 8em;
223   margin: -8em 0 .5em 1.25em;
224   font: normal 1em sans-serif;
225 }
226 div.tab > fieldset.note > input.color + label { margin: 0; display: block; }
227 div.tab > fieldset.note > input.color[value="#888"]:checked ~ textarea { background-color: #AAA; }
228 div.tab > fieldset.note > input.color[value="#00A"]:checked ~ textarea { background-color: #88F; }
229 div.tab > fieldset.note > input.color[value="#0A0"]:checked ~ textarea { background-color: #8F8; }
230 div.tab > fieldset.note > input.color[value="#0AA"]:checked ~ textarea { background-color: #8FF; }
231 div.tab > fieldset.note > input.color[value="#A00"]:checked ~ textarea { background-color: #F88; }
232 div.tab > fieldset.note > input.color[value="#A0A"]:checked ~ textarea { background-color: #F8F; }
233 div.tab > fieldset.note > input.color[value="#AA0"]:checked ~ textarea { background-color: #FF8; }
234 div.tab > fieldset.note > input.color[value="#FFF"]:checked ~ textarea { background-color: #FFF; }
235
236 div.tab > button.delete {float: right; display: inline-block;}
237 EOF
238
239 # vi:set filetype=css: