File tree Expand file tree Collapse file tree 4 files changed +36
-7
lines changed Expand file tree Collapse file tree 4 files changed +36
-7
lines changed Original file line number Diff line number Diff line change 1+ block variables
12doctype html
23html
34 head
1112 link( href ='assets/css/preview.css' , rel ='stylesheet' )
1213 script( src ='assets/js/preview-client.js' )
1314 meta( name ="viewport" content ="width=device-width, initial-scale=1.0, maximum-scale=1.0" )
14- body
15+ body( class =bodyClass )
1516 #frame .loading.show-title.show-controls
17+ block frame
1618 #pausedScreen
1719 .container
1820 h2 Game is Paused.
Original file line number Diff line number Diff line change 11extends preview-client
22
3+ block variables
4+ - bodyClass= " internal"
5+
36block head
47 include partials/shared
58 link( href ='assets/css/preview.css' , rel ='stylesheet' )
69 script( src ='assets/js/preview.js' )
710
11+ block frame
12+ #browserLink
13+
814block controls
915 button#refreshButton .btn.btn-primary.main ( data-toggle ='tooltip' , title ='Reload' )
1016 span.glyphicon.glyphicon-refresh
Original file line number Diff line number Diff line change 3232 */
3333 this . container = new PreviewContainer ( ) ;
3434
35+ $ ( "#browserLink" ) . text ( "http://" + this . server . address + ":" + this . server . port ) ;
3536 $ ( "#refreshButton" ) . click ( this . refresh . bind ( this ) ) ;
3637 $ ( "#devToolsButton" ) . click ( this . toggleDevTools . bind ( this ) ) ;
3738
6970 this . container . remoteChannel . val ( this . server . title ) ;
7071 this . container . connectLoggingService ( ) ;
7172 }
72-
73- console . log ( "Open location " + this . location ) ;
7473 this . container . open ( this . location ) ;
7574 this . container . once ( 'closed' , this . open . bind ( this ) ) ;
7675 } ;
Original file line number Diff line number Diff line change @@ -111,15 +111,26 @@ body {
111111 }
112112}
113113
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+
114126#frame {
115127 position :fixed ;
116128 z-index :1 ;
117129 width :100% ;
118130 height :100% ;
119- background :#222 ;
120131 top :0 ;
121132 left :0 ;
122-
133+ background : #222 ;
123134 & .show-controls {
124135 .controls {
125136 display :block ;
@@ -138,6 +149,14 @@ body {
138149 }
139150 }
140151 .controls {
152+ .internal & {
153+ .btn.main {
154+ width : percentage (1 / 8 );
155+ & .drop-handle {
156+ width : percentage (1 / 16 );
157+ }
158+ }
159+ }
141160 display :none ;
142161 position :absolute ;
143162 top :0 ;
@@ -154,7 +173,7 @@ body {
154173 display :inline-block ;
155174 height :100% ;
156175 font-size :24px ;
157- width : percentage (1 / 8 );
176+ width : percentage (1 / 6 );
158177 -webkit-box-sizing : border-box ;
159178 box-sizing : border-box ;
160179 border-left : 1px solid rgba (0 ,0 ,0 , 0.6 );
@@ -167,7 +186,7 @@ body {
167186 margin-left :0 ;
168187 padding :0 7px ;
169188 border-left : 1px solid rgba (0 ,0 ,0 , 0.1 );
170- width : percentage (1 / 16 );
189+ width : percentage (1 / 12 );
171190 .arrow-down {
172191 width : 0 ;
173192 height : 0 ;
@@ -219,6 +238,9 @@ body {
219238 position : absolute ;
220239 top :0 ;
221240 bottom :0 ;
241+ .internal & {
242+ bottom :25px ;
243+ }
222244 right :0 ;
223245 left :0 ;
224246 z-index :0 ;
You can’t perform that action at this time.
0 commit comments