]> git.plutz.net Git - confetti/blob - templates/courses.css.sh
prevent faulty calendar wrapping
[confetti] / templates / courses.css.sh
1 # Copyright 2014 Paul Hänsch
2 #
3 # This file is part of Confetti.
4
5 # Confetti is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Confetti is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19
20 .sort {
21   display: block;
22   width: 126ex;
23   border-width: 1px;
24   border-style: solid;
25   border-radius: 4px 4px 0 0 ;
26   margin: 1em auto .25em auto;
27   padding: .25em 2ex .25em 2ex;
28   background: #EFF;
29 }
30 .sort .label {
31   font-weight: bold;
32 }
33
34 .newcourse {
35   display: block;
36   width: 126ex;
37   border-width: 1px;
38   border-style: solid;
39   border-radius: 0 0 4px 4px;
40   margin: .25em auto 1em auto;
41   padding: .25em 2ex .25em 2ex;
42   background: #EFF;
43 }
44
45 .courselist .course {
46   display: block;
47   width: 130ex;
48   border-style: solid;
49   border-width: 1px;
50   margin: .25em auto;
51   padding: 0;
52   overflow: auto;
53   background: #FFF;
54 }
55
56 .courselist .course .section {
57   display: inline-block;
58   float:left;
59   width: 25ex;
60   margin: .125em .5ex .5ex .5ex;
61   padding: 0 .5ex .5ex .5ex;
62   background: #EEE;
63 }
64
65 .courselist .course .attendance {
66   width:50ex;
67 }
68 .courselist .course .attendance a {
69   display: inline-block;
70   max-width: 13.75ex;
71   color: #008;
72   border-style: solid;
73   border-width: 1px;
74   margin: .25em .125ex .25em .125ex;
75   padding: .125em 1ex .125em 1ex;
76   background: #EFF;
77 }
78
79 .courselist .course .dtstart {
80   width: 35ex;
81 }
82 .courselist .course .dtstart .DTSYEAR{
83   display: inline-block;
84   text-align: center;
85   font-weight: bold;
86   width: 11ex;
87 }
88 .courselist .course .dtstart .DTSMONTH{
89   display: inline-block;
90   text-align: center;
91   font-weight: bold;
92   width: 18ex;
93 }
94 .courselist .course .dtstart .DTS{
95   display: inline-block;
96   text-align: center;
97   font-weight: bold;
98   width: 4ex;
99 }
100 .courselist .course .dtstart .DTSCALHEAD{
101   display: inline-block;
102   font-weight: bold;
103   width: 4.5ex;
104   margin: .25ex;
105   overflow: hidden;
106 }
107 .courselist .course .dtstart .DTSCAL{
108   display: inline-block;
109   width: 4.5ex;
110   margin: .25ex;
111 }
112 .courselist .course .dtstart input[name=DTSDAY] { display: none; }
113 .courselist .course .dtstart input[name=DTSDAY]:checked + label.DTSCAL { font-weight: bold; }
114
115 .courselist .course .dtstart .DTSTIME{
116   display: inline-block;
117   width: 10ex;
118 }
119 .courselist .course .dtstart span.DTSTIME{
120   font-weight: bold;
121 }
122
123 .courselist .course .recur{
124   width: 35ex;
125 }
126
127 .courselist .course .control {
128   float: right;
129   max-width: 22ex;
130   text-align: right;
131   margin-right: 0;
132   background: #EEF;
133 }
134 .courselist .course .control .item {
135   color: #008;
136   margin-top: .2em;
137   margin-right: 1ex;
138 }
139 .courselist .course .control a.item {
140   min-width: 10ex;
141   border-style: solid double solid solid;
142   border-width: 1px 3px 1px 1px;
143   border-color: #000;
144   padding: .1em 1ex;
145   background: #FFF;
146 }
147 .courselist .course .control a.item:hover{
148   border-width: 1px 1px 1px 1px;
149 }
150
151 .courselist .course .section .sectitle {
152   display: block;
153   font-weight: bold;
154   margin: .2em .2em .2em .2em;
155 }
156
157 .courselist .course .section .item {
158   display: block;
159   max-width: 25ex;
160   word-wrap: break-word;
161 }
162 .courselist .course .section input[type="text"] {
163   width: 24ex;
164 }
165
166 .courselist .course .section textarea.COMMENT {
167   width: 24ex;
168   min-height: 6em;
169 }
170
171 EOF
172
173 # vi:set filetype=css: