X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=webpoll.css;h=7b1579f7b49ed5f68358e142eb47824f10a254c6;hb=22d77b49555ed424e7d9064b06f37b8caa83f914;hp=cfc363be9808115da33df6b412c45539b6fddc82;hpb=258959637ea2f9499c8807daf21d7e1057c4ad14;p=webpoll diff --git a/webpoll.css b/webpoll.css index cfc363b..7b1579f 100644 --- a/webpoll.css +++ b/webpoll.css @@ -22,25 +22,33 @@ body.poll form { text-align: center; max-width: 95%; } -body.poll .description { - text-align: left; +body section { max-width: 50em; - padding: 1pt 1em 1em 1em; - margin: auto; - margin-bottom: 1em; + padding: 1em; + margin: 1em auto; background-color: rgba(255,255,255,.5); + word-wrap: break-word; +} +body.poll .description { + margin-top: 0; + text-align: left; } body.poll .description .title { + margin-top: 0; text-align: center; } body.poll table { + display: block; + max-width 100%; + overflow-x: auto; + background-color: rgba(255,255,255,.5); border-collapse: collapse; margin: auto; - -border: .5pt solid; box-shadow: #000 .25em .25em .5em; border-radius: 2pt; } + body.poll table thead tr.dates th { padding: .25em; } @@ -53,6 +61,7 @@ body.poll table tbody tr td { text-align: center; border: .5pt solid; padding: 0 .25em; + background-clip: padding-box; } body.poll table tbody tr td:first-child, body.poll table tbody tr td:last-child, @@ -63,6 +72,13 @@ body.poll table tbody tr th.name { padding: .25em .5em; text-align: right; } body.poll table tbody tr td.yes { background-color: #AFA; } body.poll table tbody tr td.no { background-color: #FAA; } body.poll table tbody tr td.maybe { background-color: #FFA; } +body.poll table tbody tr td.edit { text-align: left; font-size: .875em; } + +body.poll table tbody tr.votecount td { padding: .375em .25em;} +body.poll table tbody tr th.name button[name=delete] { font-size: .625em; line-height: 1.5em; background-color: #FAA; } + +body.poll table tbody tr.new td:first-child { text-align: right; } +body.poll table tbody tr.new td input[name=name] { min-width: 100%; width: 8em; } body.poll table td input[type=radio] { display: none; } body.poll table td input[type=radio] + label { @@ -125,6 +141,7 @@ body.newdate form fieldset.splittimes { body.newdate form fieldset.date { padding-right: .75em; } body.newdate form fieldset.timeofday, body.newdate form fieldset.splittimes { padding-left: .75em; } + body.poll table { display: table;} } body.newdate form input[name=title], @@ -210,3 +227,22 @@ body.newdate form fieldset input.splittimes:checked + *:before { content: '\2713 body.newdate form .timeofday button[name=splittimes] { margin-top: 1.5em;} body.newdate form .splittimes p { margin-top: 2em; padding: .5em; background: rgba(255,255,255,.5); } + +body.newdate form #delconfirm { + margin-left: -6em; +} +body.newdate form #delconfirm + label:after { + content: '\0A'; + white-space: pre; +} +body.newdate form #delconfirm + label + button { + pointer-events: none; + color: #AAA; + border-color: #AAA; +} +body.newdate form #delconfirm:checked + label + button { + pointer-events: auto; + color: inherit; + border-color: inherit; + background-color: #FDD; +}