~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/common/ivle.css

  • Committer: mattgiuca
  • Date: 2008-01-11 00:49:06 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:172
util: Added buildurl function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * License version 2 or later.
6
6
 */
7
7
 
8
 
/** Generic styling **/
9
 
 
10
 
html, body {
11
 
    margin: 0;
12
 
    padding: 0;
13
 
    background-color: white;
14
 
    color: black;
 
8
body {
15
9
    font-family: sans-serif;
16
 
    font-size: 0.95em;
17
 
}
18
 
 
19
 
a {
20
 
    color: navy;
21
 
    text-decoration: underline;
22
 
    cursor: pointer;
23
 
}
24
 
a:hover, a:active, a:focus {
25
 
    color: blue;
26
 
}
27
 
 
28
 
.error {
29
 
    color: #a00;
30
 
}
31
 
 
32
 
a img {
33
 
    border: none;
34
 
}
35
 
 
36
 
/* h1s are styled specially to a small golden 3D bar */
37
 
#ivlebody h1 {
38
 
    background-color: #fea;
39
 
    background-image: url(../ivle.webapp.core/images/chrome/h1-bg.png);
40
 
    background-repeat: repeat-y;
41
 
    margin: 0;
42
 
    padding: 0.5em;
43
 
    border-top: white 2px solid;        /* Top edge of 3D effect */
44
 
    border-bottom: #863 1px solid;      /* Bottom edge of 3D effect */
45
 
    font-size: 1em;
46
 
    font-weight: bold;
47
 
}
48
 
 
49
 
#ivlebody h2 {
50
 
    font-size: 1.4em;
51
 
}
52
 
 
53
 
/** Special styles for header section **/
54
 
 
55
 
#ivleheader {
56
 
    position: absolute;
57
 
    background-color: #abf;
58
 
    background-image: url(../ivle.webapp.core/images/chrome/topbar-slashes.png);
59
 
    background-repeat: repeat-x;
60
 
    padding: 0;
61
 
    border-bottom: 1px solid black;
62
 
    /* IMPORTANT: This 4em is hard-coded elsewhere in this file. Search for
63
 
     * #ivleheader.height to update it. */
64
 
    height: 4em;
65
 
    left: 0;
66
 
    right: 0;
67
 
    z-index: 1;     /* Background to all, but the body */
68
 
}
69
 
 
70
 
#ivleheader h1 {
71
 
    margin: 0;
72
 
    padding: 8px;
73
 
}
74
 
 
75
 
#ivleheader_text {
76
 
    position: absolute;
77
 
    padding: 0.5em;
78
 
    top: 0;
79
 
    right: 0.5em;
80
 
}
81
 
 
82
 
/* Note: The body has NO PADDING by default (unlike plain HTML).
83
 
 * This is because almost all of the apps need this behaviour.
84
 
 * If a particular app needs padding, it should manually wrap all of its
85
 
 * output in a <div id="ivle_padding">.
86
 
 */
87
 
#ivlebody {
88
 
    /* This is positioned absolutely so that its content can be positioned
89
 
     * absolutely as well, and so height: 100% really means it. */
90
 
    position: absolute;
91
 
    top: 4em;               /* == #ivleheader.height */
92
 
    bottom: 0;
93
 
    width: 100%;
94
 
    z-index: 0;     /* Behind header */
95
 
}
96
 
 
97
 
/* Apps can optionally have a <div id="ivle_padding"> as the outermost
98
 
 * element, if 1em of padding is desired (otherwise there will be no padding).
99
 
 * Note: No top padding, since the first element should have a margins (p or
100
 
 * h2).
101
 
 */
102
 
#ivle_padding {
103
 
    padding: 0 1em 1em 1em;
104
 
}
105
 
 
106
 
p.userhello {
107
 
    font-size: .8em;
108
 
    margin: 0;
109
 
}
110
 
.userhello .username {
111
 
    font-weight: bold;
112
 
}
113
 
 
114
 
/* The tabs bar is positioned absolutely, unlike the other header content.
115
 
 * This allows it to be aligned exactly with the bottom of the header bar.
116
 
 */
117
 
#ivleheader_tabs {
118
 
    position: absolute;
119
 
    right: 1em;
120
 
    bottom: 0;
121
 
}
122
 
 
123
 
#ivleheader_tabs p {
124
 
    /* This allows for a single paragraph, currently used to display a warning
125
 
     * about Debuginfo */
126
 
    position: absolute;
127
 
    left: 1em;
128
 
    bottom: 0.5em;
129
 
    margin: 0;
130
 
}
131
 
 
132
 
ul#apptabs {
133
 
    margin: 0;
134
 
}
135
 
 
136
 
ul#apptabs li {
137
 
    display: inline;
138
 
    /*border: 1px solid black;*/
139
 
    /*background-color: #fc6;*/
140
 
    background-image: url(../ivle.webapp.core/images/chrome/tab-left.png);
141
 
    background-repeat: no-repeat;
142
 
    background-position: top left;
143
 
    padding: 0;
144
 
    padding-left: 4px;
145
 
}
146
 
ul#apptabs li a {
147
 
    background-image: url(../ivle.webapp.core/images/chrome/tab-right.png);
148
 
    background-repeat: no-repeat;
149
 
    background-position: top right;
150
 
    padding: 0;
151
 
    padding-right: 4px;
152
 
}
153
 
ul#apptabs li a span {
154
 
    background-image: url(../ivle.webapp.core/images/chrome/tab-mid.png);
155
 
    background-repeat: repeat-x;
156
 
    padding: 0 3px;
157
 
}
158
 
ul#apptabs li:hover {
159
 
    /*background-color: #fd8;*/
160
 
    background-image: url(../ivle.webapp.core/images/chrome/tab-hover-left.png);
161
 
}
162
 
ul#apptabs li:hover a {
163
 
    background-image: url(../ivle.webapp.core/images/chrome/tab-hover-right.png);
164
 
}
165
 
ul#apptabs li:hover a span {
166
 
    background-image: url(../ivle.webapp.core/images/chrome/tab-hover-mid.png);
167
 
}
168
 
/* Currently active app tab */
169
 
ul#apptabs li.thisapp {
170
 
    /*background-color: white;*/
171
 
    /*border-bottom: 1px solid white;*/
172
 
    background-image: url(../ivle.webapp.core/images/chrome/tab-selected-left.png);
173
 
}
174
 
ul#apptabs li.thisapp a {
175
 
    background-image: url(../ivle.webapp.core/images/chrome/tab-selected-right.png);
176
 
}
177
 
ul#apptabs li.thisapp a span {
178
 
    background-image: url(../ivle.webapp.core/images/chrome/tab-selected-mid.png);
179
 
}
180
 
 
181
 
ul#apptabs a {
182
 
    color: navy;    /* Text colour not to change */
183
 
    text-decoration: none;
184
 
}
185
 
 
186
 
/* Terms of Service accept / decline buttons */
187
 
#tos_acceptbuttons {
188
 
    text-align: center;
189
 
}
190
 
 
191
 
/* For system warning messages */
192
 
.system_warning {
193
 
    margin: 1em;
194
 
    padding: 0.5em;
195
 
    border: 1px solid #a22;
196
 
    background: #f88;
197
10
}