X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=style.css;h=06aacdde32e5ff98dbc80debdbde025c83ea0d13;hp=302a52f9aad3921e21271aa1a340ac3f5f533b40;hb=f0f4a2847ec2fe8226682eee26c902a3b6d64f58;hpb=28e03ce8c633c21b04839dcc4d2438d81b48b1c0 diff --git a/style.css b/style.css index 302a52f..06aacdd 100644 --- a/style.css +++ b/style.css @@ -1,5 +1,7 @@ * { + position: relative; box-sizing: border-box; + max-width: 100%; font-family: sans-serif; font-weight: normal; font-size: initial; @@ -15,6 +17,8 @@ body { color: #000; background-color: #FFF; } +/* ======= GENERIC HTML STYLES =======*/ + p { margin-bottom: 1em; } a { @@ -71,6 +75,11 @@ input[type=number] { text-align: right; padding-right: 0; } 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; } @@ -78,8 +87,38 @@ input + label { 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.categories, form.search, form.sort, form.filter, form.newcard, form.newcourses { margin-top: 1em; padding: 0 1em; z-index: 1; @@ -95,6 +134,7 @@ form.filter fieldset.item input[type=radio] + label { background-color: #EEE; border-style: solid; border-width: .5pt .25pt 0 .25pt; + white-space: normal; } form.filter fieldset.item input[type=radio] + label:first-of-type { border-left: 1pt solid; @@ -106,6 +146,7 @@ form.filter fieldset.item input[type=radio]:checked + label { z-index: 1; } form.filter fieldset.item input[type=text], +form.filter fieldset.item fieldset.courses, form.filter fieldset.item fieldset.categories { position: relative; display: block; @@ -115,9 +156,12 @@ form.filter fieldset.item fieldset.categories { border: 1pt solid; box-shadow: .125em .125em .25em #888; } +form.filter fieldset.item fieldset.courses, form.filter fieldset.item fieldset.categories { display: none; } -form.filter fieldset.item input[value=CATEGORIES]:checked + label + input[type=text] { display: none; } -form.filter fieldset.item input[value=CATEGORIES]:checked + label + input[type=text] + fieldset.categories { display: block; } +form.filter fieldset.item input[value=course]:checked ~ input[type=text], +form.filter fieldset.item input[value=CATEGORIES]:checked ~ input[type=text] { display: none; } +form.filter fieldset.item input[value=course]:checked ~ fieldset.courses, +form.filter fieldset.item input[value=CATEGORIES]:checked ~ fieldset.categories { display: block; } form.filter fieldset.order legend { float: left; margin-right: 1em; @@ -129,8 +173,13 @@ form.filter button[type=submit] { margin-top: .5em; margin-bottom: .5em; } +form.filter button[value=export_csv] { margin-left: 1em; } + body.courses form .order { display: inline-block; margin-right: 2em;} +body.cards form.newcard { display: flex; } +body.cards form.newcard input[name=seed] { flex: 1; } + /* ============ LIST ITEMS, Generic ============= */ @@ -220,7 +269,7 @@ form .section.attendance > label { } div .section .item.NOTE { - white-space: pre; + white-space: pre-wrap; } form .section .item { @@ -249,7 +298,8 @@ form .section button[value^=addfield] { -form input.delete + label:hover:before { content: ''; } -form input.delete + label:hover:after { content: ' \274c'; } form input.delete:checked + label, - form input.delete:checked + label + * { + form input.delete:checked + label + *, + form input.delete:checked + label + .teltype + .TEL { display: none; } /**/ @@ -366,3 +416,41 @@ form.course .attendance label { margin-bottom: 0; } form.course .attendance input { margin-top: .375em; } + +/* ======== Categories Page ======== */ + +body.categories form ul { list-style: none; margin: 0; } + +form.categories li { + display: inline-block; + background-color: #EEE; + margin-right: .5em; margin-bottom: .5em; + padding-left: .5em; + box-shadow: .125em .125em .25em; +} +form.categories li button[name=remove] { + font-size: .75em; + width: 2.5em; + background-color: #FBB; + overflow: hidden; + white-space: pre; +} +form.categories li button[name=remove]:before { + content: '\274C '; + margin-right: 3em; +} + +form.categories li:last-child { padding-left: 0 } + +body.categories form.namelist ul.namelist > li:nth-of-type(2n + 1) { background-color: #EEE; } +body.categories form.namelist ul.namelist > li h2, +body.categories form.namelist ul.namelist > li ul { + display: inline-block; +} +body.categories form.namelist ul.namelist > li h2 { + width: 20%; + min-width: 10em; +} +body.categories form.namelist ul.namelist > li ul li { + display: inline-block; +}