]> git.plutz.net Git - confetti/blobdiff - templates/therapy.css.sh
improved placement of color choosers (no touching browser controls by accident ;...
[confetti] / templates / therapy.css.sh
index 8a87a8e292aa2b0e55b94a736aba7777b54ad88a..4b87bcc4ec5f50c0c8a0ad62b91b3be82cfd9514 100755 (executable)
@@ -3,6 +3,7 @@
 cat <<EOF
 * { box-sizing: border-box; }
 body {
+  overflow: scroll;
   position: relative;
   width: 100%;
   margin: 0; padding: 0;
@@ -23,14 +24,15 @@ input.color + label{
   border: 1px solid black;
 }
 input.color:checked + label{ border-width: 3px;}
-input.color[value="c000"] + label { background-color: #888;}
-input.color[value="c001"] + label { background-color: #00F;}
-input.color[value="c010"] + label { background-color: #0F0;}
-input.color[value="c011"] + label { background-color: #0FF;}
-input.color[value="c100"] + label { background-color: #F00;}
-input.color[value="c101"] + label { background-color: #F0F;}
-input.color[value="c110"] + label { background-color: #FF0;}
-input.color[value="c111"] + label { background-color: #FFF;}
+input.color[value="#000"] + label,
+input.color[value="#888"] + label { background-color: #888;}
+input.color[value="#00A"] + label { background-color: #00F;}
+input.color[value="#0A0"] + label { background-color: #0F0;}
+input.color[value="#0AA"] + label { background-color: #0FF;}
+input.color[value="#A00"] + label { background-color: #F00;}
+input.color[value="#A0A"] + label { background-color: #F0F;}
+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 {
@@ -39,9 +41,28 @@ div.patient, div.prescription {
   margin: 0 2%;
 }
 
-div.prescription .insurance{ display: block; margin: .5ex 0 1ex 0; }
+div.prescription span {
+  display: inline-block;
+  width: 50%;
+  margin-right: -.75ex;
+  vertical-align: top;
+}
+div.prescription span label { font-weight: bold; margin-right: 1ex;}
+div.prescription span.prescno,
+div.prescription span.catalogue {
+  width: 33%;
+  font-weight: bold;
+  margin-bottom: .5em;
+  padding: .5ex 1ex;
+}
+
 div.prescription label.checkbox,
-div.prescription label.radio { padding-left: 1.25em; font-size: 1em;}
+div.prescription label.radio {
+  display: block;
+  padding-left: 1.25em;
+  font-size: 1em;
+  margin: .5em 0;
+}
 
 div.prescription label.checkbox:before,
 div.prescription label.radio:before {
@@ -72,43 +93,43 @@ div.prescription label[for=prescreviewed].checked {
 }
 
 fieldset.color {
-  margin: .5em 2% 0 2%;
+  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: 96%;
-  margin: .125em 2%; padding: 0;
+  max-width: 90%;
+  margin: .5em 1em .125em 2%; padding: 0;
   text-align: left;
-  border: 1px dotted black;
+  border: 1px solid black;
 }
 .dotmark.ov {
   position: absolute;
-  bottom: 5px; right: 0%;
+  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;
-    max-width: 56%;
-    right: 0;
-    top: 0em;
-  }
+  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;
   }
   .dotmark.ov {
     position: fixed;
-    bottom: auto;
+    right: 2em; left: auto;
   }
 }
 
@@ -168,10 +189,13 @@ label.heading > span.no {
   border: none;
 }
 .tab > .date      { width: 30%; }
-.tab > .therapist { width: 40%; }
-.tab > .signature { width: 10%; }
+.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] { 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] {
@@ -214,18 +238,18 @@ 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