]> git.plutz.net Git - confetti/blobdiff - templates/courses.css.sh
adaption for changes in shcgi external
[confetti] / templates / courses.css.sh
old mode 100644 (file)
new mode 100755 (executable)
index fb98be5..2c34fac
@@ -1,3 +1,20 @@
+# Copyright 2014 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
 
 .sort {
@@ -41,10 +58,24 @@ cat <<EOF
   float:left;
   width: 25ex;
   margin: .125em .5ex .5ex .5ex;
-  padding: 0 .2em .2em .2em;
+  padding: 0 .5ex .5ex .5ex;
   background: #EEE;
 }
 
+.courselist .course .attendance {
+  width:50ex;
+}
+.courselist .course .attendance a {
+  display: inline-block;
+  max-width: 13.75ex;
+  color: #008;
+  border-style: solid;
+  border-width: 1px;
+  margin: .25em .125ex .25em .125ex;
+  padding: .125em 1ex .125em 1ex;
+  background: #EFF;
+}
+
 .courselist .course .dtstart {
   width: 35ex;
 }
@@ -69,17 +100,18 @@ cat <<EOF
 .courselist .course .dtstart .DTSCALHEAD{
   display: inline-block;
   font-weight: bold;
-  width: 4ex;
+  width: 4.5ex;
   margin: .25ex;
+  overflow: hidden;
 }
 .courselist .course .dtstart .DTSCAL{
   display: inline-block;
-  width: 4ex;
+  width: 4.5ex;
   margin: .25ex;
 }
-.courselist .course .dtstart .selected {
-  font-weight: bold;
-}
+.courselist .course .dtstart input[name=DTSDAY] { display: none; }
+.courselist .course .dtstart input[name=DTSDAY]:checked + label.DTSCAL { font-weight: bold; }
+
 .courselist .course .dtstart .DTSTIME{
   display: inline-block;
   width: 10ex;