]> git.plutz.net Git - confetti/blob - templates/attendees.css.sh
support for prescriptions
[confetti] / templates / attendees.css.sh
1 # Copyright 2014, 2015 Paul Hänsch
2 #
3 # This file is part of Confetti.
4
5 # Confetti is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Confetti is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19
20 .filter {
21   display: block;
22   border: solid 1px;
23   border-radius: 4px 4px 0 0;
24   margin: .5em 2em .25em 2em;
25   padding: 0 2ex .5em 2ex;
26   background: #EFF;
27 }
28
29 .filter h1 {
30   display: block;
31   font-weight: bold;
32   font-size: 1.25em;
33   border-style: none none solid none;
34   border-radius: 4px 4px 0 0;
35   border-width: 1px;
36   margin: 0 -1.625ex .5em -1.625ex;
37   padding: .125em 1ex;
38   background: #EEF;
39 }
40 .filter input[type="text"] {
41   width: 100%;
42   margin-bottom: .5em;
43 }
44 .filter fieldset {
45   position: relative;
46   display: block;
47   border: none;
48   padding: 0 0 0 12ex;
49   margin: 0 0 .5em 0;
50 }
51 .filter fieldset legend {
52   position: absolute;
53   font-size: 1em;
54   font-weight: bold;
55   margin-left: -12ex;
56 }
57 .filter label {
58   display: inline-block;
59   vertical-align: top;
60   margin: .125em 2ex 0 0;
61   white-space: nowrap;
62 }
63 .filter button {
64   margin-top: .5em;
65 }
66
67 .newcard {
68   display: block;
69   border: solid 1px;
70   border-radius: 0 0 4px 4px;
71   margin: .25em 2em 1em 2em;
72   padding: .25em 2ex .25em 2ex;
73   background: #EFF;
74 }
75
76 .card {
77   display: block;
78   position: relative;
79   border: solid 1px;
80   margin: .25em 2em;
81   padding: 0 20ex 0 0;
82   overflow: auto;
83   background: #FFF;
84 }
85 .card .control {
86   display: inline-block;
87   position: absolute;
88   top: 0; right: 0;
89   text-align: right;
90   background: #EEF;
91   margin: 0;
92   height: 100%;
93   width: 20ex;
94   max-width: 33%;
95   padding: .25em 1ex;
96 }
97 .card .control .item {
98   display: inline-block;
99   width: 100%;
100   color: #008;
101   margin: .25em 0 0 0;
102   border: 1px solid black;
103   background: #FFF;
104 }
105 .card .control a.item { padding: .25em .75ex 0 .75ex;}
106 .card .control a.item:hover{ border-color: #888;}
107 .card .control button.item { text-align: right;}
108 .card .control button.item:hover{ border-color: #888;}
109 .card .control .item[name=newfield] { width: 85%;}
110 .card .control .item[value=addfield] { width: 15%;}
111
112 .card .section {
113   display: inline-block;
114   vertical-align: top;
115   float: left;
116   width: 20ex;
117   min-width: 16.5%;
118   min-height: 6em;
119   margin: .125em 0 .5ex 0;
120   padding: 0 1ex .25em 1ex;
121 }
122 .card .section:nth-of-type(2n){ background: #EEE;}
123
124 .card .section h2, .card .section h3 {
125   font-size: 1em;
126   display: block;
127   font-weight: bold;
128   margin: .25em -.5ex .25em -.5ex;
129   border-style: none none solid none;
130   border-width: 1px;
131 }
132 .card .section .FN {  /* will override h2 */
133   font-size: 1.2em;
134   margin-top: 0;
135 }
136
137 .card .section.attendance ul { margin: 0; padding: 0; }
138 .card .section.attendance ul li {
139   display: block;
140   word-wrap: break-word;
141 }
142
143 .card .section.prescriptions ul { margin: 0; padding: 0; }
144 .card .section.prescriptions ul li {
145   display: inline-block;
146   word-wrap: break-word;
147   margin: 0 .25ex;
148 }
149
150 form.card .section input[type=text],
151 form.card .section input:not([type]),
152 form.card .section textarea,
153 form.card .section select {width: 100%;}
154
155 form.card .attendance {
156   min-width: 66%;
157 }
158 form.card .attendance label {
159   position: relative;
160   display: inline-block;
161   width: 25ex;
162   padding-left: 3ex;
163 }
164 form.card .attendance label input[type=checkbox] {
165   position: absolute;
166   margin-left: -3ex;
167 }
168
169 form.card .insurance input[type=radio] {display: none;}
170 form.card .insurance input[type=radio] + label {
171   display: inline-block;
172   width: 50%;
173   padding: .25ex 0;
174   text-align: center;
175   border: 1px solid black;
176   
177 }
178 form.card .insurance input[type=radio]:checked + label {
179   font-weight: bold;
180   background-color: #FFF;
181   border-width: 1px 1px 0 1px;
182 }
183 form.card .insurance input[type=radio] + label + input + label + select,
184 form.card .insurance input[type=radio] + label + select + input {display: none;}
185 form.card .insurance input[type=radio]:checked + label + input + label + select,
186 form.card .insurance input[type=radio]:checked + label + select + input {
187   display: block;
188   border: 1px solid black;
189   border-width: 0 1px 1px 1px;
190   padding: .25ex 0;
191   margin-top: -1px;
192   background-color: #FFF;
193 }
194
195 .card .section .item {
196   display: block;
197   max-width: 100%;
198   word-wrap: break-word;
199 }
200 .card .section .item label {
201   font-weight: bold;
202 }
203
204 .card .section textarea.NOTE {
205   min-height: 6em;
206 }
207 .card .section textarea.ADR {
208   min-height: 4em;
209 }
210
211 .card .section .PHOTO {
212   width: 100%;
213   max-height: 10em;
214 }
215
216 EOF
217
218 # vi:set filetype=css: