X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.css.sh;h=57f35fefa224af7e5f924956a7a8d34b6a258e11;hp=d6221e1e58ef163887790af7b204a57ecbb2fc27;hb=f2d532b63f28b8ade51b900e0db23889a957af51;hpb=fdfc261b61998249782240ecb0d40a10d44936a9 diff --git a/templates/therapy.css.sh b/templates/therapy.css.sh index d6221e1..57f35fe 100755 --- a/templates/therapy.css.sh +++ b/templates/therapy.css.sh @@ -3,9 +3,11 @@ cat < * { display: none; } +input.stickynote + .stickynote > label { + position: absolute; + top: 0; bottom: 0; + display: block; + text-align: right; + font-weight: bold; +} +input.stickynote + .stickynote:hover { + left: -1ex; +} +input.stickynote:checked + .stickynote { + width: auto; + left: 1em; + right: 1em; +} +input.stickynote:checked + .stickynote > textarea { + display: block; + position: absolute; + left; 0; right: 0; bottom: 0; top: 0; + width: 100%; height: 100%; + background-color: #FF8; + padding: 2em 1em; +} +input.stickynote:checked + .stickynote > button { + display: block; + position: absolute; + right: .5ex; bottom: .5ex; + z-index: 2; +} +input.stickynote:checked + .stickynote > label { + display: block; + position: static; + font-size: 0; +} +input.stickynote:checked + .stickynote > label:before { + position: absolute; + font-size: initial; + content: "x"; + top: .5ex; right: .5ex; + padding: .125ex .75ex; + background-color: #000; + color: #FFF; + border-radius: 1ex; + z-index: 2; +} + + fieldset.color { - margin: .5em 2% 0 2%; + position: absolute; + bottom: 0; right: 0; width: 2em; + margin: .5em .5em .125em 2%; border: none; padding: 0; } -img.dotmark { - max-width: 96%; - margin: .125em 2%; padding: 0; +fieldset.color > input.color + label { + width: 2em; height: 2em; +} +.dotmark { + max-width: 90%; + margin: .5em 1em .125em 2%; padding: 0; text-align: left; - border: 1px dotted black; + border: 1px solid black; } -img.dotmark.ov { +.dotmark.ov { position: absolute; - bottom: 5px; right: 0%; + left: 0; bottom: .25em; 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; } - fieldset.color{ - position: fixed; - max-width: 56%; - right: 0; - top: 0em; - } - img.dotmark { + input.stickynote:checked + .stickynote { right: 50%; } + fieldset.color { position: fixed; } + .dotmark { position: fixed; - max-width: 56%; - max-height: 480px; - right: 0; - top: 2em; + max-width: 52%; + max-height: 98%; + right: 2em; bottom: .25em; } - img.dotmark.ov { + .dotmark.ov { position: fixed; - bottom: auto; + right: 2em; left: auto; } } @@ -87,12 +201,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 +216,7 @@ label.tab { background-color: #333; margin-top: .125em; text-align: right; + border: none; } label.heading { background-color: #FFF; @@ -113,11 +229,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 +247,17 @@ 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: 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;} -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 +266,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; @@ -160,19 +297,20 @@ div.tab > fieldset.note { div.tab > fieldset.note > textarea { display: block; width: 95%; height: 8em; - margin: -8em 0 .5em 1.25em; + margin: -8em 0 .5em 2em; font: normal 1em sans-serif; } div.tab > fieldset.note > input.color + label { margin: 0; display: block; } -div.tab > fieldset.note > input.color[value="c000"]:checked ~ textarea { background-color: #AAA; } -div.tab > fieldset.note > input.color[value="c001"]:checked ~ textarea { background-color: #88F; } -div.tab > fieldset.note > input.color[value="c010"]:checked ~ textarea { background-color: #8F8; } -div.tab > fieldset.note > input.color[value="c011"]:checked ~ textarea { background-color: #8FF; } -div.tab > fieldset.note > input.color[value="c100"]:checked ~ textarea { background-color: #F88; } -div.tab > fieldset.note > input.color[value="c101"]:checked ~ textarea { background-color: #F8F; } -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 > fieldset.note > input.color[value="#888"]:checked ~ textarea { background-color: #AAA; } +div.tab > fieldset.note > input.color[value="#00A"]:checked ~ textarea { background-color: #88F; } +div.tab > fieldset.note > input.color[value="#0A0"]:checked ~ textarea { background-color: #8F8; } +div.tab > fieldset.note > input.color[value="#0AA"]:checked ~ textarea { background-color: #8FF; } +div.tab > fieldset.note > input.color[value="#A00"]:checked ~ textarea { background-color: #F88; } +div.tab > fieldset.note > input.color[value="#A0A"]:checked ~ textarea { background-color: #F8F; } +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;} EOF # vi:set filetype=css: