]> git.plutz.net Git - confetti/blob - static/cards.css
default to cards page
[confetti] / static / cards.css
1 /*
2 # Copyright 2014 - 2017 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
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 .filter fieldset.item { padding-left: 0; }
68 .filter fieldset.item legend { display: none; }
69 .filter fieldset.item input[type=text],
70 .filter fieldset.item fieldset.categories {
71   background-color: #FFF;
72   border: 1px solid #000;
73   margin-top: -1px;
74   padding: .25em .5em;
75 }
76 .filter fieldset.item input[type=radio] { display: none; }
77 .filter fieldset.item input[type=radio] + label {
78   position: relative; z-index: 1;
79   margin: 0; padding: .25em 1em;
80   
81 }
82 .filter fieldset.item input[type=radio]:checked + label {
83   background-color: #FFF;
84   border: 1px solid #000;
85   border-bottom-color: #FFF;
86 }
87 .filter fieldset.item input[type=radio][value="CATEGORIES:"]:checked + label + input[type=text],
88 .filter fieldset.item input[type=radio][value="CATEGORIES:"] + label + input[type=text] + fieldset.categories {
89   display: none;
90 }
91 .filter fieldset.item input[type=radio][value="CATEGORIES:"]:checked + label + input[type=text] + fieldset.categories {
92   display: block;
93 }
94 .filter fieldset.item fieldset.categories a {
95   font-size: .875em;
96   line-height: 1.625em;
97   color: #44C;
98 }
99
100 .newcard {
101   display: block;
102   border: solid 1px;
103   border-radius: 0 0 4px 4px;
104   margin: .25em 2em 1em 2em;
105   padding: .25em 2ex .25em 2ex;
106   background: #EFF;
107 }
108
109 .card {
110   display: block;
111   position: relative;
112   border: solid 1px;
113   margin: .25em 2em;
114   padding: 0 20ex 0 0;
115   overflow: auto;
116   background: #FFF;
117   min-height: 8em;
118 }
119 .card .control {
120   display: inline-block;
121   position: absolute;
122   top: 0; right: 0;
123   text-align: right;
124   background: #EEF;
125   margin: 0;
126   height: 100%;
127   width: 20ex;
128   max-width: 33%;
129   padding: .25em 1ex;
130 }
131 .card .control .item {
132   display: inline-block;
133   width: 100%;
134   min-height: 2.5em;
135   color: #008;
136   margin: .25em 0 .5em 0;
137   border: 1px solid black;
138   background: #FFF;
139   padding: .25em .75ex 0 .75ex;
140   text-decoration: none;
141   font-size: .75em;
142 }
143 .card .control .item:hover{ border-color: #888; }
144 .card .control input.item { font-size: normal; }
145 .card .control button.item { text-align: right;}
146 .card .control button.item:hover{ border-color: #888;}
147 .card .control .item[name=newfield] { width: 85%;}
148 .card .control .item[value=addfield] { width: 15%;}
149
150 .card .control #delete + label + button,
151 .card .control #delete { display: none; }
152 .card .control #delete + label { background-color: #FEE; }
153 .card .control #delete:checked + label + button {
154   position: fixed; display: block;
155   left: 40%; top: 30%; width: 20%;
156   font-size: 1.5em;
157   text-align: center;
158   background-color: #FAA;
159   color: #333;
160   border-radius: .25em 0 0 .25em;
161 }
162 .card .control #delete:checked + label:after {
163   position: fixed; display: block;
164   left: 60%; top: 30%; width: 5%;
165   margin: .25em 0; padding: .5em .75ex 0 .75ex;
166   height: 1.5em;
167   font-size: 2em;
168   content: 'X';
169   text-align: center;
170   color: #AAA; background-color: #000;
171   border-radius: 0 .25em .25em 0;
172 }
173
174 .card .section {
175   display: inline-block;
176   vertical-align: top;
177   float: left;
178   width: 20ex;
179   min-width: 16.5%;
180   min-height: 6em;
181   margin: .125em 0 .5ex 0;
182   padding: 0 1ex .25em 1ex;
183 }
184 .card .section:nth-of-type(2n){ background: #EEE;}
185
186 .card .section h2, .card .section h3 {
187   font-size: 1em;
188   display: block;
189   font-weight: bold;
190   margin: .25em -.5ex .25em -.5ex;
191   border-style: none none solid none;
192   border-width: 1px;
193 }
194 .card .section .FN {  /* will override h2 */
195   font-size: 1.2em;
196   margin-top: 0;
197 }
198
199 .card .section .item {
200   display: block;
201   max-width: 100%;
202   word-wrap: break-word;
203   white-space: pre-line;
204 }
205 .card .section .item label {
206   font-weight: bold;
207 }
208
209 .card .section textarea.NOTE {
210   min-height: 6em;
211 }
212 .card .section textarea.ADR {
213   min-height: 4em;
214 }
215
216 .card .section .PHOTO {
217   width: 100%;
218   max-height: 10em;
219 }
220 .card .section .GENDER { display: inline-block; padding-right: .5ex;}
221 .card .section .BDAY { display: inline-block;}
222
223 .card .section select {
224   display: block;
225   background-color: #FFF;
226   border: 1px solid black;
227 }
228
229 .card .section.attendance ul { margin: 0; padding: 0; }
230 .card .section.attendance ul li {
231   display: block;
232   word-wrap: break-word;
233 }
234
235 .card .section.prescriptions ul { margin: 0; padding: 0; }
236 .card .section.prescriptions ul li {
237   display: block;
238   word-wrap: break-word;
239   margin: 0 .25ex;
240 }
241
242 .card .section.prescriptions { width: 40ex;}
243
244 form.card .section input[type=text],
245 form.card .section input:not([type]),
246 form.card .section textarea,
247 form.card .section select {width: 100%;}
248
249 form.card .attendance {
250   min-width: 66%;
251 }
252 form.card .attendance label {
253   position: relative;
254   display: inline-block;
255   width: 25ex;
256   padding-left: 3ex;
257 }
258 form.card .attendance label input[type=checkbox] {
259   position: absolute;
260   margin-left: -3ex;
261 }
262
263 form.card .insurance input[type=radio] {display: none;}
264 form.card .insurance input[type=radio] + label {
265   display: inline-block;
266   width: 50%;
267   padding: .25ex 0;
268   text-align: center;
269   border: 1px solid black;
270   
271 }
272 form.card .insurance input[type=radio]:checked + label {
273   font-weight: bold;
274   background-color: #FFF;
275   border-width: 1px 1px 0 1px;
276 }
277 form.card .insurance input[type=radio] + label + input + label + select,
278 form.card .insurance input[type=radio] + label + select + input {display: none;}
279 form.card .insurance input[type=radio]:checked + label + input + label + select,
280 form.card .insurance input[type=radio]:checked + label + select + input {
281   display: block;
282   border: 1px solid black;
283   background-color: #FFF;
284   border-width: 0 1px 1px 1px;
285   padding: .25ex 0;
286   margin-top: -1px;
287 }