forked from commsy/commsy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commsy_print_css.php
207 lines (169 loc) · 3.69 KB
/
commsy_print_css.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?php
// $Id$
//
// Release $Name$
//
// Copyright (c)2002-2003 Matthias Finck, Dirk Fust, Oliver Hankel, Iver Jackewitz, Michael Janneck,
// Martti Jeenicke, Detlev Krause, Irina L. Marinescu, Timo Nolte, Bernd Pape,
// Edouard Simon, Monique Strauss, José Manuel González Vázquez
//
// This file is part of CommSy.
//
// CommSy is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// CommSy 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 General Public License for more details.
//
// You have received a copy of the GNU General Public License
// along with CommSy.
header("Content-type: text/css");
// load required classes
chdir('..');
include_once('etc/cs_constants.php');
include_once('etc/cs_config.php');
include_once('classes/cs_environment.php');
// create environment of this page
$color = $cs_color['DEFAULT'];
// find out the room we're in
if (!empty($_GET['cid'])) {
$cid = $_GET['cid'];
$environment = new cs_environment();
$environment->setCurrentContextID($cid);
$room = $environment->getCurrentContextItem();
$color = $room->getColorArray();
}
?>
/*General Settings */
body {
margin: 0px;
padding: 0px;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
background-color: white;
}
img {
border: 0px;
}
/* Hyperlinks*/
a {
color: <?php echo($color['hyperlink'])?>;
text-decoration: none;
}
a:hover, a:active {
text-decoration: underline;
}
/* General purpose styles */
.infocolor{
color: <?php echo($color['info_color'])?>;
}
.infoborder{
border-top: 1px solid <?php echo($color['info_color'])?>;
}
table.detail td {
vertical-align: baseline;
}
table.detail td.key {
color: <?php echo($color['disabled'])?>;
white-space: nowrap;
}
.disabled, .inactive, .key {
color: <?php echo($color['disabled'])?>;
}
.changed {
color: #7E7E7E;
font-size: 8pt;
}
.required {
color: #7E7E7E;
font-weight: bold;
}
div.main{
margin:0px;
padding:0px 5px;
}
div.content_fader{
width: 100%;
margin:0px;
padding:0px 5px;
}
div.content{
padding:0px;
margin:0px;
}
h1{
margin:0px;
padding:0px 0px 0px 10px;
font-size:30px;
}
h2.pagetitle{
margin:0px;
font-size: 16pt;
font-family: verdana, arial, sans-serif;
}
.normal{
font-size: 10pt;
}
.desc {
font-size: 8pt;
}
.bold{
font-size: 10pt;
font-weight: bold;
}
.list {
border-collapse: collapse;
width: 100%;
}
.list td.even {
background-color: #E5E5E5;
padding: 2px 3px;
}
.list td.odd {
padding: 2px 3px;
}
.list td {
padding: 2px 3px;
}
.list td.head {
background-color: #7E7E7E;
color: white;
border-bottom: none;
padding: 3px 3px;
font-weight:bold;
white-space:nowrap;
}
div.detail_sub_items_title{
padding:3px 11px;
border-bottom:1px solid #B0B0B0; vertical-align:top;
background-color: <?php echo($color['myarea_title_backround'])?>;
}
h2.pagetitle{
margin:0px;
font-size: 16pt;
font-family: verdana, arial, sans-serif;
}
span.sub_item_pagetitle{
margin:0px;
font-size: 16pt;
font-weight:bold;
font-family: arial, Nimbus Sans L, sans-serif;
color: <?php echo($color['myarea_section_title'])?>;
}
div.gauge {
height:5px;
margin: 3px 10px;
border: 1px solid #666;
font-size:10px;
}
div.gauge-bar {
background-color: #7E7E7E;
height:5px;
text-align: right;
color:<?php echo($color['headline_text'])?>;
font-size:10px;
}