From 98bd206131601b317028c9dc35c34260e5efc52b Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 28 Mar 2016 18:53:52 +0800 Subject: [PATCH] background fix --- game/game.js | 13 ++++++++++++- layout/default/layout.css | 4 ++-- theme/music/style.css | 5 ----- theme/simple/style.css | 4 ++-- theme/woodden/style.css | 5 ----- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/game/game.js b/game/game.js index f68a61789..a060439c3 100755 --- a/game/game.js +++ b/game/game.js @@ -3128,7 +3128,18 @@ }); } } - + if(window.require){ + lib.node={ + fs:require('fs'), + http:require('http'), + debug:function(){ + require('remote').getCurrentWindow().toggleDevTools(); + } + } + game.download=function(url,folder,onsuccess,onerror){ + + } + } lib.cardSelectObserver=new MutationObserver(function(mutations){ for(var i=0;icanvas.fun{ diff --git a/theme/music/style.css b/theme/music/style.css index a70691438..b20ca5f9a 100755 --- a/theme/music/style.css +++ b/theme/music/style.css @@ -1,13 +1,8 @@ html{ color: white; text-shadow: black 0 0 2px; -} -body{ background: url('grid.png'),linear-gradient(#333333, #222222) fixed; } -body[data-background_color_music='blue']{ - background: url('grid.png'),linear-gradient(#6c7989, #434b55) fixed; -} #system>div>div,#mebg,.control,.player,.card,.avatar,.avatar2,.button,#window>.dialog.popped, .player.unseen .equips:not(*:empty),.menu,#splash>div, #arena.mobile:not(.chess) .player[data-position='0'] .equips,.playerbg{ diff --git a/theme/simple/style.css b/theme/simple/style.css index 520c3a201..d26c50fde 100755 --- a/theme/simple/style.css +++ b/theme/simple/style.css @@ -2,6 +2,8 @@ html{ color: white; text-shadow: black 0 0 2px; min-height: 100%; + background-image: url('../../image/background/shengshi_bg.jpg'); + background-size: cover; } body{ width: 100%; @@ -9,8 +11,6 @@ body{ min-height: 100%; left: 0; top: 0; - background-image: url('../../image/background/shengshi_bg.jpg'); - background-size: cover; position: absolute; display: block; } diff --git a/theme/woodden/style.css b/theme/woodden/style.css index cc1149bc6..b5bf92bce 100755 --- a/theme/woodden/style.css +++ b/theme/woodden/style.css @@ -1,13 +1,8 @@ html{ color: white; text-shadow: black 0 0 2px; -} -body{ background: url('grid.png'),linear-gradient(#6c7989, #434b55) fixed; } -body[data-background_color_wood='black']{ - background: url('grid.png'),linear-gradient(#333333, #222222) fixed; -} #system>div>div,#mebg,.control,.player,.card,.avatar,.avatar2,.button,.dialog>.bar,.menu,#splash>div, #arena.mobile:not(.chess) .player[data-position='0'] .equips,.playerbg{ box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;