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 {
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 + * {
298 /* ====== right hand Control Buttons on list items ====== */
305 form .control .item {
306 display: inline-block;
307 margin-bottom: .25em;
308 vertical-align: text-bottom;
311 /* Combined Select/Submit Box */
312 form .control .item.newfield { box-shadow: .125em .125em .25em; }
313 form .control .item.newfield select { margin-right: -1pt; }
314 form .control .item.newfield button { box-shadow: none; }
317 /* HACK: Delete Checkbox before delete Button */
318 form .control .item.delete {
320 bottom: .375em; left: .25em; width: auto;
321 padding-bottom: calc(2.25em + 2pt);
324 form .control .item.delete input + label + button {
327 bottom: 0; width: 100%;
329 background-color: #FEE;
332 form .control .item.delete:after {
333 content: attr(label);
336 bottom: 0; width: 100%;
341 box-shadow: .125em .125em .25em;
343 form .control .item.delete input:checked + label + button { display: block; }
346 @media(min-width: 80em) {
347 form .control { padding: .25em; min-height: 16em; }
348 form .control .item { width: 100%; }
349 form .control .item.newfield select { width: calc(100% - 2.5em); }
350 form .control .item.delete { bottom: .125em; right: .25em; }
353 /* ======= LIST ITEMS, Courses ======= */
355 form.course .dtstart input[name=DTS_YEAR],
356 form.course .dtstart select[name=DTS_MONTH] { width: calc(50% - 1.25em); }
357 form.course .dtstart input[name=DTS_YEAR] { margin-right: -.375em; }
358 form.course .dtstart table { width: 100%; margin: 1em 0; }
359 form.course .dtstart table td { text-align: right; -border: .5pt solid; }
360 form.course .dtstart table input[type=radio] { display: none; }
361 form.course .dtstart table input[type=radio] + label {
364 margin: 0; padding: 0 3pt;
366 form.course .dtstart table input[type=radio]:checked + label {
369 box-shadow: .125em .125em .25em;
372 form.course .dtstart label.DTSTIME {
373 display: inline-block;
376 width: calc(100% - 7.875em);
378 form.course .dtstart input[name=DTS_HOUR],
379 form.course .dtstart input[name=DTS_MINUTE] {
380 vertical-align: baseline;
385 form.course .recur .item { white-space: nowrap; }
386 form.course .recur .item > * { margin-bottom: 0; vertical-align: baseline; }
387 form.course .recur input[name=RRULE_INTERVAL],
388 form.course .recur input[name=RRULE_COUNT],
389 form.course .recur input[name=RRULE_UMONTH],
390 form.course .recur input[name=RRULE_UDAY] { width: 3.5em; }
391 form.course .recur input[name=RRULE_UYEAR] { width: 4.5em; }
392 form.course .recur input[name=RRULE_UYEAR],
393 form.course .recur input[name=RRULE_UMONTH],
394 form.course .recur input[name=RRULE_UDAY] {
395 margin-right: -.375em;
398 form.course .attendance div.attendance {
402 form.course .attendance label {
403 display: inline-block;
404 max-width: calc(100% - 2em);
408 form.course .attendance input { margin-top: .375em; }
410 /* ======== Categories Page ======== */
412 body.categories form ul { list-style: none; margin: 0; }
415 display: inline-block;
416 background-color: #EEE;
417 margin-right: .5em; margin-bottom: .5em;
419 box-shadow: .125em .125em .25em;
421 form.categories li button[name=remove] {
424 background-color: #FBB;
428 form.categories li button[name=remove]:before {
433 form.categories li:last-child { padding-left: 0 }
435 body.categories form.namelist ul.namelist > li:nth-of-type(2n + 1) { background-color: #EEE; }
436 body.categories form.namelist ul.namelist > li h2,
437 body.categories form.namelist ul.namelist > li ul {
438 display: inline-block;
440 body.categories form.namelist ul.namelist > li h2 {
444 body.categories form.namelist ul.namelist > li ul li {
445 display: inline-block;