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.courses,
150 form.filter fieldset.item fieldset.categories {
155 padding: .25em .75em;
157 box-shadow: .125em .125em .25em #888;
159 form.filter fieldset.item fieldset.courses,
160 form.filter fieldset.item fieldset.categories { display: none; }
161 form.filter fieldset.item input[value=course]:checked ~ input[type=text],
162 form.filter fieldset.item input[value=CATEGORIES]:checked ~ input[type=text] { display: none; }
163 form.filter fieldset.item input[value=course]:checked ~ fieldset.courses,
164 form.filter fieldset.item input[value=CATEGORIES]:checked ~ fieldset.categories { display: block; }
166 form.filter fieldset.order legend {
167 float: left; margin-right: 1em;
170 form.filter fieldset label,
171 form.filter fieldset a { white-space: pre;}
172 form.filter button[type=submit] {
173 margin-top: .5em; margin-bottom: .5em;
176 body.courses form .order { display: inline-block; margin-right: 2em;}
178 body.cards form.newcard { display: flex; }
179 body.cards form.newcard input[name=seed] { flex: 1; }
182 /* ============ LIST ITEMS, Generic ============= */
188 width: 98%; width: calc(100% - 2em);
189 margin-left: auto; margin-right: auto;
191 box-shadow: .125em .125em .25em;
195 /* HACK: put anchor point 10em above card and highlight target element */
196 div:target { box-shadow: none; z-index: 0; }
209 top: 10em; bottom: 0;
210 box-shadow: .125em .125em .25em;
211 animation: highlight 4s;
214 @keyframes highlight { from { background-color: #FF0; } to { background-color: transparent; } }
217 div .section, form .section {
222 word-break: break-word;
225 div .section :last-child, form .section :last-child {
229 div .section h2, form .section h2,
230 div .section h3, form .section h3 {
231 border-bottom: 1pt solid #EEE;
233 div .control, form .control {
234 background-color: #EEE;
239 @media(min-width: 60em) {
240 div .section, form .section {
242 width: calc(100% / 10);
244 div .section :last-child { margin-bottom: 0; }
245 div .control, form .control {
246 background-color: transparent;
248 div .section:nth-of-type(2n) {
249 background-color: #EEE;
252 @media(min-width: 80em) {
253 div .control, form .control {
255 width: calc(100% / 10);
257 div .control .item, form .control .item {
259 margin-bottom: .25em;
263 div .section .item, form .section .item,
264 form .section.attendance > label {
269 div .section .item.NOTE {
270 white-space: pre-wrap;
273 form .section .item {
274 margin-bottom: .25em;
277 form .section button[value^=addfield] {
279 margin-top: .5em; padding: 0 .375em;
282 /* HACK: "responsive" Delete Button above each field */
283 form input.delete { display: none; }
284 form input.delete + label {
288 max-width: 1.75em; height: 1.125em; overflow: hidden;
289 color: #FBB; background-color: #444;
290 margin: 0; padding: .125em .5em 0 .5em;
291 border-radius: 4pt 4pt 0 0;
292 transition: max-width .3s;
294 form input.delete + label:before { content: '\274c '; margin-right: .5em; }
295 form input.delete + label:hover { max-width: 10em; }
296 -form input.delete + label:hover:before { content: ''; }
297 -form input.delete + label:hover:after { content: ' \274c'; }
298 form input.delete:checked + label,
299 form input.delete:checked + label + *,
300 form input.delete:checked + label + .teltype + .TEL {
306 /* ====== right hand Control Buttons on list items ====== */
313 form .control .item {
314 display: inline-block;
315 margin-bottom: .25em;
316 vertical-align: text-bottom;
319 /* Combined Select/Submit Box */
320 form .control .item.newfield { box-shadow: .125em .125em .25em; }
321 form .control .item.newfield select { margin-right: -1pt; }
322 form .control .item.newfield button { box-shadow: none; }
325 /* HACK: Delete Checkbox before delete Button */
326 form .control .item.delete {
328 bottom: .375em; left: .25em; width: auto;
329 padding-bottom: calc(2.25em + 2pt);
332 form .control .item.delete input + label + button {
335 bottom: 0; width: 100%;
337 background-color: #FEE;
340 form .control .item.delete:after {
341 content: attr(label);
344 bottom: 0; width: 100%;
349 box-shadow: .125em .125em .25em;
351 form .control .item.delete input:checked + label + button { display: block; }
354 @media(min-width: 80em) {
355 form .control { padding: .25em; min-height: 16em; }
356 form .control .item { width: 100%; }
357 form .control .item.newfield select { width: calc(100% - 2.5em); }
358 form .control .item.delete { bottom: .125em; right: .25em; }
361 /* ======= LIST ITEMS, Courses ======= */
363 form.course .dtstart input[name=DTS_YEAR],
364 form.course .dtstart select[name=DTS_MONTH] { width: calc(50% - 1.25em); }
365 form.course .dtstart input[name=DTS_YEAR] { margin-right: -.375em; }
366 form.course .dtstart table { width: 100%; margin: 1em 0; }
367 form.course .dtstart table td { text-align: right; -border: .5pt solid; }
368 form.course .dtstart table input[type=radio] { display: none; }
369 form.course .dtstart table input[type=radio] + label {
372 margin: 0; padding: 0 3pt;
374 form.course .dtstart table input[type=radio]:checked + label {
377 box-shadow: .125em .125em .25em;
380 form.course .dtstart label.DTSTIME {
381 display: inline-block;
384 width: calc(100% - 7.875em);
386 form.course .dtstart input[name=DTS_HOUR],
387 form.course .dtstart input[name=DTS_MINUTE] {
388 vertical-align: baseline;
393 form.course .recur .item { white-space: nowrap; }
394 form.course .recur .item > * { margin-bottom: 0; vertical-align: baseline; }
395 form.course .recur input[name=RRULE_INTERVAL],
396 form.course .recur input[name=RRULE_COUNT],
397 form.course .recur input[name=RRULE_UMONTH],
398 form.course .recur input[name=RRULE_UDAY] { width: 3.5em; }
399 form.course .recur input[name=RRULE_UYEAR] { width: 4.5em; }
400 form.course .recur input[name=RRULE_UYEAR],
401 form.course .recur input[name=RRULE_UMONTH],
402 form.course .recur input[name=RRULE_UDAY] {
403 margin-right: -.375em;
406 form.course .attendance div.attendance {
410 form.course .attendance label {
411 display: inline-block;
412 max-width: calc(100% - 2em);
416 form.course .attendance input { margin-top: .375em; }
418 /* ======== Categories Page ======== */
420 body.categories form ul { list-style: none; margin: 0; }
423 display: inline-block;
424 background-color: #EEE;
425 margin-right: .5em; margin-bottom: .5em;
427 box-shadow: .125em .125em .25em;
429 form.categories li button[name=remove] {
432 background-color: #FBB;
436 form.categories li button[name=remove]:before {
441 form.categories li:last-child { padding-left: 0 }
443 body.categories form.namelist ul.namelist > li:nth-of-type(2n + 1) { background-color: #EEE; }
444 body.categories form.namelist ul.namelist > li h2,
445 body.categories form.namelist ul.namelist > li ul {
446 display: inline-block;
448 body.categories form.namelist ul.namelist > li h2 {
452 body.categories form.namelist ul.namelist > li ul li {
453 display: inline-block;