source: binary-improvements/webserver/css/style.css@ 278

Last change on this file since 278 was 274, checked in by alloc, 9 years ago

Fixes #117: Collapsible menu

  • Property svn:executable set to *
File size: 6.3 KB
RevLine 
[245]1/*========================================
2- Generic page layout
3*/
[244]4
5body {
6 margin: 0;
7 padding: 0;
[249]8 background-image: url('/static/img/background.jpg');
9 background-repeat: no-repeat;
10 background-attachment: fixed;
11 background-position: center;
12 color: orange;
[133]13}
[244]14
[249]15a {
[250]16 color: orangered;
[249]17 text-decoration: none;
18}
19
20a:visited {
[250]21 color: orangered;
[249]22 text-decoration: none;
23}
24
[244]25.adminwrapper {
26 width: 100%;
27 height: 100vh;
[249]28 /*background-color: #408040;*/
[153]29}
[244]30
[245]31.adminnavbar,
[250]32#admincontent {
[244]33 position: absolute;
34 top: 0;
35 bottom: 0;
36}
37
[249]38.invalidinput {
39 background-color: #f00;
40}
[245]41
[249]42
[245]43/*========================================
44- Menu bar
45*/
46
47.adminnavbar {
[244]48 width: 200px;
49 left: 0;
[249]50 border-right: 1px solid rgba(0,0,0,0.3);
51 box-shadow: 3px 0px 14px rgba(0,0,0,0.9);
[250]52 position: fixed;
[244]53}
54
[274]55.adminnavbar.hidenav {
56 width: 0;
57 visibility: hidden;
58}
59
[245]60.adminnavbar > div {
61 margin: 5px;
62}
63
[274]64.adminnavbarhidebutton {
65 position: fixed;
66 left: 200px;
67 color: #000;
68 background-color: rgba(180, 180, 180, 0.5); //#ccc;
69 z-index: 5;
70 top: 50%;
71 border-radius: 5px;
72 transform: translate(-50%, -50%) rotate(+90deg);
73 padding: 0px 5px;
74 font-family: sans-serif;
75 cursor: pointer;
76}
77
78.adminnavbarhidebutton.hidenav {
79 left: 18px;
80 transform: translate(-50%, -50%) rotate(-90deg);
81}
82
[245]83/*----------------------------------------
84- Menu entries
85*/
86
87.adminnavbar ul {
88 margin-top: 5px;
89}
90
91.adminnavbar #adminmenu .menu_button {
92 display: none;
93}
94
95.adminnavbar #adminmenu .menu_button.allowed {
[250]96 display: list-item;
[245]97}
98
99.adminnavbar #adminmenu .menu_button a {
[249]100 color: orange;
[245]101 text-decoration: none;
102}
103
104.adminnavbar #adminmenu .current_tab {
[244]105 font-weight: bold;
106 text-transform: uppercase;
107}
108
[250]109#newlogcount {
110 font-size: 70%;
111 border-radius: 2px;
112 background-color: #f00;
113 color: #fff;
114 padding: 0px 2px 0px 2px;
115 display: none;
116}
117
118#newlogcount.visible {
119 display: inline;
120}
121
[245]122/*----------------------------------------
123- Server stats
124*/
125
126.adminnavbar #serverstats {
127 margin-bottom: 20px;
128 display: none;
[249]129 /* color: orange; */
[245]130 text-decoration: none;
[244]131}
132
[245]133.adminnavbar #serverstats #stats_time {
134 white-space: nowrap;
135}
136
137/*----------------------------------------
138- Session state box
139*/
140
141.adminnavbar #userstate {
[244]142 position: absolute;
[245]143 bottom: 0px;
144 left: 0px;
145 right: 0px;
[249]146 /*background-color: #408040;*/
[244]147}
148
[245]149.adminnavbar #userstate #username {
[244]150 padding-left: 10px;
151}
152
[245]153.adminnavbar #userstate > div {
[244]154 display: none;
155}
156
[245]157
158/*========================================
159- Content area
160*/
161
[250]162#admincontent {
[244]163 position: absolute;
164 right: 0;
165 left: 200px;
[249]166 /*background-color: #408040;*/
[244]167}
168
[274]169#admincontent.hidenav {
170 left: 0;
171}
172
[250]173#admincontent #nopermissionwarning {
[245]174 margin: 20px 50px;
175}
176
[250]177#admincontent .contenttab {
[244]178 position: absolute;
179 top: 0;
180 right: 0;
181 left: 0px;
182 display: none;
183}
184
[250]185#admincontent .current_tab {
[244]186 display: block;
187}
188
189
190
[245]191/*========================================
192- Inventory dialog
193*/
[244]194
[149]195#info {
[163]196 background-color: #aaaaaa;
197 position: absolute;
198 bottom: 10px;
199 left: 10px;
[149]200}
[249]201
202.inventoryButton {
203 cursor: pointer;
204}
205#playerInventoryDialog {
206 display:none;
207}
208.playerInventoryDialog {
209 text-shadow:
210 -1px -1px 0 black,
211 1px -1px 0 black,
212 -1px 1px 0 black,
213 1px 1px 0 black;
214 box-shadow: 0 3px 14px rgba(0,0,0,0.4);
215 color: orange;
216 background: rgba(100,100,100,0.6);
217 border: none;
218}
219.playerInventoryDialog .ui-dialog-buttonpane {
220 display: none;
221}
222.playerInventoryDialog.ui-dialog {
223 z-index:1011 !important;
224}
225.ui-widget-overlay {
226 z-index:1010 !important;
227 opacity: 0.4 !important;
228}
229.playerInventoryDialog .ui-widget-content {
230 background: transparent;
231 color: orange;
232}
233.playerInventoryDialog td {
234 vertical-align: top;
235}
236
[163]237.invTable {
238 table-layout: fixed;
239 padding: 0px;
240 margin: 0px;
241 border-collapse: collapse;
242}
[250]243
[249]244.playerInventoryDialog td.invField {
[244]245 width: 58px;
246 height: 40px;
[163]247 padding: 1px 4px;
248 margin: 0px;
249 border: 1px solid gray;
[249]250 background-color: black;
[163]251 background-size: 58px;
252 background-repeat: no-repeat;
253 background-position: center;
254 vertical-align: bottom;
255 text-align: right;
256 font-size: 14pt;
257 text-shadow:
[249]258 -1px -1px 0 black,
259 1px -1px 0 black,
260 -1px 1px 0 black,
261 1px 1px 0 black;
[163]262}
[245]263
[250]264#equipmentTable .invFieldText {
265 display: none;
266}
267.playerInventoryDialog .invFieldText {
268 display: none;
269}
270.playerInventoryDialog .invFieldText.visible {
271 display: inline;
272}
273.playerInventoryDialog .invFieldQuality {
274 bottom: 0px;
275 height: 5px;
276 left: 0px;
277 position: relative;
278 right: 0px;
279 display: none;
280}
281.playerInventoryDialog .invFieldQuality.visible {
282 display: block;
283}
[245]284
[179]285
[163]286
[249]287/*========================================
288- Map
289*/
[244]290
[249]291.adminmap {
292 /*background-color: #408040;*/
293 background-color: transparent;
294 bottom: 0;
295}
[245]296
[249]297.adminmap .leaflet-control {
298 background-color: rgba(50,50,50,0.6);
299 color: orange;
300 box-shadow: 0 3px 14px rgba(0,0,0,0.5);
301}
[244]302
[249]303.adminmap a,
304.adminmap a:hover,
305.adminmap .leaflet-container a,
306.adminmap .leaflet-container a:hover {
[244]307 text-decoration: none;
[250]308 color: orangered;
[179]309}
310
[244]311.webmap-control {
[179]312 border-radius: 5px;
313 padding: 6px 10px 6px 6px;
[244]314 white-space: nowrap;
[179]315}
316
[249]317.adminmap .leaflet-popup-tip,
318.adminmap .leaflet-popup-content-wrapper {
319 background-color: rgba(50,50,50,0.8);
320 color: orange;
321}
322
[250]323
324
325
326/*========================================
327- Log
328*/
329
330.adminlog {
331 padding: 10px;
332}
333
334.adminlog table {
335 width: 100%;
336}
337
338.adminlog table td {
339 vertical-align: top;
340}
341
342.adminlog table tr.readmark td {
343 border-bottom-width: 2px;
344 border-bottom-color: red;
345 border-bottom-style: dotted;
346}
347
348.adminlog table tr.Log td {
349 color: limegreen;
350}
351.adminlog table tr.Warning td {
352 color: orange;
353}
354.adminlog table tr.Error td {
355 color: red;
356}
357.adminlog table tr.Exception td {
358 color: red;
359}
360
361
362.adminlog .logcol_datetime,
363.adminlog .logcol_uptime {
364 white-space: nowrap;
365 text-align: right;
366}
367.adminlog .logcol_type {
368 white-space: nowrap;
[270]369 text-align: center;
[250]370}
371.adminlog .logcol_msg {
372 width: 100%;
373}
374
375.adminlog .logcol_missed {
376 text-align: center;
377 border-width: 1px 0px;
378 border-style: dashed;
379 border-color: orange;
380}
381
382.adminlog .tracebtn {
383 cursor: pointer;
384}
385.adminlog .tracebtn:after {
386 content: "Show trace...";
387}
388.adminlog .tracebtn.visible:after {
389 content: "Hide trace...";
390}
391
392.adminlog .trace {
393 display: none;
394}
395
396.adminlog .trace.visible {
397 display: block;
398}
399
400.adminlog .trace span {
401 display: block;
402 margin-left: 30px;
403 text-indent: -30px;
404}
405
406.adminlog #markasread {
407 cursor: pointer;
408 border-radius: 5px;
409 background-color: #444;
410 color: orangered;
411 display: inline-block;
412 margin-top: 10px;
413 padding: 3px 5px 3px 5px;
414}
415
416
Note: See TracBrowser for help on using the repository browser.