3 box-sizing: border-box;
5 font-family: sans-serif;
11 color: inherit; background: transparent;
12 padding: 0; margin: 0;
17 color: #000; background-color: #FFF;
20 /* ======= GENERIC HTML STYLES =======*/
22 p { margin-bottom: 1em; }
25 text-decoration: underline;
30 i, em { font-style: italic; }
31 b, strong { font-weight: bolder; }
32 ul, ol { margin-left: 1.125em; }
33 table th { font-weight: bold; }
41 h1:first-child, h2:first-child, h3:first-child,
42 p + h1, p + h2, p + h3 {
46 h4, h5, h6, form legend {
51 h1 { font-size: 1.5em; }
52 h2 { font-size: 1.125em; }
54 select, input, button, textarea,
56 display: inline-block;
57 background-color: #FFF;
60 vertical-align: text-bottom;
65 text-decoration: none;
68 select { padding: .375em 0; }
70 input[type=radio], input[type=checkbox] {
71 vertical-align: baseline;
73 input[type=number] { text-align: right; padding-right: 0; }
75 button, input[type=button],
77 box-shadow: .125em .125em .25em;
80 input[type=radio], input[type=checkbox],
81 input[type=radio] + label, input[type=checkbox] + label {
85 label { margin-right: .75em; }
90 /* ====== COMMON ELEMENTS ======*/
95 margin: 0; -padding: 0 .5em;
98 background-color: #444;
99 box-shadow: inset 0 -.25em .25em #000;
105 display: inline-block;
110 box-shadow: inset 0 0 .5em #000;
112 body.cards > .menu a[href="/cards/"],
113 body.courses > .menu a[href="/courses/"] {
115 background-color: #FFF;
119 /* =========== FILTER AND SEARCH Headers ========= */
122 form.search, form.sort, form.filter, form.newcard, form.newcourses {
123 margin-top: 1em; padding: 0 1em;
126 form.filter > h1 { display: none; }
128 form.filter fieldset { margin-top: .5em; }
129 form.filter fieldset.item + fieldset.item legend { display: none; }
130 form.filter fieldset.item input[type=radio] { display: none; }
131 form.filter fieldset.item input[type=radio] + label {
134 background-color: #EEE;
136 border-width: .5pt .25pt 0 .25pt;
139 form.filter fieldset.item input[type=radio] + label:first-of-type {
140 border-left: 1pt solid;
142 form.filter fieldset.item input[type=radio]:checked + label {
144 background-color: #FFF;
145 box-shadow: .125em -.125em .125em #888;
148 form.filter fieldset.item input[type=text],
149 form.filter fieldset.item fieldset.categories {
154 padding: .25em .75em;
156 box-shadow: .125em .125em .25em #888;
158 form.filter fieldset.item fieldset.categories { display: none; }
159 form.filter fieldset.item input[value=CATEGORIES]:checked + label + input[type=text] { display: none; }
160 form.filter fieldset.item input[value=CATEGORIES]:checked + label + input[type=text] + fieldset.categories { display: block; }
162 form.filter fieldset.order legend {
163 float: left; margin-right: 1em;
166 form.filter fieldset label,
167 form.filter fieldset a { white-space: pre;}
168 form.filter button[type=submit] {
169 margin-top: .5em; margin-bottom: .5em;
172 body.courses form .order { display: inline-block; margin-right: 2em;}
175 /* ============ LIST ITEMS, Generic ============= */
181 width: 98%; width: calc(100% - 2em);
182 margin-left: auto; margin-right: auto;
184 box-shadow: .125em .125em .25em;
188 /* HACK: put anchor point 10em above card and highlight target element */
189 div:target { box-shadow: none; z-index: 0; }
202 top: 10em; bottom: 0;
203 box-shadow: .125em .125em .25em;
204 animation: highlight 4s;
207 @keyframes highlight { from { background-color: #FF0; } to { background-color: transparent; } }
210 div .section, form .section {
215 word-break: break-word;
218 div .section :last-child, form .section :last-child {
222 div .section h2, form .section h2,
223 div .section h3, form .section h3 {
224 border-bottom: 1pt solid #EEE;
226 div .control, form .control {
227 background-color: #EEE;
232 @media(min-width: 60em) {
233 div .section, form .section {
235 width: calc(100% / 10);
237 div .section :last-child { margin-bottom: 0; }
238 div .control, form .control {
239 background-color: transparent;
241 div .section:nth-of-type(2n) {
242 background-color: #EEE;
245 @media(min-width: 80em) {
246 div .control, form .control {
248 width: calc(100% / 10);
250 div .control .item, form .control .item {
252 margin-bottom: .25em;
256 div .section .item, form .section .item,
257 form .section.attendance > label {
262 div .section .item.NOTE {
263 white-space: pre-wrap;
266 form .section .item {
267 margin-bottom: .25em;
270 form .section button[value^=addfield] {
272 margin-top: .5em; padding: 0 .375em;
275 /* HACK: "responsive" Delete Button above each field */
276 form input.delete { display: none; }
277 form input.delete + label {
281 max-width: 1.75em; height: 1.125em; overflow: hidden;
282 color: #FBB; background-color: #444;
283 margin: 0; padding: .125em .5em 0 .5em;
284 border-radius: 4pt 4pt 0 0;
285 transition: max-width .3s;
287 form input.delete + label:before { content: '\274c '; margin-right: .5em; }
288 form input.delete + label:hover { max-width: 10em; }
289 -form input.delete + label:hover:before { content: ''; }
290 -form input.delete + label:hover:after { content: ' \274c'; }
291 form input.delete:checked + label,
292 form input.delete:checked + label + *,
293 form input.delete:checked + label + .teltype + .TEL {
299 /* ====== right hand Control Buttons on list items ====== */
306 form .control .item {
307 display: inline-block;
308 margin-bottom: .25em;
309 vertical-align: text-bottom;
312 /* Combined Select/Submit Box */
313 form .control .item.newfield { box-shadow: .125em .125em .25em; }
314 form .control .item.newfield select { margin-right: -1pt; }
315 form .control .item.newfield button { box-shadow: none; }
318 /* HACK: Delete Checkbox before delete Button */
319 form .control .item.delete {
321 bottom: .375em; left: .25em; width: auto;
322 padding-bottom: calc(2.25em + 2pt);
325 form .control .item.delete input + label + button {
328 bottom: 0; width: 100%;
330 background-color: #FEE;
333 form .control .item.delete:after {
334 content: attr(label);
337 bottom: 0; width: 100%;
342 box-shadow: .125em .125em .25em;
344 form .control .item.delete input:checked + label + button { display: block; }
347 @media(min-width: 80em) {
348 form .control { padding: .25em; min-height: 16em; }
349 form .control .item { width: 100%; }
350 form .control .item.newfield select { width: calc(100% - 2.5em); }
351 form .control .item.delete { bottom: .125em; right: .25em; }
354 /* ======= LIST ITEMS, Courses ======= */
356 form.course .dtstart input[name=DTS_YEAR],
357 form.course .dtstart select[name=DTS_MONTH] { width: calc(50% - 1.25em); }
358 form.course .dtstart input[name=DTS_YEAR] { margin-right: -.375em; }
359 form.course .dtstart table { width: 100%; margin: 1em 0; }
360 form.course .dtstart table td { text-align: right; -border: .5pt solid; }
361 form.course .dtstart table input[type=radio] { display: none; }
362 form.course .dtstart table input[type=radio] + label {
365 margin: 0; padding: 0 3pt;
367 form.course .dtstart table input[type=radio]:checked + label {
370 box-shadow: .125em .125em .25em;
373 form.course .dtstart label.DTSTIME {
374 display: inline-block;
377 width: calc(100% - 7.875em);
379 form.course .dtstart input[name=DTS_HOUR],
380 form.course .dtstart input[name=DTS_MINUTE] {
381 vertical-align: baseline;
386 form.course .recur .item { white-space: nowrap; }
387 form.course .recur .item > * { margin-bottom: 0; vertical-align: baseline; }
388 form.course .recur input[name=RRULE_INTERVAL],
389 form.course .recur input[name=RRULE_COUNT],
390 form.course .recur input[name=RRULE_UMONTH],
391 form.course .recur input[name=RRULE_UDAY] { width: 3.5em; }
392 form.course .recur input[name=RRULE_UYEAR] { width: 4.5em; }
393 form.course .recur input[name=RRULE_UYEAR],
394 form.course .recur input[name=RRULE_UMONTH],
395 form.course .recur input[name=RRULE_UDAY] {
396 margin-right: -.375em;
399 form.course .attendance div.attendance {
403 form.course .attendance label {
404 display: inline-block;
405 max-width: calc(100% - 2em);
409 form.course .attendance input { margin-top: .375em; }
411 /* ======== Categories Page ======== */
413 body.categories form ul { list-style: none; margin: 0; }
416 display: inline-block;
417 background-color: #EEE;
418 margin-right: .5em; margin-bottom: .5em;
420 box-shadow: .125em .125em .25em;
422 form.categories li button[name=remove] {
425 background-color: #FBB;
429 form.categories li button[name=remove]:before {
434 form.categories li:last-child { padding-left: 0 }
436 body.categories form.namelist ul.namelist > li:nth-of-type(2n + 1) { background-color: #EEE; }
437 body.categories form.namelist ul.namelist > li h2,
438 body.categories form.namelist ul.namelist > li ul {
439 display: inline-block;
441 body.categories form.namelist ul.namelist > li h2 {
445 body.categories form.namelist ul.namelist > li ul li {
446 display: inline-block;