X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=style.css;h=24c936803befb6b775c50c1c6b6af30ea3213f2b;hp=e0faba6c7957635392d0700320ecfe774c51f393;hb=a6e3da877a73be739ac96b12d9cde2190b24a423;hpb=d43c7ce1d2c15909db3fd0057cc347d69fa838c7 diff --git a/style.css b/style.css index e0faba6..24c9368 100644 --- a/style.css +++ b/style.css @@ -1,6 +1,7 @@ * { position: relative; box-sizing: border-box; + max-width: 100%; font-family: sans-serif; font-weight: normal; font-size: initial; @@ -117,6 +118,7 @@ body.courses > .menu a[href="/courses/"] { /* =========== 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; @@ -132,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; @@ -257,7 +260,7 @@ form .section.attendance > label { } div .section .item.NOTE { - white-space: pre; + white-space: pre-wrap; } form .section .item { @@ -403,3 +406,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; +}