mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-28 23:13:59 -04:00
Fixed some play subview positioning on iPad.
This commit is contained in:
parent
1f11ad66ed
commit
fb040fd882
3 changed files with 13 additions and 5 deletions
app
|
@ -102,7 +102,7 @@ watchForErrors = ->
|
||||||
#msg += "\nStack: #{stack}" if stack = error?.stack
|
#msg += "\nStack: #{stack}" if stack = error?.stack
|
||||||
unless webkit?.messageHandlers # Don't show these notys on iPad
|
unless webkit?.messageHandlers # Don't show these notys on iPad
|
||||||
noty text: message, layout: 'topCenter', type: 'error', killer: false, timeout: 5000, dismissQueue: true, maxVisible: 3, callback: {onClose: -> --currentErrors}
|
noty text: message, layout: 'topCenter', type: 'error', killer: false, timeout: 5000, dismissQueue: true, maxVisible: 3, callback: {onClose: -> --currentErrors}
|
||||||
Backbone.Mediator.publish 'application:error', message: msg # For iOS app
|
Backbone.Mediator.publish 'application:error', message: "Line #{line} of #{url}:\n#{msg}" # For iOS app
|
||||||
|
|
||||||
window.addIPadSubscription = (channel) ->
|
window.addIPadSubscription = (channel) ->
|
||||||
window.iPadSubscriptions[channel] = true
|
window.iPadSubscriptions[channel] = true
|
||||||
|
|
|
@ -235,9 +235,6 @@ body.ipad #level-view
|
||||||
#code-area, .footer, #thang-hud
|
#code-area, .footer, #thang-hud
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
#goals-view
|
|
||||||
left: 40px
|
|
||||||
|
|
||||||
#level-chat-view
|
#level-chat-view
|
||||||
bottom: 40px
|
bottom: 40px
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,9 @@
|
||||||
background-size: 100% auto
|
background-size: 100% auto
|
||||||
position: absolute
|
position: absolute
|
||||||
bottom: -296px + 40px
|
bottom: -296px + 40px
|
||||||
//left: -webkit-calc(27.5% - 417px / 2)
|
left: 300px
|
||||||
left: -webkit-calc(55% - 417px)
|
left: -webkit-calc(55% - 417px)
|
||||||
|
left: calc(55% - 417px)
|
||||||
// Bounce in
|
// Bounce in
|
||||||
@include transition(1s cubic-bezier(.17,.89,.42,1.36))
|
@include transition(1s cubic-bezier(.17,.89,.42,1.36))
|
||||||
z-index: 2
|
z-index: 2
|
||||||
|
@ -89,3 +90,13 @@
|
||||||
|
|
||||||
button
|
button
|
||||||
margin-left: 10px
|
margin-left: 10px
|
||||||
|
|
||||||
|
body.ipad #level-dialogue-view
|
||||||
|
left: auto
|
||||||
|
right: 0
|
||||||
|
|
||||||
|
&.active
|
||||||
|
bottom: -60px
|
||||||
|
|
||||||
|
.hud-hint
|
||||||
|
visibility: hidden
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue