]> git.plutz.net Git - confetti/blobdiff - templates/attendees.css.sh
adaption for changes in shcgi external
[confetti] / templates / attendees.css.sh
old mode 100644 (file)
new mode 100755 (executable)
index c024559..6d375a1
+# Copyright 2014, 2015 Paul Hänsch
+#
+# This file is part of Confetti.
+# 
+# Confetti is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# Confetti is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
+
 cat <<EOF
 
-#filter {}
-#newcard {}
+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';}
 
-#cardlist {}
+.filter {
+  display: block;
+  border: solid 1px;
+  border-radius: 4px 4px 0 0;
+  margin: .5em 2em .25em 2em;
+  padding: 0 2ex .5em 2ex;
+  background: #EFF;
+}
 
-.cardlist .card {
-  margin: 4px 10%;
+.filter h1 {
+  display: block;
+  font-weight: bold;
+  font-size: 1.25em;
+  border-style: none none solid none;
+  border-radius: 4px 4px 0 0;
   border-width: 1px;
+  margin: 0 -1.625ex .5em -1.625ex;
+  padding: .125em 1ex;
+  background: #EEF;
+}
+.filter input[type="text"] {
+  width: 100%;
+  margin-bottom: .5em;
+}
+.filter fieldset {
+  border: none;
+  padding: 0 0 0 12ex;
+  margin: 0 0 -.5em 0;
+}
+.filter fieldset legend {
+  display: inline-block;
+  font-size: 1em;
+  font-weight: bold;
+  margin-left: -12ex;
+}
+.filter input[type="radio"] + label {
+  display: inline-block;
+  position: relative;
+  top: -1.125em;
+  margin-left: 2ex;
+}
+.filter button {
+  margin-top: .5em;
+}
+
+.newcard {
+  display: block;
+  border-width: 1px;
+  border-style: solid;
+  border-radius: 0 0 4px 4px;
+  margin: .25em 2em 1em 2em;
+  padding: .25em 2ex .25em 2ex;
+  background: #EFF;
+}
+
+.card {
+  display: block;
+  position: relative;
   border-style: solid;
-  padding: .5em 1em 1em 120px;
+  border-width: 1px;
+  margin: .25em 2em;
+  padding: 0 20ex 0 0;
   overflow: auto;
-  min-height: 160px;
+  background: #FFF;
+}
+.card .control {
+  display: inline-block;
+  position: absolute;
+  top: 0; right: 0;
+  text-align: right;
+  background: #EEF;
+  margin: 0;
+  height: 100%;
+  width: 20ex;
+  max-width: 33%;
+  padding: .25em 1ex;
+}
+.card .control .item {
   display: block;
+  color: #008;
+  margin-top: .2em;
+  margin-right: 1ex;
+}
+.card .control a.item {
+  min-width: 10ex;
+  border-style: solid double solid solid;
+  border-width: 1px 3px 1px 1px;
+  border-color: #000;
+  padding: .1em 1ex;
+  background: #FFF;
+}
+.card .control a.item:hover{
+  border-width: 1px 1px 1px 1px;
 }
 
-.cardlist .card .PHOTO {
+.card .section {
+  display: inline-block;
+  vertical-align: top;
   float: left;
-  position: relative;
-  left: -110px;
+  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: .25em -.5ex .25em -.5ex;
+  border-style: none none solid none;
   border-width: 1px;
-  border-style: solid;
-  padding: 1px;
-  margin: 1em -110px 1em .5em;
-  width: 96px;
-  max-height: 144px;
 }
-.cardlist .card .item {
+.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;
-  white-space: nowrap;
-  height: 1.2em;
+  word-wrap: break-word;
 }
 
-.cardlist .card .KEY {
-  display: inline;
-  margin: 0px;
-  font: normal bold 1em sans-serif;
+form.card .attendance {
+  min-width: 66%;
+}
+form.card .attendance input[type=checkbox] + label {
+  display: inline-block;
+  width: 25ex;
 }
 
-.cardlist .card .VALUE {
-  display: inline;
-  margin: 0px;
-  font: normal normal 1em sans-serif;
+
+.card .section .item {
+  display: block;
+  max-width: 100%;
+  word-wrap: break-word;
 }
 
-.cardlist .card .FN {
-  margin: .25em .5em 1em 0px;
-  font: normal bold 2em sans-serif;
+.card .section textarea.NOTE {
+  min-height: 6em;
 }
+.card .section textarea.ADR {
+  min-height: 4em;
+}
+
+.card .section .PHOTO {
+  width: 100%;
+  max-height: 10em;
+}
+
 
 EOF