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;}
174 body.cards form.newcard { display: flex; }
175 body.cards form.newcard input[name=seed] { flex: 1; }
178 /* ============ LIST ITEMS, Generic ============= */
184 width: 98%; width: calc(100% - 2em);
185 margin-left: auto; margin-right: auto;
187 box-shadow: .125em .125em .25em;
191 /* HACK: put anchor point 10em above card and highlight target element */
192 div:target { box-shadow: none; z-index: 0; }
205 top: 10em; bottom: 0;
206 box-shadow: .125em .125em .25em;
207 animation: highlight 4s;
210 @keyframes highlight { from { background-color: #FF0; } to { background-color: transparent; } }
213 div .section, form .section {
218 word-break: break-word;
221 div .section :last-child, form .section :last-child {
225 div .section h2, form .section h2,
226 div .section h3, form .section h3 {
227 border-bottom: 1pt solid #EEE;
229 div .control, form .control {
230 background-color: #EEE;
235 @media(min-width: 60em) {
236 div .section, form .section {
238 width: calc(100% / 10);
240 div .section :last-child { margin-bottom: 0; }
241 div .control, form .control {
242 background-color: transparent;
244 div .section:nth-of-type(2n) {
245 background-color: #EEE;
248 @media(min-width: 80em) {
249 div .control, form .control {
251 width: calc(100% / 10);
253 div .control .item, form .control .item {
255 margin-bottom: .25em;
259 div .section .item, form .section .item,
260 form .section.attendance > label {
265 div .section .item.NOTE {
266 white-space: pre-wrap;
269 form .section .item {
270 margin-bottom: .25em;
273 form .section button[value^=addfield] {
275 margin-top: .5em; padding: 0 .375em;
278 /* HACK: "responsive" Delete Button above each field */
279 form input.delete { display: none; }
280 form input.delete + label {
284 max-width: 1.75em; height: 1.125em; overflow: hidden;
285 color: #FBB; background-color: #444;
286 margin: 0; padding: .125em .5em 0 .5em;
287 border-radius: 4pt 4pt 0 0;
288 transition: max-width .3s;
290 form input.delete + label:before { content: '\274c '; margin-right: .5em; }
291 form input.delete + label:hover { max-width: 10em; }
292 -form input.delete + label:hover:before { content: ''; }
293 -form input.delete + label:hover:after { content: ' \274c'; }
294 form input.delete:checked + label,
295 form input.delete:checked + label + *,
296 form input.delete:checked + label + .teltype + .TEL {
302 /* ====== right hand Control Buttons on list items ====== */
309 form .control .item {
310 display: inline-block;
311 margin-bottom: .25em;
312 vertical-align: text-bottom;
315 /* Combined Select/Submit Box */
316 form .control .item.newfield { box-shadow: .125em .125em .25em; }
317 form .control .item.newfield select { margin-right: -1pt; }
318 form .control .item.newfield button { box-shadow: none; }
321 /* HACK: Delete Checkbox before delete Button */
322 form .control .item.delete {
324 bottom: .375em; left: .25em; width: auto;
325 padding-bottom: calc(2.25em + 2pt);
328 form .control .item.delete input + label + button {
331 bottom: 0; width: 100%;
333 background-color: #FEE;
336 form .control .item.delete:after {
337 content: attr(label);
340 bottom: 0; width: 100%;
345 box-shadow: .125em .125em .25em;
347 form .control .item.delete input:checked + label + button { display: block; }
350 @media(min-width: 80em) {
351 form .control { padding: .25em; min-height: 16em; }
352 form .control .item { width: 100%; }
353 form .control .item.newfield select { width: calc(100% - 2.5em); }
354 form .control .item.delete { bottom: .125em; right: .25em; }
357 /* ======= LIST ITEMS, Courses ======= */
359 form.course .dtstart input[name=DTS_YEAR],
360 form.course .dtstart select[name=DTS_MONTH] { width: calc(50% - 1.25em); }
361 form.course .dtstart input[name=DTS_YEAR] { margin-right: -.375em; }
362 form.course .dtstart table { width: 100%; margin: 1em 0; }
363 form.course .dtstart table td { text-align: right; -border: .5pt solid; }
364 form.course .dtstart table input[type=radio] { display: none; }
365 form.course .dtstart table input[type=radio] + label {
368 margin: 0; padding: 0 3pt;
370 form.course .dtstart table input[type=radio]:checked + label {
373 box-shadow: .125em .125em .25em;
376 form.course .dtstart label.DTSTIME {
377 display: inline-block;
380 width: calc(100% - 7.875em);
382 form.course .dtstart input[name=DTS_HOUR],
383 form.course .dtstart input[name=DTS_MINUTE] {
384 vertical-align: baseline;
389 form.course .recur .item { white-space: nowrap; }
390 form.course .recur .item > * { margin-bottom: 0; vertical-align: baseline; }
391 form.course .recur input[name=RRULE_INTERVAL],
392 form.course .recur input[name=RRULE_COUNT],
393 form.course .recur input[name=RRULE_UMONTH],
394 form.course .recur input[name=RRULE_UDAY] { width: 3.5em; }
395 form.course .recur input[name=RRULE_UYEAR] { width: 4.5em; }
396 form.course .recur input[name=RRULE_UYEAR],
397 form.course .recur input[name=RRULE_UMONTH],
398 form.course .recur input[name=RRULE_UDAY] {
399 margin-right: -.375em;
402 form.course .attendance div.attendance {
406 form.course .attendance label {
407 display: inline-block;
408 max-width: calc(100% - 2em);
412 form.course .attendance input { margin-top: .375em; }
414 /* ======== Categories Page ======== */
416 body.categories form ul { list-style: none; margin: 0; }
419 display: inline-block;
420 background-color: #EEE;
421 margin-right: .5em; margin-bottom: .5em;
423 box-shadow: .125em .125em .25em;
425 form.categories li button[name=remove] {
428 background-color: #FBB;
432 form.categories li button[name=remove]:before {
437 form.categories li:last-child { padding-left: 0 }
439 body.categories form.namelist ul.namelist > li:nth-of-type(2n + 1) { background-color: #EEE; }
440 body.categories form.namelist ul.namelist > li h2,
441 body.categories form.namelist ul.namelist > li ul {
442 display: inline-block;
444 body.categories form.namelist ul.namelist > li h2 {
448 body.categories form.namelist ul.namelist > li ul li {
449 display: inline-block;