Improved menu hiding behavior and style.
[guacamole.git] / src / main / webapp / styles / client.css
1
2 /*
3  *  Guacamole - Clientless Remote Desktop
4  *  Copyright (C) 2010  Michael Jumper
5  *
6  *  This program is free software: you can redistribute it and/or modify
7  *  it under the terms of the GNU Affero General Public License as published by
8  *  the Free Software Foundation, either version 3 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU Affero General Public License for more details.
15  *
16  *  You should have received a copy of the GNU Affero General Public License
17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 body {
21     background: black;
22     font-family: sans-serif;
23     padding: 0;
24     margin: 0;
25 }
26
27 div.errorDialogOuter {
28     display: table;
29     height: 100%;
30     width: 100%;
31     position: fixed;
32     left: 0;
33     top: 0;
34
35     visibility: hidden;
36 }
37
38 div.errorDialogMiddle {
39     width: 100%;
40     text-align: center;
41     display: table-cell;
42     vertical-align: middle;
43 }
44
45 div.errorDialog {
46
47     opacity: 0.75;
48     background: #D22;
49     border: 1px solid #F44;
50     padding: 1em;
51
52     max-width: 75%;
53     text-align: left;
54
55     display: inline-block;
56 }
57
58 div.errorDialog h1 {
59     margin: 0;
60     margin-bottom: 0.25em;
61     text-align: center;
62 }
63
64 div.errorDialog div.buttons {
65     margin: 0;
66     margin-top: 0.5em;
67     text-align: center;
68 }
69
70 div.errorDialog p {
71     margin: 0;
72 }
73
74
75 #menu {
76     position: fixed;
77     left: 0;
78     top: 0;
79     width: 100%;
80     z-index: 4;
81     background: #FEA;
82     border-bottom: 1px solid black;
83     font-size: 0.8em;
84 }
85
86 #menu.error {
87     background: #D44;
88 }
89
90 .error #state {
91     font-weight: bold;
92 }
93
94 img {
95     border: none;
96 }
97
98 div#display {
99     position: relative;
100     width: 640px;
101     height: 480px;
102     margin-left: auto;
103     margin-right: auto;
104 }
105
106 #menu img {
107     vertical-align: middle;
108 }
109
110 #menu button {
111     vertical-align: middle;
112 }
113
114 #menu span {
115     vertical-align: middle;
116 }
117
118 div#clipboardDiv {
119     display: none;
120     position: absolute;
121     background: #FA5;
122     padding: 1em;
123
124     border: 1px solid black;
125
126     width: 50em;
127     z-index: 2;
128     opacity: 0.5;
129 }
130
131 #menu:hover div#clipboardDiv {
132     opacity: 1;
133 }
134
135 div#clipboardDiv h2 {
136     margin: 0;
137     font-size: 1em;
138 }
139
140 div#clipboardDiv textarea {
141     width: 100%;
142 }
143
144 .guac-display.guac-loading {
145     border: 1px dotted gray;
146     background-image: url('../images/spinner.gif');
147     background-position: center;
148     background-repeat: no-repeat;
149 }
150
151 .guac-display.guac-error {
152     border: 1px dotted red;
153     background-image: url('../images/noimage.png');
154     background-position: center;
155     background-repeat: no-repeat;
156 }
157
158 .guac-hide-cursor {
159     cursor: url('../images/mouse/dot.gif'),url('../images/mouse/blank.cur'),default;
160 }
161
162 div#menuControl {
163     position: fixed;
164     top: 0;
165     left: 0;
166     
167     width: 100%;
168     height: 3px;
169     background: none;
170
171     z-index: 3;
172 }