]> git.plutz.net Git - confetti/blob - templates/prescriptions.css.sh
3374f9832c6933608166cf32d49c669c5ed37330
[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 fieldset {
54   display: inline-block;
55   margin: 0; padding: 1ex;
56   margin-right: -.625ex;
57   border: none;
58   vertical-align: top;
59 }
60 .prescription fieldset br { display: none;}
61
62 .prescription span,
63 .prescription input,
64 .prescription textarea {
65   height: 1.5em;
66   border: 1px solid #800;
67   padding: .25ex;
68   background-color: #FFF;
69 }
70 .prescription span {
71   background-color: #EEE;
72   padding: .5ex .25ex;
73   white-space: pre-wrap;
74   font-size: .75em;
75   overflow: hidden;
76 }
77
78 .prescription input[type=checkbox],
79 .prescription input[type=radio] { display: none;}
80
81 .prescription label.checkbox,
82 .prescription label.radio,
83 .prescription input[type=checkbox] + label,
84 .prescription input[type=radio] + label { padding-left: 1.25em; font-size: 1em;}
85
86 .prescription label.checkbox:before,
87 .prescription label.radio:before,
88 .prescription input[type=checkbox] + label:before,
89 .prescription input[type=radio] + label:before {
90   display: inline-block;
91   position: absolute;
92   margin-left: -1.25em;
93   width: .75em; height: .75em;
94   background-color: #FFF;
95   border: 1px solid #800;
96   content: ' ';
97 }
98 .prescription label.radio:before,
99 .prescription input[type=radio] + label:before { border-radius: .5em;}
100 .prescription label.checkbox.checked:before,
101 .prescription label.radio.checked:before,
102 .prescription input[type=checkbox]:checked + label:before,
103 .prescription input[type=radio]:checked + label:before { content: "\2713";}
104
105 .prescription a.button,
106 .prescription input[type=submit],
107 .prescription button {
108   height: 1.5em;
109   color: #FFF;
110   background-color: #800;
111   text-align: center;
112   text-decoration: none;
113   margin: 0; padding: .125em 0 0 0;
114   border: none;
115 }
116 .prescription a.button {padding: .5ex;}
117
118 /* ======== Specific ========== */
119
120 .prescription .baseinfo { width: 60%;}
121
122   .baseinfo label[for=insurance],
123   .baseinfo #insurance { width: 100%; }
124  
125   .baseinfo label[for=name],
126   .baseinfo #name { width: 65%; margin-right: -.875ex;}
127   .baseinfo #name { height: 4em; }
128  
129   .baseinfo label[for=bday],
130   .baseinfo #bday { width: 35%;}
131   .baseinfo #bday { height: 4em; text-align: center; vertical-align: top;}
132  
133   .baseinfo label[for=date],
134   .baseinfo #date { width: 34%; margin-left: 65%;}
135   .baseinfo #date { text-align: right;}
136
137 .prescription .misc { width: 40%; }
138
139   .misc h1 {
140     font-size: 1.25em;
141     font-weight: bold;
142     width: 100%;
143   }
144   .misc label[for=addcontrib],
145   .misc label[for=contribconfirm] {width: 100%;}
146   .misc #addcontrib,
147   .misc #contribconfirm {width: 100%; text-align: right;}
148
149 .prescription label[for=prescreviewed] {
150   margin-left: 1ex;
151   font-weight: bold;
152   text-decoration: underline;
153   background-color: #FCC;
154 }
155 .prescription label[for=prescreviewed].checked,
156 .prescription :checked + label[for=prescreviewed] {
157   font-weight: normal;
158   text-decoration: none;
159   background-color: #CFF;
160 }
161
162 .prescription .catalogue { width: 100%; }
163
164   .catalogue h2:nth-of-type(1) {
165     font-weight: bold;
166     width: 100%;
167     margin-bottom: .25em;
168   }
169   .catalogue label {
170     display: inline-block;
171     width: 33%;
172     margin-right: -.625ex;
173     margin-top: .25em;
174     vertical-align: top;
175   }
176   .catalogue label[for=presccontinual] { margin-right: 33%;}
177
178 .prescription .description { width: 100%; }
179   .description * { margin-right: -.625ex; vertical-align: top;}
180   .description label {vertical-align: bottom;}
181   .description label[for=quantity1],
182   .description label[for=remidy1],
183   .description label[for=quantity_weekly1] {display: none;}
184
185   .description label[for=quantity] { width: 20%;}
186   .description #quantity,
187   .description #quantity1 { width: 20%;  height: 3em; text-align: center;}
188   .description label[for=remidy] { width: 60%; }
189   .description #remidy,
190   .description #remidy1 { width: 60%; height: 3em;}
191   .description label[for=quantity_weekly] { width: 20%;}
192   .description #quantity_weekly,
193   .description #quantity_weekly1 { width: 20%; height: 3em; text-align: center;}
194
195   .description label[for=indicator],
196   .description label[for=icd10] { display: block; width: 20%;}
197   .description #icd10,
198   .description #indicator {width: 20%; text-align: right;}
199
200 .prescription .controls { width: 100%; }
201   .controls a.button,
202   .controls button[value=save],
203   .controls button[value=cancel],
204   .controls button[value=delete] { width: 25%;}
205
206 EOF
207
208 # vi:set filetype=css: