3 box-sizing: border-box;
4 font-family: sans-serif;
10 color: inherit; background: transparent;
11 padding: 0; margin: 0;
16 color: #000; background-color: #FFF;
19 /* ======= GENERIC HTML STYLES =======*/
21 p { margin-bottom: 1em; }
24 text-decoration: underline;
29 i, em { font-style: italic; }
30 b, strong { font-weight: bolder; }
31 ul, ol { margin-left: 1.125em; }
32 table th { font-weight: bold; }
40 h1:first-child, h2:first-child, h3:first-child,
41 p + h1, p + h2, p + h3 {
45 h4, h5, h6, form legend {
50 h1 { font-size: 1.5em; }
51 h2 { font-size: 1.125em; }
53 select, input, button, textarea,
55 display: inline-block;
56 background-color: #FFF;
59 vertical-align: text-bottom;
64 text-decoration: none;
67 select { padding: .375em 0; }
69 input[type=radio], input[type=checkbox] {
70 vertical-align: baseline;
72 input[type=number] { text-align: right; padding-right: 0; }
74 button, input[type=button],
76 box-shadow: .125em .125em .25em;
79 input[type=radio], input[type=checkbox],
80 input[type=radio] + label, input[type=checkbox] + label {
84 label { margin-right: .75em; }
89 /* ====== COMMON ELEMENTS ======*/
94 margin: 0; -padding: 0 .5em;
97 background-color: #444;
98 box-shadow: inset 0 -.25em .25em #000;
104 display: inline-block;
109 box-shadow: inset 0 0 .5em #000;
111 body.cards > .menu a[href="/cards/"],
112 body.courses > .menu a[href="/courses/"] {
114 background-color: #FFF;
118 /* =========== FILTER AND SEARCH Headers ========= */
120 form.search, form.sort, form.filter, form.newcard, form.newcourses {
121 margin-top: 1em; padding: 0 1em;
124 form.filter > h1 { display: none; }
126 form.filter fieldset { margin-top: .5em; }
127 form.filter fieldset.item + fieldset.item legend { display: none; }
128 form.filter fieldset.item input[type=radio] { display: none; }
129 form.filter fieldset.item input[type=radio] + label {
132 background-color: #EEE;
134 border-width: .5pt .25pt 0 .25pt;
136 form.filter fieldset.item input[type=radio] + label:first-of-type {
137 border-left: 1pt solid;
139 form.filter fieldset.item input[type=radio]:checked + label {
141 background-color: #FFF;
142 box-shadow: .125em -.125em .125em #888;
145 form.filter fieldset.item input[type=text],
146 form.filter fieldset.item fieldset.categories {
151 padding: .25em .75em;
153 box-shadow: .125em .125em .25em #888;
155 form.filter fieldset.item fieldset.categories { display: none; }
156 form.filter fieldset.item input[value=CATEGORIES]:checked + label + input[type=text] { display: none; }
157 form.filter fieldset.item input[value=CATEGORIES]:checked + label + input[type=text] + fieldset.categories { display: block; }
159 form.filter fieldset.order legend {
160 float: left; margin-right: 1em;
163 form.filter fieldset label,
164 form.filter fieldset a { white-space: pre;}
165 form.filter button[type=submit] {
166 margin-top: .5em; margin-bottom: .5em;
169 body.courses form .order { display: inline-block; margin-right: 2em;}
172 /* ============ LIST ITEMS, Generic ============= */
178 width: 98%; width: calc(100% - 2em);
179 margin-left: auto; margin-right: auto;
181 box-shadow: .125em .125em .25em;
185 /* HACK: put anchor point 10em above card and highlight target element */
186 div:target { box-shadow: none; z-index: 0; }
199 top: 10em; bottom: 0;
200 box-shadow: .125em .125em .25em;
201 animation: highlight 4s;
204 @keyframes highlight { from { background-color: #FF0; } to { background-color: transparent; } }
207 div .section, form .section {
212 word-break: break-word;
215 div .section :last-child, form .section :last-child {
219 div .section h2, form .section h2,
220 div .section h3, form .section h3 {
221 border-bottom: 1pt solid #EEE;
223 div .control, form .control {
224 background-color: #EEE;
229 @media(min-width: 60em) {
230 div .section, form .section {
232 width: calc(100% / 10);
234 div .section :last-child { margin-bottom: 0; }
235 div .control, form .control {
236 background-color: transparent;
238 div .section:nth-of-type(2n) {
239 background-color: #EEE;
242 @media(min-width: 80em) {
243 div .control, form .control {
245 width: calc(100% / 10);
247 div .control .item, form .control .item {
249 margin-bottom: .25em;
253 div .section .item, form .section .item,
254 form .section.attendance > label {
259 div .section .item.NOTE {
263 form .section .item {
264 margin-bottom: .25em;
267 form .section button[value^=addfield] {
269 margin-top: .5em; padding: 0 .375em;
272 /* HACK: "responsive" Delete Button above each field */
273 form input.delete { display: none; }
274 form input.delete + label {
278 max-width: 1.75em; height: 1.125em; overflow: hidden;
279 color: #FBB; background-color: #444;
280 margin: 0; padding: .125em .5em 0 .5em;
281 border-radius: 4pt 4pt 0 0;
282 transition: max-width .3s;
284 form input.delete + label:before { content: '\274c '; margin-right: .5em; }
285 form input.delete + label:hover { max-width: 10em; }
286 -form input.delete + label:hover:before { content: ''; }
287 -form input.delete + label:hover:after { content: ' \274c'; }
288 form input.delete:checked + label,
289 form input.delete:checked + label + * {
295 /* ====== right hand Control Buttons on list items ====== */
302 form .control .item {
303 display: inline-block;
304 margin-bottom: .25em;
305 vertical-align: text-bottom;
308 /* Combined Select/Submit Box */
309 form .control .item.newfield { box-shadow: .125em .125em .25em; }
310 form .control .item.newfield select { margin-right: -1pt; }
311 form .control .item.newfield button { box-shadow: none; }
314 /* HACK: Delete Checkbox before delete Button */
315 form .control .item.delete {
317 bottom: .375em; left: .25em; width: auto;
318 padding-bottom: calc(2.25em + 2pt);
321 form .control .item.delete input + label + button {
324 bottom: 0; width: 100%;
326 background-color: #FEE;
329 form .control .item.delete:after {
330 content: attr(label);
333 bottom: 0; width: 100%;
338 box-shadow: .125em .125em .25em;
340 form .control .item.delete input:checked + label + button { display: block; }
343 @media(min-width: 80em) {
344 form .control { padding: .25em; min-height: 16em; }
345 form .control .item { width: 100%; }
346 form .control .item.newfield select { width: calc(100% - 2.5em); }
347 form .control .item.delete { bottom: .125em; right: .25em; }
350 /* ======= LIST ITEMS, Courses ======= */
352 form.course .dtstart input[name=DTS_YEAR],
353 form.course .dtstart select[name=DTS_MONTH] { width: calc(50% - 1.25em); }
354 form.course .dtstart input[name=DTS_YEAR] { margin-right: -.375em; }
355 form.course .dtstart table { width: 100%; margin: 1em 0; }
356 form.course .dtstart table td { text-align: right; -border: .5pt solid; }
357 form.course .dtstart table input[type=radio] { display: none; }
358 form.course .dtstart table input[type=radio] + label {
361 margin: 0; padding: 0 3pt;
363 form.course .dtstart table input[type=radio]:checked + label {
366 box-shadow: .125em .125em .25em;
369 form.course .dtstart label.DTSTIME {
370 display: inline-block;
373 width: calc(100% - 7.875em);
375 form.course .dtstart input[name=DTS_HOUR],
376 form.course .dtstart input[name=DTS_MINUTE] {
377 vertical-align: baseline;
382 form.course .recur .item { white-space: nowrap; }
383 form.course .recur .item > * { margin-bottom: 0; vertical-align: baseline; }
384 form.course .recur input[name=RRULE_INTERVAL],
385 form.course .recur input[name=RRULE_COUNT],
386 form.course .recur input[name=RRULE_UMONTH],
387 form.course .recur input[name=RRULE_UDAY] { width: 3.5em; }
388 form.course .recur input[name=RRULE_UYEAR] { width: 4.5em; }
389 form.course .recur input[name=RRULE_UYEAR],
390 form.course .recur input[name=RRULE_UMONTH],
391 form.course .recur input[name=RRULE_UDAY] {
392 margin-right: -.375em;
395 form.course .attendance div.attendance {
399 form.course .attendance label {
400 display: inline-block;
401 max-width: calc(100% - 2em);
405 form.course .attendance input { margin-top: .375em; }