forked from erkyrath/glkote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-demo-double.css
141 lines (116 loc) · 2.94 KB
/
sample-demo-double.css
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
/* CSS definitions for putting two Glk contexts on the same web page.
Many of the definitions in glkote.css and dialog.css use #id element
specifiers. This is bad form for exactly this reason -- what if you
need two of them on the page? Well, mostly you don't, except for
this sample-demo-double example. So I have to get hacky.
*/
/* Prefixed definitions from glkote.css: */
#alpha_windowport, #beta_windowport {
width: 100%;
height: 100%;
}
#alpha_errorpane, #beta_errorpane {
position: absolute;
top: 0px;
width: 100%;
background: #FFA0A0;
border-bottom: 3px solid #FF4040;
}
#alpha_errorpane.WarningPane, #beta_errorpane.WarningPane {
background: #B0B0FF;
border-bottom: 3px solid #6060FF;
}
#alpha_errorpane:hover, #beta_errorpane:hover {
background: rgba(255, 160, 160, 0.5);
border-bottom: 3px solid rgba(255, 64, 64, 0.3);
}
#alpha_errorpane.WarningPane:hover, #beta_errorpane.WarningPane:hover {
background: rgba(176, 176, 255, 0.5);
border-bottom: 3px solid rgba(96, 96, 255, 0.3);
}
#alpha_errorcontent, #beta_errorcontent {
font-size: 1.1em;
padding: 1em;
text-align: center;
}
#alpha_loadingpane, #beta_loadingpane {
position: absolute;
width: 100%;
text-align: center;
top: 20%;
}
#beta_windowport .WindowFrame {
background: #EEF8FF;
}
#beta_windowport .GridWindow {
background: #A0D0FF;
}
/* Prefixed definitions from dialog.css: */
#dialogalpha_screen, #dialogbeta_screen {
position: absolute;
width: 100%;
height: 100%;
background: #808080;
opacity: 0.5;
}
#dialogalpha_frame, #dialogbeta_frame {
position: absolute;
width: 100%;
height: 100%;
}
#dialogalpha, #dialogbeta {
position: relative;
width: 400px;
margin-left: auto;
margin-right: auto;
margin-top: 100px;
background: white;
border: 4px solid #AAA;
-webkit-box-shadow: 1px 1px 15px #222;
-moz-box-shadow: 1px 1px 15px #222;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
}
#dialogalpha .DiaCaption, #dialogbeta .DiaCaption {
margin: 16px;
}
#dialogalpha .DiaWarning, #dialogbeta .DiaWarning {
margin: 16px;
font-size: 14px;
font-style: italic;
}
#dialogalpha .DiaInput, #dialogbeta .DiaInput {
margin: 16px;
}
#dialogalpha input, #dialogbeta input {
width: 100%;
}
#dialogalpha .DiaBody, #dialogbeta .DiaBody {
margin: 16px;
clear: both;
}
#dialogalpha select, #dialogbeta select {
width: 100%;
}
#dialogalpha button, #dialogbeta button {
margin-left: 8px;
}
#dialogalpha .DiaButtons, #dialogbeta .DiaButtons {
margin: 16px;
text-align: right;
}
#dialogalpha .DiaButtonsFloat, #dialogbeta .DiaButtonsFloat {
margin-left: 16px;
margin-right: 16px;
float: right;
}
#dialogalpha .DiaDisplayText, #dialogbeta .DiaDisplayText {
font-family: inherit;
height: 200px;
padding: 4px 8px;
overflow: scroll; /* vertical scrollbar is mandatory */
overflow-x: hidden; /* but horizontal scrollbar is forbidden */
font-size: 14px;
white-space: pre-wrap;
background: #FED;
}