X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=webpoll.css;h=7b1579f7b49ed5f68358e142eb47824f10a254c6;hb=22d77b49555ed424e7d9064b06f37b8caa83f914;hp=90d9d64ef71040acb5385bf996e9d6382620be32;hpb=cbee5980664bda77bee3d5d724d9990512053bf1;p=webpoll diff --git a/webpoll.css b/webpoll.css index 90d9d64..7b1579f 100644 --- a/webpoll.css +++ b/webpoll.css @@ -18,6 +18,92 @@ body.home form { transform: translate(-50%, -50%); } +body.poll form { + text-align: center; + max-width: 95%; +} +body section { + max-width: 50em; + 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; + box-shadow: #000 .25em .25em .5em; + border-radius: 2pt; +} + +body.poll table thead tr.dates th { + padding: .25em; +} +body.poll table thead tr.tod th { + border-width: .5pt; + border-style: none solid none solid; + padding: .25em; +} +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, +body.poll table thead tr th:first-child, +body.poll table thead tr th:last-child { border: none; } + +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 { + font-size: .875em; + text-decoration: underline; + color: #066; + padding: .25em; + margin: 0; +} +body.poll table td input[type=radio]:checked + label { + font-weight: bold; +} +body.poll table td input[type=radio][value=yes]:checked + label { + background-color: #AFA; + margin: 0 -1.5pt; +} +body.poll table td input[type=radio][value=no]:checked + label { + background-color: #FAA; + margin: 0 -.75pt; +} +body.poll table td input[type=radio][value=maybe]:checked + label { + background-color: #FFA; + margin: 0 -1.75pt; +} + body.newdate form { text-align: center; max-width: 100%; @@ -41,7 +127,7 @@ body.newdate form fieldset.splittimes { width: 100%; } -@media(min-width: 48em) { +@media(min-width: 50em) { body.newdate form { width: 50em; } body.newdate form input[name=title], body.newdate form textarea[name=description] { @@ -52,6 +138,10 @@ body.newdate form fieldset.splittimes { body.newdate form fieldset.splittimes { width: 49.5%; width: calc(50% - .375ex); } + 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], @@ -84,14 +174,14 @@ body.newdate form .date button[name=month]:before { color: #666; margin-top: .25em; } -body.newdate form .date table + button[name=month] { right: 0; } +body.newdate form .date table + button[name=month] { right: .75em; } body.newdate form .date table + button[name=month]:before { content: '>'; } body.newdate form .date table.calendar { background-color: #FFF; - font-size: 17.5pt; + font-size: 17pt; -vertical-align: middle; } @@ -102,17 +192,17 @@ body.newdate form .timeofday label.todend { font-weight: bold; text-align: left; font-size: .75em; - width: 49%; width: calc(50% - .5ex); + width: 49%; width: calc(50% - 2.5pt); } body.newdate form fieldset > input[name^=todstart], body.newdate form fieldset > input[name^=todend] { display: inline-block; margin: 0; - width: 49%; width: calc(50% - .5ex); + width: 49%; width: calc(50% - 2.5pt); text-align: right; } body.newdate form fieldset > input[name^=todend] { - width: 40%; widtfieldset% - 4.375ex); + width: 39%; width: calc( 50% - 4.375ex); } body.newdate form fieldset button[name^=addtime] { @@ -136,3 +226,23 @@ body.newdate form fieldset input.splittimes + *:before { body.newdate form fieldset input.splittimes:checked + *:before { content: '\2713'; background-color: #6AF;} 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; +}