]> git.plutz.net Git - confetti/blob - style_new.css
introduced general pdi unescape function
[confetti] / style_new.css
1 * {
2   box-sizing: border-box;
3   font-family: sans-serif;
4   font-weight: normal;
5   font-size: initial;
6   font-style: normal;
7   text-decoration: none;
8   line-height: 1.5em;
9   color: inherit; background: transparent;
10   padding: 0; margin: 0;
11   border: none;
12 }
13
14 body {
15   color: #000; background-color: #FFF;
16 }
17
18 p { margin-bottom: 1em; }
19
20 a {
21   text-decoration: underline;
22   font-style: italic;
23   color: #068;
24 }
25
26 i, em { font-style: italic; }
27 b, strong { font-weight: bolder; }
28 ul, ol { margin-left: 1.125em; }
29 table th { font-weight: bold; }
30
31 h1, h2, h3 {
32   font-weight: bold;
33   margin-top: 1em;
34   margin-bottom: .5em;
35 }
36
37 h1:first-child, h2:first-child, h3:first-child,
38 p + h1, p + h2, p + h3 {
39   margin-top: 0;
40 }
41
42 h4, h5, h6, form legend {
43   font-weight: bolder;
44   margin-bottom: .25em;
45 }
46
47 h1 { font-size: 1.5em; }
48 h2 { font-size: 1.125em; }
49
50 select, input, button, textarea,
51 .control a {
52   display: inline-block;
53   background-color: #FFF;
54   border: 1pt solid;
55   padding: .25em .75em;
56   vertical-align: text-bottom;
57 }
58 .control a {
59   color: inherit;
60   font-style: normal;
61   text-decoration: none;
62 }
63
64 select { padding: .375em 0; }
65
66 input[type=radio], input[type=checkbox] {
67   vertical-align: baseline;
68 }
69 input[type=number] { text-align: right; padding-right: 0; }
70
71 button, input[type=button],
72 .control a {
73   box-shadow: .125em .125em .25em;
74 }
75
76 label { margin-right: .75em; }
77 input + label {
78   margin-left: .375em;
79 }
80
81 /* =========== FILTER AND SEARCH Headers ========= */
82
83 form.search, form.sort, form.filter, form.newcard, form.newcourses {
84   margin-top: 1em; padding: 0 1em;
85   z-index: 1;
86 }
87 form.filter > h1 { display: none; }
88
89 form.filter fieldset { margin-top: .5em; }
90 form.filter fieldset.item + fieldset.item legend { display: none; }
91 form.filter fieldset.item input[type=radio] { display: none; }
92 form.filter fieldset.item input[type=radio] + label {
93   display: table-cell;
94   padding: .5em 1em;
95   background-color: #EEE;
96   border-style: solid;
97   border-width: .5pt .25pt 0 .25pt;
98 }
99 form.filter fieldset.item input[type=radio] + label:first-of-type {
100   border-left: 1pt solid;
101 }
102 form.filter fieldset.item input[type=radio]:checked + label {
103   position: relative;
104   background-color: #FFF;
105   box-shadow: .125em -.125em .125em #888;
106   z-index: 1;
107 }
108 form.filter fieldset.item input[type=text],
109 form.filter fieldset.item fieldset.categories {
110   position: relative;
111   display: block;
112   width: 100%;
113   margin-top: -1pt;
114   padding: .25em .75em;
115   border: 1pt solid;
116   box-shadow: .125em .125em .25em #888;
117 }
118 form.filter fieldset.item fieldset.categories { display: none; }
119 form.filter fieldset.item input[value=CATEGORIES]:checked + label + input[type=text] { display: none; }
120 form.filter fieldset.item input[value=CATEGORIES]:checked + label + input[type=text] + fieldset.categories { display: block; }
121
122 form.filter fieldset.order legend {
123   float: left; margin-right: 1em;
124 }
125
126 form.filter fieldset label,
127 form.filter fieldset a { white-space: pre;}
128 form.filter button[type=submit] {
129   margin-top: .5em; margin-bottom: .5em;
130 }
131
132 body.courses form .order { display: inline-block; margin-right: 2em;}
133
134
135 /* ============ LIST ITEMS, Generic ============= */
136
137 body > form,
138 div.card,
139 div.course {
140   position: relative;
141   width: 98%; width: calc(100% - 2em);
142   margin-left: auto; margin-right: auto;
143   margin-bottom: 1em;
144   box-shadow: .125em .125em .25em;
145   z-index: 1;
146 }
147
148 /* HACK: put anchor point 10em above card and highlight target element */
149     div:target { box-shadow: none; z-index: 0; }
150     div:target:before {
151       content: '';
152       display: block;
153       margin-top: -10em;
154       height: 10em;
155       visibility: hidden;
156     }
157     div:target:after {
158       content: '';
159       display: block;
160       position: absolute;
161       left: 0; right: 0;
162       top: 10em; bottom: 0;
163       box-shadow: .125em .125em .25em;
164       animation: highlight 4s;
165       z-index: -1;
166     }
167     @keyframes highlight { from { background-color: #FF0; } to { background-color: transparent; } }
168 /**/
169
170 div .section, form .section {
171   display: block;
172   vertical-align: top;
173   padding: 0 1em;
174   overflow: hidden;
175   word-break: break-word;
176 }
177
178 div .section :last-child, form .section :last-child {
179   margin-bottom: 1em;
180 }
181
182 div .section h2, form .section h2,
183 div .section h3, form .section h3 { 
184   border-bottom: 1pt solid #EEE;
185 }
186 div .control, form .control {
187   background-color: #EEE;
188   padding: .25em;
189   text-align: right;
190 }
191
192 @media(min-width: 60em) {
193   div .section, form .section {
194     display: table-cell;
195     width: calc(100% / 10);
196   }
197   div .section :last-child { margin-bottom: 0; }
198   div .control, form .control {
199     background-color: transparent;
200   }
201   div .section:nth-of-type(2n) {
202     background-color: #EEE;
203   }
204 }
205 @media(min-width: 80em) {
206   div .control, form .control {
207     display: table-cell;
208     width: calc(100% / 10);
209   }
210   div .control .item, form .control .item {
211     display: block;
212     margin-bottom: .25em;
213   }
214 }
215
216 div .section .item, form .section .item,
217 form .section.attendance > label {
218   display: block;
219   width: 100%;
220 }
221
222 form .section .item {
223   margin-bottom: .25em;
224 }
225
226 form .section button[value^=addfield] {
227   font-size: .75em;
228   margin-top: .5em; padding: 0 .375em;
229 }
230
231 /* HACK: "responsive" Delete Button above each field */
232     form input.delete { display: none; }
233     form input.delete + label {
234       float: right;
235       font-size: .75em;
236       line-height: 1;
237       max-width: 1.75em; height: 1.125em; overflow: hidden;
238       color: #FBB; background-color: #444;
239       margin: 0; padding: .125em .5em 0 .5em;
240       border-radius: 4pt 4pt 0 0;
241       transition: max-width .3s;
242     }
243     form input.delete + label:before  { content: '\274c '; margin-right: .5em; }
244     form input.delete + label:hover   { max-width: 10em; }
245     -form input.delete + label:hover:before { content: ''; }
246     -form input.delete + label:hover:after  { content: ' \274c'; }
247     form input.delete:checked + label,
248     form input.delete:checked + label + * {
249       display: none;
250     }
251 /**/
252
253
254 /* ====== right hand Control Buttons on list items ====== */
255
256 form .control {
257   position: relative;
258   padding-left: 11em;
259   padding-top: 1.5em;
260 }
261 form .control .item {
262   display: inline-block;
263   margin-bottom: .25em;
264   vertical-align: text-bottom;
265 }
266
267 /* Combined Select/Submit Box */
268     form .control .item.newfield { box-shadow: .125em .125em .25em; }
269     form .control .item.newfield select { margin-right: -1pt; }
270     form .control .item.newfield button { box-shadow: none; }
271 /**/
272
273 /* HACK: Delete Checkbox before delete Button */
274     form .control .item.delete {
275       position: absolute;
276       bottom: .375em; left: .25em; width: auto;
277       padding-bottom: calc(2.25em + 2pt);
278     }
279     
280     form .control .item.delete input + label + button {
281       display: none;
282       position: absolute;
283       bottom: 0; width: 100%;
284       color: #800;
285       background-color: #FEE;
286       z-index: 1;
287     }
288     form .control .item.delete:after {
289       content: attr(label);
290       display: block;
291       position: absolute;
292       bottom: 0; width: 100%;
293       text-align: center;
294       color: #BAA;
295       padding: .25em 0;
296       border: 1pt solid;
297       box-shadow: .125em .125em .25em;
298     }
299     form .control .item.delete input:checked + label + button { display: block; }
300 /**/
301
302 @media(min-width: 80em) {
303   form .control { padding: .25em; min-height: 16em; }
304   form .control .item { width: 100%; }
305   form .control .item.newfield select { width: calc(100% - 2.5em); }
306   form .control .item.delete { bottom: .125em; right: .25em; }
307 }
308
309 /* ======= LIST ITEMS, Courses ======= */
310
311 form.course .dtstart input[name=DTS_YEAR],
312 form.course .dtstart select[name=DTS_MONTH] { width: calc(50% - 1.25em); }
313 form.course .dtstart input[name=DTS_YEAR] { margin-right: -.375em; }
314 form.course .dtstart table { width: 100%; margin: 1em 0; }
315 form.course .dtstart table td { text-align: right; -border: .5pt solid; }
316 form.course .dtstart table input[type=radio] { display: none; }
317 form.course .dtstart table input[type=radio] + label {
318   display: block;
319   width: 100%;
320   margin: 0; padding: 0 3pt;
321 }
322 form.course .dtstart table input[type=radio]:checked + label {
323   font-weight: bold;
324   padding: 0 2pt;
325   box-shadow: .125em .125em .25em;
326 }
327
328 form.course .dtstart label.DTSTIME {
329   display: inline-block;
330   font-weight: bold;
331   margin: 0;
332   width: calc(100% - 7.875em);
333 }
334 form.course .dtstart input[name=DTS_HOUR],
335 form.course .dtstart input[name=DTS_MINUTE] {
336   vertical-align: baseline;
337   width: 3.5em;
338   margin-bottom: 0;
339 }
340
341 form.course .recur .item { white-space: nowrap; }
342 form.course .recur .item > * { margin-bottom: 0; vertical-align: baseline; }
343 form.course .recur input[name=RRULE_INTERVAL],
344 form.course .recur input[name=RRULE_COUNT],
345 form.course .recur input[name=RRULE_UMONTH],
346 form.course .recur input[name=RRULE_UDAY] { width: 3.5em; }
347 form.course .recur input[name=RRULE_UYEAR] { width: 4.5em; }
348 form.course .recur input[name=RRULE_UYEAR],
349 form.course .recur input[name=RRULE_UMONTH],
350 form.course .recur input[name=RRULE_UDAY] {
351   margin-right: -.375em;
352 }
353
354 form.course .attendance div.attendance {
355   max-height: 16em;
356   overflow-y: scroll;
357 }
358 form.course .attendance label {
359   display: inline-block;
360   max-width: calc(100% - 2em);
361   vertical-align: top;
362   margin-bottom: 0;
363 }
364 form.course .attendance input { margin-top: .375em; }