]> git.plutz.net Git - confetti/blobdiff - templates/therapy.css.sh
enable closed shape drawing for haptic improvements
[confetti] / templates / therapy.css.sh
index ce636a404d503510999e274711e7ea07501f3a44..3dba0ee04e158fa07b049736691cfd901144a708 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 cat <<EOF
+
+.trailbtn:checked + fieldset.trailbox { display: block;}
+
 * { box-sizing: border-box; }
 body {
   overflow: scroll;
@@ -10,6 +13,21 @@ body {
   padding-top: 2em;
 }
 
+form > 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;
+  z-index: 3;
+}
+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;}
@@ -92,62 +110,6 @@ div.prescription label[for=prescreviewed].checked {
   background-color: transparent;
 }
 
-fieldset.color {
-  position: absolute;
-  bottom: 0; right: 0; width: 2em;
-  margin: .5em .5em .125em 2%;
-  border: none;
-  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 solid black;
-}
-.dotmark.ov {
-  position: absolute;
-  left: 0; bottom: .25em;
-  z-index: 1;
-}
-
-@media(min-width: 800px){
-  h1, label.tab, div.tab, fieldset.tab,
-  div.patient, div.prescription {
-    width: 38%;
-    margin-right: 0;
-  }
-  fieldset.color { position: fixed; }
-  .dotmark {
-    position: fixed;
-    max-width: 52%;
-    max-height: 98%;
-    right: 2em; bottom: .25em;
-  }
-  .dotmark.ov {
-    position: fixed;
-    right: 2em; left: auto;
-  }
-}
-
-h1 {display: none;}
-
-div.patient, div.prescription { margin-top: 1em; }
-div.prescription {
-  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;
-}
-
 input.stickynote { display:none; }
 input.stickynote + .stickynote {
   position: fixed;
@@ -172,8 +134,7 @@ input.stickynote + .stickynote:hover {
 input.stickynote:checked + .stickynote {
   width: auto;
   left: 1em;
-  right: 4em;
-  padding-top: .5ex;
+  right: 1em;
 }
 input.stickynote:checked + .stickynote > textarea {
   display: block;
@@ -206,6 +167,64 @@ input.stickynote:checked + .stickynote > label:before {
   z-index: 2;
 }
 
+
+fieldset.color {
+  position: absolute;
+  bottom: 0; right: 0; width: 2em;
+  margin: .5em .5em .125em 2%;
+  border: none;
+  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 solid black;
+}
+.dotmark.ov {
+  position: absolute;
+  left: 0; bottom: .25em;
+  z-index: 1;
+}
+
+@media(min-width: 800px){
+  h1, label.tab, div.tab, fieldset.tab,
+  div.patient, div.prescription {
+    width: 38%;
+    margin-right: 0;
+  }
+  input.stickynote:checked + .stickynote { right: 50%; }
+  fieldset.color { position: fixed; }
+  .dotmark {
+    position: fixed;
+    max-width: 52%;
+    max-height: 98%;
+    right: 2em; bottom: .25em;
+  }
+  .dotmark.ov {
+    position: fixed;
+    right: 2em; left: auto;
+  }
+}
+
+h1 {display: none;}
+
+div.patient, div.prescription { margin-top: 1em; }
+div.prescription {
+  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;
+}
+
 fieldset.tab,
 label.tab {
   font-size: 1.25em;
@@ -250,24 +269,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 {
@@ -282,12 +299,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;
@@ -295,7 +311,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;
 }
@@ -309,7 +325,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: