printf '
] [body #top class="%s"
' "$class"
- cat
+ printf '[ul .menu [li [a "/cards/" . %s]][li [a "/courses/" . %s]]]' "$(l10n cards)" "$(l10n courses)"
[ "$message" ] && printf '[p #message\n%s\n]' "$(l10n "$message")"
+ cat
printf '] ]'
} \
| "${_EXEC}/cgilite/html-sh.sed"
* {
+ position: relative;
box-sizing: border-box;
font-family: sans-serif;
font-weight: normal;
color: #000; background-color: #FFF;
}
+/* ======= GENERIC HTML STYLES =======*/
+
p { margin-bottom: 1em; }
a {
button, input[type=button],
.control a {
box-shadow: .125em .125em .25em;
+ cursor: pointer;
+}
+input[type=radio], input[type=checkbox],
+input[type=radio] + label, input[type=checkbox] + label {
+ cursor: pointer;
}
label { margin-right: .75em; }
margin-left: .375em;
}
+/* ====== COMMON ELEMENTS ======*/
+
+body > ul.menu {
+ display: block;
+ height: 1.75em;
+ margin: 0; -padding: 0 .5em;
+ list-style: none;
+ color: #CCC;
+ background-color: #444;
+ box-shadow: inset 0 -.25em .25em #000;
+ overflow: hidden;
+ z-index: 3;
+}
+
+body > .menu li {
+ display: inline-block;
+}
+body > .menu a {
+ color: inherit;
+ padding: .5em 3em;
+ box-shadow: inset 0 0 .5em #000;
+}
+body.cards > .menu a[href="/cards/"],
+body.courses > .menu a[href="/courses/"] {
+ color: #000;
+ background-color: #FFF;
+ box-shadow: none;
+}
+
/* =========== FILTER AND SEARCH Headers ========= */
form.search, form.sort, form.filter, form.newcard, form.newcourses {