File tree 4 files changed +36
-7
lines changed
4 files changed +36
-7
lines changed Original file line number Diff line number Diff line change
1
+ block variables
1
2
doctype html
2
3
html
3
4
head
11
12
link( href ='assets/css/preview.css' , rel ='stylesheet' )
12
13
script( src ='assets/js/preview-client.js' )
13
14
meta( name ="viewport" content ="width=device-width, initial-scale=1.0, maximum-scale=1.0" )
14
- body
15
+ body( class =bodyClass )
15
16
#frame .loading.show-title.show-controls
17
+ block frame
16
18
#pausedScreen
17
19
.container
18
20
h2 Game is Paused.
Original file line number Diff line number Diff line change 1
1
extends preview-client
2
2
3
+ block variables
4
+ - bodyClass= " internal"
5
+
3
6
block head
4
7
include partials/shared
5
8
link( href ='assets/css/preview.css' , rel ='stylesheet' )
6
9
script( src ='assets/js/preview.js' )
7
10
11
+ block frame
12
+ #browserLink
13
+
8
14
block controls
9
15
button#refreshButton .btn.btn-primary.main ( data-toggle ='tooltip' , title ='Reload' )
10
16
span.glyphicon.glyphicon-refresh
Original file line number Diff line number Diff line change 32
32
*/
33
33
this . container = new PreviewContainer ( ) ;
34
34
35
+ $ ( "#browserLink" ) . text ( "http://" + this . server . address + ":" + this . server . port ) ;
35
36
$ ( "#refreshButton" ) . click ( this . refresh . bind ( this ) ) ;
36
37
$ ( "#devToolsButton" ) . click ( this . toggleDevTools . bind ( this ) ) ;
37
38
69
70
this . container . remoteChannel . val ( this . server . title ) ;
70
71
this . container . connectLoggingService ( ) ;
71
72
}
72
-
73
- console . log ( "Open location " + this . location ) ;
74
73
this . container . open ( this . location ) ;
75
74
this . container . once ( 'closed' , this . open . bind ( this ) ) ;
76
75
} ;
Original file line number Diff line number Diff line change @@ -111,15 +111,26 @@ body {
111
111
}
112
112
}
113
113
114
+ #browserLink {
115
+ position :absolute ;
116
+ padding :4px 0 ;
117
+ bottom :0 ;
118
+ z-index :3 ;
119
+ width :100% ;
120
+ text-align : center ;
121
+ color : #555 ;
122
+ .user-select (initial );
123
+ background :#000 ;
124
+ }
125
+
114
126
#frame {
115
127
position :fixed ;
116
128
z-index :1 ;
117
129
width :100% ;
118
130
height :100% ;
119
- background :#222 ;
120
131
top :0 ;
121
132
left :0 ;
122
-
133
+ background : #222 ;
123
134
& .show-controls {
124
135
.controls {
125
136
display :block ;
@@ -138,6 +149,14 @@ body {
138
149
}
139
150
}
140
151
.controls {
152
+ .internal & {
153
+ .btn.main {
154
+ width : percentage (1 / 8 );
155
+ & .drop-handle {
156
+ width : percentage (1 / 16 );
157
+ }
158
+ }
159
+ }
141
160
display :none ;
142
161
position :absolute ;
143
162
top :0 ;
@@ -154,7 +173,7 @@ body {
154
173
display :inline-block ;
155
174
height :100% ;
156
175
font-size :24px ;
157
- width : percentage (1 / 8 );
176
+ width : percentage (1 / 6 );
158
177
-webkit-box-sizing : border-box ;
159
178
box-sizing : border-box ;
160
179
border-left : 1px solid rgba (0 ,0 ,0 , 0.6 );
@@ -167,7 +186,7 @@ body {
167
186
margin-left :0 ;
168
187
padding :0 7px ;
169
188
border-left : 1px solid rgba (0 ,0 ,0 , 0.1 );
170
- width : percentage (1 / 16 );
189
+ width : percentage (1 / 12 );
171
190
.arrow-down {
172
191
width : 0 ;
173
192
height : 0 ;
@@ -219,6 +238,9 @@ body {
219
238
position : absolute ;
220
239
top :0 ;
221
240
bottom :0 ;
241
+ .internal & {
242
+ bottom :25px ;
243
+ }
222
244
right :0 ;
223
245
left :0 ;
224
246
z-index :0 ;
You can’t perform that action at this time.
0 commit comments