]> 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 6d375a19b020c3bd2fb4eee43b4d22a2c125c738..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;
@@ -154,11 +159,16 @@ input[type="radio"]:checked + label::before {content: '\29bf';}
 form.card .attendance {
   min-width: 66%;
 }
-form.card .attendance input[type=checkbox] + label {
+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;