X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.css.sh;h=8a87a8e292aa2b0e55b94a736aba7777b54ad88a;hp=d6221e1e58ef163887790af7b204a57ecbb2fc27;hb=c8980226006bdd5a9d518e7d3221dc3d527be321;hpb=aedb6776919b351df7df7c310c238c41317ddc44 diff --git a/templates/therapy.css.sh b/templates/therapy.css.sh index d6221e1..8a87a8e 100755 --- a/templates/therapy.css.sh +++ b/templates/therapy.css.sh @@ -6,6 +6,7 @@ body { position: relative; width: 100%; margin: 0; padding: 0; + padding-top: 2em; } input.tab { display: none; } @@ -31,30 +32,63 @@ input.color[value="c101"] + label { background-color: #F0F;} input.color[value="c110"] + label { background-color: #FF0;} input.color[value="c111"] + label { background-color: #FFF;} -h1, label.tab, div.tab, +h1, label.tab, div.tab, fieldset.tab, div.patient, div.prescription { display: block; width: 96%; margin: 0 2%; } + +div.prescription .insurance{ display: block; margin: .5ex 0 1ex 0; } +div.prescription label.checkbox, +div.prescription label.radio { padding-left: 1.25em; font-size: 1em;} + +div.prescription label.checkbox:before, +div.prescription label.radio:before { + display: inline-block; + color: #000; + background-color: #FFF; + height: 1.375em; width: 1.125em; + padding: .125em 0 0 .375em; + margin: 0 .5em .25em -1.25em; + border: 1px solid #000; + vertical-align: middle; + content: ' '; +} +div.prescription label.radio:before { border-radius: .5em;} +div.prescription label.checkbox.checked:before, +div.prescription label.radio.checked:before { content: "\2713";} + +div.prescription label[for=prescreviewed] { + margin-left: 1ex; + font-weight: bold; + text-decoration: underline; + background-color: #FCC; +} +div.prescription label[for=prescreviewed].checked { + font-weight: normal; + text-decoration: none; + background-color: transparent; +} + fieldset.color { margin: .5em 2% 0 2%; border: none; padding: 0; } -img.dotmark { +.dotmark { max-width: 96%; margin: .125em 2%; padding: 0; text-align: left; border: 1px dotted black; } -img.dotmark.ov { +.dotmark.ov { position: absolute; bottom: 5px; right: 0%; z-index: 1; } @media(min-width: 800px){ - h1, label.tab, div.tab, + h1, label.tab, div.tab, fieldset.tab, div.patient, div.prescription { width: 38%; margin-right: 0; @@ -65,14 +99,14 @@ img.dotmark.ov { right: 0; top: 0em; } - img.dotmark { + .dotmark { position: fixed; max-width: 56%; max-height: 480px; right: 0; top: 2em; } - img.dotmark.ov { + .dotmark.ov { position: fixed; bottom: auto; } @@ -87,12 +121,13 @@ div.prescription { padding: .125em 1.25ex .5em 1.25ex; } div > h2 { margin: 0; border-bottom: 1px solid black; } -div > a:first-of-type { +div:nth-child(n+2) > a:first-of-type { display: block; margin: .125em 0 .5em 0; text-decoration: none; } +fieldset.tab, label.tab { font-size: 1.25em; font-weight: bold; @@ -101,6 +136,7 @@ label.tab { background-color: #333; margin-top: .125em; text-align: right; + border: none; } label.heading { background-color: #FFF; @@ -113,11 +149,13 @@ label.heading > span { text-decoration: underline; } +fieldset.tab > *, +label > input, label > span { display: inline-block; text-align: right; } -label > span.no { +.tab > .no { width: 10%; float: left; border: solid 1px #FFF; background-color: #555; @@ -129,13 +167,14 @@ label.heading > span.no { background-color: inherit; border: none; } -label > span.date { width: 30%; } -label > span.therapist { width: 40%; } -label > span.signature { width: 10%; } -label > span.signature > button { display: inline-block; margin: 0; } +.tab > .date { width: 30%; } +.tab > .therapist { width: 40%; } +.tab > .signature { width: 10%; } +.tab > .signature > button { display: inline-block; margin: 0; } +fieldset.tab > button[type=submit] { width: 5%; text-align: center; margin-left: 5%;} -button[value=pos], button[value=neg] { - display: block; +.signature > button[value=pos], +.signature > button[value=neg] { margin-bottom: .25em; border: 1px solid black; height: 1.5em; width: 1.5em; @@ -144,8 +183,23 @@ button[value=pos], button[value=neg] { color: #000; white-space: nowrap; } -button[value=pos]::before { padding: 0 1ex 0 .25ex; content: "\2713"; } -button[value=neg]::before { padding: 0 1ex 0 .25ex; content: "\00a0 \00a0 \00a0"; } +.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 { + display: none; +} +input.tab:checked + label.tab > input.date, +input.tab:checked + label.tab > input.therapist { + display: inline; +} +input.tab:checked + label.tab > span.date, +input.tab:checked + label.tab > span.therapist { + display: none; +} + div.tab { border: 2px solid #333; @@ -173,6 +227,7 @@ div.tab > fieldset.note > input.color[value="c101"]:checked ~ textarea { backgro div.tab > fieldset.note > input.color[value="c110"]:checked ~ textarea { background-color: #FF8; } div.tab > fieldset.note > input.color[value="c111"]:checked ~ textarea { background-color: #FFF; } +div.tab > button.delete {float: right; display: inline-block;} EOF # vi:set filetype=css: