]> git.plutz.net Git - confetti/blobdiff - templates/attendees.css.sh
use native radio and check buttons, do not break line between input and label
[confetti] / templates / attendees.css.sh
index e4038f040258fd5fc19d23173bd3e206a4319fc4..796c70107148f7a3c6940bb6966e4cfe49f7db9e 100755 (executable)
 
 cat <<EOF
 
+/*
 input[type="checkbox"] { display: none; }
 input[type="checkbox"] + label::before {content: '\2610'; padding-right: .5ex;}
 input[type="checkbox"]:checked + label { text-decoration: underline; }
 input[type="checkbox"]:checked + label::before {content: '\2611';}
+/*
 input[type="radio"] { display: none; }
 input[type="radio"] + label::before {content: '\25cb'; margin-right: .75ex; font-size: .75em;}
 input[type="radio"]:checked + label { text-decoration: underline; }
 input[type="radio"]:checked + label::before {content: '\29bf';}
+*/
 
 .filter {
   display: block;
@@ -51,21 +54,23 @@ input[type="radio"]:checked + label::before {content: '\29bf';}
   margin-bottom: .5em;
 }
 .filter fieldset {
+  position: relative;
+  display: block;
   border: none;
   padding: 0 0 0 12ex;
-  margin: 0 0 -.5em 0;
+  margin: 0 0 .5em 0;
 }
 .filter fieldset legend {
-  display: inline-block;
+  position: absolute;
   font-size: 1em;
   font-weight: bold;
   margin-left: -12ex;
 }
-.filter input[type="radio"] + label {
+.filter label {
   display: inline-block;
-  position: relative;
-  top: -1.125em;
-  margin-left: 2ex;
+  vertical-align: top;
+  margin: .125em 2ex 0 0;
+  white-space: nowrap;
 }
 .filter button {
   margin-top: .5em;
@@ -83,47 +88,28 @@ input[type="radio"]:checked + label::before {content: '\29bf';}
 
 .card {
   display: block;
+  position: relative;
   border-style: solid;
   border-width: 1px;
   margin: .25em 2em;
-  padding: 0;
+  padding: 0 20ex 0 0;
   overflow: auto;
   background: #FFF;
 }
-.card .section {
-  display: inline-block;
-  float:left;
-  width: 20ex;
-  margin: .125em .25ex .5ex .25ex;
-  padding: 0 .2em .2em .2em;
-  background: #EEE;
-}
-.card .section a.attendance {
-  display: inline-block;
-  margin-right: 1ex;
-  word-wrap: break-word;
-}
-
-.card .attendance {
-  width: 83.5ex;
-}
-.card .attendance .check {
-  display: inline-block;
-  width: 27ex;
-}
-
 .card .control {
-  float: right;
+  display: inline-block;
+  position: absolute;
+  top: 0; right: 0;
   text-align: right;
-  margin-right: 0;
   background: #EEF;
+  margin: 0;
+  height: 100%;
+  width: 20ex;
+  max-width: 33%;
+  padding: .25em 1ex;
 }
-
-.card div.control {
-  width: 23ex;
-}
-
 .card .control .item {
+  display: block;
   color: #008;
   margin-top: .2em;
   margin-right: 1ex;
@@ -140,19 +126,53 @@ input[type="radio"]:checked + label::before {content: '\29bf';}
   border-width: 1px 1px 1px 1px;
 }
 
+.card .section {
+  display: inline-block;
+  vertical-align: top;
+  float: left;
+  width: 20ex;
+  min-width: 16.5%;
+  min-height: 6em;
+  margin: .125em 0 .5ex 0;
+  padding: 0 1ex .25em 1ex;
+}
+.card .section:nth-of-type(2n){ background: #EEE;}
 .card .section h2, .card .section h3 {
   font-size: 1em;
   display: block;
   font-weight: bold;
-  margin: .2em .2em .2em .2em;
+  margin: .25em -.5ex .25em -.5ex;
+  border-style: none none solid none;
+  border-width: 1px;
 }
-.card .section .FN {
+.card .section .FN {  /* will override h2 */
   font-size: 1.2em;
+  margin-top: 0;
+}
+
+.card .section.attendance ul { margin: 0; padding: 0; }
+.card .section.attendance ul li {
+  display: block;
+  word-wrap: break-word;
+}
+
+form.card .attendance {
+  min-width: 66%;
+}
+form.card .attendance label {
+  position: relative;
+  display: inline-block;
+  width: 25ex;
+  padding-left: 3ex;
+}
+form.card .attendance label input[type=checkbox] {
+  position: absolute;
+  margin-left: -3ex;
 }
 
 .card .section .item {
   display: block;
-  max-width: 20ex;
+  max-width: 100%;
   word-wrap: break-word;
 }
 
@@ -164,8 +184,8 @@ input[type="radio"]:checked + label::before {content: '\29bf';}
 }
 
 .card .section .PHOTO {
-  width: 20ex;
-  max-heigth: 30ex;
+  width: 100%;
+  max-height: 10em;
 }