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

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
/* IVLE - Informatics Virtual Learning Environment
 * Copyright (C) 2007-2008 The University of Melbourne
 * Common Style Sheet
 * This file is redistributable under the terms of the GNU General Public
 * License version 2 or later.
 */

/** Generic styling **/

html, body {
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
    font-family: sans-serif;
    font-size: 0.95em;
}

a {
    color: navy;
    text-decoration: underline;
    cursor: pointer;
}
a:hover, a:active, a:focus {
    color: blue;
}

.error {
    color: #a00;
}

a img {
    border: none;
}

h1 {
    margin: 0;
    padding: 0.5em 0 0 0.5em;
    font-size: x-large;
    font-weight: normal;
}

h2 {
    font-size: larger;
    font-weight: normal;
}

/** Special styles for header section **/

#ivleheader {
    position: absolute;
    background-color: #abf;
    background-image: url(../ivle.webapp.core/images/chrome/topbar-slashes.png);
    background-repeat: repeat-x;
    padding: 0;
    border-bottom: 1px solid black;
    /* IMPORTANT: This 2em is hard-coded elsewhere in this file. Search for
     * #ivleheader.height to update it. */
    height: 2em;
    left: 0;
    right: 0;
    z-index: 1;     /* Background to all, but the body */
}

/* Now we have lots of breadcrumb styles.
   The breadcrumbs are <li>s in a <ul>. Each <li> has either an <a> or
   a <span> inside it, with the label of the breadcrumb. <li>s may also
   have an <ul> inside them, which is a menu that pops up on hover.
 */
ul#ivle_breadcrumbs {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

ul#ivle_breadcrumbs > li {
    background: url(../ivle.webapp.core/images/chrome/breadcrumb-chevron.png) scroll no-repeat right;
    float: left;
    min-height: 29px;
    margin-right: 4px;
    position: relative;
}

ul#ivle_breadcrumbs > li > a {
    display: block;
    padding: 5px 16px 0 0;
    text-decoration: none;
    color: black;
}

/* There is no breadcrumb to the left of the first one, so there is no margin.
   We add a special one. */
ul#ivle_breadcrumbs > li:first-child > a {
    padding-left: 6px;
}

ul#ivle_breadcrumbs > li > span {
    display: block;
    padding: 5px 16px 0 0;
}

ul#ivle_breadcrumbs > li > a:hover {
    text-decoration: underline;
}

ul#ivle_breadcrumbs > li > ul {
    display: none;
    list-style-type: none;

    position: absolute;
    padding-left: 0;
    top: 2em;
    left: -21px; /* Just meets the chevron on the left. */
    width: 200px;

    background: #abf;
    border: 1px solid #dee4ff;
    opacity: 0.95;
}

ul#ivle_breadcrumbs > li:first-child > ul {
    left: 0; /* Don't want the IVLE menu to run off the LHS. */
}

ul#ivle_breadcrumbs > li:hover > ul {
    display: block;
}

ul#ivle_breadcrumbs > li > ul > li {
    padding: 0.3em;
}

/* The IVLE crumb's menu items are extra high, with icons. */
ul#ivle_breadcrumbs > li:first-child > ul > li > a {
    min-height: 24px;
    vertical-align: middle;
    padding-top: 2px;
}

ul#ivle_breadcrumbs > li > ul > li > a {
    display: block;
}

ul#ivle_breadcrumbs > li > ul > li:hover {
    background: #b8c6ff;
}

#ivleheader_text {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5em;
}

/* Note: The body has NO PADDING by default (unlike plain HTML).
 * This is because almost all of the apps need this behaviour.
 * If a particular app needs padding, it should manually wrap all of its
 * output in a <div id="ivle_padding">.
 */
#ivlebody {
    /* This is positioned absolutely so that its content can be positioned
     * absolutely as well, and so height: 100% really means it. */
    position: absolute;
    top: 2em;               /* == #ivleheader.height */
    bottom: 0;
    width: 100%;
    z-index: 0;     /* Behind header */
}

/* Apps can optionally have a <div id="ivle_padding"> as the outermost
 * element, if 1em of padding is desired (otherwise there will be no padding).
 * Note: No top padding, since the first element should have a margins (p or
 * h2).
 */
#ivle_padding {
    padding: 0 1em 1em 1em;
}

p.userhello {
    font-size: .8em;
    margin: 0;
}
.userhello .username {
    font-weight: bold;
}

/* Terms of Service accept / decline buttons */
#tos_acceptbuttons {
    text-align: center;
}