X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.css.sh;h=2f491477a137a900ddff51aaad88e4b6c468d480;hp=57f35fefa224af7e5f924956a7a8d34b6a258e11;hb=9f7782b085e44a2ecb656674f48be0e2b20fc31c;hpb=9b13f7013dd882029ab3cf106d659a48243d910d diff --git a/templates/therapy.css.sh b/templates/therapy.css.sh index 57f35fe..2f49147 100755 --- a/templates/therapy.css.sh +++ b/templates/therapy.css.sh @@ -1,6 +1,9 @@ #!/bin/sh cat < button[type=submit] { + position: fixed; display: block; + top: 0; left: 15em; + height: 2.25em; padding: 0 3ex; + font-size: 1em; font-weight: bold; + color: #000; background-color: #FDD; + border-width: 1px; border-color: #000; + border-style: none solid solid solid; + border-radius: 0 0 4px 4px; +} +form > button[type=submit]:hover { + background-color: #FEE; +} + input.tab { display: none; } input.tab + label.tab { display: block; } input.tab + label.tab::before { content: '\25b8 \00a0'; float: left;} @@ -251,24 +268,22 @@ label.heading > span.no { .tab > .therapist { width: 30%; } .tab > .signature { width: 20%; } label.tab > .signature { font-size: .75em; } -.tab > .signature > button { display: inline-block; margin: 0; } -/* fieldset.tab > button[type=submit] { width: 5%; text-align: center; margin-left: 5%;} */ -fieldset.tab > button[type=submit] { height: 2em; color: #FFF; font-weight: bold;} -fieldset.tab > button[type=submit]::first-letter { font-size: 1.75em;} -.signature > button[value=pos], -.signature > button[value=neg] { - margin-bottom: .25em; - border: 1px solid black; - height: 1.5em; width: 1.5em; - vertical-align: top; +.signature > input[type=checkbox] { + display: inline; + font-weight: bold; + font-size: 1.25em; +} +.signature > input[type=checkbox]:before { + display: block; width: 1.25em; + margin: -.125em 0 0 -.5ex; background-color: #FFF; - color: #000; - white-space: nowrap; + text-align: center; + content: "\00a0 \00a0 \00a0"; +} +.signature > input[type=checkbox]:checked::before { + content: "\2713"; } -.signature > input[type=checkbox] {display: none;} -.signature > button[value=neg]::before { padding: 0 1ex 0 .25ex; content: "\2713"; } -.signature > button[value=pos]::before { padding: 0 1ex 0 .25ex; content: "\00a0 \00a0 \00a0"; } input.tab + label.tab > input.date, input.tab + label.tab > input.therapist { @@ -283,12 +298,11 @@ input.tab:checked + label.tab > span.therapist { display: none; } - div.tab { border: 2px solid #333; border-top-width: 1px; margin-top: -1px; - padding: .25em .5ex; + padding: .25em .5ex 1em .5ex; } div.tab > fieldset.note { border: none; @@ -296,7 +310,7 @@ div.tab > fieldset.note { } div.tab > fieldset.note > textarea { display: block; - width: 95%; height: 8em; + width: 93%; height: 8em; margin: -8em 0 .5em 2em; font: normal 1em sans-serif; } @@ -310,7 +324,7 @@ div.tab > fieldset.note > input.color[value="#A0A"]:checked ~ textarea { backgro div.tab > fieldset.note > input.color[value="#AA0"]:checked ~ textarea { background-color: #FF8; } div.tab > fieldset.note > input.color[value="#FFF"]:checked ~ textarea { background-color: #FFF; } -div.tab > button.delete {float: right; display: inline-block;} +div.tab > button.delete {float: right; display: inline-block; margin-top: -1em;} EOF # vi:set filetype=css: