]> git.plutz.net Git - confetti/blobdiff - templates/prescriptions.css.sh
additional prescription fields, improved display of clients and prescriptions
[confetti] / templates / prescriptions.css.sh
index 80e61ea889a2bf8de6e459009cbb5b8081f3bd1c..3374f9832c6933608166cf32d49c669c5ed37330 100755 (executable)
 
 cat <<EOF
 /**/
-form.prescription {
+
+.prescription {
   display: inline-block;
-  position: relative;
-  width: 30%; height: 30em;
-  min-width: 480px;
-  border: 1px solid #000;
-  background-color: #DEF;
+  width: 96%; max-width: 460px;
   color: #800;
-  margin: 1em 1ex;
-  padding: 0;
+  background-color: #CFF;
+  margin: 1em -1% 0 2%; padding: 0;
+  border: 1px solid #888;
+  overflow: hidden;
 }
 
-form.prescription * {
-  position: absolute;
+.newprescription {
+  display: block;
+  margin: 0 2em; padding: .5ex 2ex;
+  background-color: #CFF;
+  border: 1px solid #888;
+  border-radius: 0 0 1ex 1ex;
+}
+
+.prescription * {
   display: inline-block;
-  left: -50em;
   font-size: 1em;
   line-height: 1em;
   margin: 0; padding: 0;
 }
-form.prescription label {padding-left: .5ex;}
-
-form.prescription input,
-form.prescription textarea {
-  height: 1em;
-  border: 1px solid #800;
+.prescription label {
+  padding-left: .5ex;
+  font-size: .75em;
 }
 
-label[for=insurance], #insurance {
-  width: 58%;
-  left: 2%;
-  top: .5em;
+.prescription fieldset {
+  display: inline-block;
+  margin: 0; padding: 1ex;
+  margin-right: -.625ex;
+  border: none;
+  vertical-align: top;
 }
-#insurance {top: 1.5em;}
+.prescription fieldset br { display: none;}
 
-label[for=name], #name {
-  width: 38%;
-  left: 2%;
-  top: 3.25em;
+.prescription span,
+.prescription input,
+.prescription textarea {
+  height: 1.5em;
+  border: 1px solid #800;
+  padding: .25ex;
+  background-color: #FFF;
 }
-#name {top: 4.25em; height: 4em;}
-
-label[for=bday], #bday {
-  width: 20%;
-  left: 40%;
-  top: 3.25em;
+.prescription span {
+  background-color: #EEE;
+  padding: .5ex .25ex;
+  white-space: pre-wrap;
+  font-size: .75em;
+  overflow: hidden;
 }
-#bday {top: 4.25em; height: 4em;}
 
-label[for=date], #date {
-  width: 20%;
-  left: 40%;
-  top: 8.5em;
+.prescription input[type=checkbox],
+.prescription input[type=radio] { display: none;}
+
+.prescription label.checkbox,
+.prescription label.radio,
+.prescription input[type=checkbox] + label,
+.prescription input[type=radio] + label { padding-left: 1.25em; font-size: 1em;}
+
+.prescription label.checkbox:before,
+.prescription label.radio:before,
+.prescription input[type=checkbox] + label:before,
+.prescription input[type=radio] + label:before {
+  display: inline-block;
+  position: absolute;
+  margin-left: -1.25em;
+  width: .75em; height: .75em;
+  background-color: #FFF;
+  border: 1px solid #800;
+  content: ' ';
 }
-#date {top: 9.5em;}
+.prescription label.radio:before,
+.prescription input[type=radio] + label:before { border-radius: .5em;}
+.prescription label.checkbox.checked:before,
+.prescription label.radio.checked:before,
+.prescription input[type=checkbox]:checked + label:before,
+.prescription input[type=radio]:checked + label:before { content: "\2713";}
 
-label[for=addcontrib], #addcontrib {
-  width: 18%;
-  left: 62%;
-  top: 6.25em;
+.prescription a.button,
+.prescription input[type=submit],
+.prescription button {
+  height: 1.5em;
+  color: #FFF;
+  background-color: #800;
+  text-align: center;
+  text-decoration: none;
+  margin: 0; padding: .125em 0 0 0;
+  border: none;
 }
-#addcontrib {top: 7.25em;}
+.prescription a.button {padding: .5ex;}
+
+/* ======== Specific ========== */
+
+.prescription .baseinfo { width: 60%;}
+
+  .baseinfo label[for=insurance],
+  .baseinfo #insurance { width: 100%; }
+  .baseinfo label[for=name],
+  .baseinfo #name { width: 65%; margin-right: -.875ex;}
+  .baseinfo #name { height: 4em; }
+  .baseinfo label[for=bday],
+  .baseinfo #bday { width: 35%;}
+  .baseinfo #bday { height: 4em; text-align: center; vertical-align: top;}
+  .baseinfo label[for=date],
+  .baseinfo #date { width: 34%; margin-left: 65%;}
+  .baseinfo #date { text-align: right;}
 
-form.prescription h2 {
+.prescription .misc { width: 40%; }
+
+  .misc h1 {
+    font-size: 1.25em;
+    font-weight: bold;
+    width: 100%;
+  }
+  .misc label[for=addcontrib],
+  .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;
-  width: 50%;
-  left: 2%;
-  top: 11em;
+  text-decoration: none;
+  background-color: #CFF;
 }
 
+.prescription .catalogue { width: 100%; }
+
+  .catalogue h2:nth-of-type(1) {
+    font-weight: bold;
+    width: 100%;
+    margin-bottom: .25em;
+  }
+  .catalogue label {
+    display: inline-block;
+    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;}
+  .description label {vertical-align: bottom;}
+  .description label[for=quantity1],
+  .description label[for=remidy1],
+  .description label[for=quantity_weekly1] {display: none;}
+
+  .description label[for=quantity] { width: 20%;}
+  .description #quantity,
+  .description #quantity1 { width: 20%;  height: 3em; text-align: center;}
+  .description label[for=remidy] { width: 60%; }
+  .description #remidy,
+  .description #remidy1 { width: 60%; height: 3em;}
+  .description label[for=quantity_weekly] { width: 20%;}
+  .description #quantity_weekly,
+  .description #quantity_weekly1 { width: 20%; height: 3em; text-align: center;}
+
+  .description label[for=indicator],
+  .description label[for=icd10] { display: block; width: 20%;}
+  .description #icd10,
+  .description #indicator {width: 20%; text-align: right;}
+
+.prescription .controls { width: 100%; }
+  .controls a.button,
+  .controls button[value=save],
+  .controls button[value=cancel],
+  .controls button[value=delete] { width: 25%;}
+
 EOF
 
 # vi:set filetype=css: