]> git.plutz.net Git - confetti/blobdiff - templates/courses.css.sh
enable drawing via android-4, quicker drawing via lines
[confetti] / templates / courses.css.sh
old mode 100644 (file)
new mode 100755 (executable)
index a0fdb03..3d95162
+# 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 {
+  display: block;
+  border: solid 1px;
+  border-radius: 4px 4px 0 0 ;
+  margin: .5em 2em .25em 2em;
+  padding: .25em 2ex .25em 2ex;
+  background: #EFF;
+}
+.sort .label {
+  font-weight: bold;
+}
+
 .newcourse {
   display: block;
-  width: 126ex;
-  border-width: 1px;
-  border-style: solid;
-  border-radius: 4px 4px 0 0;
-  margin: 1em auto .25em auto;
+  border: solid 1px;
+  border-radius: 0 0 4px 4px;
+  margin: .25em 2em 1em 2em;
   padding: .25em 2ex .25em 2ex;
   background: #EFF;
 }
 
-.courselist .course {
+.course {
   display: block;
-  width: 130ex;
-  border-style: solid;
-  border-width: 1px;
-  margin: .25em auto;
-  padding: 0;
+  position: relative;
+  border: solid 1px;
+  margin: .25em 2em;
+  padding: 0 20ex 0 0;
   overflow: auto;
   background: #FFF;
+  min-height: 9em;
+}
+.course .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;
+}
+.course .control .item {
+  display: inline-block;
+  vertical-align: top;
+  width: 100%;
+  color: #008;
+  margin: .25em 0 0 0;
+  border: 1px solid black;
+  background: #FFF;
+}
+.course .control a.item {
+  border-right: 3px double;
+  padding: .125em 1ex;
+}
+.course .control a.item:hover{
+  border-right: 1px solid;
 }
 
-.courselist .course .section {
+.course .control .item[name=newfield] { width: 85%;}
+.course .control .item[value=addfield] { width: 15%;}
+
+.course .section {
   display: inline-block;
-  float:left;
-  width: 25ex;
-  margin: .125em .5ex .5ex .5ex;
-  padding: 0 .2em .2em .2em;
-  background: #EEE;
+  vertical-align: top;
+  float: left;
+  width: 20ex;
+  min-width: 16.5%;
+  min-height: 6em;
+  margin: .125em 0 .5ex 0;
+  padding: 0 1ex .25em 1ex;
 }
+.course .section:nth-of-type(2n){ background: #EEE;}
 
-.courselist .course .dtstart {
-  width: 35ex;
+.course .section .item {
+  display: block;
+  max-width: 100%;
+  word-wrap: break-word;
 }
-.courselist .course .dtstart .DTSYEAR{
-  display: inline-block;
-  text-align: center;
+
+.course .section h2, .course .section h3 {
+  font-size: 1em;
+  display: block;
   font-weight: bold;
-  width: 11ex;
+  margin: .25em -.5ex .25em -.5ex;
+  border-style: none none solid none;
+  border-width: 1px;
 }
-.courselist .course .dtstart .DTSMONTH{
-  display: inline-block;
-  text-align: center;
-  font-weight: bold;
-  width: 18ex;
+.course .section h2 {
+  font-size: 1.2em;
+  margin-top: 0;
+}
+
+.course .attendance {
+  min-width: 66%;
 }
-.courselist .course .dtstart .DTS{
+.course .attendance a {
   display: inline-block;
-  text-align: center;
-  font-weight: bold;
-  width: 4ex;
+  vertical-align: top;
+  min-width: 13.5ex;
+  width: 19%;
+  color: #008;
+  border-style: solid;
+  border-width: 1px;
+  margin: .25em .125ex .25em .125ex;
+  padding: .125em 1ex .125em 1ex;
+  background: #EFF;
 }
-.courselist .course .dtstart .DTSCALHEAD{
+
+.course .dtstart { width: 37ex; }
+.course .dtstart .DTSYEAR,
+.course .dtstart .DTSMONTH,
+.course .dtstart .DTS{
+  font-size: .875em;
+  margin: .25em .25ex 1em .25ex;
   display: inline-block;
+  text-align: center;
   font-weight: bold;
-  width: 4ex;
-  margin: .25ex;
 }
-.courselist .course .dtstart .DTSCAL{
+
+.course .dtstart .DTSYEAR{ width: 11.5ex; }
+.course .dtstart .DTSMONTH{ width: 18.5ex; }
+.course .dtstart .DTS{ width: 5.5ex; }
+
+.course .dtstart .DTSCAL,
+.course .dtstart .DTSCALHEAD {
   display: inline-block;
-  width: 4ex;
-  margin: .25ex;
+  overflow: hidden;
+  text-align: center;
+  width: 5ex;
+  margin: 0;
 }
-.courselist .course .dtstart .selected {
+.course .dtstart .DTSCALHEAD {
   font-weight: bold;
+  border-top: 1px solid;
+  border-bottom: 1px solid;
 }
-.courselist .course .dtstart .DTSTIME{
+
+.course .dtstart input[name=DTSDAY] { display: none; margin: 0; height: 0; width: 0; }
+.course .dtstart input[name=DTSDAY]:checked + label.DTSCAL { font-weight: bold; border: solid 1px; }
+
+.course .dtstart .DTSTIME{
   display: inline-block;
   width: 10ex;
-}
-.courselist .course .dtstart span.DTSTIME{
   font-weight: bold;
 }
 
-.courselist .course .recur{
-  width: 35ex;
-}
-
-.courselist .course .control {
-  float: right;
-  max-width: 22ex;
-  text-align: right;
-  margin-right: 0;
-  background: #EEF;
-}
-.courselist .course .control .item {
-  color: #008;
-  margin-top: .2em;
-  margin-right: 1ex;
-}
-.courselist .course .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;
-}
-.courselist .course .control a.item:hover{
-  border-width: 1px 1px 1px 1px;
+.course .recur{ width: 37ex; }
+.course .section select,
+.course .section button,
+.course .section input {
+  border: 1px solid;
+  margin: .5em 0;
 }
 
-.courselist .course .section .sectitle {
-  display: block;
-  font-weight: bold;
-  margin: .2em .2em .2em .2em;
+.course .select_attendance {
+  max-height: 17em;
+  overflow-y: scroll;
 }
-
-.courselist .course .section .item {
+.course .select_attendance label{
   display: block;
-  max-width: 25ex;
-  word-wrap: break-word;
+  position: relative;
+  margin: 0; padding: 0;
+  padding-left: 3ex;
 }
-.courselist .course .section input[type="text"] {
-  width: 24ex;
+.course .select_attendance label input{
+  position: absolute;
+  margin: 0; padding: 0;
+  margin-left: -3ex;
+  top: 0;
 }
 
-.courselist .course .section textarea.COMMENT {
-  width: 24ex;
-  min-height: 6em;
-}
+.course .section input[type="text"] { width: 100%; }
+.course .section textarea.COMMENT { min-height: 6em; width: 100%; overflow: auto; }
 
 EOF