]> git.plutz.net Git - confetti/blobdiff - templates/prescriptions.css.sh
enable drawing via android-4, quicker drawing via lines
[confetti] / templates / prescriptions.css.sh
index 91afffa891795ad6a6bdca0eb575e4aae4ab1427..49db4976bcad9a89bf2c4083791a9a31943cd4bb 100755 (executable)
@@ -25,11 +25,12 @@ cat <<EOF
   display: inline-block;
   width: 96%; max-width: 460px;
   color: #800;
-  background-color: #CFF;
+  background-color: #DDD;
   margin: 1em -1% 0 2%; padding: 0;
   border: 1px solid #888;
   overflow: hidden;
 }
+form.prescription { padding-top: 1ex;}
 
 .newprescription {
   display: block;
@@ -117,6 +118,37 @@ cat <<EOF
 
 /* ======== Specific ========== */
 
+.prescription label.presctype,
+.prescription input[name=presctype] + label {
+  font-size: medium;
+  width: 22%;
+  margin: 0; margin-right: -.75ex;
+  vertical-align: bottom;
+  padding: .125em .5ex .25em 3ex;
+}
+.prescription label.presctype {
+  text-align: right;
+  font-weight: bold;
+  padding-right: 1ex;
+  padding-left: 0;
+}
+
+input[name=presctype][value\$=private]:checked  ~ fieldset,
+  input[name=presctype][value\$=private] + label,
+  .prescription.private { background-color: #CFC;}
+input[name=presctype][value\$=selfpaid]:checked  ~ fieldset,
+  input[name=presctype][value\$=selfpaid]         + label,
+  .prescription.selfpaid { background-color: #FFC;}
+input[name=presctype][value=doctor_compulsory]:checked  ~ fieldset,
+  input[name=presctype][value=doctor_compulsory]  + label,
+  .prescription.doctor.compulsory { background-color: #CFF;}
+input[name=presctype][value=dentist_compulsory]:checked  ~ fieldset,
+  input[name=presctype][value=dentist_compulsory] + label,
+  .prescription.dentist.compulsory { background-color: #FCC;}
+input[name=presctype][value^=altpractition]:checked  ~ fieldset,
+  input[name=presctype][value^=altpractition]     + label,
+  .prescription.altpractition { background-color: #FCF;}
+
 .prescription .baseinfo { width: 60%;}
 
   .baseinfo label[for=insurance],
@@ -142,10 +174,24 @@ cat <<EOF
     width: 100%;
   }
   .misc label[for=addcontrib],
-  .misc #addcontrib {width: 100%;}
-  .misc #addcontrib {text-align: right;}
+  .misc label[for=contribconfirm] {width: 100%;}
+  .misc #addcontrib,
+  .misc #contribconfirm {width: 100%; text-align: right;}
+
+.prescription label[for=prescreviewed] {
+  margin-left: 1ex;
+  font-weight: bold;
+  text-decoration: underline;
+  background-color: #FCC;
+}
+.prescription label[for=prescreviewed].checked,
+.prescription :checked + label[for=prescreviewed] {
+  font-weight: normal;
+  text-decoration: none;
+  background-color: transparent;
+}
 
-.prescription .catalogue { width: 60%; }
+.prescription .catalogue { width: 100%; }
 
   .catalogue h2:nth-of-type(1) {
     font-weight: bold;
@@ -154,14 +200,15 @@ cat <<EOF
   }
   .catalogue label {
     display: inline-block;
-    width: 50%;
+    width: 33%;
     margin-right: -.625ex;
     margin-top: .25em;
     vertical-align: top;
   }
+  .catalogue label[for=presccontinual] { margin-right: 33%;}
 
-.prescription .description { width: 100%; }
-  .description * { margin-right: -.625ex; vertical-align: top;}
+.prescription .description { width: 100%; position: relative;}
+  .description * { margin-right: -.625ex; vertical-align: top; }
   .description label {vertical-align: bottom;}
   .description label[for=quantity1],
   .description label[for=remidy1],
@@ -177,12 +224,16 @@ cat <<EOF
   .description #quantity_weekly,
   .description #quantity_weekly1 { width: 20%; height: 3em; text-align: center;}
 
+  .description .indicator_codes {display: inline-block; width: 20%; padding: 0; padding-top: 1.5ex;}
   .description label[for=indicator],
-  .description label[for=icd10] { display: block; width: 20%;}
+  .description label[for=icd10] { display: block; width: 100%;}
   .description #icd10,
-  .description #indicator {width: 20%; text-align: right;}
+  .description #indicator {width: 100%; text-align: right;}
 
-.prescription label[for=prescreviewed] { margin-left: 1ex; }
+  .description .indicator_reading { display: inline-block; width: 78%; padding: 0; padding-top: 1.5ex;  margin-left: 2%;}
+  .description label[for=indicator_reading],
+  .description #indicator_reading { width: 100%; display: block;}
+  .description #indicator_reading { height: 4em;}
 
 .prescription .controls { width: 100%; }
   .controls a.button,