X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=therapies%2Ftherapy.css;h=046b961082c6964cc9d3518e0464cd9060e15cde;hb=be67cb59512145a0fa5b8c6686996f3876618570;hp=b17497c98d8e5bb6bcbe28d7c898b4d0e932ce1c;hpb=531f71462dfbc0eeebd74c74c84323c14475f51a;p=lobster diff --git a/therapies/therapy.css b/therapies/therapy.css index b17497c..046b961 100644 --- a/therapies/therapy.css +++ b/therapies/therapy.css @@ -1,3 +1,19 @@ +* { position: static; } + +.trailbtn { display: none; } +.trailbtn + .trailbox { display: none; } +.trailbtn:checked + .trailbox { display: inline-block; } +.trailbtn:checked + .trailbox + .trailbtn { display: block; } +.trailbtn:checked + .trailbox + .trailbtn:before { + display: block; content: '+'; + width: 3ex; text-align: center; + margin-top: .25em; padding: .25em 0; + background-color: #FFF; + border-width: 1px; border-style: solid; +} +.trailbtn:checked + .trailbox + .trailbtn:checked, +.trailbtn:checked { display: none; } + .trailbtn:checked + fieldset.trailbox { display: block;} .trailbtn:checked + .trailbox + .trailbtn { @@ -10,8 +26,6 @@ } .trailbtn:checked + .trailbox + .trailbtn[type=submit]:before {content: none;} - -* { box-sizing: border-box; } body { overflow: scroll; position: relative; @@ -35,6 +49,23 @@ form > button[type=submit]:hover { background-color: #FEE; } +form#report { + position: static; + width: 100%; + margin:0; padding: 0; + box-shadow: none; +} + +form#report button#backbutton { + display: inline; + position: absolute; + top: 1.75em; left: 2%; + font-size: 1.125em; + background: transparent; + padding: 0; + border: none; box-shadow: none; +} + input.tab { display: none; } input.tab + label.tab { display: block; } input.tab + label.tab::before { content: '\25b8 \00a0'; float: left;} @@ -60,12 +91,35 @@ input.color[value="#AA0"] + label { background-color: #FF0;} input.color[value="#FFF"] + label { background-color: #FFF;} h1, label.tab, div.tab, fieldset.tab, -div.patient, div.prescription { +div.patient, div.prescription, div.therapies { display: block; width: 96%; margin: 0 2%; } +div.patient a { + text-decoration: none; color: #000; +} + +div.therapies > a { + display: inline-block; + text-decoration: none; + border: 1px solid black; + margin-top: .5em; padding: .25em .5em; + background-color: #DDF; + color: #000; +} +div.therapies > a.current { + background-color: #AAF; +} + +div.prescription { + background-color: #CFF; +} +div.prescription h3 { + margin-top: .5em; +} + div.prescription span { display: inline-block; width: 50%; @@ -81,7 +135,10 @@ div.prescription span.catalogue { padding: .5ex 1ex; } -div.prescription ul {margin-top: 0;} +div.prescription ul { + margin-top: .5em; + margin-left: 1.5em; +} div.prescription label.checkbox, div.prescription label.radio { @@ -138,28 +195,29 @@ input.stickynote + .stickynote:nth-of-type(2n) { } input.stickynote + .stickynote > * { display: none; } +input.stickynote + .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 + .stickynote > label { position: absolute; - top: 0; bottom: 0; right: .5ex; + top: 0; bottom: 0; right: .5ex; left: 0; display: block; text-align: right; font-weight: bold; + z-index: 1; } input.stickynote + .stickynote:hover { - left: -1ex; + width: auto; left: 0em; right: 2em; } input.stickynote:checked + .stickynote { width: auto; left: 1em; right: 1em; } input.stickynote:checked + .stickynote > * { display: block; } -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[type="submit"] { display: block; position: absolute; @@ -174,6 +232,7 @@ input.stickynote:checked + .stickynote > label { input.stickynote:checked + .stickynote > label:before { position: absolute; font-size: initial; + line-height: 1em; content: "x"; top: .5ex; right: .5ex; padding: .125ex .75ex; @@ -223,10 +282,11 @@ fieldset.color > input.color + label { @media(min-width: 800px){ h1, label.tab, div.tab, fieldset.tab, - div.patient, div.prescription { + div.patient, div.prescription, div.therapies { width: 38%; margin-right: 0; } + input.stickynote + .stickynote:hover { right: calc(50% + 1em); } input.stickynote:checked + .stickynote { right: 50%; } fieldset.penwidth, fieldset.color { position: fixed; } @@ -244,18 +304,19 @@ fieldset.color > input.color + label { h1 {display: none;} -div.patient, div.prescription { margin-top: 1em; } -div.prescription { +div.patient, div.prescription, div.therapies { margin-top: .5em; } +div.prescription, div.therapies { border: 1px solid black; - background-color: #EEE; padding: .125em 1.25ex .5em 1.25ex; } div > h2 { margin: 0; border-bottom: 1px solid black; } +/* div:nth-child(n+2) > a:first-of-type { display: block; margin: .125em 0 .5em 0; text-decoration: none; } +*/ #report fieldset.tab, #report label.tab {