From 32b4ba9a5f95249081a34018b1bd4c4b47a27292 Mon Sep 17 00:00:00 2001 From: miss <994230062@qq.com> Date: Wed, 26 Jul 2017 15:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=96=E6=8B=BD=E7=BA=BF=E7=9A=84=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20=E6=8B=96=E6=8B=BD=E6=AF=94=E4=BE=8B=E7=9A=84?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/games/_game_show.html.erb | 6 ++++-- app/views/games/_repository.html.erb | 9 +++++++-- public/stylesheets/css/taskstyle.css | 6 ++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/app/views/games/_game_show.html.erb b/app/views/games/_game_show.html.erb index 35755bb00..529a766f5 100644 --- a/app/views/games/_game_show.html.erb +++ b/app/views/games/_game_show.html.erb @@ -86,11 +86,13 @@
-
+
<%= render :partial => 'games/repository' %>
-
+
+
+
<%= render :partial => 'games/game_results' %> diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb index 8930f2d64..156a7ecd7 100644 --- a/app/views/games/_repository.html.erb +++ b/app/views/games/_repository.html.erb @@ -71,8 +71,13 @@ g_l('codotab_con_'+i).className='undis'; } - n == 2 ? $("#games_repository_contents").removeClass("-bg-black").addClass("-bg-weightblack") - : $("#games_repository_contents").removeClass("-bg-weightblack").addClass("-bg-black"); + if(n==2){ + $("#games_repository_contents").removeClass("-bg-black -flex-basic70").addClass("-bg-weightblack -flex-basic60"); + $("#-bg-change-color").removeClass("-bg-black").addClass("-bg-weightblack"); + }else{ + $("#games_repository_contents").removeClass("-bg-weightblack -flex-basic60").addClass("-bg-black -flex-basic70"); + $("#-bg-change-color").removeClass("-bg-weightblack").addClass("-bg-black"); + } g_l('codotab_con_'+n).className='dis -relative'; g_l('codetab_nav_'+n).className='blacktab_hover'; diff --git a/public/stylesheets/css/taskstyle.css b/public/stylesheets/css/taskstyle.css index dcf1f11a7..4b6469426 100644 --- a/public/stylesheets/css/taskstyle.css +++ b/public/stylesheets/css/taskstyle.css @@ -148,11 +148,13 @@ input.knowledge_frame{height:30px;line-height:30px;border:none;background:#f3f5f .-flex-basic40{flex-basis:auto;} .-flex-basic50{flex-basis:auto;} .b-label{width:4px;cursor:ew-resize;background:#2b2b2b;} -.h-center{height:4px;cursor:ns-resize;background:#33485F;z-index:9999;} +.h-center{height:4px;cursor:ns-resize;background:#33485F;} +.-changebg{height:3px;} .-brother{width:100%;height:100%;position:absolute;left:0;top:0;z-index:999;} .-bg-weightblack{background:#000;} +.-flex-basic70{flex:4 9 auto;} /*---------------------------------------------*/ -.-flex-basic60{flex:4 9 auto;} +.-flex-basic60{flex:none;} .-flex-basic100{flex-basis: 100%!important;} .-header-title{ max-width:500px; font-weight: normal;} .-header-right{ background:#333;border-radius:25px; padding:5px 15px; height: 30px; position: absolute; right:10px;line-height: 30px;}