Fixed drag issues
This commit is contained in:
parent
7b14b94c58
commit
c84ca65436
@ -1,12 +1,10 @@
|
||||
body { margin:0px; padding:0px; overflow:hidden; font-family:"input_mono_regular",courier,monospace; background:000; -webkit-app-region: drag; -webkit-user-select: none; font-size:12px;}
|
||||
body { margin:0px; padding:0px; overflow:hidden; font-family:"input_mono_regular",courier,monospace; background:000; -webkit-user-select: none; font-size:12px;}
|
||||
|
||||
*:focus {outline: none; }
|
||||
|
||||
yu { display:block; }
|
||||
|
||||
#ronin { background:var(--b_low); height: 100vh; width:100vw; }
|
||||
#ronin #commander { z-index: 9000; top: 15px; position: absolute; left: 15px; width: calc(50vw - 60px); height: calc(100vh - 60px); padding: 15px; border-right: 1px solid #333;}
|
||||
#ronin { background:var(--b_low); height: 100vh; width:100vw; -webkit-app-region: drag; }
|
||||
#ronin #commander { z-index: 9000; top: 15px; position: absolute; left: 15px; width: calc(50vw - 60px); height: calc(100vh - 60px); padding: 15px; border-right: 1px solid #333; -webkit-app-region: no-drag;}
|
||||
#ronin #commander textarea { background: none; width: 100%; height: calc(100vh - 75px); resize: none; font-size: 12px;color: white; }
|
||||
#ronin #commander div#status { color:#555; }
|
||||
|
||||
#ronin canvas#surface { position: absolute; right:15px; top:15px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='10' cy='10' r='1' fill='%23555'></circle></svg>"); background-size: 10px 10px; background-position: -4px -4px;}
|
||||
#ronin canvas#surface { position: absolute; right:15px; top:15px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='10' cy='10' r='1' fill='%23555'></circle></svg>"); background-size: 10px 10px; background-position: -4px -4px; -webkit-user-select: none;-webkit-app-region: no-drag;}
|
@ -1,5 +1,5 @@
|
||||
function Commander (ronin) {
|
||||
this.el = document.createElement('yu')
|
||||
this.el = document.createElement('div')
|
||||
this.el.id = 'commander'
|
||||
this._input = document.createElement('textarea')
|
||||
this._status = document.createElement('div')
|
||||
|
@ -11,7 +11,7 @@ function Ronin () {
|
||||
b_inv: '#ffb545'
|
||||
}
|
||||
|
||||
this.el = document.createElement('yu')
|
||||
this.el = document.createElement('div')
|
||||
this.el.id = 'ronin'
|
||||
|
||||
this.theme = new Theme(defaultTheme)
|
||||
|
Loading…
x
Reference in New Issue
Block a user