]> git.plutz.net Git - confetti/blob - templates/prescriptions.css.sh
additional prescription functions
[confetti] / templates / prescriptions.css.sh
1 # /*
2 # Copyright 2016 Paul Hänsch
3 #
4 # This file is part of Confetti.
5
6 # Confetti is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Affero General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10
11 # Confetti is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU Affero General Public License for more details.
15
16 # You should have received a copy of the GNU Affero General Public License
17 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
18
19 . ${0%/*}/attendees.css.sh
20
21 cat <<EOF
22 /**/
23
24 .prescription {
25   display: inline-block;
26   width: 96%; max-width: 460px;
27   color: #800;
28   background-color: #CFF;
29   margin: 1em -1% 0 2%; padding: 0;
30   border: 1px solid #888;
31   overflow: hidden;
32 }
33
34 .newprescription {
35   display: block;
36   margin: 0 2em; padding: .5ex 2ex;
37   background-color: #CFF;
38   border: 1px solid #888;
39   border-radius: 0 0 1ex 1ex;
40 }
41
42 .prescription * {
43   display: inline-block;
44   font-size: 1em;
45   line-height: 1em;
46   margin: 0; padding: 0;
47 }
48 .prescription label {
49   padding-left: .5ex;
50   font-size: .75em;
51 }
52
53 .prescription table {display: block; width: 100%; border-collapse: collapse;}
54 .prescription table tbody {width: 100%; margin: 0 auto;}
55 .prescription table tr {display: table-row; width: 100%; margin: 0 auto;}
56 .prescription table tr th,
57 .prescription table tr td {
58   display: table-cell;
59   text-align: left;
60   padding: .25ex 1ex;
61   border-left: 1px solid red;
62 }
63 .prescription table tr th { padding: .25em 1ex; border-bottom: 1px solid red;}
64 .prescription table tr th:nth-of-type(1),
65 .prescription table tr td:nth-of-type(1) { border-left: none;}
66
67 td.private  {background-color: #BFB;}
68 td.selfpaid {background-color: #FFB;}
69 td.compulsory.doctor {background-color: #BBF;}
70 td.compulsory.dentist {background-color: #FBB;}
71 td.altpractition { background-color: #FBF;}
72
73 .prescription fieldset {
74   display: inline-block;
75   margin: 0; padding: 1ex;
76   margin-right: -.625ex;
77   border: none;
78   vertical-align: top;
79 }
80 .prescription fieldset br { display: none;}
81
82 .prescription span,
83 .prescription input,
84 .prescription textarea {
85   height: 1.5em;
86   border: 1px solid #800;
87   padding: .25ex;
88   background-color: #FFF;
89 }
90 .prescription span {
91   background-color: #EEE;
92   padding: .5ex .25ex;
93   white-space: pre-wrap;
94   font-size: .75em;
95   overflow: hidden;
96 }
97
98 .prescription input[type=checkbox],
99 .prescription input[type=radio] { display: none;}
100
101 .prescription label.checkbox,
102 .prescription label.radio,
103 .prescription input[type=checkbox] + label,
104 .prescription input[type=radio] + label { padding-left: 1.25em; font-size: 1em;}
105
106 .prescription label.checkbox:before,
107 .prescription label.radio:before,
108 .prescription input[type=checkbox] + label:before,
109 .prescription input[type=radio] + label:before {
110   display: inline-block;
111   position: absolute;
112   margin-left: -1.25em;
113   width: .75em; height: .75em;
114   background-color: #FFF;
115   border: 1px solid #800;
116   content: ' ';
117 }
118 .prescription label.radio:before,
119 .prescription input[type=radio] + label:before { border-radius: .5em;}
120 .prescription label.checkbox.checked:before,
121 .prescription label.radio.checked:before,
122 .prescription input[type=checkbox]:checked + label:before,
123 .prescription input[type=radio]:checked + label:before { content: "\2713";}
124
125 .prescription a.button,
126 .prescription input[type=submit],
127 .prescription button {
128   height: 1.5em;
129   color: #FFF;
130   background-color: #800;
131   text-align: center;
132   text-decoration: none;
133   margin: 0; padding: .125em 0 0 0;
134   border: none;
135 }
136 .prescription a.button {padding: .5ex;}
137
138 /* ======== Specific ========== */
139
140 .prescription .baseinfo { width: 60%;}
141
142   .baseinfo label[for=insurance],
143   .baseinfo #insurance { width: 100%; }
144  
145   .baseinfo label[for=name],
146   .baseinfo #name { width: 65%; margin-right: -.875ex;}
147   .baseinfo #name { height: 4em; }
148  
149   .baseinfo label[for=bday],
150   .baseinfo #bday { width: 35%;}
151   .baseinfo #bday { height: 4em; text-align: center; vertical-align: top;}
152  
153   .baseinfo label[for=date],
154   .baseinfo #date { width: 34%; margin-left: 65%;}
155   .baseinfo #date { text-align: right;}
156
157 .prescription .misc { width: 40%; }
158
159   .misc h1 {
160     font-size: 1.25em;
161     font-weight: bold;
162     width: 100%;
163   }
164   .misc label[for=addcontrib],
165   .misc label[for=contribconfirm] {width: 100%;}
166   .misc #addcontrib,
167   .misc #contribconfirm {width: 100%; text-align: right;}
168
169 .prescription label[for=prescreviewed] {
170   margin-left: 1ex;
171   font-weight: bold;
172   text-decoration: underline;
173   background-color: #FCC;
174 }
175 .prescription label[for=prescreviewed].checked,
176 .prescription :checked + label[for=prescreviewed] {
177   font-weight: normal;
178   text-decoration: none;
179   background-color: #CFF;
180 }
181
182 .prescription .catalogue { width: 100%; }
183
184   .catalogue h2:nth-of-type(1) {
185     font-weight: bold;
186     width: 100%;
187     margin-bottom: .25em;
188   }
189   .catalogue label {
190     display: inline-block;
191     width: 33%;
192     margin-right: -.625ex;
193     margin-top: .25em;
194     vertical-align: top;
195   }
196   .catalogue label[for=presccontinual] { margin-right: 33%;}
197
198 .prescription .description { width: 100%; position: relative;}
199   .description * { margin-right: -.625ex; vertical-align: top; }
200   .description label {vertical-align: bottom;}
201   .description label[for=quantity1],
202   .description label[for=remidy1],
203   .description label[for=quantity_weekly1] {display: none;}
204
205   .description label[for=quantity] { width: 20%;}
206   .description #quantity,
207   .description #quantity1 { width: 20%;  height: 3em; text-align: center;}
208   .description label[for=remidy] { width: 60%; }
209   .description #remidy,
210   .description #remidy1 { width: 60%; height: 3em;}
211   .description label[for=quantity_weekly] { width: 20%;}
212   .description #quantity_weekly,
213   .description #quantity_weekly1 { width: 20%; height: 3em; text-align: center;}
214
215   .description .indicator_codes {display: inline-block; width: 20%; padding: 0; padding-top: 1.5ex;}
216   .description label[for=indicator],
217   .description label[for=icd10] { display: block; width: 100%;}
218   .description #icd10,
219   .description #indicator {width: 100%; text-align: right;}
220
221   .description .indicator_reading { display: inline-block; width: 78%; padding: 0; padding-top: 1.5ex;  margin-left: 2%;}
222   .description label[for=indicator_reading],
223   .description #indicator_reading { width: 100%; display: block;}
224   .description #indicator_reading { height: 4em;}
225
226 .prescription .controls { width: 100%; }
227   .controls a.button,
228   .controls button[value=save],
229   .controls button[value=cancel],
230   .controls button[value=delete] { width: 25%;}
231
232 EOF
233
234 # vi:set filetype=css: