From fcfb91607af15c430b15d0928f21bfc795b7256e Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 10 Apr 2019 09:16:15 +0800 Subject: [PATCH 01/28] =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E3=80=81=E7=99=BB=E5=BD=95=E9=BB=98=E8=AE=A4=E4=B8=BA?= =?UTF-8?q?=E8=93=9D=E8=89=B2=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/educoder/edu_account.js | 4 ++-- public/stylesheets/educoder/edu-main.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/javascripts/educoder/edu_account.js b/public/javascripts/educoder/edu_account.js index cc76d053..29750fd3 100644 --- a/public/javascripts/educoder/edu_account.js +++ b/public/javascripts/educoder/edu_account.js @@ -61,10 +61,10 @@ $(function(){ loadProvince(); - if($("#name_loggin_input").length > 0 && $("#name_loggin_input").val().trim() != ""){ + //if($("#name_loggin_input").length > 0 && $("#name_loggin_input").val().trim() != ""){ $("#psd_login_btn").addClass("edu-back-blue"); $("#psd_login_btn").attr("disabled", false); - } + //} }); $(window).resize(function(){ diff --git a/public/stylesheets/educoder/edu-main.css b/public/stylesheets/educoder/edu-main.css index 019b94e3..9912bd61 100644 --- a/public/stylesheets/educoder/edu-main.css +++ b/public/stylesheets/educoder/edu-main.css @@ -170,7 +170,7 @@ input::-ms-clear{display:none;} /*自定义滚动条宽度*/ ::-webkit-scrollbar {width:7px;height:10px;background-color: #F5F5F5; } ::-webkit-scrollbar-track {-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);background-color: #F5F5F5;} -::-webkit-scrollbar-thumb {-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);background-color: #dadada;} +::-webkit-scrollbar-thumb {-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);background-color: #b5b5b5;border-radius: 78px;} .newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;} From 24084c303e80eafb85b69573c228b49ffe7487c9 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 10 Apr 2019 10:02:45 +0800 Subject: [PATCH 02/28] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=88=B6=E4=BD=9C?= =?UTF-8?q?=E8=80=85=E6=8E=92=E5=BA=8F=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/subject.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/subject.rb b/app/models/subject.rb index 59e84ee3..af330e85 100644 --- a/app/models/subject.rb +++ b/app/models/subject.rb @@ -2,7 +2,7 @@ class Subject < ActiveRecord::Base #status :0 编辑中 1 审核中 2 发布 # belongs_to :user has_many :users, :through => :subject_members - has_many :subject_members, :dependent => :destroy, :order => "subject_members.id ASC" + has_many :subject_members, :dependent => :destroy, :order => "subject_members.id DESC" has_many :career_stages, :through => :career_stage_subjects has_many :career_stage_subjects, :dependent => :destroy From ff98ef9463d2d2090ae2023496a2d3645ec9e86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 11 Apr 2019 09:38:35 +0800 Subject: [PATCH 03/28] =?UTF-8?q?=20=E5=AE=9E=E8=AE=AD=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E2=80=9C=E6=95=99=E5=AD=A6=E5=9B=A2=E9=98=9F=E2=80=9D=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/subjects/_subject_members.html.erb | 43 +++++++++++++++++--- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/app/views/subjects/_subject_members.html.erb b/app/views/subjects/_subject_members.html.erb index 461a6544..f0746b46 100644 --- a/app/views/subjects/_subject_members.html.erb +++ b/app/views/subjects/_subject_members.html.erb @@ -1,14 +1,45 @@

教学团队

<% @subject.subject_members.each do |member| %> <% if member.user %> -
- - <%= image_tag(url_to_avatar(member.user), :width =>"80", :height => "80", :class => "radius", :alt=>"头像") %> - -
+
+ + +

+ + + <%= image_tag(url_to_avatar(member.user), :width =>"80", :height => "80", :class => "radius", :alt=>"头像") %> + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ +

<%= member.user.try(:show_name) %>

-

+

<%= member.user.identity == "学生" ? "" : member.user.identity %>

From 9f67c4afb4fe0d1af17450d4fd1fac11400bf16e Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 11 Apr 2019 10:00:10 +0800 Subject: [PATCH 04/28] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E7=9A=84=E8=80=81=E5=B8=88=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=9F=A5=E7=9C=8B=E6=B5=8B=E8=AF=95=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/games_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/games_service.rb b/app/services/games_service.rb index 94ea2f6b..8573c683 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -65,7 +65,7 @@ class GamesService # power判断用户是否有权限查看隐藏测试集(TPM管理员;平台认证的老师;花费金币查看者) -1 表示不能解锁 0 表示需要付费解锁 1表示可以看 # myshixun_manager - myshixun_manager = shixun_manager(shixun, current_user) || (current_user.is_certification_teacher && shixun.test_set_permission) + myshixun_manager = shixun_manager(shixun, current_user) || (current_user.is_certification_teacher) power = (myshixun_manager || game.test_sets_view ) ? 1 : (shixun.test_set_permission ? 0 : -1) # 选择题和编程题公共部分 @@ -862,7 +862,7 @@ class GamesService Rails.logger.warn("last_output is #{latest_output}") # power判断用户是否有权限查看隐藏测试集(TPM管理员;平台认证的老师;花费金币查看者) - power = (shixun_manager(shixun, current_user) || (current_user.is_certification_teacher && shixun.test_set_permission)) ? 1 : (shixun.test_set_permission ? 0 : -1) + power = (shixun_manager(shixun, current_user) || (current_user.is_certification_teacher)) ? 1 : (shixun.test_set_permission ? 0 : -1) # 测试集统计及处理 unless qurey_test_sets.blank? check_power = (power == 1 || game.test_sets_view) From 6c599e362e32eb5e25c3c1aca412a40765f2487c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 11 Apr 2019 10:29:33 +0800 Subject: [PATCH 05/28] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=B0=E5=BB=BA=E2=80=9C=E8=AF=BE=E5=A0=82?= =?UTF-8?q?=E2=80=9D=E3=80=81=E2=80=9C=E5=AE=9E=E8=AE=AD=E2=80=9D=E3=80=81?= =?UTF-8?q?=E2=80=9C=E5=AE=9E=E8=AE=AD=E8=AF=BE=E7=A8=8B=E2=80=9D=E3=80=81?= =?UTF-8?q?=E2=80=9C=E9=A1=B9=E7=9B=AE=E2=80=9D=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_l_course.html.erb | 27 + app/views/users/_l_project.html.erb | 27 + app/views/users/_l_shixun.html.erb | 28 + app/views/users/_p_path.html.erb | 28 + public/stylesheets/educoder/edu-all.css | 6391 ++++++++++++----------- 5 files changed, 3329 insertions(+), 3172 deletions(-) diff --git a/app/views/users/_l_course.html.erb b/app/views/users/_l_course.html.erb index 89dafb0a..4a020502 100644 --- a/app/views/users/_l_course.html.erb +++ b/app/views/users/_l_course.html.erb @@ -15,6 +15,33 @@
+ + +
+ + + +
+
+ + + 新建课堂 + + +
+
+ +
+ + + <%#= render :partial => "users/course_item", :locals => {:objects => @objects} %> <% @objects.each do |object| %> <% allow_visit = @show_all || object.is_public == 1 || User.current.member_of_course?(object) %> diff --git a/app/views/users/_l_project.html.erb b/app/views/users/_l_project.html.erb index bd9d9bd0..1c0792b5 100644 --- a/app/views/users/_l_project.html.erb +++ b/app/views/users/_l_project.html.erb @@ -15,6 +15,33 @@
+ + +
+ + + +
+
+ + + 新建项目 + + +
+
+ +
+ + <% @objects.each do |object| %> <% allow_visit = object.is_public || User.current.admin? || User.current.member_of?(object) %>
diff --git a/app/views/users/_l_shixun.html.erb b/app/views/users/_l_shixun.html.erb index 71c20a3f..a6a91904 100644 --- a/app/views/users/_l_shixun.html.erb +++ b/app/views/users/_l_shixun.html.erb @@ -34,6 +34,34 @@
+ + +
+ +
+ + +
+
+
+
+
+ +
+ +
+
+ + + 新建实训 + + +
+
+ +
+ + <% @objects.each do |object| %>
<% if object.tag_repertoires.first.present? %> diff --git a/app/views/users/_p_path.html.erb b/app/views/users/_p_path.html.erb index 75308783..b4873366 100644 --- a/app/views/users/_p_path.html.erb +++ b/app/views/users/_p_path.html.erb @@ -22,6 +22,34 @@
+ + +
+ + + +
+
+ + + 新建实训课程 + + +
+
+ +
+ + + <% @objects.each_with_index do |object, index| %>
<% if object.status < 2 && !User.current.member_of_subject?(object) %> diff --git a/public/stylesheets/educoder/edu-all.css b/public/stylesheets/educoder/edu-all.css index 449a1bcd..f52da577 100644 --- a/public/stylesheets/educoder/edu-all.css +++ b/public/stylesheets/educoder/edu-all.css @@ -1,3173 +1,3220 @@ -/*--------------------------首页*/ -/*头部导航条样式---2018-03-19--by-cs*/ -.newHeader{background: #24292D;width:100%; height: 60px; min-width: 1200px;position: fixed;top: 0px;left: 0px;z-index:1000;-moz-box-shadow: 0px 0px 12px rgba(0,0,0,0.1); /* 老的 Firefox */box-shadow: 0px 0px 12px rgba(0,0,0,0.1);} -.newHeader .logoimg{margin-top:12px;float: left;width: 36px} -.head-nav{float: left;width: 780px;text-align: center;height: 60px;box-sizing: border-box; min-width: 400px;} -.head-nav ul#header-nav{position: absolute;top: 0px;z-index: 3;height: 60px;box-sizing: border-box;padding-left: 30px;} -.head-nav ul#header-nav li{float: left;height: 60px;line-height: 60px;margin-right: 30px;cursor: pointer;position: relative;font-size: 16px} -.head-nav ul#header-nav li a{display: block;height: 100%;width: 100%;color: #fff} -.head-nav ul#header-nav li a:hover{color: #cccccc;} -.head-nav ul#header-nav li:last-child{margin-right: 0px} -.head-nav ul#header-nav li.active a{color:#459be5 !important;} -.head-nav ul#header-nav li.active p{color:#459be5 !important;} -.head-nav ul#header-nav li p:hover {color: #cccccc;} -.head-nav ul#header-nav li p{display: block;height: 100%;width: 100%;color: #fff} -.head-nav ul#header-nav li.active div ul li a {color: #000 !important;} -.head-nav ul#header-nav li.active div ul li a:hover {color: #FFF!important;} -.head-nav ul#header-nav li.active ul li a {color: #000!important;} -.head-nav ul#header-nav li.active ul li a:hover{color:#FFF !important;} -.head-nav ul#header-nav li.active:after {content: '';position: absolute;left: 0px;top: auto;bottom: 10px;right: auto;height: 2px;width: 14px;background-color: #459be5;} -.nav-img{position: absolute;top:2px;right: -8px;display: none} - -.head-right{box-sizing: border-box;height: 60px; background: #24292D; } -.head-right i{margin-top:12px;float: right;margin-right: 15px;margin-left: 15px;} -/* tpm*/ -.educontent .icon { padding-left: 0px !important; padding-top: 0px !important; padding-bottom: 0px !important;} -em.vertical-line{display: inline-block;width: 2px;background: #999;height: 10px} -.newslight{position: absolute;display: block;background: #FF6800;border-radius:30px;left: 25px;top: 13px;padding:0px 2px;color: #fff;font-size: 11px; - height: 16px;line-height: 15px;min-width: 12px;text-align: center;} - -#ratePanel{position: relative;width: 512px;height: 170px;left: -30px;top: -2px;display: none} -.rateTrangle{display: block;border-width: 8px;position: absolute;top: -8px;left: 35px;border-style: dashed solid dashed dashed;border-color: transparent transparent #fff transparent;font-size: 0;line-height: 0;z-index: 2} -.ratePanelContent{width: 100%;padding: 20px;box-sizing: border-box;height: 160px;background-color: #fff;box-shadow: 0px 0px 5px rgb(202, 193, 153);position: absolute;top: 8px;z-index: 1} -#commentsStar{height: 30px;padding-top: 7px;box-sizing: border-box;} -.ratePanelContent-left{justify-content: center;align-items: center;display: -webkit-flex;height: 100%;} -.greybar{width: 210px;position: relative;height: 8px;background-color: #CDCDCD;border-radius: 4px;margin-left: 10px;float: left;margin-top:8px;} -.yellowBar{position: absolute;top: 0px;height: 8px;border-radius: 4px;left: 0px;background-color: #FFA800;display: block} -.ratePanelContent-left span{display: block;text-align: center} -/*----------------------------------首页查询输入框*/ -.search-all{width: 216px;margin: 0px auto;position: relative;background-color: #24292D;} -.seperateLine { border-left: 1px solid #EAEAEA;float: left;height: 16px;margin-top: 22px; visibility: hidden;} -.search-all .search-input{ width: 181px; outline: none;border: none;height: 30px;margin-top: 15px;border-bottom: 1px solid #eee;background: none;padding-left: 10px;box-sizing: border-box;color: #fff} -.search-all .search-clear{font-size: 14px;display: inline-block;width: 50px;text-align: center;color: #656565;line-height: 60px;cursor: pointer} -.search-icon{color: #656565;display: block;display: inline-block;height: 60px;width: 30px;cursor: pointer;} -.search-icon path{ fill: #4CACFF;} - -/* 右侧内容宽度变化的话,需要调整posi-search right的值*/ -.posi-search{opacity: 1;position: absolute;top: -2px;background: #fff;z-index: 2; right: -241px;} - .posi-search.unlogin{right: -191px;} -.search-content{box-sizing: border-box;position: absolute;height: 300px;background: #fff;border-radius: 0px 0px 5px 5px;width: 100%;left: 0px;top:58px;box-shadow: 0 4px 8px 0 rgba(0,0,0,.2);overflow-y: auto} -.search-title{height: 40px;line-height: 40px;padding-left: 20px;font-size: 12px;color: #bbb;text-align: left} -.search-content a{display: inline-block;width:100%;height: 30px;line-height: 30px;padding:0px 20px;box-sizing: border-box;text-align: left;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;} -/*底部*/ -.newFooter{ position: absolute; bottom: 0; width: 100%; height: 235px;background: #323232; clear:both; min-width: 1200px;z-index:8;left: 0px;} -.footercon{border-bottom:1px solid #47494d;} -.inner-footernav{width: 560px;margin: 0px auto} -.inner-footernav li{float: left;height: 50px;width: 80px;text-align: center} -.inner-footernav li a{width: 100%;text-align: center;line-height: 50px;color: #888} -.inner-footer_con{ width: 1200px; margin: 0 auto;} -.footer_con-p{ color: #888; margin-top:10px;} -/*banner图*/ -.banner{width:100%;height:345px;position: relative;overflow: hidden;border-radius: 10px;} -.banner .img{position: absolute;left:0px;top:0px;} -.banner .img li{float:left;width:1200px;height: 345px;} -.banner .img li a{display: block;width: 100%;height: 100%} -.banner .img li img{width: 100%;height: 345px;} -.banner .num{position:absolute;width:100%;bottom:30px;left:0px;text-align: center;font-size: 0px;} -.banner .num li{width: 7px;height: 7px;background:rgba(225,225,225,0.3);border-radius: 50%;display: inline-block;margin:0 5px;cursor: pointer;} -.banner .num li.on{width: 12px;border-radius: 8px;} -.banner-l{position: absolute;left: -76px;top:0px;width: 76px;text-align: left;height: 100%;width: 76px;display: none;cursor: pointer} -.banner-r{position: absolute;right: -76px;top:0px;width: 76px;text-align: right;height: 100%;width: 76px;display: none;cursor: pointer} -.banner-r img,.banner-l img{padding-top: 148px;} - -/*更多*/ -.moreitem{position: absolute;right: 5px;top:35px;height: 15px;color:#656565} -/*块状列表*/ -.square-list{width: 100%;box-sizing: border-box;margin-top:20px} -.square-Item{position: relative;width:280px;margin-right: 26px;margin-bottom: 26px;float: left;border-radius: 6px;background-color:#fff;box-shadow: 0px 0px 12px rgba(0,0,0,0.1); } -.square-Item:hover{bottom: 3px; box-shadow: 0px 0px 12px rgba(0,0,0,0.3);} -.square-Item:hover .closeSquare{display: block} -.square-Item:nth-child(4n+0){margin-right: 0px;} -.square-Item .square-img{display: block;width: 100%} -.square-Item .square-img img{width: 100%;border-radius: 6px 6px 0px 0px;vertical-align: bottom;height: 210px;} -.square-main{padding:15px 20px;box-sizing: border-box;} -.course-bottom{height: 48px;padding: 10px 0px;box-sizing: border-box} -.squareIconSpan{line-height: 25px} -/*块状列表(小)---列如实训路径详情选择实训*/ -.square-Item.smallSquare{width: 32%;margin-right: 1.33%;margin-bottom: 10px;min-height: 210px; border: none;} -.square-Item.smallSquare:hover{bottom: 0px; box-shadow: 0px 0px 12px rgba(0,0,0,0.1); } -.smallSquare:nth-child(3n+0){margin-right: 0px;} -.partimg{height: 180px;width: 100%;border-radius: 6px 6px 0px 0px;} -/*块状列表上面的绿色标签*/ -.tag-green{position: absolute;left: 0px;top:20px;} -.tag-green .tag-name{display: block;width: auto;background-image: url("/images/educoder/tag1.png");background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;} -/*发送至弹框里的下拉框*/ -.downSelectOption{position: relative;height: 35px;} -.downSelectOption .showOption{background-color: #F4F4F4;border: 1px solid #EAEAEA;width: 100%;padding: 5px 40px 5px 5px;outline: none;height: 100%;box-sizing: border-box;} - -.iconPosition{position: absolute;right: 10px;top:5px;} -.downOptions{display: none;cursor: pointer;position: absolute;left: 0px;width: 100%;top: 35px;padding: 5px 0px;height: 200px;overflow-y: auto;background-color: #fff;box-shadow:0px 1px 4px 1px rgba(76,76,76,0.2);z-index: 2 } -.downOptions p{height: 28px;line-height: 28px;padding-left:20px;box-sizing: border-box;cursor: pointer} -.downOptions p:hover{background-color: #F6F6F6;} - -/*门户左侧导航栏*/ -.user_navlist{position: absolute;left: 0px;width: 160px;top:0px;height: 100%;} -.user_navlist_black{position: relative;width: 100%;height: 100%;border-radius: 8px 0px 0px 8px;background: rgba(0,0,0,0.8);} -.user_navlist_white{position: absolute;left: 160px;background: #FFFFff;width: 622px;min-height: 345px;top: 0px;z-index: 1;display: none;padding:0px 30px;box-sizing: border-box;box-shadow: 0px 0px 10px rgba(76,76,76,0.2);z-index: 99} -.user_navlist_white a{color: #989898;margin-right: 15px;font-size: 14px;display: block;float: left;height: 30px;line-height: 30px;} -.user_navlist_white a:hover{color: #4cacff} -.headIcon{height: 100%;box-sizing: border-box;margin: 0px!important;} -.headIcon:hover i{color: #4cacff!important;} -.black_nav_list{padding: 4px 0px;box-sizing: border-box;height: 100%;} -.black_nav_list li{line-height: 42px;height: 42px;color: #fff;cursor: pointer;} -.black_nav_span{display: block;margin:0px 20px;border-bottom: 1px solid #4B4B4B;padding-left: 8px;color: #FAFAFA} -.welcome_shixun_index:last-child .black_nav_span{border-bottom: none} -.black_nav_list li:hover{background: #fff;} -.black_nav_list li:hover .black_nav_span{color: #05101A!important;} -.black_nav_list li:hover > a{color:#4cacff!important;} -.black_nav_list li:hover .user_navlist_white{display: block} -.navlistpanel-line{border-bottom: 1px solid #EBEBEB;} -.navlistpanel-line:last-child{border-bottom: none;} -.little-title{width: 100%;height: 20px;line-height: 20px;color: #05101a;font-size:15px;margin-bottom: 8px; } -/*排行榜*/ -.ranking{text-align: center;margin-top:40px} -.grade{width: auto;display: inline-block;} -.grade li{float: left;margin:0px 10px;width: 60px;} -.ranking a img{width: 60px;height: 60px;border-radius: 50%;box-shadow: 0px 0px 12px rgba(0,0,0,0.2);} -.mentor-ranking{background-color: #EFEFEF;background-size:100% 100%;} -.rankName{display: block;width: 68px;} -.huangguan{position: absolute;top: -30px;left: 13px;} -/*消息盒子*/ -.news-list{max-height: 150px;overflow-y: auto} - -/* - colorbox - User Style: - Change the following styles to modify the appearance of Colorbox. They are - ordered & tabbed in a way that represents the nesting of the generated HTML. -*/ -#cboxOverlay{background:#fff;} -#colorbox{outline:0;} -#cboxTopLeft{width:25px; height:25px; background:url(/images/colorbox/border1.png) no-repeat 0 0;} -#cboxTopCenter{height:25px; background:url(/images/colorbox/border1.png) repeat-x 0 -50px;} -#cboxTopRight{width:25px; height:25px; background:url(/images/colorbox/border1.png) no-repeat -25px 0;} -#cboxBottomLeft{width:25px; height:25px; background:url(/images/colorbox/border1.png) no-repeat 0 -25px;} -#cboxBottomCenter{height:25px; background:url(/images/colorbox/border1.png) repeat-x 0 -75px;} -#cboxBottomRight{width:25px; height:25px; background:url(/images/colorbox/border1.png) no-repeat -25px -25px;} -#cboxMiddleLeft{width:25px; background:url(/images/colorbox/border2.png) repeat-y 0 0;} -#cboxMiddleRight{width:25px; background:url(/images/colorbox/border2.png) repeat-y -25px 0;} -#cboxContent{background:#fff; overflow:hidden;} -.cboxIframe{background:#fff;} -#cboxError{padding:50px; border:1px solid #ccc;} -#cboxLoadedContent{margin-bottom:20px;} -#cboxTitle{position:absolute; bottom:0px; left:0; text-align:center; width:100%; color:#999;} -#cboxCurrent{position:absolute; bottom:0px; left:100px; color:#999;} -#cboxLoadingOverlay{background:#fff url(/images/colorbox/loading.gif) no-repeat 5px 5px;} -/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */ -#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; } -/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */ -#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;} -#cboxSlideshow{position:absolute; bottom:0px; right:42px; color:#444;} -#cboxPrevious{position:absolute; bottom:0px; left:0; color:#444;} -#cboxNext{position:absolute; bottom:0px; left:63px; color:#444;} -#cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;} - -/*-----------------------------登录-------------------------------*/ -.login_register{height: 100%; width: 100%;background-size: 100% 100%;background-image:url("/images/educoder/logo-bg.jpg");position: fixed;bottom: 0px;right: 0px;min-height: 700px;} -.login_reg{width: 414px;margin:0px auto;background-size: 100% 100%;} -#register_content{border-radius: 5px;background: #FFFFff;width: 100%;text-align: center;margin-top: 75px;padding: 40px 30px;box-sizing: border-box} -#log_reg_content{border-radius: 5px;background: #FFFFff;width: 100%;text-align: center;position: absolute;top: 165px; - left: 0px;padding: 40px 30px;box-sizing: border-box} -.log_nav{border-bottom:1px solid #eaeaea;} -.log_nav li{float: left;text-align: center;font-size: 16px;padding-bottom:15px;margin: 0px 20px;cursor: pointer;} -.log_nav li.active{border-bottom: 2px solid #459be5;} -.log-botton{width: 100%;text-align: center;color: #FFFFff!important;display: block;background: #cbcbcb;height: 45px;line-height: 45px;border-radius: 4px;letter-spacing: 2px;cursor: pointer} -.log-botton:hover{color: #FFFFff!important;} -.log-botton.active{background: #4cacff;} -.gain-code{width: 48%;display: block;float: right;height: 45px;line-height: 45px;text-align: center;background: #CBCBCB;color: #FFFFff!important;border-radius: 4px;cursor: pointer} -.gain-code:hover{color: #FFFFff!important;} -.logo-redirect{display: block} -.logo-redirect img{width: 105px;} - -/*-----------------------------注册、找回密码、绑定邮箱----------------------------*/ -div.title_detail{width: 660px;margin:0px auto;} -div.title_detail img{width:180px} -p.copyright_info{text-align: center; margin-top: 60px;} -.reg_pass{width: 100%;min-width: 1200px;background: url('/images/educoder/account_bg.png') no-repeat top center;min-height: 100%;height: 100%;position: relative;} -.account_main{width: 660px;margin:0px auto;background-color:#FFFFff;box-shadow: 0 1px 12px 0 rgba(0,0,0,.2);border-radius: 8px;} -.account_title{height: 85px;line-height: 85px;text-align: center;background-color: #459be5;color: #FFFFff;border-radius: 8px 8px 0px 0px;font-size: 20px} -.account_safe{background: #fff;color:#05101a;border-bottom: 1px solid #eaeaea} -#account_input,#bind_email{width: 400px;margin: 0px auto;padding: 40px 0px;box-sizing: border-box} -.realheight{padding-top:140px;} -@media screen and (max-height: 1000px) { - .realheight{padding-top:50px;} -} -@media screen and (max-height: 800px) { - .realheight{padding-top:10px;} -} - -/*----------------------------用户资料完善、认证等页面-----------------*/ -.all_submit_btn,.authed_submit_btn{width: 340px;height: 48px;line-height: 48px;text-align: center;color: #FFFFff!important;background: #4cacff;border-radius: 4px;display: block;margin: 20px auto 40px;font-size: 18px;}/*提交、保存*/ -.submit_btn,.submit_save_btn{width: 180px;text-align: center;height:48px;line-height: 48px;border-radius: 4px;color: #FFFFFF!important;} -.submit_btn{float: right;background-color: #4CACFF;} -.submit_save_btn{float: left;background-color: #CDCDCD;} -.authed_submit_btn{background-color: #cccccc;} -.choosefile{width: 120px;height: 70px;border-radius: 4px;text-align: center;line-height: 70px;display: block;color: #FFFFff!important;background: #cccccc}/*选择文件*/ -#upload_img_file{width: 120px;height: 70px;border-radius: 4px;}/*更换照片*/ -.changephotos{display: block;position:absolute;width: 100%;height: 100%;left: 0px;top: 0px;background-color:rgba(0,0,0,0.2);color: #FFFFff!important;line-height: 70px;text-align: center;display: none } -#upload_img_file:hover .changephotos{ display: block} -.apply_link{position: absolute;right: -95px;top: 9px;} -/*账号安全*/ -.account_left{float: left;width: 15%;text-align: center;box-sizing: border-box} -.account_middle{float: left;width: 65%;} -.account_right{float: right} - -/*----------------------------试用申请弹框--------------------------*/ -.reUploadDetail{border:1px solid #dddddd; padding: 0 5px; float:left; resize:none; width:418px; height:80px; overflow-y:auto;outline: none;} - -/*-----------------------------个人主页页面-begin-------------------------*/ -.user-main-half{width: 100%;height: 465px;background: #fff;margin-bottom: 20px;position: relative} -.user-headImg{width: 100%;height: 160px;background-image: url("/images/educoder/userhead.jpg");position: absolute;width: 100%;left: 0px;top:0px} -.user-headCon{position: absolute;width: 100%;left: 0px;top:0px;min-height: 465px;} -.inline{width: auto;display: inline-block;} -.headtab{width: 188px;height: 60px;text-align: center} -.headtab span,.headtab a{display: block;width: 100%;text-align: center;} -.headtab span{color: #989898;font-size: 14px;} -.headtab a{color: #fff;font-size: 24px;} -.headphoto{text-align: center;background: #FFFFff;width: 115px;height: 115px;padding: 3px;border-radius: 50%;position: relative;float: left;margin-top: 19px;box-sizing: border-box} -.headphoto img{width: 109px;border-radius: 50%;height: 109px;} -.headphoto-black{display: none;cursor: pointer;position: absolute;top: 3px;left: 3px;width: 109px;height: 109px;text-align: center;line-height: 112px;border-radius: 50%;background-color: rgba(0,0,0,0.3);color: #fff;} -.myName{display: block;width: auto;color: #05101A;font-size: 24px;height: 28px;line-height: 28px;margin-top: 5px} -.mypost{color: #686868;font-size: 14px;display: block;width: auto;height: 20px;line-height: 20px;} -.mysign-span{margin: 0 auto;color: #05101A;font-size: 14px;display: block;width: 280px;cursor: pointer;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;} -.mysign-input{margin: 0 auto;color: #05101A;font-size: 14px;width: 280px;height: 28px;border: none;outline: none;text-align: center} -.v-h-line{display: block;width: 1px;height: 40px;background-color: #999;margin-top: 12px;} -.navPositon{position: absolute;bottom: 0px;width: 100%;} -.user-nav-item li{float:left;margin:0px 40px;padding-bottom: 7px} -.user-nav-item li a{color: #666;font-size: 16px;} -.user-nav-item li.active{color: #05101A;border-bottom: 2px solid #05101A;padding-bottom: 5px} -.user-nav-item li.active a{color: #05101A;} - - -/*我的实训、进度条*/ -.user-bar{position: relative;width: 100%;height:8px;background-color: #CDCDCD;border-radius: 4px;} -.user-bar p{position: absolute;left: 0px;top: 0px;height: 100%;background-color: #4CACFF;border-radius: 4px;} -/*我的课堂和我的项目,公开梯形*/ -.publicpart{position: absolute;left: 1px;top:1px;width: 0;height: 0;border-left: 80px solid #4cacff;border-bottom: 80px solid transparent;z-index: 1;} -.publicpart.orangeBlack{border-left: 80px solid #FF6800;} -.smalltrangle{display: block;position: absolute;left: 1px;top:1px;border-left: 25px solid #fff;border-bottom: 25px solid transparent;z-index: 2;} -.publicword{transform:rotate(-45deg);text-align: center;color:#FFF;font-size: 14px;display: block;position: absolute;width: 50px;left: 0px;z-index: 3;top: 15px;} - -.closeSquare{position: absolute;width: 100%;left: 0px;top: 0px;text-align: center;background-color: rgba(0,0,0,.5);height: 100%;z-index: 5;display: none;cursor: default} -.substance{padding: 40px 40px 0px 40px;box-sizing: border-box;text-align: center;border-bottom: 1px solid #EAEAEA;height: 250px;} -.subName{line-height: 20px;height: 40px;text-align: center;color: #1A0B00;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;} -/*题库以及资料*/ -.secondNav li{color: #676767;margin-right:40px;float: left} -.secondNav li a:hover{color: #4CACFF} -.secondNav li.active a{color: #4CACFF} -/*题库*/ -.dataBank_Item{margin-bottom: 3px;width: 100%;border-bottom: 1px solid #EEEEEE;padding: 17px 37px 17px 20px;box-sizing: border-box;background: #fff;display: flex;cursor: pointer} -.dataBank_Item:hover{box-shadow:0px 0px 15px rgba(76,76,76,0.2)} -.dataBank_Item:last-child{border:none; } -.dataItemLeft{margin-right: 20px;width: 20px;} -.dataItemRight{flex: 1;} -.edit-del-data{width: 325px;} -.dataTitle{color: #05101A;display: block;float: left;max-width: 400px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;} -.itembottom span.bottomspan{display: block;width: 200px;text-align: left} -.authForBank{min-height: 400px;padding-top: 154px;box-sizing: border-box} -.search_course_list{height: 150px;overflow-y: auto} -.search_course_list li{height: 30px;} -/*资料*/ -.userdata{width: 622px;margin: 0px auto;background: #fff;margin-bottom: 80px;padding: 40px;box-sizing: border-box;border-radius: 4px} -label.infolabel{display: block;float: left;width: 56px;text-align: right;margin-right: 30px;color: #989898;} -.infosign{display: block;flex: 1;float: left;word-wrap: break-word;word-break: break-all;} -.empiric-value{padding:10px 40px;box-sizing: border-box;background-color: #fff;} -.empiric{border-bottom: 1px solid #EBEBEB;} -.empiric li{float: left;padding: 10px 0px;} -.empiric:last-child{border-bottom: none;} -.em-name{width: 13%;text-align: left;} -.em-val{width: 10%;text-align: center;} -.em-time{width: 25%;text-align: center;color: #9A9A9A} -.em-con{width: 52%;text-align: left;color: #666;} - -/*发送题库的筛选*/ -.edu-btn-search{ position: absolute; top:0px; right:15px;} -/*我的试题*/ -.ordernumber{width: 50px;text-align: center;line-height: 40px;display: block;color: #666;font-size: 16px;} - - -/*-------------------------------精选实训-------------------------------*/ -.shaiTitle{display: block;padding-right: 20px;} -.shaiContent li.shaiItem.active{background-color: #4CACFF!important;color:#fff!important;} -.shaiContent li.shaiItem{padding:3px 15px;float: left;border-radius: 4px;color: #4C4C4C;cursor: pointer;margin-right: 15px;display: block} -.shaiContent li.shaiItem:hover{background-color: #F5F5F5} -.shaiAllItem{max-width: 1138px;} -.subshaicontent{display: none;box-sizing: border-box;position: absolute;width: 100%;top: 33px;left: 0px;background-color: #fff;box-shadow:0px 1px 4px rgba(76,76,76,0.2);padding:0px 20px;z-index: 99999;border-radius: 4px;max-height: 800px;overflow-y: auto} -.subshaicontent-part{border-bottom: 1px solid #eee;} -.subshaicontent-part:last-child{border-bottom: none;} -.subshaicontent a:hover,.subshaicontent a.active{color: #4CACFF} -.subshaicontent a{float: left;margin-right: 20px;color: #999;cursor: pointer} - - -.search-new{width: 248px;height:32px;position: relative} -.search-span{display: block;position: absolute;width: 100%;height: 100%;left:0px;top:0px;background-color: #F4F4F4;border: 1px solid #EAEAEA; border-radius: 4px;z-index: 1} -.search-new-input{height: 32px;padding-left: 5px;width: 225px;border: none;box-sizing: border-box;background: none;outline: none;position: absolute;left:0px;top:1px;z-index: 2} -.search-new img,.search-new a,.search-new .searchicon{cursor: pointer;position: absolute;right:2px;top:2px;z-index: 2} -.search-new a{top: 0px} -.search-new a:hover i{color: #4cacff!important;} -.search-new-input:focus + .search-span{background-color: #fff;} - -.groupBox{position: relative;border:1px solid #EEEEEE;height: 35px;width: 140px;border-radius: 4px;cursor: pointer;} -.groupBox > .positionInput{width: 130px;border: none;height: 35px;line-height: 35px;outline: none;padding-left: 5px;box-sizing: border-box;} -.groupBox > .positionIcon{position: absolute;right: 5px;font-size: 14px!important;top: 4px;} - -.controlbtn{width: 36px;height: 15px;background-color: #CCCCCC;border-radius: 7px;cursor: pointer} -.controlblue{width: 0px;height: 15px;background-color: #4CACFF;border-radius: 7px;position: absolute;left: 0px;top:0px;z-index: 1} -.controlring{width: 13px;height: 13px;border-radius: 50%;background-color: #fff;position: absolute;left: 1px;top:1px;z-index: 2} -/*庞门用于实训,站酷黑用于路径*/ -@font-face{ - font-family: 'panmen-webfont'; - src : url('../fonts/panmen-webfont.ttf'); -} -.shixunDes{font-family: 'panmen-webfont';display: block;position: absolute;height: 100%;width: 100%;text-align: center;line-height: 220px;color: #fff;top: 0px;font-size: 24px;background-color: rgba(5,16,26,0.4);border-radius: 6px 6px 0px 0px;} -/*TPM*/ -.shixunDetail_top{width: 100%;background-image: url("/images/educoder/shixun-detail.jpg");background-size: 100% 100%;height: 240px; - justify-content: center;align-items: center;display: -webkit-flex;} -.task-item{margin-top: 30px;padding-bottom: 30px;border-bottom: 1px solid #eee} -.task-item:last-child{border-bottom: none;} -.challengeNav a.active{color: #4CACFF;} -.recomments{margin-bottom: 30px;padding-bottom:30px;margin-top: 30px;border-bottom: 1px solid #eee} -.recomments:first-child{margin-top: 0px;} -.recomments:last-child{margin-bottom: 0px;border:none;padding-bottom: 0px;} -.url-input{border: none;padding: 0px;font-size: 12px;color:#999;outline: none} -.forkNum{display: block;float: left;width: 36px;text-align: center;border-left: 1px solid #4CACFF;background-color:rgba(76,172,255,0.2);color: #4CACFF!important; } -.TPMtaskName{max-width: 500px} -/*任务*/ -.recomment-name{max-width: 222px;display: block} -.task-colspan{min-width:25%;text-align: left;display: block;float: left;color: #999; } -.colspan-grey{border-radius: 12px;background-color: #E6E6E6;padding: 3px 10px;color: #747A7F} -/*新建任务*/ -.challenge_nav{padding: 40px 20px 0px 20px;border-bottom: 1px solid #eee;} -.challenge_nav li{width: auto;float: left;margin-right: 40px;position: relative} -.challenge_nav li.active:after{position: absolute;content: '';width: 50%;background-color: #4CACFF;height: 3px;border-radius: 2px;left: 25%;bottom: 0px;} -.challenge_nav li a{display: block;width: 100%;padding-bottom: 20px;} -.add_choose_type{width: 60px;height: 20px;line-height: 19px;border-radius: 2px;background-color: #eaeaea;color: #999!important;display: block;float: left;text-align: center;margin-top: 4px;} - - - -.task_tag_span{float: left;padding:0px 10px;background-color: #eee;color: #999;border-radius: 2px;margin-right: 10px;margin-bottom: 8px;} -.task_tag_span span{float: left;} -.task_tag_span a{font-size: 18px;margin-left: 5px;float: left;line-height: 28px;height: 28px;cursor: pointer} -.task_tag_span a:hover{color: #666!important;} - -.show_content_label{line-height: 48px} -.show_content_grey{padding: 10px 15px;background-color: #F4F4F4;color: #05101A;text-align: justify;word-break: break-all;border-radius: 4px;width: 100%;box-sizing: border-box} -.del_array{position: absolute;right: -35px;} -.del_array i{margin-left: 4.5px;} -.del_array:hover i{color: #4cacff!important;} -.empty{background: #494A4C;display: inline; margin: 0 2px; padding: 0 3px;} -.tab-key{background: #494A4C;display: inline; margin: 0 2px; padding: 0 6px;} -.show-span{display: block;text-align: right;min-width: 75px;} -/*选择题*/ -.option-item{border:1px solid #e2e2e2;} -.option-item,.add-option-item{display: block;width: 38px;height: 38px;text-align: center;line-height: 38px;border-radius: 4px;cursor: pointer} -.check-option-bg{background: #FF7500;color: #ffffff!important;border: 1px solid #FF7500} -.add-option-input{padding: 5px;width: 90%;height: 40px;min-width: 700px;} -.add-option-input a{display: block;width: 100%;height: 100%;cursor: pointer} -.position-delete{position: absolute;right: -22px;top: 12px;cursor: pointer} -.position-delete:hover i{color: #4cacff!important;} -/*排行榜*/ -.rankings li{line-height: 40px;height: 40px;} -.rankingindex{width: 24px;text-align: center;} -/*合作者*/ -.collaborators-item{border-bottom: 1px solid #eee;cursor: default;padding-top: 30px;padding-left: 20px} -.collaborators-item:last-child{border-bottom: none;} -.collaborators-item-middle{max-width: 300px;padding:0px 0px 20px 20px;} -.upload_select_box{ width: 100%;box-sizing: border-box; height:240px; overflow-y:auto; padding: 10px; background:#F4FAFF; color: #333; } -/*配置*/ -#evaluate_script_show + .CodeMirror{height: 300px;} -.lesson{line-height:40px;} -.lesson_img{position: absolute;right: 10px;top:10px;} -.lesson_checkbox{display: none;position: absolute;top:40px;left: -1px;width: 100%;border:1px solid #eeeeee;background: #FFFFFF;padding-bottom: 5px;height: 150px;z-index: 10} -.lesson_checkbox li{height:20px;padding:5px 10px;clear:both;line-height:28px;margin-bottom: 0;} -.lesson_checkbox li input{float: left;margin: 3px 5px 0px 0px;} -.lesson_content{width:95%;padding:5px; border: none!important;} -/*版本库*/ -.recordnav{background-color:#F0F8FF; vertical-align:middle;} -.pullreques_pullbox{border-bottom: 1px solid #eee;padding: 40px 20px;box-sizing: border-box} -.pullreques_pullbox:last-child{border-bottom: none;} -.pullreques_name{width: 120px;text-align: left;margin-right: 10px} -.pullreques_pull_txt{display: block; margin-left: 10px;max-width:640px; overflow:hidden;white-space: nowrap; text-overflow:ellipsis;} -.versionFileList li{border-bottom: 1px solid #eee;} -.versionFileList li:last-child{border-bottom: none;} - -/*项目版本库--旧版*/ -.new_roadmap_conbox .pullreques_pullbox{padding:0px!important;} - -/* 提交记录详情------文本变更样式 */ -.autoscroll {overflow-x: auto; margin-bottom: 0.2em;} -table.filecontent { border: 1px solid #e2e2e2; border-collapse: collapse; width: 100%;background-color: #fafafa;} -table.text-file{} -.old_line,.new_line,.diff_line {margin: 0px; padding: 0px;border: none; background: #f7f8fa;color: rgba(0,0,0,0.3); padding: 0px 5px; border-right: 1px solid #dce0e6;text-align: right; min-width: 35px; max-width: 50px; width: 35px; -webkit-user-select: none;} -.old_line a,.new_line a,.diff_line a { float: left;width: 35px; font-weight: normal; color: rgba(0,0,0,0.3);} -.line_content{padding: 0px 5px;} -.old{ background:#ffecec; } -.old:hover{ background:#fffaf1; } -.new{ background: #eaffea;} -.new:hover{ background:#fffaf1; } -.commit_id_value{color: white !important;} - - -/*-------------------------------实训路径-------------------------------*/ -.path-head{width: 100%;height: 300px;background-image: url("/images/educoder/path.jpg");background-color: #081C4B;background-size: 100% 100%;} -.pathNavLine{position: absolute;bottom: -8px;width: 100%;} -.path-nav li{float: left;padding: 0px 30px;height: 42px;} -.path-nav li a{color:#fff;font-size: 16px;display: block; height: 40px;} -.path-nav li.active a{border-bottom: 3px solid #4CACFF;color:#4CACFF;} -/*---实训路径详情----*/ -.subhead{width: 100%;margin-bottom:40px;background-size: 100% 100%;background-image: url("/images/educoder/path-detail.jpg");height: 240px; - justify-content: center;align-items: center;display: -webkit-flex;} -.subhead_content{width: 1200px;margin: 0px auto;} -.pathInfo li{text-align: center;float: left;margin-right: 25px;min-width: 40px;} -.pathInfo li span{display: block;} -.produce-content{padding: 40px 20px;background-color: #fff;box-sizing: border-box} - -.subject-produce{outline: none;line-height: 1.5;width: 100%;border: none;background: none;height: 30px;} -.stage-info-line:hover{background-color:rgba(142,212,254,0.3)} -.lesson-saved-list-item{border-bottom: 1px solid #EBEBEB;padding: 37px 0px} -.title-line{padding: 0px 20px;} -.paragraph{height: 50px;padding: 10px 20px 10px 47px;box-sizing: border-box} -.paragraph:hover{background-color:#F0F8FF;} -.lesson-saved-list-item:last-child{border:none;} -.click_add{text-align: center;height: 90px;line-height: 90px;background-color: #fff;border-top: 1px solid #EBEBEB;cursor: pointer} -.mustlearn{padding: 40px 25px;} -.teacherTeam{padding: 40px 25px 0px 25px;} -.teacherTeamItem{border-bottom: 1px solid #EAEAEA;padding: 40px 0px;} -.teacherTeamItem:first-child{padding-top: 0px!important;} -.teacherTeamItem:last-child{border: none;} -.addTeamMember{height: 70px;text-align: center;line-height: 70px;} -.adding-stage-item{padding: 0px 20px 20px 50px;position: relative} -.colseThispart{position: absolute;right: -6px;top:-6px;z-index: 2;line-height: 15px;} -.progressRing{display: block;width: 16px;height: 16px;float: left;position: relative;z-index: 1; } -.progressRing-over{color:#459BE6;position: absolute;top: -10px;} -.progressRing-part{color: #B3DCFF;position: absolute;top: -10px;} - -.upline{content: '';position: absolute;left: 7px;bottom: 15px;right: auto;height: 18px;width: 1px;} -.downline{content: '';position: absolute;left: 7px;top: 15px;right: auto;height: 18px;width: 1px;} - -.myProgressNav{width: 100%;position: relative;height: 10px;border-radius: 5px;background-color: #EAEAEA;} -.myProgressGreen{position: absolute;top: 0px;left: 0px;border-radius: 5px;height: 100%;background-color: #29BD8B} - -.lesson-saved-list-item .title-line .edit:hover,.lesson-saved-list-item .title-line .delete:hover{color:#ff7500!important;} -li.li-width63{width: 63%;text-align: left} -li.li-width20{width: 20%;text-align: left} -li.li-width15{width: 15%;text-align: left} -li.li-width7{width: 7%;text-align: left} - -/*-----------------------------在线课堂动态----------------------------------*/ -.courseHead{width: 100%;margin-bottom:40px;background-size: 100% 100%;background-image: url("/images/educoder/course-detail.jpg");height: 240px; - justify-content: center;align-items: center;display: -webkit-flex;} -.invite-tip{position: absolute;top: -5px;right: 140px;color: #fff; box-sizing: border-box;width: 170px;text-align: center;border-radius: 2px;background-color: rgba(5,16,26,0.6)} -.inviteTipbtn a{font-size:14px;width: 100%;height: 30px;line-height: 30px;display: block;color: #747A7F;background-color: rgba(5,16,26,0.4)} -.inviteTipbtn a:hover{color: #4cacff!important;} -.top-black-trangle{display: block;border-width: 8px;position: absolute;top: -16px;right: 4px;border-style: dashed solid dashed dashed;border-color: transparent transparent rgba(5,16,26,0.6) transparent;font-size: 0;line-height: 0;} -.right-black-trangle{display: block;border-width: 8px;position: absolute;top: 10px;right: -16px;border-style: dashed solid dashed dashed;border-color: transparent transparent transparent rgba(5,16,26,0.6);font-size: 0;line-height: 0;} -.activity-nav.active{color: #4CACFF!important;} - - -.courseNewNum{display: block;background: #FF6800;border-radius:30px;padding:0px 2px;color: #fff!important;font-size: 11px; - height: 16px;line-height: 15px;min-width: 12px;text-align: center;margin-top: 17px;} -.devide_class{max-width: 112px;} -.edu-class-leftnav{ background:#fff;} -.edu-class-leftnav li{ height: 50px;line-height: 50px;font-size:16px;cursor: pointer;position: relative;} -.edu-class-leftnav li a{padding-left: 42px;width: 100%;box-sizing: border-box;} -.edu-class-leftnav li:hover{background-color: #4CACFF} -.edu-class-leftnav li:hover a{color: #FFF!important;} -.edu-class-leftnav li:hover a,.edu-class-leftnav li:hover i{color: #fff!important;} -.edu-class-leftnav li:hover span{color: #FFF;} -.edu-class-leftnav li.active:before{content: '';position: absolute;left: 0px;top: 14px;bottom: 0;right: auto;height: 24px;width: 2px;background-color: #459be5;} -.edu-class-leftnav li.active:hover{color: #fff; } -.edu-class-leftnav li.active:hover .activity-left-name,.edu-class-leftnav li.active:hover i,.edu-class-leftnav li:hover .groupNum{color: #fff!important;} -.edu-class-leftnav li.active:hover .courseNewNum{color:#fff!important;} - -/*动态*/ -.activity-i{height: 32px;line-height: 32px;} -.activity-list{padding-left: 20px;} -.activity-item{padding: 30px 0px;display: flex;border-top: 1px solid #eee;} -.activity-item:first-child{border-top: none;} -p .activity-item:first-child{border-top: 1px solid #eee;} -.activity-title{max-width: 530px;} -.activity-tag{display: block;float: left;line-height: 48px;color: #999;font-size: 16px;width: 32px} -.loadMore{width:100%;background-color: #fff;color:#4cacff!important; text-align:center; display:block;letter-spacing: 1px;box-sizing: border-box;height: 110px;line-height: 110px;} -/*课堂设置*/ -.upperLeft{min-width:400px;} -.upperLeft-s{padding-left: 75px;} -.del-childName{position: absolute;right: -37px;top: 7px} -.addChildName{position: absolute;right: -178px;top: 10px;} -.activity-left-name{display: block;max-width: 126px;float: left; } - -/*帖子列表*/ -.panel-inner-fourm{ padding:15px 20px; border-bottom:1px solid #eee;} -.panel-inner-fourm:hover{ background:#EFF9FD;} -/*---------------------------------我的粉丝和我的关注-------------------*/ -.focus_fan_list{border-bottom: 1px solid #EBEBEB;padding: 20px 0px;display: flex} -.focus_fan_list:last-child{border-bottom: none;} -.double_f_middle{width: 56%;} - -/*如何获得金币弹框*/ -.knowThis{width: 100%;height: 45px;line-height: 45px;text-align: center;border-top: 1px solid #eee} - -/*课堂资源列表*/ -#resource_list .homepageRight{width:100%!important;box-sizing: border-box;} -.homepageRightBanner {width:100%!important; margin:0px auto; float:right; background-color: #ffffff; padding:25px 15px;border-bottom:1px solid #eee;box-sizing: border-box; } -.resources {width:100%!important;padding: 15px;float: left;box-sizing: border-box;border-top: 1px solid #EEEEEE} -.sources-bg:hover{background: #EFF9FD} -.resources:last-child{border-bottom: none;} -.homepagePostBrief{display: flex} -.homepagePostDes{flex: 1;position: relative;} -.homepagePostBrief {width:100%!important; margin:0px auto; position:relative;} -/*资源标签*/ -#sourceTag li,.bank_list_Tag{font-size: 12px;color: #4E7A9B;background-color: #E5F3FF;padding: 0px 4px;height: 20px;line-height: 20px; margin-left: 5px;display: inline-block;cursor: pointer;margin-bottom: 5px;} -#sourceTag li a{color: #4e7a9b!important;} -#sourceTag li.active{background-color: #4CACFF;color: #fff;} -#sourceTag li.active a{background-color: #4CACFF;color: #fff!important;} -/*题库的标签--和资源标签样式相似*/ -.bankTag{max-height: 82px;overflow-y: auto} -.bankTag #sourceTag li{margin-left: 0px;margin-right: 5px;} -.bank_list_Tag{cursor: default} -/*编辑试卷放到试卷预览tab内容里*/ -.editExerciseBtn{position: absolute;right: 15px;top: 10px;} - -.sourseLineTag li{display: inline-block;margin-right: 5px;} -.sourseLineTag li span{display: inline-block;font-size: 12px;cursor: default;color: #4E7A9B;background-color: #E5F3FF;padding: 0px 4px;height: 20px;line-height: 20px;} -.sourseLineTag li a{display: inline-block;margin-left: 3px;color: #cccccc;} -.sourseLineTag .addTagBtn{font-size: 12px;border:1px solid #4CACFF;color: #4CACFF;height: 20px;line-height: 20px;padding: 0px 5px;border-radius: 4px;} -/*---------------------------------消息页----------------------------------*/ -.new-info{height: 18px;min-width: 18px;line-height:18px;padding:0px 2px;box-sizing: border-box;text-align: center;background-color: #ff6800;color: #fff;border-radius: 30px;display: block;position: absolute;right: 40px;top:13px;font-size: 12px; } -.ridingNav li{float: left;margin:0px 20px;color:#999;font-size: 16px;height: 60px;line-height: 60px;position: relative;} -.ridingNav li a{display: block;width: 100%;height: 100%;color: #999999;} -.ridingNav li.active a{color: #05101A;} -.ridingNav li.active:after{content: '';position: absolute;bottom: 0px;width: 100%;height: 2px;border-radius: 1px;background-color: #05101A;} - -.new-point{display: block;width:4px;height: 4px;border-radius: 50%;background-color: #ff6800;} -.ridinglist:hover{background-color: #F5F5F5;} -.ridinglist .ridinglist-sub{border-bottom: 1px solid #F5F5F5;padding: 25px 0px;cursor: pointer;} -.ridinglist:last-child .ridinglist-sub{border-bottom: none;} -/*私信*/ -.private-item{padding: 30px 30px 30px 25px;border-bottom: 1px solid #F5F5F5;cursor: pointer} -.private-item:hover{background-color: #f5f5f5;} -.private-item:last-child{border-bottom: none;} -.writeLetter_Info{position: relative;width: 100%;height: 260px;background-color: #F6F6F6;cursor: default;border-radius: 3px;} -.writeLetter_text{width: 100%;border:none;background-color:#F6F6F6;outline: none;height: 100%;padding: 5px 5px 30px 5px;border: 1px solid #EAEAEA; box-sizing: border-box; resize: none;} -.longchar{position: absolute;background-color:#F6F6F6;bottom: 1px;color: #999999;right: 10px;} -.writeLetter_text:focus + .longchar{background-color: #fff;} -.recently_person{position: absolute;width: 100%;top: 35px;max-height: 300px;overflow-y: auto;border-radius: 4px;box-shadow: 0px 1px 6px rgba(76,76,76,0.2);left: 0px;z-index: 1;background-color: #fff;cursor: pointer;display: none} -.recently_item{padding: 10px 20px;} -.recently_name{float: left;line-height: 48px;display: block} -.recently_item:hover{background-color: #F9F9F9;} -/*私信对话框*/ -.private-list{min-height: 660px;max-height: 810px;overflow-y: auto} -.private-list .private-part{padding-left:20px;cursor: pointer} -.private-part:hover{background-color: #F5F5F5;} -.private-part.active{background-color: #F5F5F5;} -.privatePartName{max-width: 70px;float: left} -.newLetter{display: block;width: 4px;height: 4px;background-color: #FF6800;border-radius: 50%;float: right} -.part-line{padding: 30px 20px 30px 0px;border-bottom: 1px solid #f5f5f5;} -.private-part:last-child .part-line{border: none;} - -.dialogPanel{padding: 0px 20px;height: 545px;overflow-y: auto} -.letter-time{width: auto;padding: 0px 10px;background-color: #999;color: #fff;border-radius: 10px;height: 20px;line-height: 20px;} -.OtherSide,.ThisSide{margin-top: 30px;} -.OtherSide-info .trangle{position: absolute;left: -5px;top: 10px;width: 0;height: 0px;border-top: 6px solid transparent;border-right: 5px solid #f5f5f5;border-bottom: 6px solid transparent} -.OtherSide-info .sms{max-width: 300px;padding:10px 15px;box-sizing: border-box;background-color: #F5F5F5;color: #666;border-radius: 6px;text-align: justify} -.OtherSide-info .sms img{max-width: 80px;cursor: pointer} -.ThisSide-info .sms p{line-height: 20px;} -.sms{min-height: 48px;} -.ThisSide .trangle{position: absolute;right: -5px;top: 10px;width: 0;height: 0px;border-top: 6px solid transparent;border-left: 5px solid #4CACFF;border-bottom: 6px solid transparent} -.ThisSide-info .sms{max-width: 300px;padding:10px 15px;box-sizing: border-box;background-color: #4CACFF;color: #fff;border-radius: 6px;text-align: justify} -.ThisSide-info .sms p{line-height: 20px;} -.ThisSide-info .sms img{max-width: 80px;cursor: pointer} -/*作品列表*/ -.check_on{background:#4CACFF;color: #ffffff!important;border-radius: 12px;} -/*作业问答*/ -.work_search_ul li span{display:block;float: left;height: 38px;line-height: 38px} -.work_search_ul .magic-radio + label,.work_search_ul .magic-checkbox + label{top:5px} -/*查重详情*/ -.rangeInfo{background-color:#E6F3FF;} -.rangeInfo ul{position: relative;height: 30px; line-height: 30px;} -.rangeInfo ul li{display: inline-block;text-align: center;margin-right: 40px} -.rangeInfo ul:first-child:after{position: absolute;right:0px;top: 0px;content: "";height: 30px;background-color: #4CACFF;width: 1px; } -.rangeItem{padding: 10px 0px 10px 0px;} -.t-middleLine:before{position: absolute;content: "";left: -25px;width: 1px;height: 28px;top: 0px;background-color: #CDCDCD;}/*表格中间的分界线*/ -.n-line li{border-bottom: none!important;}/*去掉公用代码中的样式*/ - -/*上传文件的进度条*/ -.ui-progressbar{height: 15px;float: left;width: 140px;margin-top: 11px;} - - -/*-------------------竞赛----------------------*/ -#contenter{min-width: 1200px;} - -#competition-content,#competition-db-content{background-color: #EFEFEF} -#competition-content img,#competition-db-content img,#ccfPage img{vertical-align: bottom;} -#hnpage1{background: url('/images/educoder/competition/logo_1.jpg') no-repeat top center;min-height: 820px;} - -#competition-header{background: linear-gradient(to right, #29bd8b , #13dc98);height: 60px;width: 100%;padding-right: 40px;box-sizing: border-box;position: fixed;top: 0px;left: 0px;width: 100%;z-index: 1000;} -.nav-game{position: relative;} -.nav-game li{position: relative;float: left;width: 110px;height: 60px;line-height: 60px;text-align: center;box-sizing: border-box} -.nav-game li a{color:#fff;font-size: 16px;} -.nav-border{position: absolute;bottom: 0px;width: 100%;height: 3px;} -#nav-white{height: 3px;background-color: #fff;position: relative;width: 42px;left: 34px;} - -.intoGame{background-color: #efefef;width:100%;position: relative;min-height: 2200px;} -.top-com{position: relative;width: 100%;top: 285px;margin: 0px auto;} -.partGame{width:900px;margin:60px auto;background-color: #fff;padding:70px;box-sizing: border-box } -.partGame:first-child{margin-top:0px;} -.partborder{position: relative;width: 100%;border:1px solid #eee;border-radius: 3px;padding: 60px;box-sizing: border-box;text-align: center} -.gemeName{position: absolute;font-weight: bold;font-size: 24px;top: -24px;background-color: #fff;display: block;left: 50%;margin-left: -45px;text-align: center;padding: 0px 5px;} -.enterTo a{float: left;width: 180px;color: #fff!important;background-color:#cdcdcd;font-weight: bold;font-size: 22px;text-align: center;margin-right:25px;cursor: default;height: 60px;line-height: 60px;border-radius: 35px;} -.enterTo a:last-child{margin-right: 0px;} -.partTime .pro,.partTime .time{color: #666;font-size: 17px;} -.action{color: rgb(5, 16, 26);} -.partTime.active .pro,.partTime.active .time{color: #666;} -/*开源标注组*/ -.partGame.largepart{width: 1010px;} -.partGame.largepart .partborder{padding: 56px 40px 40px 40px;} -.partGame.largepart .partborder .enterTo a{width: 249px;margin-right: 20px;font-size: 20px;font-weight: normal} -.enterTo span.f-cart{width: 246px;text-align: center;color: #29BD8B;font-size: 20px;line-height: 20px;float: left;display: block;font-weight: bold;margin-right: 20px;} -.enterTo span.d-cart{box-sizing:border-box;width: 246px;text-align: center;color: #989898;font-size: 16px;line-height: 22px;float: left;display: block;margin-right: 20px;} -.partGame.largepart .partborder .enterTo a:last-child,.enterTo span.f-cart:last-child,.enterTo span.d-cart:last-child{margin-right:0px;} -/*.partTime.active .time{color:#ff3232; }*/ -.partTime.active .enterTo a{cursor: pointer;background-color: #29bd8b;box-shadow: 0px 10px 10px rgba(41,189,139,0.2)} -a.enterLink{cursor: pointer;color: #418CCD!important;background: none!important;box-shadow: none!important;font-size: 14px!important;text-align: left;line-height: 20px;height: 20px;padding-bottom: 1px;border-bottom: 1px solid #418ccd;width: auto!important;border-radius: 0px;} -.codeRemark{display: block;height: 30px;border-radius: 14px;width: 100%;background-color: #cdcdcd;color: #fff!important;text-align: center;line-height: 30px;} -.timered{color:#ff3232!important; } -.wordblack{color:rgb(5, 16, 26)!important;} - -.Enroll-competition1,.Enroll-competition2,.Enroll-competition3{width: 140px;color: #cdcdcd!important;font-weight: bold;font-size: 18px;text-align: center;margin:0px 20px;cursor: default} -.Enroll-competition1.active,.Enroll-competition2.active,.Enroll-competition3.active{color: #13dc98!important;cursor: pointer} - -.position-shixun{position: absolute;z-index: 2;bottom: 40px;text-align: center;width: 100%} -.ccf-position-shixun .shixun-btn,.position-shixun .shixun-btn,.ccf-position-shixun-2 .shixun-btn{display: block;float: left;width: 160px;text-align:center;letter-spacing: 1px;height: 40px;line-height: 40px;color:#fff!important;margin:0px 20px;background: linear-gradient(to right, #ff8634 , #ff9d5b);box-shadow: 6px 4px 11px #f7ece4;} - -@media screen and (max-width: 1600px) { - - .position-shixun{bottom: 30px;} - .ccf-position-shixun .shixun-btn,.position-shixun .shixun-btn,.ccf-position-shixun-2 .shixun-btn{width: 150px;letter-spacing: 0px;height:40px;line-height: 40px;} - .ccf-position-shixun{top:242px!important;} - .ccf-position-shixun-2{bottom: 240px!important;} -} -@media screen and (max-width: 1400px) { - - .position-shixun{bottom: 25px;} - .ccf-position-shixun .shixun-btn,.position-shixun .shixun-btn,.ccf-position-shixun-2 .shixun-btn{width: 130px;letter-spacing: 0px;height:30px;line-height: 30px;} - .ccf-position-shixun{top:200px!important;} - .ccf-position-shixun-2{bottom: 200px!important;} -} -.announcement-list{padding: 10px 80px 40px;} -.announcement{padding:20px 0px;border-bottom: 1px solid #eee;} -.announcement:last-child{border-bottom: none;} - -/*报名入口页*/ -.enroll-t{min-height: 350px;position: relative;justify-content: center;align-items: center;display: -webkit-flex;} -.enroll-b{background:url('/images/educoder/competition/enroll-2.png') no-repeat top center; min-height: 1100px} -.enroll-info{margin: 0px auto;min-width: 520px;max-width: 580px;height: 40px;line-height: 40px;background-color:#f6f6f6;border-radius: 20px;padding: 0px 60px;box-sizing: border-box } - -.immediatelyEnroll{display: block;width: 130px;text-align:center;letter-spacing: 1px;height: 34px;line-height: 34px;color:#fff!important;background: linear-gradient(to right, #ff8634 , #ff9d5b);box-shadow: 6px 4px 11px #f7ece4;} -.enrollShowPanel{width: 915px;min-height: 300px;box-shadow: -8px 9px 12px 1px rgba(116,122,127,0.2);margin: 0px auto;margin-left: 18px;} -.enrollShowTitle{position: absolute;top: -39px;width: 100%;left: 0px;text-align: center} -.enrollShowNum{font-size: 18px;height: 40px;line-height: 40px;box-shadow: 0px -3px 4px rgba(109,109,109,0.15);background: #fff;width: 150px;text-align: center;color: #21B351;display: block} -.enrollList{height: 670px;box-shadow:0px 0px 4px rgba(0,0,0,0.1);width: 100%;margin-top: 40px;} -.enrollItemContent{padding: 0px 10px;width: 100%;box-sizing: border-box;height: 100%;overflow: hidden;} -.enrollItemContent li{border-bottom: 1px solid #EAEAEA;padding: 20px;line-height: 20px} -.team-p-s{width: 20px;height: 20px;line-height: 12px;text-align: center;border-radius: 50%;background: #BCBCBC;color: #fff;float: left} -.enroll-in-b{display: block;border:4px solid #fff;width: 216px;height: 62px;text-align: center;line-height: 62px;margin-right: 220px;font-size: 32px;color: #fff!important;background: #006542} -.enroll-in-b-green{background: #29BD8B} - -.joinTeamInfo{background-image:url('/images/educoder/competition/enroll-item.png');height:202px;width: 934px;padding: 10px 35px;box-sizing: border-box;margin: 0px auto;padding-top: 60px;} -.joinTeamInfo span,.joinTeamInfo a{line-height: 30px;} -/*弹框*/ -.c-l-box{background: rgba(139,163,183,0.08);height: 226px;overflow-y: auto;width: 100%;padding: 20px 20px 0px 20px;box-sizing: border-box;} -.c-l-box li,.c-r-box li{margin-bottom: 15px;line-height: 25px;} -.l-column-1,.l-column-2,.l-column-3{text-align: left;float: left;width: 100px;} -.l-column-1{width: 80px} -.select-arrow i{color: #B2DAFB!important;} -.select-arrow i:hover{color: #4CACFF!important;} -.c-r-box{height: 226px;padding: 20px 20px 0px 20px;overflow-y: scroll;} - -.pointerTeacher{position: absolute;width: 100%;background:#fff;border-radius:2px;box-shadow:0px 2px 10px 0px rgba(76,76,76,0.2);height: 184px;z-index: 3;top: 35px;overflow-y: auto} -.pointerTeacher li .pt-s{width: 100px;text-align: center;float: left;margin-right: 10px;line-height: 34px} -.pointerTeacher li .pt-s-n{width: 120px;text-align: center;float: left;margin-right: 10px;line-height: 34px} -.pointerTeacher li .pt-m{width: 260px;text-align: center;float: left;line-height: 34px} -.pointerTeacher li .pt-l{width: 369px;text-align: center;float: left;line-height: 34px} -.pointerTeacher li{cursor: pointer} -.pointerTeacher li:hover{background-color: #F6F6F6;} -.pointerTeacher .added{background-color: #FFF0E5!important;} - -.personListLine{cursor: default} -.personListLine > span{float: left;text-align: center;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;} -.t-c-1{width: 120px;} -.t-c-2{width: 150px;text-align: left!important;} -.t-c-3{width: 210px;} -.t-c-4{width: 200px;} -.t-c-5{width: 80px;} -/*东北赛区*/ -#dbpage1{background: url('/images/educoder/competition/db/db1.jpg') no-repeat top center;min-height: 820px;} -/*主页、列表页*/ -.competitionHome{background: url('/images/educoder/competition/home/homepage.jpg') no-repeat top center;min-width: 1200px;} -.homePageBtn{position: absolute;width: 100%;top: 510px;} -.homeBtn{display: block;float: left;border-radius: 30px;width: 168px;height: 60px;line-height: 60px;background-color: #21B351;font-size: 30px;color: #fff!important;text-align: center} - -.competitionsList-item{width: 50%;float: left;box-sizing: border-box;} -.competitionsList-item:nth-of-type(odd){padding-right: 10px;} -.competitionsList-item:nth-of-type(even){padding-left: 10px;} -.competition-Img{width: 100%;height: 340px;} -.competition-Img img{border-radius: 4px 4px 0px 0px;} -.status-tag {display: block;height: 30px;line-height: 30px;color: #fff;padding: 0px 20px;} -.status-blue .status-tag{background-color: #4CACFF;} -.status-orange .status-tag{background-color: #ff6800;} -.status-grey .status-tag{background-color: #B3B3B3;} - -/*竞赛报名弹框*/ -.CompetitionEnrollBox{position: fixed;z-index:99998;width: 100%;height: 100%;background-color: rgba(5,26,26,0.4);left: 0px;top:0px; text-align: center;justify-content: center;align-items: center;display: -webkit-flex;min-width: 1200px} -.CompetitionEnrollBox .CloseBox{position: absolute;right: 6%;top:24%;} -.CompetitionEnrollBox .ImmediatelyEnroll{position: absolute;bottom: 4%;border-radius: 33px;background:rgba(255,198,2,1);box-shadow:-1px 2px 64px 1px rgba(121,94,0,0.2);width: 22%;left: 50%;margin-left: -11%;height: 8%;color: #fefefe; - font-size: 28px;font-weight: bold;justify-content: center;align-items: center;display: -webkit-flex;} -@media screen and (max-width: 1600px) { - .CompetitionEnrollBox .ImmediatelyEnroll{font-size: 24px;} -} -@media screen and (max-width: 1500px) { - .CompetitionEnrollBox .ImmediatelyEnroll{font-size: 24px;} -} -@media screen and (max-width: 1300px) { - .CompetitionEnrollBox .ImmediatelyEnroll{font-size: 20px;} -} -@media screen and (max-width: 1200px) { - .CompetitionEnrollBox .ImmediatelyEnroll{font-size: 18px;} -} - -/*ccf*/ -.ccf-position-shixun{position: absolute;z-index: 2;top:300px;text-align: center;width: 100%} -.ccf-position-shixun .shixun-btn{margin: 0px 38px;} -.ccf-position-shixun-2{position: absolute;z-index: 2;bottom:300px;text-align: center;width: 100%} -.headerImg{min-height: 820px;} - - -/*全国赛*/ -.qg-1{min-height: 822px;} -.qg-2{min-height: 2758px;} -.qg-3{min-height: 1755px;} -.qg-4{min-height: 1531px;} -.qg-5{min-height: 661px;} - - -/*排行榜*/ -.competion-ranking{background-color: #fff;box-shadow:0px 4px 15px rgba(0,0,0,0.1);position: relative;width: 860px;margin:70px auto 80px;padding: 50px;} -.ranking-nav{height: 48px;width: 480px;margin:0px auto;background-color: #fff;text-align: center;position: absolute;top:-48px;left: 50%;margin-left: -240px;} -.ranking-nav li{cursor: pointer;float:left;font-size: 18px;margin:0px 15px;line-height: 48px;height: 48px;position: relative} -.ranking-nav li.active{color: #29BD8B!important;} -.ranking-nav li.active:after{content: '';position: absolute;height: 2px;width: 60px;left: 50%;margin-left: -30px;bottom: 0px;background-color: #29BD8B;} -.person-ranking{background-color:#f6f6f6;border-radius: 20px;margin:0px auto; } -.person-ranking li{cursor: default;float: left;margin:0px 25px;height: 40px;line-height: 40px;} -.ranking-img{width: 25px;height: 30px;margin-top: 12px} -.ranking-number{width: 25px;text-align: center;font-size: 16px;} - -.team-ranking{background-color: #f6f6f6;border-radius: 20px;margin: 0px auto;padding: 0px 20px;height: 40px;line-height: 40px;} -.team-ranking li{float: left;text-align: center;box-sizing: border-box;margin:0px 10px;cursor: default} -.team-ranking li:nth-child(1){width: 100px;} -.team-ranking li:nth-child(2){width: 120px;} -.team-ranking li:nth-child(3){width: 90px;} -.team-ranking li:nth-child(4){width: 100px;} - -.rankingList-line{padding: 15px 0px;border-top: 1px solid #eee;box-sizing: border-box;} -.rankingList-line li{float: left;height: 50px;line-height: 50px;} -.ranking-name{display: block;max-width: 80px;} - -.no-com{padding: 70px 0px;} - -#new_private_message_form .ke-toolbar-icon-url { - background-image: url('/images/educoder/upload-image.png'); - background-position: 0px 0px; - background-size: 20px 20px; - width: 20px; - height: 20px; -} - -/*竞赛列表页*/ -.competition_list_pagebox{ - width: 100%; - min-height: 1200px; - margin: 25px 0px 50px 0px; -} - - -/*顶部按钮*/ -.both{ - clear:both; -} -.left{ - float:left; -} - -.right{ - float:right; -} -.competition_list_pageboxchildtopbotton{ - width:100%; - height:60px; -} - -.com_list_pagespan{ - display: inline-block; - margin: 15px 10px 0px 0px; - float: right; -} - -.com_list_pagespan a{ - border-radius: 8px; -} - -.competition_Content_checkbox{ - width: 65px; -} -/*顶部top容器*/ -.competition_list_pageboxchildtop{ - min-height: 400px; - width: 95%; - padding: 29px; - border: 1px solid #e7e7e7; - margin-bottom: 20px;; -} - -.competition_list_images{ - min-height: 200px; - width: 95%; - padding: 29px; - border: 1px solid #e7e7e7; - margin-bottom: 20px;; -} - -.competition_list_title{ - height:50px; - } - -.competition_list_center{ - -} - -.competitionUpload{ - margin-left:1%; - width: 93%; - max-height: 225px; - overflow-y: auto; -} - -.Upload-picture-prompt{ - width: 28% !important; - line-height: 90px; - color: #3BA0FE; -} - -.competition_list_bottom{ - margin-top:70px; - max-height: 150px; -} - -.Other_boxinput{ - height: 30px; - padding-left: 5px; - width: 80px; -} -.Other_boxdiv{ - width:87px; - margin-right: 10px; - overflow:hidden; - text-overflow:ellipsis; - white-space:nowrap; -} -.marbot{ - margin-bottom: 15px; -} -.competition_Nav{ - width: 45px; - padding-left: 3px; -} - -.competition_Content li{ - margin-bottom: 20px; -} - -.ompetitionCheckbox{ - height: 30px; - padding-left: 5px; - width: 400px; -} - -.addContentFillinthebox{ - font-size: 18px !important; - color: #4CACFF!important; - margin-left: 8px; - line-height: 31px; -} -.newaddFillintheboxinput{ - height: 30px; - margin-right: 10px; - padding-left: 5px; - width: 80px; -} -.competition_Content_notice{ - width: 100px; -} - -.competition_Content_ranking{ - width: 100px; -} - -.competition_Content_data_download{ - width: 100px; -} -.ContentFillintheboxdata_download{ - margin-left: -3px; - width: 50%; - height: 50px; -} - -#competition_homepage_input{ - color: #B4B4B4; -} -#competition_homepage_input::-webkit-input-placeholder{ - color: #B4B4B4; - padding-left: 20px; -} -#competition_homepage_input:-moz-placeholder{ - color: #B4B4B4; - padding-left: 20px; -} -#competition_homepage_input:-ms-input-placeholder{ - color: #B4B4B4; - padding-left: 20px; -} - -#competition_data_download{ - color: #3BA0FE; - padding-left: 20px; -} - - -.competition_input_style{ - color: #3BA0FE; - padding-left: 20px; - width: 79%; -} - - - -#competition_data_download::-webkit-input-placeholder{ - color: #3BA0FE; - padding-left: 20px; -} -#competition_data_download:-moz-placeholder{ - color: #3BA0FE; - padding-left: 20px; -} -#competition_data_download:-ms-input-placeholder{ - color: #3BA0FE; - padding-left: 20px; -} - -/*顶部center容器*/ -.competition_list_pageboxchildcenter{ - flex:1; - min-height: 150px; - border: 1px solid #e7e7e7; - width: 99.9%; - margin-bottom: 20px; -} -.childcenter_title{ - width:99%; - border-bottom: 1px solid #e7e7e7; - padding: 6px; -} - -.childcenter_content{ - width: 26%; - float: right; - margin-right: 10px; -} - -.childcenter_title_input{ - padding-left: 20px; - font-weight: bold; - width:50%; - float:left; - border:1px solid transparent; - background: #fafafa; -} - - -.childcenter_title_botton{ - display: inline-block; - float: right; -} -.childcenter_title_botton a{ - border-radius: 8px; -} -.childcenter_but{ - background: #fafafa ; - float: right; - margin-right: 10px; -} - -.childcenter_center_content{ - padding: 10px; - height: 50px; - margin-left: 25px; - border-bottom: 1px solid #e7e7e7; -} -.childcenter_center_contentlast{ - padding: 10px; - height: 50px; - margin-left: 25px; - border-bottom: 1px solid transparent; -} -.childcenter_center_content_two{ - padding: 10px; - height: 50px; - margin-left: 25px; -} - -.editTitlevalue{ - width: 70%; - margin-left: 10px; -} -.child_center_overtime{ - margin-left:20px; -} -.child_center_entry_button{ - margin-left:20px; -} - -.child_nth_child1span{ - margin-top: 10px; - margin-right: 10px; - display: inline-block; -} -.childcenterWinput{ - width: 150px; - height: 35px; - padding: 5px; - box-sizing: border-box; -} - -.child_entry_button_input{ - width:1.5rem; -} -.child_nth_child1spinner span{ - margin-bottom: 7px; -} - -.child_center_entry_buttondel{ - margin-top: 10px; -} - -#goodsUpload{ - position: relative; -} -#uploadImg{ - position: absolute; - bottom: 0px; - left: 30px; -} -.Event_prompts{ - color:red; - margin-right:10px; - display:none; -} - - - - - - - -/*面向学院管理员的综合统计页面*/ -.statistics_top{height: 240px;width: 100%;position: relative;background-image: url('/images/educoder/statistics.jpg');background-size: 100% 100%;} -.statistics_position{position: absolute;bottom: 22px;left: 0px;width: 100%;left: 0px;} -ul.count_ul li{width: 300px;position: relative;float: left} -ul.count_ul li span:first-child{display: block;width: 100%;color: #989898;margin-bottom: 20px;} -ul.count_ul li span:last-child{display: block;width: 100%;color: #fff;font-size: 24px;line-height: 20px;} -ul.count_ul li:not(:last-child):after{position: absolute;content: '';width: 1px;height: 36px;background-color: #999999;right: 0px;top: 16px;} -.static_shadow{box-shadow: 0px 0px 9px rgba(174, 175, 177, 0.2);} -.base_status_name{display: flex;height: 48px;line-height: 48px;font-size:16px;background-color: #F5F5F5;border-top:1px solid #EBEBEB;border-bottom:1px solid #EBEBEB; } -.base_status_name li,.base_status_value li{float: left;flex: 1;text-align: center;color: #686868;} -.base_status_value{display: flex;height: 100px;line-height: 100px;text-align: center;} -.base_status_value li{color:#05101A;cursor: default} -.base_status_value li span{font-size: 24px;margin-right: 5px;} -.count_student_test a{cursor: pointer;display: inline-block;width: 60px;height: 30px;line-height: 30px;text-align: center;border-radius:4px;color: #666 } -.count_student_test a.active{background:#4CACFF;color: #fff; } -/*路径的合作团队增加使用情况统计页面*/ -.subject_statistics_top{height: 240px;width: 100%;position: relative;background-image: url('/images/educoder/subject_statistics.jpg');background-size: 100% 100%;} - - -/*------------------------------职业路径begin-----------------------------*/ -/*新建页*/ -.subjectPathArray{width: 100%;background-color: #FAFAFA;padding: 20px;box-sizing: border-box;box-shadow: 0px 0px 6px rgba(154,154,154,0.3);font-size: 16px;margin-bottom: 22px;cursor: move;} -.subjectPathArray p{cursor: default;} -/*详情页*/ -.busy_detail_top{width: 100%;height: 230px;background: url('/images/educoder/business/detailTop.jpg') no-repeat top center;position: relative } -.busy_detail_nav{position: absolute;bottom: 0px;text-align: center;width: 100%} -.busy_detail_nav ul{vertical-align: bottom} -.busy_detail_nav ul li{padding:0px 49px 34px 49px;float: left;position: relative} -.busy_detail_nav ul li a{display: block;width: 100%;height: 100%;font-size: 24px;color: #fff;line-height: 28px;font-weight: bold} -.busy_detail_nav ul li.active a{background: linear-gradient(to bottom right, #fcd16a, #f9b76a);-webkit-background-clip: text;color: transparent;} -.busy_detail_nav ul li.active:after{content: '';width: 64px;position: absolute;left: 50%;margin-left: -32px;bottom: 0px;height: 4px;background: #f9b76a} -/*--课程介绍--*/ -.busy_detail_vedio{width: 1238px;margin: 78px auto;position: relative;border-radius: 10px;height: 480px;} -.vedioInfo{position: absolute;z-index: 2;width: 100%;height: 100%;background-color:rgba(5,16,26,0.8);color: #fff;border-radius: 10px;top: 0px;left: 0px;justify-content: center;align-items: center;display: -webkit-flex;} -.playVedio{font-size: 86px!important;line-height: 86px;} -.vedioInfoWords{width: 630px;text-align: left} -.vedioTitle{background: linear-gradient(to right, #f5f5f5, #c9c9c9);-webkit-background-clip: text;color: transparent;} - -.busy_detail_introduce{width: 100%;background: url('/images/educoder/business/introduceback.jpg') no-repeat top center;cursor: default;min-height: 800px;padding-top: 92px;box-sizing: border-box;position: relative; } -.introduce_content{position: absolute;bottom: 0px;width: 100%;text-align: center;} -.introduce_content img{vertical-align: bottom;} -.introduce_content_font{padding-left: 116px;padding-top:66px;text-align: left;color: #fff;max-width: 521px;} - -.busy_detail_lessons{background: #f9f9f9;padding-top: 84px;text-align: center;position: relative;padding-bottom: 106px;} -.busyLessons{width: 1152px;margin: 0px auto;} -.l-course-cart{width: 288px;float: left;margin-bottom: 48px;padding: 0px 24px;position: relative;box-sizing: border-box;} -.l-course-cart-axis{position: absolute;width: 288px;height: 16px;top: 25px;left: 0;z-index: 0;} -.l-course-cart-axis .axisx{position: absolute;width: 100%;height: 4px;top: 6px;left: 0;right: 0;background-color: #C6CCD2;z-index: 0;} -.l-course-cart-axis .axisy{position: absolute;left: 8px;top: 0;border-radius: 50%;width: 16px;height: 16px;box-sizing: border-box;border: 4px solid #C6CCD2;background-color: #fff;z-index: 1;} -.l-course-cart:nth-child(4n+0) .axisx{border-radius: 0px 3px 3px 0px;} -.l-course-cart:nth-child(4n+1) .axisx{border-radius: 3px 0px 0px 3px;} -.l-course-cart-wrap{position: relative;width: 100%;height: 250px;background-color: #fff;border-radius: 12px;box-shadow: 0 4px 8px rgba(7,17,27,.1);z-index: 1;overflow: hidden} -.l-course-cart-t{height: 58px;line-height: 60px;border-radius: 12px 12px 0px 0px;background: #788795;padding: 0px 20px;box-sizing: border-box;font-size: 18px;color: #fff;text-align: left} -.l-course-more{position: absolute;bottom: 0px;height: 244px;width: 100%;z-index: 1;text-align: center;padding-top: 90px;box-sizing: border-box; - background-image: linear-gradient(to bottom,rgba(243,243,243,0) 0%,rgba(243,243,243,0.3) 5%,rgba(243,243,243, 0.4) 10%,rgba(243,243,243,0.6) 20%,rgba(243,243,243,0.9) 30%,rgb(243, 243, 243) 100%);} -.l-course-more-btn{display: block;width: 207px;height: 64px;line-height: 64px;border-radius: 32px;font-size: 18px;text-align: center;color: #fff!important;background: #4CACFF;margin: 0px auto;} - -.busy_detail_question{padding: 100px 0px;width: 1165px;margin: 0px auto} -.q-course-cart{width: 540px;margin-bottom: 40px;display: inline-grid;} -.q-course-cart:nth-child(odd){margin-right: 40px;} -.q-course-cart:nth-child(even){margin-left: 40px;} -.q-course-cart-right{max-width: 503px;text-align: justify;line-height: 22px;} - -.grey-to-white{background: linear-gradient(to bottom, #f5f5f5, #C9C9C9);-webkit-background-clip: text;color: transparent;} -.yellow-to-orange{background: linear-gradient(to bottom, #FCD16A, #F9B76A);-webkit-background-clip: text;color: transparent;} -.mainfont{color: #C59F59;} -.yellowfont{color: #C18C14} -/*--内容安排--*/ -.busy_detail_content{background: #101019;padding: 60px 0px 30px 0px;} -.lesson-all-link{height: 384px;background:linear-gradient(-41deg,rgba(103,51,79,0.96),rgba(88,89,144,0.96),rgba(49,65,127,0.96));padding: 4px;box-sizing: border-box} -.lesson-all-link > div{background: #202031;width: 100%;height: 100%;box-sizing: border-box;padding: 20px 15px;} -.lesson-all-link > div li{float: left;min-height: 60px;min-width: 144px;padding: 4px;box-sizing: border-box;margin: 0px 5px 9px 5px;} -.lesson-all-link > div li a{display: block;width: 100%;color: #fff!important;font-size: 20px;text-align: center;height: 54px;line-height: 54px;cursor: pointer;} -.lesson-all-link > div li.link-on{background:linear-gradient(-41deg,rgba(124,97,66,0.96),rgba(188,151,102,0.96),rgba(124,97,66,0.96));} -.lesson-all-link > div li.link-on a{background:linear-gradient(to right,#181b33,#281725);} - -.lesson-all-link > div li.link-off{background:linear-gradient(-41deg,rgba(73,68,69,0.96),rgba(146,145,148,0.96),rgba(89,87,91,0.96));} -.lesson-all-link > div li.link-off a{background:#202031;} - -.mer-width{width: 182px;} -.m-width{width: 186px;} -.u-width{width: 286px;} -.l-width{width: 464px;} -.l-height{height: 204px;} -li.l-height a{height: 196px!important;line-height: 196px!important;} -.m-height{height: 98px;} -li.m-height a{height: 90px!important;line-height: 90px!important;} - -.lesson-l-cart{border:1px solid #6C5539;padding: 44px 32px 20px 32px;box-sizing: border-box;background: #010101;border-radius: 2px;} -.l-cart-number{display: block;height: 62px;line-height: 62px;border-radius: 0px 10px 0px 10px;background:linear-gradient(0deg,rgba(30,29,58,1),rgba(46,26,40,1));font-size: 36px;color: #fff;width: 74px;text-align: center;border: 1px solid #3a3a3a;} -.l-cart-name{display: block;max-width: 700px} - -.l-cart-h-title{width: 100%;height: 78px;background-color: #1F1F30;color: #A6A6A6;line-height: 78px;} -.c-number{display: block;float: left;background-image: url("/images/educoder/c-number.png");background-size:100% 100%;width: 95px;height: 78px;line-height: 78px;text-align: center;padding-right: 17px;} -.c-number > span{font-size: 40px;background: linear-gradient(to bottom, #FCD16A, #F9B76A);-webkit-background-clip: text;color: transparent;} -.l-cart-h-content{background-color: #1B1B2A;} -.spinner {font-size: 20px;width: 1em;height: 1em;border-radius: 50%;box-shadow: inset 0 0 0 .1em rgba(58, 168, 237, .2);} -.spinner span {position: absolute;clip: rect(0, 1em, 1em, .5em);width: 1em;height: 1em;content: '';animation: spinner-circle 1s ease-in-out infinite;border-radius: 50%;box-shadow: inset 0 0 0 .1em #3aa8ed;} - - - -/*------------------------------职业路径end-----------------------------*/ - - -/*课堂-------------------------------资源详情列表页面改版*/ -.du-back-white-right{ - width: 100%; - height: 35px; - margin-bottom: 8px; - text-align: right; - border: 1px solid transparent; - position: relative; -} -.du-back-Iconfont{ - position: absolute; - top: 1px; - right: -16px; - font-size: 12px !important; - color: #989898; -} -.du-back-whiteP{ - position: absolute; - top: 37px; - right: 24px; - font-size: 12px; - color: rgba(152,152,152,1); - line-height: 0px; - width: 100px; - height: 50px; - -} -.du-back-whitePP{ - position: absolute; - top: 14px; - right: 0px; - font-size:12px; - color:rgba(152,152,152,1); - line-height:0px; - width:100px; - height:50px; -} -.du-back-whiteTime{ - position: absolute; - top: 8px; - right: 20px; -} -@font-face { - font-family: 'iconfont'; - src: url('./iconfont/iconfont.eot'); - src: url('./iconfont/iconfont.eot?#iefix') format('embedded-opentype'), - url('./iconfont/iconfont.woff') format('woff'), - url('./iconfont/iconfont.ttf') format('truetype'), - url('./iconfont/iconfont.svg#iconfont') format('svg'); - } - .iconfont{ - vertical-align:middle; - font-family:"iconfont" !important; - font-size:16px;font-style:normal; - -webkit-font-smoothing: antialiased; - -webkit-text-stroke-width: 0.2px; - -moz-osx-font-smoothing: grayscale; - } - ._resource_detailwidth{ - max-width:516px; - height:17px; - font-size:16px; - color: #05101A; - font-weight: bold; - line-height:17px; - overflow:hidden; - text-overflow:ellipsis; - white-space:nowrap - } -.newImport_resource_info_list{ - width: 610px; - background: rgba(247,251,255,1); - overflow-y: hidden; - overflow-x: hidden; - padding-left: 10px; -} - -.newhomework_info_list{ - width: 529px !important; - background: rgba(247,251,255,1); - overflow-y: hidden; - overflow-x: hidden; - padding-left: 10px; -} - -.newBorder_info_list{ - display: inline-block; -} -.descriptionboxlist{ - cursor: default; - width: 711px; -} -.deletPosition{ - position: relative; -} -.deletVersions{ - position: absolute; - top: 12px; - right: -85px; -} -.deletVersionsFont{ - margin-left: 62px; - max-width: 229px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} -.deletPositionLabel{ - position: absolute; - top: 1px; - left: 33px; -} -.newedu-find-input{ - border: 1px solid #EAEAEA; - width: 100%; -} -.newpanelstylel{ - width:248px; - height: 30px; -} -.newedu-open{ - top:-1px;right: -21px; -} -.NewsOrange-btn{ - height:15px; - font-size:16px; - color:rgba(5,16,26,1); - line-height:0px; - margin-top: 13px; -} -.NEWorange-btn{ - border: 1px solid transparent !important; - color: #4CACFF !important; -} -.newedu-back-white{ - height: 50px; - margin-bottom: 40px; - border: 1px solid transparent !important; -} -#course_list{ - overflow-y: auto; - background: #FFF; -} -.file_fontGrey{ - margin-top: -1px !important; -} -a.newcolor-grey3:hover{ - color: #459be5 !important; -} -.edu-menu-listlia{ - color: #05101a !important; -} -.syllabusbox_tishi p{ - text-align: center; -} -#tip_attachment_count{ - color:#4CACFF; - margin-top:4px !important; -} -.newsedu-open{ - top: -1px !important; - right: 7px !important; -} -#course_filter_order{ - top: 24px; - width: 110px; - text-align: left; - right: -28px !important; -} -.du-back-white-right :hover .du-back-whiteTime{ - color:#459be5 !important; -} - -.du-back-white-right :hover .du-back-Iconfont{ - color:#459be5 !important; -} -.popup_tip_box{ - right:-160px; - top:55px; -} -.privately-owned{ - position: absolute; - top: 15px; - color:#747A7F !important; - } -.homepagePostSetting{ - display:none; -} -#describe{ - width: 100%; - line-height: 25px; -} -#describe a { - display:none; - line-height: 25px; - -} -#resources-Sourcesbg:hover .homepagePostSetting{ - display:block; -} -#resources-Sourcesbg:hover #describe a{ - display:inline-block; -} -#describe a i.iconfont:hover{ - color:#fff !important; -} -.newBorder_info_listone{ - width: 15px; - height: 15px; - border: 1px solid #29BD8B; - background: #29BD8B; - border-radius: 50%; - position: relative; - display: block; - top: 3px; - margin: 1px 0px 0px 10px; -} -.newBorder_info_listtwo{ - display: block; - color: #fff; - font-size: 13px !important; - position: absolute; - top: -4px; - left: 1px; -} -.newcolor-grey3{ - max-width:516px; - float:left; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} -.homepageSignatureTextarea{ - resize: none; - max-width: none; - margin-left: 0 -} -.neworange-btn{ - border: 1px solid transparent !important; - color: #FFF !important; - background: #FF6800 !important; - border: 1px solid #FF6800 !important; -} - -#course_file_form{ - height:260px; -} -#course_file_form form{ - min-height:260px; -} -.NEWtitlefl{ - margin: 0px 0px 0px 43%; -} -.font12mb15{ - font-size:16px !important; -} -.newfont12mb{ - color:#FF6800; -} -.newtask-btn-orange{ - margin-right: 180px; -} -.newtask-btn{ - margin-right: 80px !important; - color:#FFFFFF !important; -} -a.task-btn-9A9A9A{ - background: #9A9A9A!important; - color: #fff!important; -} -.margin20{ - margin: 20px; -} -.edumaxblueh{ - height:320px; -} -.edutaskhide{ - font-size:14px; - color:rgba(76,76,76,1); -} -.newtask-popup{ - width:600px; - max-height:700px; - overflow-x: auto; -} -.newcolor-grey{ - margin: 0px 0px 0px 43%; - color:#05101A !important; -} -.newrealname{ - width:90%; - margin-left:10px; -} -.newhide_realname{ - top: -15px !important; - left: 46px !important; -} -.search_undis{ - margin-top: 8px; - margin-bottom: 37px; -} -.nestask-orange{ - margin-right: 210px; -} -.nestask-btn{ - margin-right: 80px; - color:#FFFFFF; -} -.newImport_resource_info_list{ - width: 600px !important; -} -.nodata{ - text-align: center; - background-color: transparent; - border-color: transparent; - color: #000; -} -.import_color-grey{ - margin: 0px 0px 0px 150px; - color:#000 !important; - width: 300px; -} -.newtask-popup-content{ - max-height: 459px; - min-height: 459px; -} -.userImport_resource{ - margin-bottom: 32px; -} -.subjectBannernews{ - height:350px; - min-height:350px; - max-height:350px; - margin-bottom: 15px; -} -.subjectBannerone{ - width: 95.8% !important; - padding: 0px 0px 0px 30px; - color: #676767; - font-size: 14px; - height: 40px !important; - line-height: 40px; -} -.import_resource_infobtn-orange{ - margin-right: 198px; -} -.import_resource_infobtn-btn{ - margin-right: 68px; - color: #FFFFFF; -} -.subjectSearChfrp{ - background:rgba(244,244,244,1); - right: -24px; - top: -37px; - position: absolute; -} -.du-back-Iconfontbox{ - position:absolute; - top:-37px; - right:-11px; - cursor: pointer; - font-size: 18px !important; -} -.newtaskTitle{ - margin: 0px 0px 0px 130px; - color:#000 !important; - width: 300px; -} -.task-popupList{ - width:598px; - max-height: 574px; -} -.newnetwork_issu{ - color: red; - display: none; -} -.newregex_publish_time{ - margin-right: 190px; -} -.newregtask-btn_time{ - margin-right: 80px; - color:#FFFFFF; -} -.newregexInputBox{ - width: 530px !important; - height: 200px !important; - font-size: 12px !important; -} -.newregexInputBox::-webkit-input-placeholder { /* WebKit browsers */ - color: #999; - font-size: 14px; -} -.newregexInputBox:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ - color: #999; - font-size: 14px; -} -.newregexInputBox::-moz-placeholder { /* Mozilla Firefox 19+ */ - color: #999; - font-size: 14px; -} -.newregexInputBox:-ms-input-placeholder { /* Internet Explorer 10+ */ - color: #999; - font-size: 14px; -} - -#datetimepicker_mask::-webkit-input-placeholder { /* WebKit browsers */ - color: #999; - font-size: 14px; -} -#datetimepicker_mask:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ - color: #999; - font-size: 14px; -} -#datetimepicker_mask::-moz-placeholder { /* Mozilla Firefox 19+ */ - color: #999; - font-size: 14px; -} -#datetimepicker_mask:-ms-input-placeholder { /* Internet Explorer 10+ */ - color: #999; - font-size: 14px; -} - - -.datetimepicker_mask::-webkit-input-placeholder { /* WebKit browsers */ - color: #999; - font-size: 14px; -} -.datetimepicker_mask:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ - color: #999; - font-size: 14px; -} -.datetimepicker_mask::-moz-placeholder { /* Mozilla Firefox 19+ */ - color: #999; - font-size: 14px; -} -.datetimepicker_mask:-ms-input-placeholder { /* Internet Explorer 10+ */ - color: #999; - font-size: 14px; -} - - -.attachmentinput::-webkit-input-placeholder { /* WebKit browsers */ - color: #999; - font-size: 14px; -} -.attachmentinput:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ - color: #999; - font-size: 14px; -} -.attachmentinput::-moz-placeholder { /* Mozilla Firefox 19+ */ - color: #999; - font-size: 14px; -} -.attachmentinput:-ms-input-placeholder { /* Internet Explorer 10+ */ - color: #999; - font-size: 14px; -} -.newtaskpopupWrap{ - width:598px !important; - min-height: 300px !important; -} -.newclearfix{ -margin:-3px 0px 10px 0px; -} -.newcourseFileform{ - min-height:250px; -} -.newcourseFileform ul{ - overflow-y: auto; - height: 269px !important; -} -.course_file_form_form form{ - min-height:320px !important; -} -.muban_table{ - border:1px solid transparent; -} -.muban_table thead tr th{ - border:1px solid transparent; -} -#attachment_history_popub{ - margin-left: 3px; -} -.muban_tableone{ - width: 565px !important; -} -#attachments_fields span{ - font-size: 12px; - color: #CCC; -} -.nestask-popuphidden{ - width: 598px; - max-height: 708px; - overflow-y: auto; - overflow-x:hidden; -} -.nestask-popuphiddencolor-grey{ - margin: 0px 0px 0px 43%; - color: #000 !important; -} -.popup_ziyuan_title_fl{ - max-width: 140px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} -.ml20mr20Color{ - color: #676767; -} -.popup_ziyuan_title a{ - width: 268px; - display: inline-block; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} -.muban_icons_bluemt5ml5fl{ - /*position: absolute;*/ - /*top: 6px;*/ - /*left: 146px;*/ -} -.clearcoursecoursenew{ - width: 87%; - margin-left: 2%; -} -.publicmb10{ - width: 87%; - margin-left: 0.5%; -} -.clearfixnewmb10{ - width: 87%; - margin-left: 0.5%; -} -.mb10newclearfix{ - width: 95%; - margin-left: 0.5%; -} -.settingfllme{ - width: 50%; - height: 40px; -} -.tasksettingfllme{ - margin-top: 4px; - width: 55px; - overflow:hidden; - text-overflow:ellipsis; - white-space:nowrap -} -.attachmentTake{ - margin-right: 53px !important; - color:#FFFFFF !important; -} -.attachmentTakebut{ - margin-right: 198px; -} -.newmuban_textarea{ - resize:none; - width: 98% !important; - min-height: 100px; -} -.newun_unified_setting_group{ - width:100%; -} -.newfontdeletitle{ - position: relative; - top: -53px; - left: 126px; - width: 700px; - height: 0px; - padding: 10px; -} -.colorGreylistbox{ - margin-left:20px; -} -.new_ypopupWrap { - /*top: 230px !important;*/ - /*left: 650px !important;*/ - width:600px !important; - /*height:530px !important;*/ - /*min-height:530px !important;*/ - /*max-height:600px !important;*/ -} -.newchoose_group_allow { - margin-left: 17px; - font-size: 13px; -} -.no_span2_font a{ - margin-right: 10px; -} -.nesbor-bottom-greyE{ - line-height: 14px; - position: relative; -} -.nesbor-bottom{ - display: inline-block; - height: 50px; -} -.newConstration{ - position: absolute; - top: 28px !important; -} -.nesbor-bottom label{ - top: -1px !important; - left: 114px; - } -.nesbor-bottom label span{ - position: absolute; - top: 6px !important; - width: 562px; -} -.newteacher_banner{ - height: 75px !important; - line-height: 75px !important; -} -.newpanel-box-sizing{ - position: absolute; - bottom: 25px; - right: 10px; -} -.HowManyStu{ - position: absolute; - top: 85px; - left: 20px; -} -.HowManyStuValue{ - color: #FF6800; -} -.newsedu-opennew{ - top: 7px !important; - right: 10px !important; - position: absolute; -} -.newsedu-opennewP{ - top: -1px !important; - right: 10px !important; - position: absolute; -} -.newedu-findnew-input{ - position: absolute; - right: 20px; - z-index:1; -} -.du-backnew-Iconfont{ - position: absolute; - top: 45px; - right: 4px; - font-size: 12px !important; -} -.du-backnew-IconfontP{ - position: absolute; - top: 1px; - right: -17px; - font-size: 12px !important; -} -.du-back-white-rightnews{ - width: 100%; - height: 35px; - text-align: left; - border: 1px solid transparent; - position: relative; -} -.eduCenternew{ - height:56px !important; -} -.mh550cClearfix{ - background: #FAFAFA !important; -} -.setting_member_cClearfix{ - height: 56px !important; - background: #FFF !important; -} -.setting_member_cClearfix:hover { - background: #EFF9FD; -} -.newedua-pop-table tr th{ - border:1px solid transparent; -} -.newedua-pop-table{ - margin-bottom: 50px; -} -.newSelectclass{ - width:600px; - height: 237px; -} -#newteacher_assign #teacher_assign_group_form{ - padding-left: 30px; -} -.newteacher_clearfix{ - color:#05101A; - font-weight: Bold; - font-size:16px; - padding-left: 2%; -} -.newclassHtmlvalue{ - width:600px; - height: 237px; -} -.NewClasses{ - margin-left: 44%; -} -.newpanel-form-label{ - width: 1% !important; - margin-left: -30px; -} -.new_neygroup_name{ - width: 86% !important; - height: 30px !important; - margin-top: 5px !important; -} -.newtaskBtn{ - margin-right: 35%; - margin-top: 19px; -} -.newtask-mr10btn{ - margin-right: 7%; - margin-top: 19px; - color: #fff !important; -} -.task-popup-submit02{ - width:100%; -} -.linclorregrey{ - width:463px; - border:1px solid #ddd; - background:#fff; -} -.Suggest_delete{ - margin-left:46%; - color: #05101A !important -} -.newflBtn{ - margin-bottom: 20px; - margin-left: 30px; -} -.nesntoclasses{ - margin-left: 30px; - margin-right: 10px; - color: #4CACFF !important; - border:1px solid #4CACFF !important; -} -.deletebtnOrange{ - color:#DEDEDE !important; - border:1px solid #DEDEDE !important; -} -.nesteacher{ - width:650px; -} -.nesteacherFont{ - margin-left: 40%; -} -/* .width100{ - width: 92%; - padding: 0px 0px 0px 25px; -} */ -.unitsGrey{ - float: left; - height: 40px; - line-height: 40px; - margin-right: 15px; -} -.unitsPosition{ - float: left; - width: 465px; - margin-top: 4px; -} -.unitsPositionboxsizing{ - height:30px !important; - margin-top: 2px; -} -.unitsPositionboxsizinga{ - width:465px !important; - height:30px !important; - margin-top: 6px; - } -.unitsPositionboxsizingc{ - width:465px !important; - height:30px !important; - margin-top: 6px; -} -.edu-btn-searcha{ - position: absolute; - top: -5px; - right: 15px; -} -.edu-btn-searchtwo{ - position: absolute; - top: 0px; - right: 15px; -} -.search_Stubd_list{ - overflow-y: auto; - width: 100%; - height: 280px; -} -.choose_student_idslist{ - width:100%; - background:#fff; - height:25px; -} -.attachmentTakebuta{ - margin-right: 170px; -} -.teacher_bannerBar{ - height: 80px !important; - line-height: 80px !important; -} -.color-dark-greyfont{ - color: #666 !important; - font-size:14px; -} -.color-dark-grey{ - color: #999 !important; -} -.educontopnewclearfix{ - height: 125px; -} -.nesbor-bottom-greyE{ - top:0px; -} -.colorFFF{ - color:#FFF !important; -} -.marginrename{ - margin-left:44%; - color: #05101A !important -} -.attachmentTakebuttwo{ - margin-right: 143px; -} -.new_neygroupaname{ - width: 81% !important; - height: 30px !important; - margin-top: 3px; -} -.unitsGreynew{ - float: left; - height: 40px; - line-height: 40px; - text-align: left; - width: 56px; - margin-left: 11px -} -.btn_student{ - color: #FF7500; - border: 1px solid #FF7500; -} -.btn_studenta{ - color: #FFF !important; - border: 1px solid #FF7500; - background: #FF7500; -} -.edu-pop-table tr td .ChangeAdministrator{ - color:#4CACFF !important; -} -.mutual{ - margin-left:2px; -} -#student_table_div table tbody tr:nth-child(1) td{ - border-top:1px solid transparent !important; -} -.orangeback{ - width: 68px; - height: 24px; - line-height: 24px; - background: #FF7500 !important; - color: #FFF !important; - font-size: 14px !important; -} -.colorBule{ - color:#4CACFF !important; -} -.educontoptwpConnot{ - height: 50px !important; - position:relative; - border-bottom: none!important; -} -.HowManyStufont14{ - position: absolute; - top: 21px; - left: 20px; - font-size: 14px; -} -.edu-cold-input{ - position: absolute; - top: 17px; - right: 18px; -} -.newseduiconfont{ - top: -1px !important; -} -#edu-bgtablethead table thead tr th{ - width: 116px !important; - display: inline-block; - float: left; - height: 56px !important; - line-height: 56px !important; -} -#edu-bgtablethead table thead tr th:nth-child(1){ - margin-left: 24px; -} -#edu-bgtablethead table tbody tr td{ - width: 118px !important; - display: inline-block; - float: left; - height: 56px !important; - line-height: 56px !important; -} -#edu-bgtablethead table tbody tr td:nth-child(1){ - margin-left: 24px; -} -#edu-bgtablethead table tbody tr:nth-child(1) td{ - border-top:1px solid transparent !important; -} -#edu-bgtablethead table tr th{ - border: 1px solid transparent; -} -.powerName{float: left;max-width:101px; } -.listCombox{display: none;position: absolute;z-index: 10;left: 0px;width: 100%;overflow-y: auto;background: #fff;max-height: 200px; border: 1px solid #eee; - width: 124px;left: -10px;top: 46px;} -.listCombox li {height: 30px;line-height: 30px;padding-left: 5px;cursor: pointer;text-align: left;} - -#edu-bgtabletheadtech table thead tr th{ - width: 190px !important; - display: inline-block; - float: left; - height: 56px !important; - line-height: 56px !important; - font-weight: 500; - color: #666666 !important; -} -#edu-bgtabletheadtech table thead tr th:nth-child(1){ - margin-left: 24px; -} -#edu-bgtabletheadtech table tbody tr td{ - width: 192px !important; - display: inline-block; - float: left; - height: 56px !important; - line-height: 56px !important; -} -#edu-bgtabletheadtech table tbody tr td:nth-child(1){ - margin-left: 24px; -} -#edu-bgtabletheadtech table tbody tr:nth-child(1) td{ - border-top:1px solid transparent !important; -} -#edu-bgtabletheadtech table tr th{ - border: 1px solid transparent; -} - -.newupload_Teacher{ - height: 520px; -} -.taskform80{ - padding: 5px; - width: 83%; - height: 30px !important; - background: rgba(255,255,255,1); - border-radius: 4px; -} -.unitsGrey80{ - float: left; - height: 29px; - line-height: 29px; - margin-right: 15px; -} -.edu-btn-searcha80{ - position: absolute; - top: -7px; - right: 64px; -} -.left_80_path{ - width: 568px; -} -.all_ther_selectstyle{ - width:550px; - background: #f7f9fd; - height: 25px; - display: none; -} -.all_settings_selectstyle ul{ - width:519px !important; - height: 280px; -} -.task_popup_conList{ - padding: 30px 40px 0px 40px; -} -.mb10important{ - margin-bottom: 20px !important; - position: relative; -} -.unitsGrey101{ - width:100%; - height: 100px; - position:relative; -} -.unitsGrey101 h4{ - width: 52px; - float: left; -} -.unitsGrey101 ul{ - width: 280px; - float: left; -} -.left{ - float:left; -} -.assistants{ - margin-left:30px; -} -.cancellation{ - position: absolute; - top: 62px; - left: 177px; - color: #FFF !important; -} -.determine{ - position: absolute; - top: 62px; - left: 287px; -} -.nesborBox{ - height:105px; -} -.CCC_btn{ - border:1px solid #B3B3B3 !important; - color: #B3B3B3 !important; -} -.backOrange{ - background: #FF6800 !important; - color: #FFF !important; - border:1px solid #FF6800 !important; -} -.bulewhitebtn{ - border:1px solid #4CACFF !important; - color: #4CACFF !important; -} -.tabeltext-alignleft{ - text-align: center; -} -.tehchpositiong{ - top: 18px !important; -} -.newpanelstylelposition{ - position: absolute; - top: -1px; -} -.newsedu-opennewposition{ - top: -3px !important; - right: 10px !important; - position: absolute; -} -.sy_cgreyblue{ - color: #4CACFF !important; - border: 1px solid #4CACFF !important; -} -.attachment_history_tr th{ - color: #888 !important; -} -.attachment_th th { - color: #888 !important; - margin-right: 22px; - width: 500px; -} -.deletehist{ - position: absolute; - bottom: 91px; - right: 27px; -} -.orangebtuB3{ - color:#B3B3B3 !important; - border:1px solid #B3B3B3 !important; -} -#homepagePostPorimg img{ - float: left; - margin-top: 17px !important; -} -#tip_attachment_count span{ - margin-right:24px; -} -.homepagePostSettingundis{ - left: -66px !important; -} -.muban_table thead tr th{ - font-weight: 500 !important; -} -.greymaxfont{ - color: #989898 !important; - font-size: 12px; - margin-top: 2px; -} -#edu-bgtabletheadtech table tbody tr td span{ - color: #343434 !important; -} -#edu-bgtabletheadtech table tbody tr td:nth-child(1) span{ - color: #656565 !important; -} -#edu-bgtabletheadtech table tbody tr td:nth-child(3) span{ - color: #9A9A9A !important; -} -#edu-bgtablethead table thead tr th{ - font-weight: 400; - color: #666 !important; -} - - -#edu-bgtabletheadtech table tbody tr td{ - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -#search_not_teachers_ul li label a{ - color:#4C4C4C; -} -#search_not_students_ul li label a{ - color:#4C4C4C; -} - -#search_not_students_ul li label span:nth-child(2){ - color:#9A9A9A; -} - -#search_not_students_ul li label span:nth-child(3){ - color: #CBCBCB; -} - - -.loginX{ - position: absolute; - right: 6px; - top: 0px; -} - -#newtrainingtask-popup{ - width:840px; -} - -.TrainingList{ - color:#9A9A9A; - font-size:14px; - line-height: 32px; -} -.TrainingListchild{ - color:#FF6800; -} -.newshixun_tab_div{ - padding: 0px 22px 0px -5px; - max-height: 90px; - overflow-y: auto; -} - -.newtask_popup_con{ - padding:20px 0px 20px 0px; -} - -#new_shixun_homework_list{ - padding: 0px 3px 0px 20px; -} - -.choose_idsbox{ - width:100%; - height: 30px; - background:#EAEAEA; -} -.task-hidechoose_idsbox{ - width: 100px; - color:#343434; -} -.task-hidechild{ - display: inline-block; - margin-left:10px; -} -.search-spannew{ - margin-right: 32px; -} -.newdetails{ - color: #4CACFF; - width: 80px; -} -.widthnew90{ - width: 90px; -} -.widthnew250{ - width: 250px; -} -.widthnew180{ - width: 180px; -} -.clearfixnewclass{ - height: 38px; - border-bottom: 1px solid #EBEBEB; - padding-top: 10px; -} -.over490{ - max-height: 420px; -} -.widthnew280{ - width:280px; -} -.widthnew100{ - width: 170px; - text-align: left; - color:#676767; -} -.widthnew210{ - width: 229px; - text-align: right; - color: #676767; -} -.widthnew142{ - width: 147px; - text-align: right; - color: #676767; -} -.widthnew132{ - width: 81px; - text-align: right; - color: #676767; -} -.FFFFF{ - color:#FFFFFF !important; - margin-right: 61px; -} - -.search-spannewshixun_name_search::-webkit-input-placeholder{ - color: #9A9A9A; -} -.search-spannewshixun_name_search:-moz-placeholder{ - color: #9A9A9A; -} -.search-spannewshixun_name_search:-ms-input-placeholder{ - color: #9A9A9A;; -} - - -/*在线课堂作业*/ -.classaInputOverflow{ - display: block; - color: #333; - font-size: 16px; - max-width: 516px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-size: 16px; - font-family: MicrosoftYaHei-Bold; - color: #05101A !important; - font-weight: Bold; - margin-top: 3px; -} - -.marginxe61f{ - margin-top: 5px; - margin-left: 6px; - color: #747A7F !important; -} -.classaInputleft{ - font-size: 16px; - font-family: MicrosoftYaHei-Bold; - color: #05101A !important; - font-weight: Bold; -} - -.Training_details{ - background: rgba(76,172,255,1); - border-radius: 12px; - color: #FFF !important; - width: 76px !important; - height: 22px !important; - line-height: 21px !important; - padding: 0px !important; - border: 1px solid rgba(76,172,255,1); - margin-top: 7px; -} -.Training_FCFCFC{ - background:#B2B2B2; - border-radius: 12px; - color: #FFF !important; - width: 76px !important; - height: 22px !important; - line-height: 21px !important; - padding: 0px !important; - border: 1px solid #B2B2B2; - margin-top: 7px; -} -.Training_FCFCFC a{ - color: #FFF; - font-size: 14px; -} -.Training_details a{ - color: #FFF; - font-size: 14px; -} -.Foundedin{ - color: #CCCCCC; - font-size: 14px; -} -.color343434{ - color:#343434; - font-size:14px; -} -.colortFF6800{ - color: #FF6800; - font-size:14px; -} -.colort21B351{ - color: #21B351; - font-size:14px; -} -.edu-filter-btn-redgreenBtn{ - width:94px; - height:22px; - background: #FFF; - border-radius: 12px !important; - line-height: 22px !important; - padding: 0px !important; - color: #DD1717 !important; - margin-top: 7px; - border: 1px solid #DD1717; - font-size: 14px; -} -.edu-filter-btn-no-latehomeStatusBtn{ - width: 66px; - height: 22px; - background: #FFF; - border-radius: 12px !important; - line-height: 22px !important; - padding: 0px !important; - color: #747A7F !important; - margin-top: 7px; - border: 1px solid #747A7F; - font-size: 14px; -} -.edu-filter-btn-endhomeStatusBtn{ - width: 66px; - height: 22px; - background:#FFF; - border-radius: 12px !important; - line-height: 22px !important; - padding: 0px !important; - color: #747A7F !important; - margin-top: 7px; - border: 1px solid #747A7F; - font-size: 14px; -} -.edu-filter-btn-endgreenhomeStatusBtn{ - width: 100px; - height: 22px; - background:#FFF; - border-radius: 12px !important; - line-height: 22px !important; - padding: 0px !important; - color: #29BD8B !important; - margin-top: 7px; - border: 1px solid #29BD8B; - font-size: 14px; -} -.edu-filter-btn-orangehomeStatusBtn{ - width: 66px; - height: 22px; - background: #FFF; - border-radius: 12px !important; - line-height: 22px !important; - padding: 0px !important; - color: #ff6800 !important; - margin-top: 7px; - border: 1px solid #ff6800; - font-size: 14px; -} -.newcolor-red{ - color: #DD1717; -} -.newcolor-orange{ - color: #FF6800; -} -.color4CACFF{ - color:#4CACFF !important; - font-size:14px; -} -.paddingLeft30{ - padding-left:30%; -} -.paddingLeft35{ - padding-left:35%; -} -.paddingLeft20{ - padding-left:20%; -} -.color979797{ - font-size: 14px; - color: #979797 !important; - padding-left: 2%; -} -.marginRight55{ - margin-right: 55px; -} -.marginTop{ - margin-right: 33%; - margin-top: 20px; -} -.marginTop30{ - margin:30px 30% 20px 0px; -} -/*选择实训弹框*/ -.Select_trainingFont{ - font-weight: Bold; - font-size:16px; - font-family:MicrosoftYaHei-Bold; - color:#05101A !important; -} -.TrainingHead{ - padding: 0px !important; - height: 151px !important; - margin-bottom: 10px; - border: 1px solid transparent; -} -#resources-Sourcesbg{ - border-top: 1px solid #eee; - border-bottom: 1px solid transparent; -} -.homework_index_list .mh550 #resources-Sourcesbg:nth-child(1) { - border-top:1px solid transparent; -} - -.height55{ - height: 55px; - border-bottom: 1px solid #eee; -} -.TrainingHead div:nth-child(2){ - border-bottom:1px solid transparent; -} - -.mt12ml25{ - margin-top: 12px; - margin-left: 25px; -} -.mat13{ - margin-top: 13px; -} -#homework_index_tab a{ - font-size: 14px !important; - display: inline-block; - margin-right: 20px; -} -.homework_index_taba{color: #459be5 !important;} -.relativemrt{ - position: relative; - margin-top: 10px; - margin-right: -14px; -} -.borderEAEAEA{ - border:1px solid #EAEAEA; -} -.borderEAEAEA::-webkit-input-placeholder{color: #9A9A9A; font-size:14px; } - -.borderEAEAEA:-moz-placeholder{color: #9A9A9A; font-size:14px;} - -.borderEAEAEA::-moz-placeholder{color: #9A9A9A; font-size:14px;} - -.borderEAEAEA:-ms-input-placeholder{color: #9A9A9A; font-size:14px;} - -/*选择实训弹窗*/ -.shixuns_countfont{ - color: #9A9A9A; - font-size:14px; - margin-left: 10px; -} -.shixuns_count{ - color: #05101A; - font-size:14px; -} -#shixun_search_form_div{ - margin-top: 20px; - margin-bottom: 20px !important; -} -.relativemrtnew{ - margin-top: -3px; -} - -#import_resource_div_list{ - padding: 20px !important; - height: 260px !important; - max-height: 260px !important; - overflow-y:auto; -} -.newtask_popup_con{ - padding: 15px 36px 30px 36px; -} -.zuoyebtn{ - margin-right: 50px; - margin-left: 185px; - color: #FFF !important; -} -.newsedu-shuxunsearch{ - top: -6px !important; - right: 10px !important; - position: absolute; -} -.shixuntaskname{ - width:85px; - text-align: left !important; -} -.shixunstaskum{ - width: 15px; - text-align: left !important; -} -.shixunstasktype{ - text-align:left !important; -} -.shixuntasktitle{ - text-align:left; - width: 280px; - color: #4C4C4C !important; - padding: 0px 0px 0px 5px; -} -.singlebtn{ - margin-top: 25px; - margin-left: 196px; -} -.singlefrbtn{ - margin-right: 40px; - color: #FFF !important; -} -.student_workcontent{ - padding: 10px 30px 30px 30px; -} - -.newsinglebtn{ - margin-top: 25px; - margin-right: 150px; -} -.newsinglebtna{ - margin-top: 25px; - margin-right: 130px; -} -.newsinglebtnaTwo{ - margin-top: 32px; - margin-right: 138px; -} -.singlepublishbtn{ - padding-left: 17px; - padding-right: 15px; -} -.singlepublishbtn{ - padding-left: 17px; - padding-right: 15px; -} -.tasklepublishbtn{ - padding-left: 16px; - padding-right: 16px; -} -.newsinglebtntwo { - margin-top: 25px; - margin-right: 75px; -} -.singlefrbtntwo{ - margin-right: 40px; -} -.edu-pop-table-grey{ - border: 1px solid transparent; - background: #F7FBFF; - max-height: 198px; - overflow-y: auto; - display: block; -} -.edu-pop-table-grey tr td{ - border: 1px solid transparent; -} -.publish-btn{ - background: #4CACFF !important; - width: 86px !important; - height: 28px !important; - line-height: 28px !important; - color: #FFF !important; - border:1px solid #4CACFF !important; - border-radius: 2px !important; - font-size:14px; - font-weight: 500 !important; -} -a.singlepublish{ - background: #9A9A9A !important; - width: 86px !important; - height: 28px !important; - line-height: 28px !important; - border: 1px solid #9A9A9A !important; - color: #FFF !important; - border-radius: 2px !important; - font-size: 14px; - font-weight: 500; - text-align: center; -} -a.singlepublishtwo{ - margin-right: 50px; - padding-right: 15px; - padding-left: 17px; -} -.publish-btntwo{ - margin-right: 50px; - padding-right: 12px !important; - padding-left: 20px !important; -} -.studentcontent{ - color: #05101A !important; - font-size: 16px; -} -.class-containersdu{ - color: #989898 !important; -} -.class-containersdu a{ - color: #989898 !important; -} -.user_bg_shadowfont{ - color: #333333 !important; - max-width: 300px; - height: 26px; - line-height: 26px !important; - font-size: 18px; - font-family: MicrosoftYaHei; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} -.homework_top_conton{ - height: 40px !important; - padding-top: 26px; -} -.newgreengreenBtn{ - margin-top: 2px; -} -.newgreendetails{ - margin-top: 2px; -} -.goTraining_deta{ - margin-top: -2px; - color:#999999; -} - -.background-newBlue{ - width:118px !important; - height:48px !important; - border:1px solid #4CACFF !important; - border-radius: 24px !important; -} -.background-newBlue a{ - color: #4CACFF !important; -} - -.edu-tab-navhomework{ - height: 80px !important; - padding-top: 38px; -} -.newhomework_info_list tr td{ - border:1px solid transparent; -} -.newhomework_info_list.hover-td_1 tbody tr:hover{ - background: transparent; -} -.short_note_but{ - width: 80px; - height: 27px; - border: 1px solid #CCC; - text-align: center; - line-height: 27px; - cursor:pointer; -} -.short_note_but:hover{ - background: #F3F3F3; -} -#newhomework_list{ - width: 100%; - height: 30px; - margin-top: 10px; -} -.navdefaultsetting{ - width: 118px !important; - height: 48px !important; - border: 1px solid transparent; - border-radius: 24px !important; -} -.newpadding40{ - padding: 40px !important; -} -.editormd-html-preview{ - color: #323232 !important; - font-size: 14px !important; -} -#homework_editorMd_description hr{ - border: 1px solid transparent; -} -#homework_explanation_div{ - padding: 5px 60px !important; -} -.jobDescription{ - color: #29BD8B; - font-size: 16px !important; - font-weight: 500; -} -.newBorder_info_listtwo:hover{ - color:#FFF !important; -} -.newnoteDetailPoint{ - width: 100px; - height: 70px; - background-color: #4cacff; - border-radius: 35px; - color: #fff; - text-align: center; - margin: 0 auto; - -webkit-box-sizing: border-box; - box-sizing: border-box; - padding: 2px 0; - cursor: pointer; - line-height: 22px; - padding-top: 12px; -} -.newCommentItem{ - height: 112px; - border-bottom: 1px solid transparent; -} -.comment_reply_box{ - margin-top: 20px; -} -.panel-mes-headbox{ - padding: 10px; -} -.colorCCC{ - color: #CCCCCC !important; -} -.panelHeaddiv{ - padding-left: 30px; -} -.newpanel-comment_item{ - width: 94%; - padding: 0px 0px 0px 30px; - margin-bottom: 20px; -} -.mt4{ - margin-top:4px; -} -.panel-comment_itemorig_cont{ - border: solid 1px transparent !important; - background: #EBEBEB !important; - padding: 0px !important; - color: #999 !important; -} -.orig_ClearfixBox{ - padding: 0px !important; -} -.ptl8{ - padding-left: 8px; -} - - -/*毕业设计*/ -#selectionSubject p{margin: 0px 30px;height: 56px;line-height: 56px;border-bottom:1px solid #ebebeb;display: flex;} -#selectionSubject p:first-child{background-color: #F5F5F5;text-align: center;border-bottom: none;color: #666666;padding: 0px 30px;margin: 0px!important;} -#selectionSubject p span{min-width: 80px;float: left;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;padding: 0px 5px;box-sizing: border-box;text-align: center;color: #989898} -#selectionSubject p span.s-w{width:130px;} -#selectionSubject p span.m-w{width:170px;} -#selectionSubject p span.l-w{width:240px;} -/*毕设任务*/ -.teamPartForm{background-color: #F4F4F4;padding: 10px 20px;height: 416px;overflow-y: auto;width: 404px;box-sizing: border-box} -.teamPartForm li{line-height: 28px;background-color: #fff;padding: 0px 20px;display: flex;margin-bottom: 10px;} -.teamPartForm li span{float: left;} -.teamPartForm li a{float: right;} -.teamPartForm li a.i-opacity{opacity: 0.4} -/*评阅--评论*/ -.task-commits-item{padding:30px 0px;display: flex;border-bottom: 1px solid #EBEBEB;} -.task-commits-item:last-child{border-bottom: none;} -.task-c-i-sub{padding:20px 0px;display: flex;border-bottom: 1px solid #EBEBEB;} -.task-c-i-sub:last-child{border-bottom: none;} -.r-p-f-span{position: absolute;right: 3px;bottom: 10px;color: #999;font-size: 12px;line-height: 15px;} - -/*----------------------------超级管理员------------------------------------*/ -.NotCountUrl{display: inline-block;height: 22px;text-align: center;width: 22px;line-height: 22px;color: #fff;background-color: #666;border-radius: 4px;} -.havaCountUrl{background-color: #91D5FF;display: inline-block;height: 22px;text-align: center;width: 22px;line-height: 22px;border-radius: 4px;color: #2B9AFD!important;} -.manageName{display: inline-block;height: 22px;line-height: 22px;padding: 0px 5px;border:1px solid #91D5FF;background-color: #E6F7FF;color: #91D5FF;border-radius: 4px;margin-top: 5px;} -/*工程认证*/ -.ManagerFindPanel{width: 260px;height: 34px;} -.ManagerFindPanel > input{width: 100%;border:1px solid #eee;padding: 0px 25px 0px 5px;outline: none;box-sizing: border-box;height: 34px;line-height: 34px;} -.ManagerFindPanel > i{position: absolute;right: 5px;top:0px;color: #eee;} - -.majorItem{margin-bottom: 10px;} -.majorItem-line{height: 40px;line-height: 40px;background-color: #f5f5f5;font-size: 14px;padding: 0px 10px;cursor: pointer;color: #666;} -.collegeManage{float: left;padding: 0px 8px;border-radius: 6px;background-color: #f5f5f5;margin: 3px 0px 3px 10px;height: 34px;line-height: 34px;} -/*合作伙伴*/ -.edu-cooperation li{height: 60px;width: 210px;padding: 10px 0px;margin-left: 20px;float: left;margin-bottom: 20px;text-align: center;line-height: 40px;box-sizing: border-box} -.edu-cooperation li img{height: 40px;width: 210px;} -/*单位-合作伙伴*/ -.addOperation{width: 100%;display: block;height: 56px;line-height: 56px;text-align: center;border-bottom: 1px solid #eee;} -.partnerList li a{ - display: block;height: 40px;line-height: 40px;padding:0px 10px;width: 100%;overflow:hidden; white-space: nowrap; text-overflow:ellipsis; - box-sizing: border-box;position: relative; -} -.partnerList li a.active:after{ - position: absolute;left: 0px;height: 100%;width: 2px;content: '';background: #4cacff; -} -.partnerList{max-height: 500px;overflow-y: auto;} -.manageList{float: left} -.manageList li{width: 60px;float: left;margin-right: 15px;border-radius: 50%;text-align: center;position: relative;margin-bottom: 10px;} -.manageList li>a.addManage,.manageList li>img{width: 60px;height: 60px;line-height: 49px;margin-right: 10px;border-radius: 50%;display: block} -.addManage{display: block;background: #cdcdcd;color: #fff!important;font-size: 55px;} -.managementName{display: block;width: 60px;color: #666;} -.removeImg{position: absolute;right: 1px;top: -12px;} -.tableList .tableHead{background: #fafafa} -.tableList{min-height: 400px;} -.tableList li{height: 45px;line-height: 45px;} -.tableList li span{float: left;display: block;text-align: center} -.tableList li span:nth-child(1){width: 10%} -.tableList li span:nth-child(2){width: 60%;text-align: left} -.tableList li span:nth-child(3){width: 10%;float: right} -.tableList li span:nth-child(4){width: 20%;float: right} - - -/* 兼容(小屏幕)手机浏览器 */ -.newHeader , .newMain , .newFooter { - max-width: unset; -} -.educontentTop{ - width: 1178px !important; -} -.inner-footer_con { - width: auto; -} - -.competition_img{width: 120px; height: 90px;} - -.careershover{ - margin-right:30px !important; -} -.careershover ul li a{ - color:#000 !important; -} -.careershover ul li{ - height: 35px !important; - line-height: 35px !important; -} -.edu-menu-listnew{ - width: 165px !important; - top: 60px; - left: 0px; -} -.edu-menu-listnew li{ - padding: 0px 0px 0px 8px !important; - text-align: left; - margin-right: 0px !important; -} -.edu-menu-listnew li a{ - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - color:#000 !important; - width:85% !important; - margin-left: 24px; -} - -.edu-menu-listnew li a:hover{ - color:#fff !important; -} - -.edu-menu-panel:hover .careersiconfont, .edu-menu-panel:hover{ - color:#4C4C4C !important; -} - -/*工程认证*/ -/*首页*/ -.authMainImg{width: 100%;height: 240px;background:url("/images/educoder/auth/banner1.jpg") no-repeat top center;background-size: 100% 100%;justify-content: center;align-items: center;display: -webkit-flex;} -.ListTableLine>p,.ListTableLine>.ListTableTitle{padding: 0px 30px;background-color: #F5F5F5;line-height: 40px;height: 56px;padding-top: 8px;box-sizing: border-box;} -.ListTableLine>p span,.ListTableTitle span{float: left;color: #666;box-sizing: border-box} -.ListTableLine li.clearfix{min-height: 48px;padding: 10px 0px;box-sizing: border-box;margin:0px 30px;border-bottom: 1px solid #eaeaea;} -.ListTableLine ul li.clearfix:last-child,.ListTableLine li.clearfix:last-child{border-bottom: none;} -.ListTableLine li>span{float: left;box-sizing: border-box;} - -.ListTableLine.disInline > .ListTableTitle,.ListTableLine.disInline li{line-height: 20px;min-height: 56px;} -.ListTableLine .column-No{text-align: center;width: 80px;float: left;} -.ListTableLine .column-first{text-align: center;width: 30px;float: left;margin-right: 20px} -.ListTableLine .column-second{text-align: center;width: 42px;float: left;margin-right: 20px} -.ListTableLine .column-1{width: 100px;text-align: left;padding-left: 5px;box-sizing: border-box} -.ListTableLine .column-2{width: 180px;text-align: center;padding-left: 5px;box-sizing: border-box} -.ListTableLine .column-3{width: 330px;text-align: left;padding-left: 5px;box-sizing: border-box} -.ListTableLine .column-4{width: 400px;text-align: left;padding-left: 5px;box-sizing: border-box} -.ListTableLine .column-5{width: 120px;text-align: center;padding-left: 5px;float: right;box-sizing: border-box} -.newListTableLine .column-5{width: 103px;text-align: center;padding-left: 5px;float: right;box-sizing: border-box} -.ListTableLine .column-6{width: 130px;padding-left: 5px;box-sizing: border-box;text-align: center;} -.ListTableLine .column-7{width: 200px;text-align: center;padding-left: 5px;box-sizing: border-box} -.ListTableLine .column-8{width: 280px;text-align: left;padding-left: 5px;box-sizing: border-box} -.ListTableLine .column-9{width: 199px;text-align: left;padding-left: 5px;box-sizing: border-box} -.ListTableLine .column-10{width: 201px;text-align: left;padding-left: 5px;box-sizing: border-box} -.ListTableLine .column-11{width: 90px;text-align: left;padding-left: 5px;box-sizing: border-box} - -.managerPanel a{margin-right:24px;} -.managerPanel a:nth-child(16n){margin-right: 0px;} -.managerPanel a span{display: block;text-align: center;max-width: 48px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color: #666;} -.managerPanel a:hover span{color: #4cacff!important;} -/*具体学年*/ -.MajorName{display: inline-block;position: relative;padding: 0px 5px;height: 28px;line-height: 28px;background-color: #ebebeb;border-radius: 14px;color:#323232;margin:0px 3px 5px 3px;} -.MajorColumn{max-width: 362px;} -.MajorName > i{position: absolute;top:-11px;right:-5px;color: #CBCBCB;cursor: pointer;} -.MajorName > i:hover{color: #4CACFF} -/*培养目标*/ -#traningNav{margin-bottom: 0px!important;} -#traningNav>li{float: left;padding:0px 30px 30px 30px;font-size: 16px;} -#traningNav>li>a,#traningNav li>i{color: #666!important;position: relative} -#traningNav>li.active > a,#traningNav li.active > i{color: #05101A!important;} -#traningNav>li.active > a:after{content: '';position: absolute;width: 64px;left: 50%;margin-left: -32px;height: 2px;background-color: #05101A;bottom: -35px;} - -#traningNav>li>.ecTitle {width: 20px;height: 20px;border: 1px solid rgba(65, 140, 205, 1);border-radius: 50%;text-align: center; -line-height: 20px;display: inline-block;color: rgba(65, 140, 205, 1) !important;margin-right: 8px;} -#traningNav>li>.ecTitlefont:hover{color: rgba(65, 140, 205, 1) !important;} -.ecimgs{height: 90px;line-height: 90px;box-sizing: border-box;} -#traningNav>li>.ecTitlefontFFF{color:#fff!important;} -#traningNav>li>.ecTitleFFF {width: 20px;height: 20px;border: 1px solid #fff;border-radius: 50%;text-align: center;line-height: 20px; - display: inline-block;color: #fff !important;margin-right: 8px;} -.traningNavs>li {padding: 0px 10px 30px 12px !important;} -.ecimgs1{background: url("/images/educoder/auth/1.png");background-repeat: no-repeat;background-size: 100% 100%;-moz-background-size: 100% 100%; - height: 90px;line-height: 90px;box-sizing: border-box;} -.ecimgs3{background: url("/images/educoder/auth/3.png"); background-repeat: no-repeat;background-size: 100% 100%; - -moz-background-size: 100% 100%;height: 90px;line-height: 90px;box-sizing: border-box;} -/*毕业要求VS培养目标*/ -.sustain{display: inline-block;width: 14px;height: 14px;background-color: #29BD8B;border-radius: 50%;} -.gaugeOutfit{position: relative;height: 70px;width: 120px;background:linear-gradient(30deg,transparent 49.5%,#eee 50%,#eee 50%,transparent 50.5%);} -.gaugeOutfit span:first-child{position: absolute;left: 8px;top: 46px;} -.gaugeOutfit span:last-child{position: absolute;right: 8px;top: 14px;} -.sustainLine td:not(:first-child):hover{background-color:rgba(41,189,139,0.1);cursor: pointer} -/*毕业要求VS课程体系*/ -.tableScroll{width: auto;white-space:nowrap;min-width: 100%;} -/*课程目标VS毕业要求指标点*/ -.CourseTargetPoint thead th{vertical-align: baseline;} -.CourseTargetPoint tbody tr td{vertical-align: top;} -/*毕业要求对通用标准的支撑*/ -.td-head{height: 82px;} -.td-head-child{line-height: 82px;height: 82px;} -#requireTable tbody { - display:block; - max-height:800px; - overflow-y:auto; - overflow-x: hidden; -} - -#requireTable thead,#requireTable tbody tr { - display:table; - width:100%; - table-layout:fixed; -} - -#requireTable thead { - width: calc( 100% ) -} -#requireTable thead .td-head-child:last-child{border-right: none;} - - -/*用户列表*/ -.managerPanels a{margin-right:24px;} -.managerPanels a:nth-child(16n){margin-right: 0px;} -.managerPanels a span{display: block;text-align: center;max-width: 70px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color: #666;} -.managerPanels a:hover span{color: #4cacff!important;} -.userimg{position: absolute;top: -16px;right: -5px;} -.useradd{font-size: 42px !important; position: absolute; top: -16px;} -.ListTableLines .column-2{ - width: 150px; - text-align: center; - padding-left: 5px; - box-sizing: border-box; - color:#999999; -} -.ListTableLines .column-No{ - color:#999999; -} -.courselist .column-2{ - width: 150px; - text-align: center; - padding-left: 5px; - box-sizing: border-box; - color:#656565; -} -.courselist .column-No{ - color:#999999; -} -.poll_list a { - display: inline-block; - padding: 20px; - font-size: 18px; - text-align: center; - position: relative; - color: #05101a; +/*--------------------------首页*/ +/*头部导航条样式---2018-03-19--by-cs*/ +.newHeader{background: #24292D;width:100%; height: 60px; min-width: 1200px;position: fixed;top: 0px;left: 0px;z-index:1000;-moz-box-shadow: 0px 0px 12px rgba(0,0,0,0.1); /* 老的 Firefox */box-shadow: 0px 0px 12px rgba(0,0,0,0.1);} +.newHeader .logoimg{margin-top:12px;float: left;width: 36px} +.head-nav{float: left;width: 780px;text-align: center;height: 60px;box-sizing: border-box; min-width: 400px;} +.head-nav ul#header-nav{position: absolute;top: 0px;z-index: 3;height: 60px;box-sizing: border-box;padding-left: 30px;} +.head-nav ul#header-nav li{float: left;height: 60px;line-height: 60px;margin-right: 30px;cursor: pointer;position: relative;font-size: 16px} +.head-nav ul#header-nav li a{display: block;height: 100%;width: 100%;color: #fff} +.head-nav ul#header-nav li a:hover{color: #cccccc;} +.head-nav ul#header-nav li:last-child{margin-right: 0px} +.head-nav ul#header-nav li.active a{color:#459be5 !important;} +.head-nav ul#header-nav li.active p{color:#459be5 !important;} +.head-nav ul#header-nav li p:hover {color: #cccccc;} +.head-nav ul#header-nav li p{display: block;height: 100%;width: 100%;color: #fff} +.head-nav ul#header-nav li.active div ul li a {color: #000 !important;} +.head-nav ul#header-nav li.active div ul li a:hover {color: #FFF!important;} +.head-nav ul#header-nav li.active ul li a {color: #000!important;} +.head-nav ul#header-nav li.active ul li a:hover{color:#FFF !important;} +.head-nav ul#header-nav li.active:after {content: '';position: absolute;left: 0px;top: auto;bottom: 10px;right: auto;height: 2px;width: 14px;background-color: #459be5;} +.nav-img{position: absolute;top:2px;right: -8px;display: none} + +.head-right{box-sizing: border-box;height: 60px; background: #24292D; } +.head-right i{margin-top:12px;float: right;margin-right: 15px;margin-left: 15px;} +/* tpm*/ +.educontent .icon { padding-left: 0px !important; padding-top: 0px !important; padding-bottom: 0px !important;} +em.vertical-line{display: inline-block;width: 2px;background: #999;height: 10px} +.newslight{position: absolute;display: block;background: #FF6800;border-radius:30px;left: 25px;top: 13px;padding:0px 2px;color: #fff;font-size: 11px; + height: 16px;line-height: 15px;min-width: 12px;text-align: center;} + +#ratePanel{position: relative;width: 512px;height: 170px;left: -30px;top: -2px;display: none} +.rateTrangle{display: block;border-width: 8px;position: absolute;top: -8px;left: 35px;border-style: dashed solid dashed dashed;border-color: transparent transparent #fff transparent;font-size: 0;line-height: 0;z-index: 2} +.ratePanelContent{width: 100%;padding: 20px;box-sizing: border-box;height: 160px;background-color: #fff;box-shadow: 0px 0px 5px rgb(202, 193, 153);position: absolute;top: 8px;z-index: 1} +#commentsStar{height: 30px;padding-top: 7px;box-sizing: border-box;} +.ratePanelContent-left{justify-content: center;align-items: center;display: -webkit-flex;height: 100%;} +.greybar{width: 210px;position: relative;height: 8px;background-color: #CDCDCD;border-radius: 4px;margin-left: 10px;float: left;margin-top:8px;} +.yellowBar{position: absolute;top: 0px;height: 8px;border-radius: 4px;left: 0px;background-color: #FFA800;display: block} +.ratePanelContent-left span{display: block;text-align: center} +/*----------------------------------首页查询输入框*/ +.search-all{width: 216px;margin: 0px auto;position: relative;background-color: #24292D;} +.seperateLine { border-left: 1px solid #EAEAEA;float: left;height: 16px;margin-top: 22px; visibility: hidden;} +.search-all .search-input{ width: 181px; outline: none;border: none;height: 30px;margin-top: 15px;border-bottom: 1px solid #eee;background: none;padding-left: 10px;box-sizing: border-box;color: #fff} +.search-all .search-clear{font-size: 14px;display: inline-block;width: 50px;text-align: center;color: #656565;line-height: 60px;cursor: pointer} +.search-icon{color: #656565;display: block;display: inline-block;height: 60px;width: 30px;cursor: pointer;} +.search-icon path{ fill: #4CACFF;} + +/* 右侧内容宽度变化的话,需要调整posi-search right的值*/ +.posi-search{opacity: 1;position: absolute;top: -2px;background: #fff;z-index: 2; right: -241px;} + .posi-search.unlogin{right: -191px;} +.search-content{box-sizing: border-box;position: absolute;height: 300px;background: #fff;border-radius: 0px 0px 5px 5px;width: 100%;left: 0px;top:58px;box-shadow: 0 4px 8px 0 rgba(0,0,0,.2);overflow-y: auto} +.search-title{height: 40px;line-height: 40px;padding-left: 20px;font-size: 12px;color: #bbb;text-align: left} +.search-content a{display: inline-block;width:100%;height: 30px;line-height: 30px;padding:0px 20px;box-sizing: border-box;text-align: left;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;} +/*底部*/ +.newFooter{ position: absolute; bottom: 0; width: 100%; height: 235px;background: #323232; clear:both; min-width: 1200px;z-index:8;left: 0px;} +.footercon{border-bottom:1px solid #47494d;} +.inner-footernav{width: 560px;margin: 0px auto} +.inner-footernav li{float: left;height: 50px;width: 80px;text-align: center} +.inner-footernav li a{width: 100%;text-align: center;line-height: 50px;color: #888} +.inner-footer_con{ width: 1200px; margin: 0 auto;} +.footer_con-p{ color: #888; margin-top:10px;} +/*banner图*/ +.banner{width:100%;height:345px;position: relative;overflow: hidden;border-radius: 10px;} +.banner .img{position: absolute;left:0px;top:0px;} +.banner .img li{float:left;width:1200px;height: 345px;} +.banner .img li a{display: block;width: 100%;height: 100%} +.banner .img li img{width: 100%;height: 345px;} +.banner .num{position:absolute;width:100%;bottom:30px;left:0px;text-align: center;font-size: 0px;} +.banner .num li{width: 7px;height: 7px;background:rgba(225,225,225,0.3);border-radius: 50%;display: inline-block;margin:0 5px;cursor: pointer;} +.banner .num li.on{width: 12px;border-radius: 8px;} +.banner-l{position: absolute;left: -76px;top:0px;width: 76px;text-align: left;height: 100%;width: 76px;display: none;cursor: pointer} +.banner-r{position: absolute;right: -76px;top:0px;width: 76px;text-align: right;height: 100%;width: 76px;display: none;cursor: pointer} +.banner-r img,.banner-l img{padding-top: 148px;} + +/*更多*/ +.moreitem{position: absolute;right: 5px;top:35px;height: 15px;color:#656565} +/*块状列表*/ +.square-list{width: 100%;box-sizing: border-box;margin-top:20px} +.square-Item{position: relative;width:280px;margin-right: 26px;margin-bottom: 26px;float: left;border-radius: 6px;background-color:#fff;box-shadow: 0px 0px 12px rgba(0,0,0,0.1); } +.square-Item:hover{bottom: 3px; box-shadow: 0px 0px 12px rgba(0,0,0,0.3);} +.square-Item:hover .closeSquare{display: block} +.square-Item:nth-child(4n+0){margin-right: 0px;} +.square-Item .square-img{display: block;width: 100%} +.square-Item .square-img img{width: 100%;border-radius: 6px 6px 0px 0px;vertical-align: bottom;height: 210px;} +.square-main{padding:15px 20px;box-sizing: border-box;} +.course-bottom{height: 48px;padding: 10px 0px;box-sizing: border-box} +.squareIconSpan{line-height: 25px} +/*块状列表(小)---列如实训路径详情选择实训*/ +.square-Item.smallSquare{width: 32%;margin-right: 1.33%;margin-bottom: 10px;min-height: 210px; border: none;} +.square-Item.smallSquare:hover{bottom: 0px; box-shadow: 0px 0px 12px rgba(0,0,0,0.1); } +.smallSquare:nth-child(3n+0){margin-right: 0px;} +.partimg{height: 180px;width: 100%;border-radius: 6px 6px 0px 0px;} +/*块状列表上面的绿色标签*/ +.tag-green{position: absolute;left: 0px;top:20px;} +.tag-green .tag-name{display: block;width: auto;background-image: url("/images/educoder/tag1.png");background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;} +/*发送至弹框里的下拉框*/ +.downSelectOption{position: relative;height: 35px;} +.downSelectOption .showOption{background-color: #F4F4F4;border: 1px solid #EAEAEA;width: 100%;padding: 5px 40px 5px 5px;outline: none;height: 100%;box-sizing: border-box;} + +.iconPosition{position: absolute;right: 10px;top:5px;} +.downOptions{display: none;cursor: pointer;position: absolute;left: 0px;width: 100%;top: 35px;padding: 5px 0px;height: 200px;overflow-y: auto;background-color: #fff;box-shadow:0px 1px 4px 1px rgba(76,76,76,0.2);z-index: 2 } +.downOptions p{height: 28px;line-height: 28px;padding-left:20px;box-sizing: border-box;cursor: pointer} +.downOptions p:hover{background-color: #F6F6F6;} + +/*门户左侧导航栏*/ +.user_navlist{position: absolute;left: 0px;width: 160px;top:0px;height: 100%;} +.user_navlist_black{position: relative;width: 100%;height: 100%;border-radius: 8px 0px 0px 8px;background: rgba(0,0,0,0.8);} +.user_navlist_white{position: absolute;left: 160px;background: #FFFFff;width: 622px;min-height: 345px;top: 0px;z-index: 1;display: none;padding:0px 30px;box-sizing: border-box;box-shadow: 0px 0px 10px rgba(76,76,76,0.2);z-index: 99} +.user_navlist_white a{color: #989898;margin-right: 15px;font-size: 14px;display: block;float: left;height: 30px;line-height: 30px;} +.user_navlist_white a:hover{color: #4cacff} +.headIcon{height: 100%;box-sizing: border-box;margin: 0px!important;} +.headIcon:hover i{color: #4cacff!important;} +.black_nav_list{padding: 4px 0px;box-sizing: border-box;height: 100%;} +.black_nav_list li{line-height: 42px;height: 42px;color: #fff;cursor: pointer;} +.black_nav_span{display: block;margin:0px 20px;border-bottom: 1px solid #4B4B4B;padding-left: 8px;color: #FAFAFA} +.welcome_shixun_index:last-child .black_nav_span{border-bottom: none} +.black_nav_list li:hover{background: #fff;} +.black_nav_list li:hover .black_nav_span{color: #05101A!important;} +.black_nav_list li:hover > a{color:#4cacff!important;} +.black_nav_list li:hover .user_navlist_white{display: block} +.navlistpanel-line{border-bottom: 1px solid #EBEBEB;} +.navlistpanel-line:last-child{border-bottom: none;} +.little-title{width: 100%;height: 20px;line-height: 20px;color: #05101a;font-size:15px;margin-bottom: 8px; } +/*排行榜*/ +.ranking{text-align: center;margin-top:40px} +.grade{width: auto;display: inline-block;} +.grade li{float: left;margin:0px 10px;width: 60px;} +.ranking a img{width: 60px;height: 60px;border-radius: 50%;box-shadow: 0px 0px 12px rgba(0,0,0,0.2);} +.mentor-ranking{background-color: #EFEFEF;background-size:100% 100%;} +.rankName{display: block;width: 68px;} +.huangguan{position: absolute;top: -30px;left: 13px;} +/*消息盒子*/ +.news-list{max-height: 150px;overflow-y: auto} + +/* + colorbox + User Style: + Change the following styles to modify the appearance of Colorbox. They are + ordered & tabbed in a way that represents the nesting of the generated HTML. +*/ +#cboxOverlay{background:#fff;} +#colorbox{outline:0;} +#cboxTopLeft{width:25px; height:25px; background:url(/images/colorbox/border1.png) no-repeat 0 0;} +#cboxTopCenter{height:25px; background:url(/images/colorbox/border1.png) repeat-x 0 -50px;} +#cboxTopRight{width:25px; height:25px; background:url(/images/colorbox/border1.png) no-repeat -25px 0;} +#cboxBottomLeft{width:25px; height:25px; background:url(/images/colorbox/border1.png) no-repeat 0 -25px;} +#cboxBottomCenter{height:25px; background:url(/images/colorbox/border1.png) repeat-x 0 -75px;} +#cboxBottomRight{width:25px; height:25px; background:url(/images/colorbox/border1.png) no-repeat -25px -25px;} +#cboxMiddleLeft{width:25px; background:url(/images/colorbox/border2.png) repeat-y 0 0;} +#cboxMiddleRight{width:25px; background:url(/images/colorbox/border2.png) repeat-y -25px 0;} +#cboxContent{background:#fff; overflow:hidden;} +.cboxIframe{background:#fff;} +#cboxError{padding:50px; border:1px solid #ccc;} +#cboxLoadedContent{margin-bottom:20px;} +#cboxTitle{position:absolute; bottom:0px; left:0; text-align:center; width:100%; color:#999;} +#cboxCurrent{position:absolute; bottom:0px; left:100px; color:#999;} +#cboxLoadingOverlay{background:#fff url(/images/colorbox/loading.gif) no-repeat 5px 5px;} +/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */ +#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; } +/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */ +#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;} +#cboxSlideshow{position:absolute; bottom:0px; right:42px; color:#444;} +#cboxPrevious{position:absolute; bottom:0px; left:0; color:#444;} +#cboxNext{position:absolute; bottom:0px; left:63px; color:#444;} +#cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;} + +/*-----------------------------登录-------------------------------*/ +.login_register{height: 100%; width: 100%;background-size: 100% 100%;background-image:url("/images/educoder/logo-bg.jpg");position: fixed;bottom: 0px;right: 0px;min-height: 700px;} +.login_reg{width: 414px;margin:0px auto;background-size: 100% 100%;} +#register_content{border-radius: 5px;background: #FFFFff;width: 100%;text-align: center;margin-top: 75px;padding: 40px 30px;box-sizing: border-box} +#log_reg_content{border-radius: 5px;background: #FFFFff;width: 100%;text-align: center;position: absolute;top: 165px; + left: 0px;padding: 40px 30px;box-sizing: border-box} +.log_nav{border-bottom:1px solid #eaeaea;} +.log_nav li{float: left;text-align: center;font-size: 16px;padding-bottom:15px;margin: 0px 20px;cursor: pointer;} +.log_nav li.active{border-bottom: 2px solid #459be5;} +.log-botton{width: 100%;text-align: center;color: #FFFFff!important;display: block;background: #cbcbcb;height: 45px;line-height: 45px;border-radius: 4px;letter-spacing: 2px;cursor: pointer} +.log-botton:hover{color: #FFFFff!important;} +.log-botton.active{background: #4cacff;} +.gain-code{width: 48%;display: block;float: right;height: 45px;line-height: 45px;text-align: center;background: #CBCBCB;color: #FFFFff!important;border-radius: 4px;cursor: pointer} +.gain-code:hover{color: #FFFFff!important;} +.logo-redirect{display: block} +.logo-redirect img{width: 105px;} + +/*-----------------------------注册、找回密码、绑定邮箱----------------------------*/ +div.title_detail{width: 660px;margin:0px auto;} +div.title_detail img{width:180px} +p.copyright_info{text-align: center; margin-top: 60px;} +.reg_pass{width: 100%;min-width: 1200px;background: url('/images/educoder/account_bg.png') no-repeat top center;min-height: 100%;height: 100%;position: relative;} +.account_main{width: 660px;margin:0px auto;background-color:#FFFFff;box-shadow: 0 1px 12px 0 rgba(0,0,0,.2);border-radius: 8px;} +.account_title{height: 85px;line-height: 85px;text-align: center;background-color: #459be5;color: #FFFFff;border-radius: 8px 8px 0px 0px;font-size: 20px} +.account_safe{background: #fff;color:#05101a;border-bottom: 1px solid #eaeaea} +#account_input,#bind_email{width: 400px;margin: 0px auto;padding: 40px 0px;box-sizing: border-box} +.realheight{padding-top:140px;} +@media screen and (max-height: 1000px) { + .realheight{padding-top:50px;} +} +@media screen and (max-height: 800px) { + .realheight{padding-top:10px;} +} + +/*----------------------------用户资料完善、认证等页面-----------------*/ +.all_submit_btn,.authed_submit_btn{width: 340px;height: 48px;line-height: 48px;text-align: center;color: #FFFFff!important;background: #4cacff;border-radius: 4px;display: block;margin: 20px auto 40px;font-size: 18px;}/*提交、保存*/ +.submit_btn,.submit_save_btn{width: 180px;text-align: center;height:48px;line-height: 48px;border-radius: 4px;color: #FFFFFF!important;} +.submit_btn{float: right;background-color: #4CACFF;} +.submit_save_btn{float: left;background-color: #CDCDCD;} +.authed_submit_btn{background-color: #cccccc;} +.choosefile{width: 120px;height: 70px;border-radius: 4px;text-align: center;line-height: 70px;display: block;color: #FFFFff!important;background: #cccccc}/*选择文件*/ +#upload_img_file{width: 120px;height: 70px;border-radius: 4px;}/*更换照片*/ +.changephotos{display: block;position:absolute;width: 100%;height: 100%;left: 0px;top: 0px;background-color:rgba(0,0,0,0.2);color: #FFFFff!important;line-height: 70px;text-align: center;display: none } +#upload_img_file:hover .changephotos{ display: block} +.apply_link{position: absolute;right: -95px;top: 9px;} +/*账号安全*/ +.account_left{float: left;width: 15%;text-align: center;box-sizing: border-box} +.account_middle{float: left;width: 65%;} +.account_right{float: right} + +/*----------------------------试用申请弹框--------------------------*/ +.reUploadDetail{border:1px solid #dddddd; padding: 0 5px; float:left; resize:none; width:418px; height:80px; overflow-y:auto;outline: none;} + +/*-----------------------------个人主页页面-begin-------------------------*/ +.user-main-half{width: 100%;height: 465px;background: #fff;margin-bottom: 20px;position: relative} +.user-headImg{width: 100%;height: 160px;background-image: url("/images/educoder/userhead.jpg");position: absolute;width: 100%;left: 0px;top:0px} +.user-headCon{position: absolute;width: 100%;left: 0px;top:0px;min-height: 465px;} +.inline{width: auto;display: inline-block;} +.headtab{width: 188px;height: 60px;text-align: center} +.headtab span,.headtab a{display: block;width: 100%;text-align: center;} +.headtab span{color: #989898;font-size: 14px;} +.headtab a{color: #fff;font-size: 24px;} +.headphoto{text-align: center;background: #FFFFff;width: 115px;height: 115px;padding: 3px;border-radius: 50%;position: relative;float: left;margin-top: 19px;box-sizing: border-box} +.headphoto img{width: 109px;border-radius: 50%;height: 109px;} +.headphoto-black{display: none;cursor: pointer;position: absolute;top: 3px;left: 3px;width: 109px;height: 109px;text-align: center;line-height: 112px;border-radius: 50%;background-color: rgba(0,0,0,0.3);color: #fff;} +.myName{display: block;width: auto;color: #05101A;font-size: 24px;height: 28px;line-height: 28px;margin-top: 5px} +.mypost{color: #686868;font-size: 14px;display: block;width: auto;height: 20px;line-height: 20px;} +.mysign-span{margin: 0 auto;color: #05101A;font-size: 14px;display: block;width: 280px;cursor: pointer;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;} +.mysign-input{margin: 0 auto;color: #05101A;font-size: 14px;width: 280px;height: 28px;border: none;outline: none;text-align: center} +.v-h-line{display: block;width: 1px;height: 40px;background-color: #999;margin-top: 12px;} +.navPositon{position: absolute;bottom: 0px;width: 100%;} +.user-nav-item li{float:left;margin:0px 40px;padding-bottom: 7px} +.user-nav-item li a{color: #666;font-size: 16px;} +.user-nav-item li.active{color: #05101A;border-bottom: 2px solid #05101A;padding-bottom: 5px} +.user-nav-item li.active a{color: #05101A;} + + +/*我的实训、进度条*/ +.user-bar{position: relative;width: 100%;height:8px;background-color: #CDCDCD;border-radius: 4px;} +.user-bar p{position: absolute;left: 0px;top: 0px;height: 100%;background-color: #4CACFF;border-radius: 4px;} +/*我的课堂和我的项目,公开梯形*/ +.publicpart{position: absolute;left: 1px;top:1px;width: 0;height: 0;border-left: 80px solid #4cacff;border-bottom: 80px solid transparent;z-index: 1;} +.publicpart.orangeBlack{border-left: 80px solid #FF6800;} +.smalltrangle{display: block;position: absolute;left: 1px;top:1px;border-left: 25px solid #fff;border-bottom: 25px solid transparent;z-index: 2;} +.publicword{transform:rotate(-45deg);text-align: center;color:#FFF;font-size: 14px;display: block;position: absolute;width: 50px;left: 0px;z-index: 3;top: 15px;} + +.closeSquare{position: absolute;width: 100%;left: 0px;top: 0px;text-align: center;background-color: rgba(0,0,0,.5);height: 100%;z-index: 5;display: none;cursor: default} +.substance{padding: 40px 40px 0px 40px;box-sizing: border-box;text-align: center;border-bottom: 1px solid #EAEAEA;height: 250px;} +.subName{line-height: 20px;height: 40px;text-align: center;color: #1A0B00;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;} +/*题库以及资料*/ +.secondNav li{color: #676767;margin-right:40px;float: left} +.secondNav li a:hover{color: #4CACFF} +.secondNav li.active a{color: #4CACFF} +/*题库*/ +.dataBank_Item{margin-bottom: 3px;width: 100%;border-bottom: 1px solid #EEEEEE;padding: 17px 37px 17px 20px;box-sizing: border-box;background: #fff;display: flex;cursor: pointer} +.dataBank_Item:hover{box-shadow:0px 0px 15px rgba(76,76,76,0.2)} +.dataBank_Item:last-child{border:none; } +.dataItemLeft{margin-right: 20px;width: 20px;} +.dataItemRight{flex: 1;} +.edit-del-data{width: 325px;} +.dataTitle{color: #05101A;display: block;float: left;max-width: 400px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;} +.itembottom span.bottomspan{display: block;width: 200px;text-align: left} +.authForBank{min-height: 400px;padding-top: 154px;box-sizing: border-box} +.search_course_list{height: 150px;overflow-y: auto} +.search_course_list li{height: 30px;} +/*资料*/ +.userdata{width: 622px;margin: 0px auto;background: #fff;margin-bottom: 80px;padding: 40px;box-sizing: border-box;border-radius: 4px} +label.infolabel{display: block;float: left;width: 56px;text-align: right;margin-right: 30px;color: #989898;} +.infosign{display: block;flex: 1;float: left;word-wrap: break-word;word-break: break-all;} +.empiric-value{padding:10px 40px;box-sizing: border-box;background-color: #fff;} +.empiric{border-bottom: 1px solid #EBEBEB;} +.empiric li{float: left;padding: 10px 0px;} +.empiric:last-child{border-bottom: none;} +.em-name{width: 13%;text-align: left;} +.em-val{width: 10%;text-align: center;} +.em-time{width: 25%;text-align: center;color: #9A9A9A} +.em-con{width: 52%;text-align: left;color: #666;} + +/*发送题库的筛选*/ +.edu-btn-search{ position: absolute; top:0px; right:15px;} +/*我的试题*/ +.ordernumber{width: 50px;text-align: center;line-height: 40px;display: block;color: #666;font-size: 16px;} + + +/*-------------------------------精选实训-------------------------------*/ +.shaiTitle{display: block;padding-right: 20px;} +.shaiContent li.shaiItem.active{background-color: #4CACFF!important;color:#fff!important;} +.shaiContent li.shaiItem{padding:3px 15px;float: left;border-radius: 4px;color: #4C4C4C;cursor: pointer;margin-right: 15px;display: block} +.shaiContent li.shaiItem:hover{background-color: #F5F5F5} +.shaiAllItem{max-width: 1138px;} +.subshaicontent{display: none;box-sizing: border-box;position: absolute;width: 100%;top: 33px;left: 0px;background-color: #fff;box-shadow:0px 1px 4px rgba(76,76,76,0.2);padding:0px 20px;z-index: 99999;border-radius: 4px;max-height: 800px;overflow-y: auto} +.subshaicontent-part{border-bottom: 1px solid #eee;} +.subshaicontent-part:last-child{border-bottom: none;} +.subshaicontent a:hover,.subshaicontent a.active{color: #4CACFF} +.subshaicontent a{float: left;margin-right: 20px;color: #999;cursor: pointer} + + +.search-new{width: 248px;height:32px;position: relative} +.search-span{display: block;position: absolute;width: 100%;height: 100%;left:0px;top:0px;background-color: #F4F4F4;border: 1px solid #EAEAEA; border-radius: 4px;z-index: 1} +.search-new-input{height: 32px;padding-left: 5px;width: 225px;border: none;box-sizing: border-box;background: none;outline: none;position: absolute;left:0px;top:1px;z-index: 2} +.search-new img,.search-new a,.search-new .searchicon{cursor: pointer;position: absolute;right:2px;top:2px;z-index: 2} +.search-new a{top: 0px} +.search-new a:hover i{color: #4cacff!important;} +.search-new-input:focus + .search-span{background-color: #fff;} + +.groupBox{position: relative;border:1px solid #EEEEEE;height: 35px;width: 140px;border-radius: 4px;cursor: pointer;} +.groupBox > .positionInput{width: 130px;border: none;height: 35px;line-height: 35px;outline: none;padding-left: 5px;box-sizing: border-box;} +.groupBox > .positionIcon{position: absolute;right: 5px;font-size: 14px!important;top: 4px;} + +.controlbtn{width: 36px;height: 15px;background-color: #CCCCCC;border-radius: 7px;cursor: pointer} +.controlblue{width: 0px;height: 15px;background-color: #4CACFF;border-radius: 7px;position: absolute;left: 0px;top:0px;z-index: 1} +.controlring{width: 13px;height: 13px;border-radius: 50%;background-color: #fff;position: absolute;left: 1px;top:1px;z-index: 2} +/*庞门用于实训,站酷黑用于路径*/ +@font-face{ + font-family: 'panmen-webfont'; + src : url('../fonts/panmen-webfont.ttf'); +} +.shixunDes{font-family: 'panmen-webfont';display: block;position: absolute;height: 100%;width: 100%;text-align: center;line-height: 220px;color: #fff;top: 0px;font-size: 24px;background-color: rgba(5,16,26,0.4);border-radius: 6px 6px 0px 0px;} +/*TPM*/ +.shixunDetail_top{width: 100%;background-image: url("/images/educoder/shixun-detail.jpg");background-size: 100% 100%;height: 240px; + justify-content: center;align-items: center;display: -webkit-flex;} +.task-item{margin-top: 30px;padding-bottom: 30px;border-bottom: 1px solid #eee} +.task-item:last-child{border-bottom: none;} +.challengeNav a.active{color: #4CACFF;} +.recomments{margin-bottom: 30px;padding-bottom:30px;margin-top: 30px;border-bottom: 1px solid #eee} +.recomments:first-child{margin-top: 0px;} +.recomments:last-child{margin-bottom: 0px;border:none;padding-bottom: 0px;} +.url-input{border: none;padding: 0px;font-size: 12px;color:#999;outline: none} +.forkNum{display: block;float: left;width: 36px;text-align: center;border-left: 1px solid #4CACFF;background-color:rgba(76,172,255,0.2);color: #4CACFF!important; } +.TPMtaskName{max-width: 500px} +/*任务*/ +.recomment-name{max-width: 222px;display: block} +.task-colspan{min-width:25%;text-align: left;display: block;float: left;color: #999; } +.colspan-grey{border-radius: 12px;background-color: #E6E6E6;padding: 3px 10px;color: #747A7F} +/*新建任务*/ +.challenge_nav{padding: 40px 20px 0px 20px;border-bottom: 1px solid #eee;} +.challenge_nav li{width: auto;float: left;margin-right: 40px;position: relative} +.challenge_nav li.active:after{position: absolute;content: '';width: 50%;background-color: #4CACFF;height: 3px;border-radius: 2px;left: 25%;bottom: 0px;} +.challenge_nav li a{display: block;width: 100%;padding-bottom: 20px;} +.add_choose_type{width: 60px;height: 20px;line-height: 19px;border-radius: 2px;background-color: #eaeaea;color: #999!important;display: block;float: left;text-align: center;margin-top: 4px;} + + + +.task_tag_span{float: left;padding:0px 10px;background-color: #eee;color: #999;border-radius: 2px;margin-right: 10px;margin-bottom: 8px;} +.task_tag_span span{float: left;} +.task_tag_span a{font-size: 18px;margin-left: 5px;float: left;line-height: 28px;height: 28px;cursor: pointer} +.task_tag_span a:hover{color: #666!important;} + +.show_content_label{line-height: 48px} +.show_content_grey{padding: 10px 15px;background-color: #F4F4F4;color: #05101A;text-align: justify;word-break: break-all;border-radius: 4px;width: 100%;box-sizing: border-box} +.del_array{position: absolute;right: -35px;} +.del_array i{margin-left: 4.5px;} +.del_array:hover i{color: #4cacff!important;} +.empty{background: #494A4C;display: inline; margin: 0 2px; padding: 0 3px;} +.tab-key{background: #494A4C;display: inline; margin: 0 2px; padding: 0 6px;} +.show-span{display: block;text-align: right;min-width: 75px;} +/*选择题*/ +.option-item{border:1px solid #e2e2e2;} +.option-item,.add-option-item{display: block;width: 38px;height: 38px;text-align: center;line-height: 38px;border-radius: 4px;cursor: pointer} +.check-option-bg{background: #FF7500;color: #ffffff!important;border: 1px solid #FF7500} +.add-option-input{padding: 5px;width: 90%;height: 40px;min-width: 700px;} +.add-option-input a{display: block;width: 100%;height: 100%;cursor: pointer} +.position-delete{position: absolute;right: -22px;top: 12px;cursor: pointer} +.position-delete:hover i{color: #4cacff!important;} +/*排行榜*/ +.rankings li{line-height: 40px;height: 40px;} +.rankingindex{width: 24px;text-align: center;} +/*合作者*/ +.collaborators-item{border-bottom: 1px solid #eee;cursor: default;padding-top: 30px;padding-left: 20px} +.collaborators-item:last-child{border-bottom: none;} +.collaborators-item-middle{max-width: 300px;padding:0px 0px 20px 20px;} +.upload_select_box{ width: 100%;box-sizing: border-box; height:240px; overflow-y:auto; padding: 10px; background:#F4FAFF; color: #333; } +/*配置*/ +#evaluate_script_show + .CodeMirror{height: 300px;} +.lesson{line-height:40px;} +.lesson_img{position: absolute;right: 10px;top:10px;} +.lesson_checkbox{display: none;position: absolute;top:40px;left: -1px;width: 100%;border:1px solid #eeeeee;background: #FFFFFF;padding-bottom: 5px;height: 150px;z-index: 10} +.lesson_checkbox li{height:20px;padding:5px 10px;clear:both;line-height:28px;margin-bottom: 0;} +.lesson_checkbox li input{float: left;margin: 3px 5px 0px 0px;} +.lesson_content{width:95%;padding:5px; border: none!important;} +/*版本库*/ +.recordnav{background-color:#F0F8FF; vertical-align:middle;} +.pullreques_pullbox{border-bottom: 1px solid #eee;padding: 40px 20px;box-sizing: border-box} +.pullreques_pullbox:last-child{border-bottom: none;} +.pullreques_name{width: 120px;text-align: left;margin-right: 10px} +.pullreques_pull_txt{display: block; margin-left: 10px;max-width:640px; overflow:hidden;white-space: nowrap; text-overflow:ellipsis;} +.versionFileList li{border-bottom: 1px solid #eee;} +.versionFileList li:last-child{border-bottom: none;} + +/*项目版本库--旧版*/ +.new_roadmap_conbox .pullreques_pullbox{padding:0px!important;} + +/* 提交记录详情------文本变更样式 */ +.autoscroll {overflow-x: auto; margin-bottom: 0.2em;} +table.filecontent { border: 1px solid #e2e2e2; border-collapse: collapse; width: 100%;background-color: #fafafa;} +table.text-file{} +.old_line,.new_line,.diff_line {margin: 0px; padding: 0px;border: none; background: #f7f8fa;color: rgba(0,0,0,0.3); padding: 0px 5px; border-right: 1px solid #dce0e6;text-align: right; min-width: 35px; max-width: 50px; width: 35px; -webkit-user-select: none;} +.old_line a,.new_line a,.diff_line a { float: left;width: 35px; font-weight: normal; color: rgba(0,0,0,0.3);} +.line_content{padding: 0px 5px;} +.old{ background:#ffecec; } +.old:hover{ background:#fffaf1; } +.new{ background: #eaffea;} +.new:hover{ background:#fffaf1; } +.commit_id_value{color: white !important;} + + +/*-------------------------------实训路径-------------------------------*/ +.path-head{width: 100%;height: 300px;background-image: url("/images/educoder/path.jpg");background-color: #081C4B;background-size: 100% 100%;} +.pathNavLine{position: absolute;bottom: -8px;width: 100%;} +.path-nav li{float: left;padding: 0px 30px;height: 42px;} +.path-nav li a{color:#fff;font-size: 16px;display: block; height: 40px;} +.path-nav li.active a{border-bottom: 3px solid #4CACFF;color:#4CACFF;} +/*---实训路径详情----*/ +.subhead{width: 100%;margin-bottom:40px;background-size: 100% 100%;background-image: url("/images/educoder/path-detail.jpg");height: 240px; + justify-content: center;align-items: center;display: -webkit-flex;} +.subhead_content{width: 1200px;margin: 0px auto;} +.pathInfo li{text-align: center;float: left;margin-right: 25px;min-width: 40px;} +.pathInfo li span{display: block;} +.produce-content{padding: 40px 20px;background-color: #fff;box-sizing: border-box} + +.subject-produce{outline: none;line-height: 1.5;width: 100%;border: none;background: none;height: 30px;} +.stage-info-line:hover{background-color:rgba(142,212,254,0.3)} +.lesson-saved-list-item{border-bottom: 1px solid #EBEBEB;padding: 37px 0px} +.title-line{padding: 0px 20px;} +.paragraph{height: 50px;padding: 10px 20px 10px 47px;box-sizing: border-box} +.paragraph:hover{background-color:#F0F8FF;} +.lesson-saved-list-item:last-child{border:none;} +.click_add{text-align: center;height: 90px;line-height: 90px;background-color: #fff;border-top: 1px solid #EBEBEB;cursor: pointer} +.mustlearn{padding: 40px 25px;} +.teacherTeam{padding: 40px 25px 0px 25px;} +.teacherTeamItem{border-bottom: 1px solid #EAEAEA;padding: 40px 0px;} +.teacherTeamItem:first-child{padding-top: 0px!important;} +.teacherTeamItem:last-child{border: none;} +.addTeamMember{height: 70px;text-align: center;line-height: 70px;} +.adding-stage-item{padding: 0px 20px 20px 50px;position: relative} +.colseThispart{position: absolute;right: -6px;top:-6px;z-index: 2;line-height: 15px;} +.progressRing{display: block;width: 16px;height: 16px;float: left;position: relative;z-index: 1; } +.progressRing-over{color:#459BE6;position: absolute;top: -10px;} +.progressRing-part{color: #B3DCFF;position: absolute;top: -10px;} + +.upline{content: '';position: absolute;left: 7px;bottom: 15px;right: auto;height: 18px;width: 1px;} +.downline{content: '';position: absolute;left: 7px;top: 15px;right: auto;height: 18px;width: 1px;} + +.myProgressNav{width: 100%;position: relative;height: 10px;border-radius: 5px;background-color: #EAEAEA;} +.myProgressGreen{position: absolute;top: 0px;left: 0px;border-radius: 5px;height: 100%;background-color: #29BD8B} + +.lesson-saved-list-item .title-line .edit:hover,.lesson-saved-list-item .title-line .delete:hover{color:#ff7500!important;} +li.li-width63{width: 63%;text-align: left} +li.li-width20{width: 20%;text-align: left} +li.li-width15{width: 15%;text-align: left} +li.li-width7{width: 7%;text-align: left} + +/*-----------------------------在线课堂动态----------------------------------*/ +.courseHead{width: 100%;margin-bottom:40px;background-size: 100% 100%;background-image: url("/images/educoder/course-detail.jpg");height: 240px; + justify-content: center;align-items: center;display: -webkit-flex;} +.invite-tip{position: absolute;top: -5px;right: 140px;color: #fff; box-sizing: border-box;width: 170px;text-align: center;border-radius: 2px;background-color: rgba(5,16,26,0.6)} +.inviteTipbtn a{font-size:14px;width: 100%;height: 30px;line-height: 30px;display: block;color: #747A7F;background-color: rgba(5,16,26,0.4)} +.inviteTipbtn a:hover{color: #4cacff!important;} +.top-black-trangle{display: block;border-width: 8px;position: absolute;top: -16px;right: 4px;border-style: dashed solid dashed dashed;border-color: transparent transparent rgba(5,16,26,0.6) transparent;font-size: 0;line-height: 0;} +.right-black-trangle{display: block;border-width: 8px;position: absolute;top: 10px;right: -16px;border-style: dashed solid dashed dashed;border-color: transparent transparent transparent rgba(5,16,26,0.6);font-size: 0;line-height: 0;} +.activity-nav.active{color: #4CACFF!important;} + + +.courseNewNum{display: block;background: #FF6800;border-radius:30px;padding:0px 2px;color: #fff!important;font-size: 11px; + height: 16px;line-height: 15px;min-width: 12px;text-align: center;margin-top: 17px;} +.devide_class{max-width: 112px;} +.edu-class-leftnav{ background:#fff;} +.edu-class-leftnav li{ height: 50px;line-height: 50px;font-size:16px;cursor: pointer;position: relative;} +.edu-class-leftnav li a{padding-left: 42px;width: 100%;box-sizing: border-box;} +.edu-class-leftnav li:hover{background-color: #4CACFF} +.edu-class-leftnav li:hover a{color: #FFF!important;} +.edu-class-leftnav li:hover a,.edu-class-leftnav li:hover i{color: #fff!important;} +.edu-class-leftnav li:hover span{color: #FFF;} +.edu-class-leftnav li.active:before{content: '';position: absolute;left: 0px;top: 14px;bottom: 0;right: auto;height: 24px;width: 2px;background-color: #459be5;} +.edu-class-leftnav li.active:hover{color: #fff; } +.edu-class-leftnav li.active:hover .activity-left-name,.edu-class-leftnav li.active:hover i,.edu-class-leftnav li:hover .groupNum{color: #fff!important;} +.edu-class-leftnav li.active:hover .courseNewNum{color:#fff!important;} + +/*动态*/ +.activity-i{height: 32px;line-height: 32px;} +.activity-list{padding-left: 20px;} +.activity-item{padding: 30px 0px;display: flex;border-top: 1px solid #eee;} +.activity-item:first-child{border-top: none;} +p .activity-item:first-child{border-top: 1px solid #eee;} +.activity-title{max-width: 530px;} +.activity-tag{display: block;float: left;line-height: 48px;color: #999;font-size: 16px;width: 32px} +.loadMore{width:100%;background-color: #fff;color:#4cacff!important; text-align:center; display:block;letter-spacing: 1px;box-sizing: border-box;height: 110px;line-height: 110px;} +/*课堂设置*/ +.upperLeft{min-width:400px;} +.upperLeft-s{padding-left: 75px;} +.del-childName{position: absolute;right: -37px;top: 7px} +.addChildName{position: absolute;right: -178px;top: 10px;} +.activity-left-name{display: block;max-width: 126px;float: left; } + +/*帖子列表*/ +.panel-inner-fourm{ padding:15px 20px; border-bottom:1px solid #eee;} +.panel-inner-fourm:hover{ background:#EFF9FD;} +/*---------------------------------我的粉丝和我的关注-------------------*/ +.focus_fan_list{border-bottom: 1px solid #EBEBEB;padding: 20px 0px;display: flex} +.focus_fan_list:last-child{border-bottom: none;} +.double_f_middle{width: 56%;} + +/*如何获得金币弹框*/ +.knowThis{width: 100%;height: 45px;line-height: 45px;text-align: center;border-top: 1px solid #eee} + +/*课堂资源列表*/ +#resource_list .homepageRight{width:100%!important;box-sizing: border-box;} +.homepageRightBanner {width:100%!important; margin:0px auto; float:right; background-color: #ffffff; padding:25px 15px;border-bottom:1px solid #eee;box-sizing: border-box; } +.resources {width:100%!important;padding: 15px;float: left;box-sizing: border-box;border-top: 1px solid #EEEEEE} +.sources-bg:hover{background: #EFF9FD} +.resources:last-child{border-bottom: none;} +.homepagePostBrief{display: flex} +.homepagePostDes{flex: 1;position: relative;} +.homepagePostBrief {width:100%!important; margin:0px auto; position:relative;} +/*资源标签*/ +#sourceTag li,.bank_list_Tag{font-size: 12px;color: #4E7A9B;background-color: #E5F3FF;padding: 0px 4px;height: 20px;line-height: 20px; margin-left: 5px;display: inline-block;cursor: pointer;margin-bottom: 5px;} +#sourceTag li a{color: #4e7a9b!important;} +#sourceTag li.active{background-color: #4CACFF;color: #fff;} +#sourceTag li.active a{background-color: #4CACFF;color: #fff!important;} +/*题库的标签--和资源标签样式相似*/ +.bankTag{max-height: 82px;overflow-y: auto} +.bankTag #sourceTag li{margin-left: 0px;margin-right: 5px;} +.bank_list_Tag{cursor: default} +/*编辑试卷放到试卷预览tab内容里*/ +.editExerciseBtn{position: absolute;right: 15px;top: 10px;} + +.sourseLineTag li{display: inline-block;margin-right: 5px;} +.sourseLineTag li span{display: inline-block;font-size: 12px;cursor: default;color: #4E7A9B;background-color: #E5F3FF;padding: 0px 4px;height: 20px;line-height: 20px;} +.sourseLineTag li a{display: inline-block;margin-left: 3px;color: #cccccc;} +.sourseLineTag .addTagBtn{font-size: 12px;border:1px solid #4CACFF;color: #4CACFF;height: 20px;line-height: 20px;padding: 0px 5px;border-radius: 4px;} +/*---------------------------------消息页----------------------------------*/ +.new-info{height: 18px;min-width: 18px;line-height:18px;padding:0px 2px;box-sizing: border-box;text-align: center;background-color: #ff6800;color: #fff;border-radius: 30px;display: block;position: absolute;right: 40px;top:13px;font-size: 12px; } +.ridingNav li{float: left;margin:0px 20px;color:#999;font-size: 16px;height: 60px;line-height: 60px;position: relative;} +.ridingNav li a{display: block;width: 100%;height: 100%;color: #999999;} +.ridingNav li.active a{color: #05101A;} +.ridingNav li.active:after{content: '';position: absolute;bottom: 0px;width: 100%;height: 2px;border-radius: 1px;background-color: #05101A;} + +.new-point{display: block;width:4px;height: 4px;border-radius: 50%;background-color: #ff6800;} +.ridinglist:hover{background-color: #F5F5F5;} +.ridinglist .ridinglist-sub{border-bottom: 1px solid #F5F5F5;padding: 25px 0px;cursor: pointer;} +.ridinglist:last-child .ridinglist-sub{border-bottom: none;} +/*私信*/ +.private-item{padding: 30px 30px 30px 25px;border-bottom: 1px solid #F5F5F5;cursor: pointer} +.private-item:hover{background-color: #f5f5f5;} +.private-item:last-child{border-bottom: none;} +.writeLetter_Info{position: relative;width: 100%;height: 260px;background-color: #F6F6F6;cursor: default;border-radius: 3px;} +.writeLetter_text{width: 100%;border:none;background-color:#F6F6F6;outline: none;height: 100%;padding: 5px 5px 30px 5px;border: 1px solid #EAEAEA; box-sizing: border-box; resize: none;} +.longchar{position: absolute;background-color:#F6F6F6;bottom: 1px;color: #999999;right: 10px;} +.writeLetter_text:focus + .longchar{background-color: #fff;} +.recently_person{position: absolute;width: 100%;top: 35px;max-height: 300px;overflow-y: auto;border-radius: 4px;box-shadow: 0px 1px 6px rgba(76,76,76,0.2);left: 0px;z-index: 1;background-color: #fff;cursor: pointer;display: none} +.recently_item{padding: 10px 20px;} +.recently_name{float: left;line-height: 48px;display: block} +.recently_item:hover{background-color: #F9F9F9;} +/*私信对话框*/ +.private-list{min-height: 660px;max-height: 810px;overflow-y: auto} +.private-list .private-part{padding-left:20px;cursor: pointer} +.private-part:hover{background-color: #F5F5F5;} +.private-part.active{background-color: #F5F5F5;} +.privatePartName{max-width: 70px;float: left} +.newLetter{display: block;width: 4px;height: 4px;background-color: #FF6800;border-radius: 50%;float: right} +.part-line{padding: 30px 20px 30px 0px;border-bottom: 1px solid #f5f5f5;} +.private-part:last-child .part-line{border: none;} + +.dialogPanel{padding: 0px 20px;height: 545px;overflow-y: auto} +.letter-time{width: auto;padding: 0px 10px;background-color: #999;color: #fff;border-radius: 10px;height: 20px;line-height: 20px;} +.OtherSide,.ThisSide{margin-top: 30px;} +.OtherSide-info .trangle{position: absolute;left: -5px;top: 10px;width: 0;height: 0px;border-top: 6px solid transparent;border-right: 5px solid #f5f5f5;border-bottom: 6px solid transparent} +.OtherSide-info .sms{max-width: 300px;padding:10px 15px;box-sizing: border-box;background-color: #F5F5F5;color: #666;border-radius: 6px;text-align: justify} +.OtherSide-info .sms img{max-width: 80px;cursor: pointer} +.ThisSide-info .sms p{line-height: 20px;} +.sms{min-height: 48px;} +.ThisSide .trangle{position: absolute;right: -5px;top: 10px;width: 0;height: 0px;border-top: 6px solid transparent;border-left: 5px solid #4CACFF;border-bottom: 6px solid transparent} +.ThisSide-info .sms{max-width: 300px;padding:10px 15px;box-sizing: border-box;background-color: #4CACFF;color: #fff;border-radius: 6px;text-align: justify} +.ThisSide-info .sms p{line-height: 20px;} +.ThisSide-info .sms img{max-width: 80px;cursor: pointer} +/*作品列表*/ +.check_on{background:#4CACFF;color: #ffffff!important;border-radius: 12px;} +/*作业问答*/ +.work_search_ul li span{display:block;float: left;height: 38px;line-height: 38px} +.work_search_ul .magic-radio + label,.work_search_ul .magic-checkbox + label{top:5px} +/*查重详情*/ +.rangeInfo{background-color:#E6F3FF;} +.rangeInfo ul{position: relative;height: 30px; line-height: 30px;} +.rangeInfo ul li{display: inline-block;text-align: center;margin-right: 40px} +.rangeInfo ul:first-child:after{position: absolute;right:0px;top: 0px;content: "";height: 30px;background-color: #4CACFF;width: 1px; } +.rangeItem{padding: 10px 0px 10px 0px;} +.t-middleLine:before{position: absolute;content: "";left: -25px;width: 1px;height: 28px;top: 0px;background-color: #CDCDCD;}/*表格中间的分界线*/ +.n-line li{border-bottom: none!important;}/*去掉公用代码中的样式*/ + +/*上传文件的进度条*/ +.ui-progressbar{height: 15px;float: left;width: 140px;margin-top: 11px;} + + +/*-------------------竞赛----------------------*/ +#contenter{min-width: 1200px;} + +#competition-content,#competition-db-content{background-color: #EFEFEF} +#competition-content img,#competition-db-content img,#ccfPage img{vertical-align: bottom;} +#hnpage1{background: url('/images/educoder/competition/logo_1.jpg') no-repeat top center;min-height: 820px;} + +#competition-header{background: linear-gradient(to right, #29bd8b , #13dc98);height: 60px;width: 100%;padding-right: 40px;box-sizing: border-box;position: fixed;top: 0px;left: 0px;width: 100%;z-index: 1000;} +.nav-game{position: relative;} +.nav-game li{position: relative;float: left;width: 110px;height: 60px;line-height: 60px;text-align: center;box-sizing: border-box} +.nav-game li a{color:#fff;font-size: 16px;} +.nav-border{position: absolute;bottom: 0px;width: 100%;height: 3px;} +#nav-white{height: 3px;background-color: #fff;position: relative;width: 42px;left: 34px;} + +.intoGame{background-color: #efefef;width:100%;position: relative;min-height: 2200px;} +.top-com{position: relative;width: 100%;top: 285px;margin: 0px auto;} +.partGame{width:900px;margin:60px auto;background-color: #fff;padding:70px;box-sizing: border-box } +.partGame:first-child{margin-top:0px;} +.partborder{position: relative;width: 100%;border:1px solid #eee;border-radius: 3px;padding: 60px;box-sizing: border-box;text-align: center} +.gemeName{position: absolute;font-weight: bold;font-size: 24px;top: -24px;background-color: #fff;display: block;left: 50%;margin-left: -45px;text-align: center;padding: 0px 5px;} +.enterTo a{float: left;width: 180px;color: #fff!important;background-color:#cdcdcd;font-weight: bold;font-size: 22px;text-align: center;margin-right:25px;cursor: default;height: 60px;line-height: 60px;border-radius: 35px;} +.enterTo a:last-child{margin-right: 0px;} +.partTime .pro,.partTime .time{color: #666;font-size: 17px;} +.action{color: rgb(5, 16, 26);} +.partTime.active .pro,.partTime.active .time{color: #666;} +/*开源标注组*/ +.partGame.largepart{width: 1010px;} +.partGame.largepart .partborder{padding: 56px 40px 40px 40px;} +.partGame.largepart .partborder .enterTo a{width: 249px;margin-right: 20px;font-size: 20px;font-weight: normal} +.enterTo span.f-cart{width: 246px;text-align: center;color: #29BD8B;font-size: 20px;line-height: 20px;float: left;display: block;font-weight: bold;margin-right: 20px;} +.enterTo span.d-cart{box-sizing:border-box;width: 246px;text-align: center;color: #989898;font-size: 16px;line-height: 22px;float: left;display: block;margin-right: 20px;} +.partGame.largepart .partborder .enterTo a:last-child,.enterTo span.f-cart:last-child,.enterTo span.d-cart:last-child{margin-right:0px;} +/*.partTime.active .time{color:#ff3232; }*/ +.partTime.active .enterTo a{cursor: pointer;background-color: #29bd8b;box-shadow: 0px 10px 10px rgba(41,189,139,0.2)} +a.enterLink{cursor: pointer;color: #418CCD!important;background: none!important;box-shadow: none!important;font-size: 14px!important;text-align: left;line-height: 20px;height: 20px;padding-bottom: 1px;border-bottom: 1px solid #418ccd;width: auto!important;border-radius: 0px;} +.codeRemark{display: block;height: 30px;border-radius: 14px;width: 100%;background-color: #cdcdcd;color: #fff!important;text-align: center;line-height: 30px;} +.timered{color:#ff3232!important; } +.wordblack{color:rgb(5, 16, 26)!important;} + +.Enroll-competition1,.Enroll-competition2,.Enroll-competition3{width: 140px;color: #cdcdcd!important;font-weight: bold;font-size: 18px;text-align: center;margin:0px 20px;cursor: default} +.Enroll-competition1.active,.Enroll-competition2.active,.Enroll-competition3.active{color: #13dc98!important;cursor: pointer} + +.position-shixun{position: absolute;z-index: 2;bottom: 40px;text-align: center;width: 100%} +.ccf-position-shixun .shixun-btn,.position-shixun .shixun-btn,.ccf-position-shixun-2 .shixun-btn{display: block;float: left;width: 160px;text-align:center;letter-spacing: 1px;height: 40px;line-height: 40px;color:#fff!important;margin:0px 20px;background: linear-gradient(to right, #ff8634 , #ff9d5b);box-shadow: 6px 4px 11px #f7ece4;} + +@media screen and (max-width: 1600px) { + + .position-shixun{bottom: 30px;} + .ccf-position-shixun .shixun-btn,.position-shixun .shixun-btn,.ccf-position-shixun-2 .shixun-btn{width: 150px;letter-spacing: 0px;height:40px;line-height: 40px;} + .ccf-position-shixun{top:242px!important;} + .ccf-position-shixun-2{bottom: 240px!important;} +} +@media screen and (max-width: 1400px) { + + .position-shixun{bottom: 25px;} + .ccf-position-shixun .shixun-btn,.position-shixun .shixun-btn,.ccf-position-shixun-2 .shixun-btn{width: 130px;letter-spacing: 0px;height:30px;line-height: 30px;} + .ccf-position-shixun{top:200px!important;} + .ccf-position-shixun-2{bottom: 200px!important;} +} +.announcement-list{padding: 10px 80px 40px;} +.announcement{padding:20px 0px;border-bottom: 1px solid #eee;} +.announcement:last-child{border-bottom: none;} + +/*报名入口页*/ +.enroll-t{min-height: 350px;position: relative;justify-content: center;align-items: center;display: -webkit-flex;} +.enroll-b{background:url('/images/educoder/competition/enroll-2.png') no-repeat top center; min-height: 1100px} +.enroll-info{margin: 0px auto;min-width: 520px;max-width: 580px;height: 40px;line-height: 40px;background-color:#f6f6f6;border-radius: 20px;padding: 0px 60px;box-sizing: border-box } + +.immediatelyEnroll{display: block;width: 130px;text-align:center;letter-spacing: 1px;height: 34px;line-height: 34px;color:#fff!important;background: linear-gradient(to right, #ff8634 , #ff9d5b);box-shadow: 6px 4px 11px #f7ece4;} +.enrollShowPanel{width: 915px;min-height: 300px;box-shadow: -8px 9px 12px 1px rgba(116,122,127,0.2);margin: 0px auto;margin-left: 18px;} +.enrollShowTitle{position: absolute;top: -39px;width: 100%;left: 0px;text-align: center} +.enrollShowNum{font-size: 18px;height: 40px;line-height: 40px;box-shadow: 0px -3px 4px rgba(109,109,109,0.15);background: #fff;width: 150px;text-align: center;color: #21B351;display: block} +.enrollList{height: 670px;box-shadow:0px 0px 4px rgba(0,0,0,0.1);width: 100%;margin-top: 40px;} +.enrollItemContent{padding: 0px 10px;width: 100%;box-sizing: border-box;height: 100%;overflow: hidden;} +.enrollItemContent li{border-bottom: 1px solid #EAEAEA;padding: 20px;line-height: 20px} +.team-p-s{width: 20px;height: 20px;line-height: 12px;text-align: center;border-radius: 50%;background: #BCBCBC;color: #fff;float: left} +.enroll-in-b{display: block;border:4px solid #fff;width: 216px;height: 62px;text-align: center;line-height: 62px;margin-right: 220px;font-size: 32px;color: #fff!important;background: #006542} +.enroll-in-b-green{background: #29BD8B} + +.joinTeamInfo{background-image:url('/images/educoder/competition/enroll-item.png');height:202px;width: 934px;padding: 10px 35px;box-sizing: border-box;margin: 0px auto;padding-top: 60px;} +.joinTeamInfo span,.joinTeamInfo a{line-height: 30px;} +/*弹框*/ +.c-l-box{background: rgba(139,163,183,0.08);height: 226px;overflow-y: auto;width: 100%;padding: 20px 20px 0px 20px;box-sizing: border-box;} +.c-l-box li,.c-r-box li{margin-bottom: 15px;line-height: 25px;} +.l-column-1,.l-column-2,.l-column-3{text-align: left;float: left;width: 100px;} +.l-column-1{width: 80px} +.select-arrow i{color: #B2DAFB!important;} +.select-arrow i:hover{color: #4CACFF!important;} +.c-r-box{height: 226px;padding: 20px 20px 0px 20px;overflow-y: scroll;} + +.pointerTeacher{position: absolute;width: 100%;background:#fff;border-radius:2px;box-shadow:0px 2px 10px 0px rgba(76,76,76,0.2);height: 184px;z-index: 3;top: 35px;overflow-y: auto} +.pointerTeacher li .pt-s{width: 100px;text-align: center;float: left;margin-right: 10px;line-height: 34px} +.pointerTeacher li .pt-s-n{width: 120px;text-align: center;float: left;margin-right: 10px;line-height: 34px} +.pointerTeacher li .pt-m{width: 260px;text-align: center;float: left;line-height: 34px} +.pointerTeacher li .pt-l{width: 369px;text-align: center;float: left;line-height: 34px} +.pointerTeacher li{cursor: pointer} +.pointerTeacher li:hover{background-color: #F6F6F6;} +.pointerTeacher .added{background-color: #FFF0E5!important;} + +.personListLine{cursor: default} +.personListLine > span{float: left;text-align: center;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;} +.t-c-1{width: 120px;} +.t-c-2{width: 150px;text-align: left!important;} +.t-c-3{width: 210px;} +.t-c-4{width: 200px;} +.t-c-5{width: 80px;} +/*东北赛区*/ +#dbpage1{background: url('/images/educoder/competition/db/db1.jpg') no-repeat top center;min-height: 820px;} +/*主页、列表页*/ +.competitionHome{background: url('/images/educoder/competition/home/homepage.jpg') no-repeat top center;min-width: 1200px;} +.homePageBtn{position: absolute;width: 100%;top: 510px;} +.homeBtn{display: block;float: left;border-radius: 30px;width: 168px;height: 60px;line-height: 60px;background-color: #21B351;font-size: 30px;color: #fff!important;text-align: center} + +.competitionsList-item{width: 50%;float: left;box-sizing: border-box;} +.competitionsList-item:nth-of-type(odd){padding-right: 10px;} +.competitionsList-item:nth-of-type(even){padding-left: 10px;} +.competition-Img{width: 100%;height: 340px;} +.competition-Img img{border-radius: 4px 4px 0px 0px;} +.status-tag {display: block;height: 30px;line-height: 30px;color: #fff;padding: 0px 20px;} +.status-blue .status-tag{background-color: #4CACFF;} +.status-orange .status-tag{background-color: #ff6800;} +.status-grey .status-tag{background-color: #B3B3B3;} + +/*竞赛报名弹框*/ +.CompetitionEnrollBox{position: fixed;z-index:99998;width: 100%;height: 100%;background-color: rgba(5,26,26,0.4);left: 0px;top:0px; text-align: center;justify-content: center;align-items: center;display: -webkit-flex;min-width: 1200px} +.CompetitionEnrollBox .CloseBox{position: absolute;right: 6%;top:24%;} +.CompetitionEnrollBox .ImmediatelyEnroll{position: absolute;bottom: 4%;border-radius: 33px;background:rgba(255,198,2,1);box-shadow:-1px 2px 64px 1px rgba(121,94,0,0.2);width: 22%;left: 50%;margin-left: -11%;height: 8%;color: #fefefe; + font-size: 28px;font-weight: bold;justify-content: center;align-items: center;display: -webkit-flex;} +@media screen and (max-width: 1600px) { + .CompetitionEnrollBox .ImmediatelyEnroll{font-size: 24px;} +} +@media screen and (max-width: 1500px) { + .CompetitionEnrollBox .ImmediatelyEnroll{font-size: 24px;} +} +@media screen and (max-width: 1300px) { + .CompetitionEnrollBox .ImmediatelyEnroll{font-size: 20px;} +} +@media screen and (max-width: 1200px) { + .CompetitionEnrollBox .ImmediatelyEnroll{font-size: 18px;} +} + +/*ccf*/ +.ccf-position-shixun{position: absolute;z-index: 2;top:300px;text-align: center;width: 100%} +.ccf-position-shixun .shixun-btn{margin: 0px 38px;} +.ccf-position-shixun-2{position: absolute;z-index: 2;bottom:300px;text-align: center;width: 100%} +.headerImg{min-height: 820px;} + + +/*全国赛*/ +.qg-1{min-height: 822px;} +.qg-2{min-height: 2758px;} +.qg-3{min-height: 1755px;} +.qg-4{min-height: 1531px;} +.qg-5{min-height: 661px;} + + +/*排行榜*/ +.competion-ranking{background-color: #fff;box-shadow:0px 4px 15px rgba(0,0,0,0.1);position: relative;width: 860px;margin:70px auto 80px;padding: 50px;} +.ranking-nav{height: 48px;width: 480px;margin:0px auto;background-color: #fff;text-align: center;position: absolute;top:-48px;left: 50%;margin-left: -240px;} +.ranking-nav li{cursor: pointer;float:left;font-size: 18px;margin:0px 15px;line-height: 48px;height: 48px;position: relative} +.ranking-nav li.active{color: #29BD8B!important;} +.ranking-nav li.active:after{content: '';position: absolute;height: 2px;width: 60px;left: 50%;margin-left: -30px;bottom: 0px;background-color: #29BD8B;} +.person-ranking{background-color:#f6f6f6;border-radius: 20px;margin:0px auto; } +.person-ranking li{cursor: default;float: left;margin:0px 25px;height: 40px;line-height: 40px;} +.ranking-img{width: 25px;height: 30px;margin-top: 12px} +.ranking-number{width: 25px;text-align: center;font-size: 16px;} + +.team-ranking{background-color: #f6f6f6;border-radius: 20px;margin: 0px auto;padding: 0px 20px;height: 40px;line-height: 40px;} +.team-ranking li{float: left;text-align: center;box-sizing: border-box;margin:0px 10px;cursor: default} +.team-ranking li:nth-child(1){width: 100px;} +.team-ranking li:nth-child(2){width: 120px;} +.team-ranking li:nth-child(3){width: 90px;} +.team-ranking li:nth-child(4){width: 100px;} + +.rankingList-line{padding: 15px 0px;border-top: 1px solid #eee;box-sizing: border-box;} +.rankingList-line li{float: left;height: 50px;line-height: 50px;} +.ranking-name{display: block;max-width: 80px;} + +.no-com{padding: 70px 0px;} + +#new_private_message_form .ke-toolbar-icon-url { + background-image: url('/images/educoder/upload-image.png'); + background-position: 0px 0px; + background-size: 20px 20px; + width: 20px; + height: 20px; +} + +/*竞赛列表页*/ +.competition_list_pagebox{ + width: 100%; + min-height: 1200px; + margin: 25px 0px 50px 0px; +} + + +/*顶部按钮*/ +.both{ + clear:both; +} +.left{ + float:left; +} + +.right{ + float:right; +} +.competition_list_pageboxchildtopbotton{ + width:100%; + height:60px; +} + +.com_list_pagespan{ + display: inline-block; + margin: 15px 10px 0px 0px; + float: right; +} + +.com_list_pagespan a{ + border-radius: 8px; +} + +.competition_Content_checkbox{ + width: 65px; +} +/*顶部top容器*/ +.competition_list_pageboxchildtop{ + min-height: 400px; + width: 95%; + padding: 29px; + border: 1px solid #e7e7e7; + margin-bottom: 20px;; +} + +.competition_list_images{ + min-height: 200px; + width: 95%; + padding: 29px; + border: 1px solid #e7e7e7; + margin-bottom: 20px;; +} + +.competition_list_title{ + height:50px; + } + +.competition_list_center{ + +} + +.competitionUpload{ + margin-left:1%; + width: 93%; + max-height: 225px; + overflow-y: auto; +} + +.Upload-picture-prompt{ + width: 28% !important; + line-height: 90px; + color: #3BA0FE; +} + +.competition_list_bottom{ + margin-top:70px; + max-height: 150px; +} + +.Other_boxinput{ + height: 30px; + padding-left: 5px; + width: 80px; +} +.Other_boxdiv{ + width:87px; + margin-right: 10px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; +} +.marbot{ + margin-bottom: 15px; +} +.competition_Nav{ + width: 45px; + padding-left: 3px; +} + +.competition_Content li{ + margin-bottom: 20px; +} + +.ompetitionCheckbox{ + height: 30px; + padding-left: 5px; + width: 400px; +} + +.addContentFillinthebox{ + font-size: 18px !important; + color: #4CACFF!important; + margin-left: 8px; + line-height: 31px; +} +.newaddFillintheboxinput{ + height: 30px; + margin-right: 10px; + padding-left: 5px; + width: 80px; +} +.competition_Content_notice{ + width: 100px; +} + +.competition_Content_ranking{ + width: 100px; +} + +.competition_Content_data_download{ + width: 100px; +} +.ContentFillintheboxdata_download{ + margin-left: -3px; + width: 50%; + height: 50px; +} + +#competition_homepage_input{ + color: #B4B4B4; +} +#competition_homepage_input::-webkit-input-placeholder{ + color: #B4B4B4; + padding-left: 20px; +} +#competition_homepage_input:-moz-placeholder{ + color: #B4B4B4; + padding-left: 20px; +} +#competition_homepage_input:-ms-input-placeholder{ + color: #B4B4B4; + padding-left: 20px; +} + +#competition_data_download{ + color: #3BA0FE; + padding-left: 20px; +} + + +.competition_input_style{ + color: #3BA0FE; + padding-left: 20px; + width: 79%; +} + + + +#competition_data_download::-webkit-input-placeholder{ + color: #3BA0FE; + padding-left: 20px; +} +#competition_data_download:-moz-placeholder{ + color: #3BA0FE; + padding-left: 20px; +} +#competition_data_download:-ms-input-placeholder{ + color: #3BA0FE; + padding-left: 20px; +} + +/*顶部center容器*/ +.competition_list_pageboxchildcenter{ + flex:1; + min-height: 150px; + border: 1px solid #e7e7e7; + width: 99.9%; + margin-bottom: 20px; +} +.childcenter_title{ + width:99%; + border-bottom: 1px solid #e7e7e7; + padding: 6px; +} + +.childcenter_content{ + width: 26%; + float: right; + margin-right: 10px; +} + +.childcenter_title_input{ + padding-left: 20px; + font-weight: bold; + width:50%; + float:left; + border:1px solid transparent; + background: #fafafa; +} + + +.childcenter_title_botton{ + display: inline-block; + float: right; +} +.childcenter_title_botton a{ + border-radius: 8px; +} +.childcenter_but{ + background: #fafafa ; + float: right; + margin-right: 10px; +} + +.childcenter_center_content{ + padding: 10px; + height: 50px; + margin-left: 25px; + border-bottom: 1px solid #e7e7e7; +} +.childcenter_center_contentlast{ + padding: 10px; + height: 50px; + margin-left: 25px; + border-bottom: 1px solid transparent; +} +.childcenter_center_content_two{ + padding: 10px; + height: 50px; + margin-left: 25px; +} + +.editTitlevalue{ + width: 70%; + margin-left: 10px; +} +.child_center_overtime{ + margin-left:20px; +} +.child_center_entry_button{ + margin-left:20px; +} + +.child_nth_child1span{ + margin-top: 10px; + margin-right: 10px; + display: inline-block; +} +.childcenterWinput{ + width: 150px; + height: 35px; + padding: 5px; + box-sizing: border-box; +} + +.child_entry_button_input{ + width:1.5rem; +} +.child_nth_child1spinner span{ + margin-bottom: 7px; +} + +.child_center_entry_buttondel{ + margin-top: 10px; +} + +#goodsUpload{ + position: relative; +} +#uploadImg{ + position: absolute; + bottom: 0px; + left: 30px; +} +.Event_prompts{ + color:red; + margin-right:10px; + display:none; +} + + + + + + + +/*面向学院管理员的综合统计页面*/ +.statistics_top{height: 240px;width: 100%;position: relative;background-image: url('/images/educoder/statistics.jpg');background-size: 100% 100%;} +.statistics_position{position: absolute;bottom: 22px;left: 0px;width: 100%;left: 0px;} +ul.count_ul li{width: 300px;position: relative;float: left} +ul.count_ul li span:first-child{display: block;width: 100%;color: #989898;margin-bottom: 20px;} +ul.count_ul li span:last-child{display: block;width: 100%;color: #fff;font-size: 24px;line-height: 20px;} +ul.count_ul li:not(:last-child):after{position: absolute;content: '';width: 1px;height: 36px;background-color: #999999;right: 0px;top: 16px;} +.static_shadow{box-shadow: 0px 0px 9px rgba(174, 175, 177, 0.2);} +.base_status_name{display: flex;height: 48px;line-height: 48px;font-size:16px;background-color: #F5F5F5;border-top:1px solid #EBEBEB;border-bottom:1px solid #EBEBEB; } +.base_status_name li,.base_status_value li{float: left;flex: 1;text-align: center;color: #686868;} +.base_status_value{display: flex;height: 100px;line-height: 100px;text-align: center;} +.base_status_value li{color:#05101A;cursor: default} +.base_status_value li span{font-size: 24px;margin-right: 5px;} +.count_student_test a{cursor: pointer;display: inline-block;width: 60px;height: 30px;line-height: 30px;text-align: center;border-radius:4px;color: #666 } +.count_student_test a.active{background:#4CACFF;color: #fff; } +/*路径的合作团队增加使用情况统计页面*/ +.subject_statistics_top{height: 240px;width: 100%;position: relative;background-image: url('/images/educoder/subject_statistics.jpg');background-size: 100% 100%;} + + +/*------------------------------职业路径begin-----------------------------*/ +/*新建页*/ +.subjectPathArray{width: 100%;background-color: #FAFAFA;padding: 20px;box-sizing: border-box;box-shadow: 0px 0px 6px rgba(154,154,154,0.3);font-size: 16px;margin-bottom: 22px;cursor: move;} +.subjectPathArray p{cursor: default;} +/*详情页*/ +.busy_detail_top{width: 100%;height: 230px;background: url('/images/educoder/business/detailTop.jpg') no-repeat top center;position: relative } +.busy_detail_nav{position: absolute;bottom: 0px;text-align: center;width: 100%} +.busy_detail_nav ul{vertical-align: bottom} +.busy_detail_nav ul li{padding:0px 49px 34px 49px;float: left;position: relative} +.busy_detail_nav ul li a{display: block;width: 100%;height: 100%;font-size: 24px;color: #fff;line-height: 28px;font-weight: bold} +.busy_detail_nav ul li.active a{background: linear-gradient(to bottom right, #fcd16a, #f9b76a);-webkit-background-clip: text;color: transparent;} +.busy_detail_nav ul li.active:after{content: '';width: 64px;position: absolute;left: 50%;margin-left: -32px;bottom: 0px;height: 4px;background: #f9b76a} +/*--课程介绍--*/ +.busy_detail_vedio{width: 1238px;margin: 78px auto;position: relative;border-radius: 10px;height: 480px;} +.vedioInfo{position: absolute;z-index: 2;width: 100%;height: 100%;background-color:rgba(5,16,26,0.8);color: #fff;border-radius: 10px;top: 0px;left: 0px;justify-content: center;align-items: center;display: -webkit-flex;} +.playVedio{font-size: 86px!important;line-height: 86px;} +.vedioInfoWords{width: 630px;text-align: left} +.vedioTitle{background: linear-gradient(to right, #f5f5f5, #c9c9c9);-webkit-background-clip: text;color: transparent;} + +.busy_detail_introduce{width: 100%;background: url('/images/educoder/business/introduceback.jpg') no-repeat top center;cursor: default;min-height: 800px;padding-top: 92px;box-sizing: border-box;position: relative; } +.introduce_content{position: absolute;bottom: 0px;width: 100%;text-align: center;} +.introduce_content img{vertical-align: bottom;} +.introduce_content_font{padding-left: 116px;padding-top:66px;text-align: left;color: #fff;max-width: 521px;} + +.busy_detail_lessons{background: #f9f9f9;padding-top: 84px;text-align: center;position: relative;padding-bottom: 106px;} +.busyLessons{width: 1152px;margin: 0px auto;} +.l-course-cart{width: 288px;float: left;margin-bottom: 48px;padding: 0px 24px;position: relative;box-sizing: border-box;} +.l-course-cart-axis{position: absolute;width: 288px;height: 16px;top: 25px;left: 0;z-index: 0;} +.l-course-cart-axis .axisx{position: absolute;width: 100%;height: 4px;top: 6px;left: 0;right: 0;background-color: #C6CCD2;z-index: 0;} +.l-course-cart-axis .axisy{position: absolute;left: 8px;top: 0;border-radius: 50%;width: 16px;height: 16px;box-sizing: border-box;border: 4px solid #C6CCD2;background-color: #fff;z-index: 1;} +.l-course-cart:nth-child(4n+0) .axisx{border-radius: 0px 3px 3px 0px;} +.l-course-cart:nth-child(4n+1) .axisx{border-radius: 3px 0px 0px 3px;} +.l-course-cart-wrap{position: relative;width: 100%;height: 250px;background-color: #fff;border-radius: 12px;box-shadow: 0 4px 8px rgba(7,17,27,.1);z-index: 1;overflow: hidden} +.l-course-cart-t{height: 58px;line-height: 60px;border-radius: 12px 12px 0px 0px;background: #788795;padding: 0px 20px;box-sizing: border-box;font-size: 18px;color: #fff;text-align: left} +.l-course-more{position: absolute;bottom: 0px;height: 244px;width: 100%;z-index: 1;text-align: center;padding-top: 90px;box-sizing: border-box; + background-image: linear-gradient(to bottom,rgba(243,243,243,0) 0%,rgba(243,243,243,0.3) 5%,rgba(243,243,243, 0.4) 10%,rgba(243,243,243,0.6) 20%,rgba(243,243,243,0.9) 30%,rgb(243, 243, 243) 100%);} +.l-course-more-btn{display: block;width: 207px;height: 64px;line-height: 64px;border-radius: 32px;font-size: 18px;text-align: center;color: #fff!important;background: #4CACFF;margin: 0px auto;} + +.busy_detail_question{padding: 100px 0px;width: 1165px;margin: 0px auto} +.q-course-cart{width: 540px;margin-bottom: 40px;display: inline-grid;} +.q-course-cart:nth-child(odd){margin-right: 40px;} +.q-course-cart:nth-child(even){margin-left: 40px;} +.q-course-cart-right{max-width: 503px;text-align: justify;line-height: 22px;} + +.grey-to-white{background: linear-gradient(to bottom, #f5f5f5, #C9C9C9);-webkit-background-clip: text;color: transparent;} +.yellow-to-orange{background: linear-gradient(to bottom, #FCD16A, #F9B76A);-webkit-background-clip: text;color: transparent;} +.mainfont{color: #C59F59;} +.yellowfont{color: #C18C14} +/*--内容安排--*/ +.busy_detail_content{background: #101019;padding: 60px 0px 30px 0px;} +.lesson-all-link{height: 384px;background:linear-gradient(-41deg,rgba(103,51,79,0.96),rgba(88,89,144,0.96),rgba(49,65,127,0.96));padding: 4px;box-sizing: border-box} +.lesson-all-link > div{background: #202031;width: 100%;height: 100%;box-sizing: border-box;padding: 20px 15px;} +.lesson-all-link > div li{float: left;min-height: 60px;min-width: 144px;padding: 4px;box-sizing: border-box;margin: 0px 5px 9px 5px;} +.lesson-all-link > div li a{display: block;width: 100%;color: #fff!important;font-size: 20px;text-align: center;height: 54px;line-height: 54px;cursor: pointer;} +.lesson-all-link > div li.link-on{background:linear-gradient(-41deg,rgba(124,97,66,0.96),rgba(188,151,102,0.96),rgba(124,97,66,0.96));} +.lesson-all-link > div li.link-on a{background:linear-gradient(to right,#181b33,#281725);} + +.lesson-all-link > div li.link-off{background:linear-gradient(-41deg,rgba(73,68,69,0.96),rgba(146,145,148,0.96),rgba(89,87,91,0.96));} +.lesson-all-link > div li.link-off a{background:#202031;} + +.mer-width{width: 182px;} +.m-width{width: 186px;} +.u-width{width: 286px;} +.l-width{width: 464px;} +.l-height{height: 204px;} +li.l-height a{height: 196px!important;line-height: 196px!important;} +.m-height{height: 98px;} +li.m-height a{height: 90px!important;line-height: 90px!important;} + +.lesson-l-cart{border:1px solid #6C5539;padding: 44px 32px 20px 32px;box-sizing: border-box;background: #010101;border-radius: 2px;} +.l-cart-number{display: block;height: 62px;line-height: 62px;border-radius: 0px 10px 0px 10px;background:linear-gradient(0deg,rgba(30,29,58,1),rgba(46,26,40,1));font-size: 36px;color: #fff;width: 74px;text-align: center;border: 1px solid #3a3a3a;} +.l-cart-name{display: block;max-width: 700px} + +.l-cart-h-title{width: 100%;height: 78px;background-color: #1F1F30;color: #A6A6A6;line-height: 78px;} +.c-number{display: block;float: left;background-image: url("/images/educoder/c-number.png");background-size:100% 100%;width: 95px;height: 78px;line-height: 78px;text-align: center;padding-right: 17px;} +.c-number > span{font-size: 40px;background: linear-gradient(to bottom, #FCD16A, #F9B76A);-webkit-background-clip: text;color: transparent;} +.l-cart-h-content{background-color: #1B1B2A;} +.spinner {font-size: 20px;width: 1em;height: 1em;border-radius: 50%;box-shadow: inset 0 0 0 .1em rgba(58, 168, 237, .2);} +.spinner span {position: absolute;clip: rect(0, 1em, 1em, .5em);width: 1em;height: 1em;content: '';animation: spinner-circle 1s ease-in-out infinite;border-radius: 50%;box-shadow: inset 0 0 0 .1em #3aa8ed;} + + + +/*------------------------------职业路径end-----------------------------*/ + + +/*课堂-------------------------------资源详情列表页面改版*/ +.du-back-white-right{ + width: 100%; + height: 35px; + margin-bottom: 8px; + text-align: right; + border: 1px solid transparent; + position: relative; +} +.du-back-Iconfont{ + position: absolute; + top: 1px; + right: -16px; + font-size: 12px !important; + color: #989898; +} +.du-back-whiteP{ + position: absolute; + top: 37px; + right: 24px; + font-size: 12px; + color: rgba(152,152,152,1); + line-height: 0px; + width: 100px; + height: 50px; + +} +.du-back-whitePP{ + position: absolute; + top: 14px; + right: 0px; + font-size:12px; + color:rgba(152,152,152,1); + line-height:0px; + width:100px; + height:50px; +} +.du-back-whiteTime{ + position: absolute; + top: 8px; + right: 20px; +} +@font-face { + font-family: 'iconfont'; + src: url('./iconfont/iconfont.eot'); + src: url('./iconfont/iconfont.eot?#iefix') format('embedded-opentype'), + url('./iconfont/iconfont.woff') format('woff'), + url('./iconfont/iconfont.ttf') format('truetype'), + url('./iconfont/iconfont.svg#iconfont') format('svg'); + } + .iconfont{ + vertical-align:middle; + font-family:"iconfont" !important; + font-size:16px;font-style:normal; + -webkit-font-smoothing: antialiased; + -webkit-text-stroke-width: 0.2px; + -moz-osx-font-smoothing: grayscale; + } + ._resource_detailwidth{ + max-width:516px; + height:17px; + font-size:16px; + color: #05101A; + font-weight: bold; + line-height:17px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap + } +.newImport_resource_info_list{ + width: 610px; + background: rgba(247,251,255,1); + overflow-y: hidden; + overflow-x: hidden; + padding-left: 10px; +} + +.newhomework_info_list{ + width: 529px !important; + background: rgba(247,251,255,1); + overflow-y: hidden; + overflow-x: hidden; + padding-left: 10px; +} + +.newBorder_info_list{ + display: inline-block; +} +.descriptionboxlist{ + cursor: default; + width: 711px; +} +.deletPosition{ + position: relative; +} +.deletVersions{ + position: absolute; + top: 12px; + right: -85px; +} +.deletVersionsFont{ + margin-left: 62px; + max-width: 229px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.deletPositionLabel{ + position: absolute; + top: 1px; + left: 33px; +} +.newedu-find-input{ + border: 1px solid #EAEAEA; + width: 100%; +} +.newpanelstylel{ + width:248px; + height: 30px; +} +.newedu-open{ + top:-1px;right: -21px; +} +.NewsOrange-btn{ + height:15px; + font-size:16px; + color:rgba(5,16,26,1); + line-height:0px; + margin-top: 13px; +} +.NEWorange-btn{ + border: 1px solid transparent !important; + color: #4CACFF !important; +} +.newedu-back-white{ + height: 50px; + margin-bottom: 40px; + border: 1px solid transparent !important; +} +#course_list{ + overflow-y: auto; + background: #FFF; +} +.file_fontGrey{ + margin-top: -1px !important; +} +a.newcolor-grey3:hover{ + color: #459be5 !important; +} +.edu-menu-listlia{ + color: #05101a !important; +} +.syllabusbox_tishi p{ + text-align: center; +} +#tip_attachment_count{ + color:#4CACFF; + margin-top:4px !important; +} +.newsedu-open{ + top: -1px !important; + right: 7px !important; +} +#course_filter_order{ + top: 24px; + width: 110px; + text-align: left; + right: -28px !important; +} +.du-back-white-right :hover .du-back-whiteTime{ + color:#459be5 !important; +} + +.du-back-white-right :hover .du-back-Iconfont{ + color:#459be5 !important; +} +.popup_tip_box{ + right:-160px; + top:55px; +} +.privately-owned{ + position: absolute; + top: 15px; + color:#747A7F !important; + } +.homepagePostSetting{ + display:none; +} +#describe{ + width: 100%; + line-height: 25px; +} +#describe a { + display:none; + line-height: 25px; + +} +#resources-Sourcesbg:hover .homepagePostSetting{ + display:block; +} +#resources-Sourcesbg:hover #describe a{ + display:inline-block; +} +#describe a i.iconfont:hover{ + color:#fff !important; +} +.newBorder_info_listone{ + width: 15px; + height: 15px; + border: 1px solid #29BD8B; + background: #29BD8B; + border-radius: 50%; + position: relative; + display: block; + top: 3px; + margin: 1px 0px 0px 10px; +} +.newBorder_info_listtwo{ + display: block; + color: #fff; + font-size: 13px !important; + position: absolute; + top: -4px; + left: 1px; +} +.newcolor-grey3{ + max-width:516px; + float:left; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.homepageSignatureTextarea{ + resize: none; + max-width: none; + margin-left: 0 +} +.neworange-btn{ + border: 1px solid transparent !important; + color: #FFF !important; + background: #FF6800 !important; + border: 1px solid #FF6800 !important; +} + +#course_file_form{ + height:260px; +} +#course_file_form form{ + min-height:260px; +} +.NEWtitlefl{ + margin: 0px 0px 0px 43%; +} +.font12mb15{ + font-size:16px !important; +} +.newfont12mb{ + color:#FF6800; +} +.newtask-btn-orange{ + margin-right: 180px; +} +.newtask-btn{ + margin-right: 80px !important; + color:#FFFFFF !important; +} +a.task-btn-9A9A9A{ + background: #9A9A9A!important; + color: #fff!important; +} +.margin20{ + margin: 20px; +} +.edumaxblueh{ + height:320px; +} +.edutaskhide{ + font-size:14px; + color:rgba(76,76,76,1); +} +.newtask-popup{ + width:600px; + max-height:700px; + overflow-x: auto; +} +.newcolor-grey{ + margin: 0px 0px 0px 43%; + color:#05101A !important; +} +.newrealname{ + width:90%; + margin-left:10px; +} +.newhide_realname{ + top: -15px !important; + left: 46px !important; +} +.search_undis{ + margin-top: 8px; + margin-bottom: 37px; +} +.nestask-orange{ + margin-right: 210px; +} +.nestask-btn{ + margin-right: 80px; + color:#FFFFFF; +} +.newImport_resource_info_list{ + width: 600px !important; +} +.nodata{ + text-align: center; + background-color: transparent; + border-color: transparent; + color: #000; +} +.import_color-grey{ + margin: 0px 0px 0px 150px; + color:#000 !important; + width: 300px; +} +.newtask-popup-content{ + max-height: 459px; + min-height: 459px; +} +.userImport_resource{ + margin-bottom: 32px; +} +.subjectBannernews{ + height:350px; + min-height:350px; + max-height:350px; + margin-bottom: 15px; +} +.subjectBannerone{ + width: 95.8% !important; + padding: 0px 0px 0px 30px; + color: #676767; + font-size: 14px; + height: 40px !important; + line-height: 40px; +} +.import_resource_infobtn-orange{ + margin-right: 198px; +} +.import_resource_infobtn-btn{ + margin-right: 68px; + color: #FFFFFF; +} +.subjectSearChfrp{ + background:rgba(244,244,244,1); + right: -24px; + top: -37px; + position: absolute; +} +.du-back-Iconfontbox{ + position:absolute; + top:-37px; + right:-11px; + cursor: pointer; + font-size: 18px !important; +} +.newtaskTitle{ + margin: 0px 0px 0px 130px; + color:#000 !important; + width: 300px; +} +.task-popupList{ + width:598px; + max-height: 574px; +} +.newnetwork_issu{ + color: red; + display: none; +} +.newregex_publish_time{ + margin-right: 190px; +} +.newregtask-btn_time{ + margin-right: 80px; + color:#FFFFFF; +} +.newregexInputBox{ + width: 530px !important; + height: 200px !important; + font-size: 12px !important; +} +.newregexInputBox::-webkit-input-placeholder { /* WebKit browsers */ + color: #999; + font-size: 14px; +} +.newregexInputBox:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ + color: #999; + font-size: 14px; +} +.newregexInputBox::-moz-placeholder { /* Mozilla Firefox 19+ */ + color: #999; + font-size: 14px; +} +.newregexInputBox:-ms-input-placeholder { /* Internet Explorer 10+ */ + color: #999; + font-size: 14px; +} + +#datetimepicker_mask::-webkit-input-placeholder { /* WebKit browsers */ + color: #999; + font-size: 14px; +} +#datetimepicker_mask:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ + color: #999; + font-size: 14px; +} +#datetimepicker_mask::-moz-placeholder { /* Mozilla Firefox 19+ */ + color: #999; + font-size: 14px; +} +#datetimepicker_mask:-ms-input-placeholder { /* Internet Explorer 10+ */ + color: #999; + font-size: 14px; +} + + +.datetimepicker_mask::-webkit-input-placeholder { /* WebKit browsers */ + color: #999; + font-size: 14px; +} +.datetimepicker_mask:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ + color: #999; + font-size: 14px; +} +.datetimepicker_mask::-moz-placeholder { /* Mozilla Firefox 19+ */ + color: #999; + font-size: 14px; +} +.datetimepicker_mask:-ms-input-placeholder { /* Internet Explorer 10+ */ + color: #999; + font-size: 14px; +} + + +.attachmentinput::-webkit-input-placeholder { /* WebKit browsers */ + color: #999; + font-size: 14px; +} +.attachmentinput:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ + color: #999; + font-size: 14px; +} +.attachmentinput::-moz-placeholder { /* Mozilla Firefox 19+ */ + color: #999; + font-size: 14px; +} +.attachmentinput:-ms-input-placeholder { /* Internet Explorer 10+ */ + color: #999; + font-size: 14px; +} +.newtaskpopupWrap{ + width:598px !important; + min-height: 300px !important; +} +.newclearfix{ +margin:-3px 0px 10px 0px; +} +.newcourseFileform{ + min-height:250px; +} +.newcourseFileform ul{ + overflow-y: auto; + height: 269px !important; +} +.course_file_form_form form{ + min-height:320px !important; +} +.muban_table{ + border:1px solid transparent; +} +.muban_table thead tr th{ + border:1px solid transparent; +} +#attachment_history_popub{ + margin-left: 3px; +} +.muban_tableone{ + width: 565px !important; +} +#attachments_fields span{ + font-size: 12px; + color: #CCC; +} +.nestask-popuphidden{ + width: 598px; + max-height: 708px; + overflow-y: auto; + overflow-x:hidden; +} +.nestask-popuphiddencolor-grey{ + margin: 0px 0px 0px 43%; + color: #000 !important; +} +.popup_ziyuan_title_fl{ + max-width: 140px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.ml20mr20Color{ + color: #676767; +} +.popup_ziyuan_title a{ + width: 268px; + display: inline-block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.muban_icons_bluemt5ml5fl{ + /*position: absolute;*/ + /*top: 6px;*/ + /*left: 146px;*/ +} +.clearcoursecoursenew{ + width: 87%; + margin-left: 2%; +} +.publicmb10{ + width: 87%; + margin-left: 0.5%; +} +.clearfixnewmb10{ + width: 87%; + margin-left: 0.5%; +} +.mb10newclearfix{ + width: 95%; + margin-left: 0.5%; +} +.settingfllme{ + width: 50%; + height: 40px; +} +.tasksettingfllme{ + margin-top: 4px; + width: 55px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap +} +.attachmentTake{ + margin-right: 53px !important; + color:#FFFFFF !important; +} +.attachmentTakebut{ + margin-right: 198px; +} +.newmuban_textarea{ + resize:none; + width: 98% !important; + min-height: 100px; +} +.newun_unified_setting_group{ + width:100%; +} +.newfontdeletitle{ + position: relative; + top: -53px; + left: 126px; + width: 700px; + height: 0px; + padding: 10px; +} +.colorGreylistbox{ + margin-left:20px; +} +.new_ypopupWrap { + /*top: 230px !important;*/ + /*left: 650px !important;*/ + width:600px !important; + /*height:530px !important;*/ + /*min-height:530px !important;*/ + /*max-height:600px !important;*/ +} +.newchoose_group_allow { + margin-left: 17px; + font-size: 13px; +} +.no_span2_font a{ + margin-right: 10px; +} +.nesbor-bottom-greyE{ + line-height: 14px; + position: relative; +} +.nesbor-bottom{ + display: inline-block; + height: 50px; +} +.newConstration{ + position: absolute; + top: 28px !important; +} +.nesbor-bottom label{ + top: -1px !important; + left: 114px; + } +.nesbor-bottom label span{ + position: absolute; + top: 6px !important; + width: 562px; +} +.newteacher_banner{ + height: 75px !important; + line-height: 75px !important; +} +.newpanel-box-sizing{ + position: absolute; + bottom: 25px; + right: 10px; +} +.HowManyStu{ + position: absolute; + top: 85px; + left: 20px; +} +.HowManyStuValue{ + color: #FF6800; +} +.newsedu-opennew{ + top: 7px !important; + right: 10px !important; + position: absolute; +} +.newsedu-opennewP{ + top: -1px !important; + right: 10px !important; + position: absolute; +} +.newedu-findnew-input{ + position: absolute; + right: 20px; + z-index:1; +} +.du-backnew-Iconfont{ + position: absolute; + top: 45px; + right: 4px; + font-size: 12px !important; +} +.du-backnew-IconfontP{ + position: absolute; + top: 1px; + right: -17px; + font-size: 12px !important; +} +.du-back-white-rightnews{ + width: 100%; + height: 35px; + text-align: left; + border: 1px solid transparent; + position: relative; +} +.eduCenternew{ + height:56px !important; +} +.mh550cClearfix{ + background: #FAFAFA !important; +} +.setting_member_cClearfix{ + height: 56px !important; + background: #FFF !important; +} +.setting_member_cClearfix:hover { + background: #EFF9FD; +} +.newedua-pop-table tr th{ + border:1px solid transparent; +} +.newedua-pop-table{ + margin-bottom: 50px; +} +.newSelectclass{ + width:600px; + height: 237px; +} +#newteacher_assign #teacher_assign_group_form{ + padding-left: 30px; +} +.newteacher_clearfix{ + color:#05101A; + font-weight: Bold; + font-size:16px; + padding-left: 2%; +} +.newclassHtmlvalue{ + width:600px; + height: 237px; +} +.NewClasses{ + margin-left: 44%; +} +.newpanel-form-label{ + width: 1% !important; + margin-left: -30px; +} +.new_neygroup_name{ + width: 86% !important; + height: 30px !important; + margin-top: 5px !important; +} +.newtaskBtn{ + margin-right: 35%; + margin-top: 19px; +} +.newtask-mr10btn{ + margin-right: 7%; + margin-top: 19px; + color: #fff !important; +} +.task-popup-submit02{ + width:100%; +} +.linclorregrey{ + width:463px; + border:1px solid #ddd; + background:#fff; +} +.Suggest_delete{ + margin-left:46%; + color: #05101A !important +} +.newflBtn{ + margin-bottom: 20px; + margin-left: 30px; +} +.nesntoclasses{ + margin-left: 30px; + margin-right: 10px; + color: #4CACFF !important; + border:1px solid #4CACFF !important; +} +.deletebtnOrange{ + color:#DEDEDE !important; + border:1px solid #DEDEDE !important; +} +.nesteacher{ + width:650px; +} +.nesteacherFont{ + margin-left: 40%; +} +/* .width100{ + width: 92%; + padding: 0px 0px 0px 25px; +} */ +.unitsGrey{ + float: left; + height: 40px; + line-height: 40px; + margin-right: 15px; +} +.unitsPosition{ + float: left; + width: 465px; + margin-top: 4px; +} +.unitsPositionboxsizing{ + height:30px !important; + margin-top: 2px; +} +.unitsPositionboxsizinga{ + width:465px !important; + height:30px !important; + margin-top: 6px; + } +.unitsPositionboxsizingc{ + width:465px !important; + height:30px !important; + margin-top: 6px; +} +.edu-btn-searcha{ + position: absolute; + top: -5px; + right: 15px; +} +.edu-btn-searchtwo{ + position: absolute; + top: 0px; + right: 15px; +} +.search_Stubd_list{ + overflow-y: auto; + width: 100%; + height: 280px; +} +.choose_student_idslist{ + width:100%; + background:#fff; + height:25px; +} +.attachmentTakebuta{ + margin-right: 170px; +} +.teacher_bannerBar{ + height: 80px !important; + line-height: 80px !important; +} +.color-dark-greyfont{ + color: #666 !important; + font-size:14px; +} +.color-dark-grey{ + color: #999 !important; +} +.educontopnewclearfix{ + height: 125px; +} +.nesbor-bottom-greyE{ + top:0px; +} +.colorFFF{ + color:#FFF !important; +} +.marginrename{ + margin-left:44%; + color: #05101A !important +} +.attachmentTakebuttwo{ + margin-right: 143px; +} +.new_neygroupaname{ + width: 81% !important; + height: 30px !important; + margin-top: 3px; +} +.unitsGreynew{ + float: left; + height: 40px; + line-height: 40px; + text-align: left; + width: 56px; + margin-left: 11px +} +.btn_student{ + color: #FF7500; + border: 1px solid #FF7500; +} +.btn_studenta{ + color: #FFF !important; + border: 1px solid #FF7500; + background: #FF7500; +} +.edu-pop-table tr td .ChangeAdministrator{ + color:#4CACFF !important; +} +.mutual{ + margin-left:2px; +} +#student_table_div table tbody tr:nth-child(1) td{ + border-top:1px solid transparent !important; +} +.orangeback{ + width: 68px; + height: 24px; + line-height: 24px; + background: #FF7500 !important; + color: #FFF !important; + font-size: 14px !important; +} +.colorBule{ + color:#4CACFF !important; +} +.educontoptwpConnot{ + height: 50px !important; + position:relative; + border-bottom: none!important; +} +.HowManyStufont14{ + position: absolute; + top: 21px; + left: 20px; + font-size: 14px; +} +.edu-cold-input{ + position: absolute; + top: 17px; + right: 18px; +} +.newseduiconfont{ + top: -1px !important; +} +#edu-bgtablethead table thead tr th{ + width: 116px !important; + display: inline-block; + float: left; + height: 56px !important; + line-height: 56px !important; +} +#edu-bgtablethead table thead tr th:nth-child(1){ + margin-left: 24px; +} +#edu-bgtablethead table tbody tr td{ + width: 118px !important; + display: inline-block; + float: left; + height: 56px !important; + line-height: 56px !important; +} +#edu-bgtablethead table tbody tr td:nth-child(1){ + margin-left: 24px; +} +#edu-bgtablethead table tbody tr:nth-child(1) td{ + border-top:1px solid transparent !important; +} +#edu-bgtablethead table tr th{ + border: 1px solid transparent; +} +.powerName{float: left;max-width:101px; } +.listCombox{display: none;position: absolute;z-index: 10;left: 0px;width: 100%;overflow-y: auto;background: #fff;max-height: 200px; border: 1px solid #eee; + width: 124px;left: -10px;top: 46px;} +.listCombox li {height: 30px;line-height: 30px;padding-left: 5px;cursor: pointer;text-align: left;} + +#edu-bgtabletheadtech table thead tr th{ + width: 190px !important; + display: inline-block; + float: left; + height: 56px !important; + line-height: 56px !important; + font-weight: 500; + color: #666666 !important; +} +#edu-bgtabletheadtech table thead tr th:nth-child(1){ + margin-left: 24px; +} +#edu-bgtabletheadtech table tbody tr td{ + width: 192px !important; + display: inline-block; + float: left; + height: 56px !important; + line-height: 56px !important; +} +#edu-bgtabletheadtech table tbody tr td:nth-child(1){ + margin-left: 24px; +} +#edu-bgtabletheadtech table tbody tr:nth-child(1) td{ + border-top:1px solid transparent !important; +} +#edu-bgtabletheadtech table tr th{ + border: 1px solid transparent; +} + +.newupload_Teacher{ + height: 520px; +} +.taskform80{ + padding: 5px; + width: 83%; + height: 30px !important; + background: rgba(255,255,255,1); + border-radius: 4px; +} +.unitsGrey80{ + float: left; + height: 29px; + line-height: 29px; + margin-right: 15px; +} +.edu-btn-searcha80{ + position: absolute; + top: -7px; + right: 64px; +} +.left_80_path{ + width: 568px; +} +.all_ther_selectstyle{ + width:550px; + background: #f7f9fd; + height: 25px; + display: none; +} +.all_settings_selectstyle ul{ + width:519px !important; + height: 280px; +} +.task_popup_conList{ + padding: 30px 40px 0px 40px; +} +.mb10important{ + margin-bottom: 20px !important; + position: relative; +} +.unitsGrey101{ + width:100%; + height: 100px; + position:relative; +} +.unitsGrey101 h4{ + width: 52px; + float: left; +} +.unitsGrey101 ul{ + width: 280px; + float: left; +} +.left{ + float:left; +} +.assistants{ + margin-left:30px; +} +.cancellation{ + position: absolute; + top: 62px; + left: 177px; + color: #FFF !important; +} +.determine{ + position: absolute; + top: 62px; + left: 287px; +} +.nesborBox{ + height:105px; +} +.CCC_btn{ + border:1px solid #B3B3B3 !important; + color: #B3B3B3 !important; +} +.backOrange{ + background: #FF6800 !important; + color: #FFF !important; + border:1px solid #FF6800 !important; +} +.bulewhitebtn{ + border:1px solid #4CACFF !important; + color: #4CACFF !important; +} +.tabeltext-alignleft{ + text-align: center; +} +.tehchpositiong{ + top: 18px !important; +} +.newpanelstylelposition{ + position: absolute; + top: -1px; +} +.newsedu-opennewposition{ + top: -3px !important; + right: 10px !important; + position: absolute; +} +.sy_cgreyblue{ + color: #4CACFF !important; + border: 1px solid #4CACFF !important; +} +.attachment_history_tr th{ + color: #888 !important; +} +.attachment_th th { + color: #888 !important; + margin-right: 22px; + width: 500px; +} +.deletehist{ + position: absolute; + bottom: 91px; + right: 27px; +} +.orangebtuB3{ + color:#B3B3B3 !important; + border:1px solid #B3B3B3 !important; +} +#homepagePostPorimg img{ + float: left; + margin-top: 17px !important; +} +#tip_attachment_count span{ + margin-right:24px; +} +.homepagePostSettingundis{ + left: -66px !important; +} +.muban_table thead tr th{ + font-weight: 500 !important; +} +.greymaxfont{ + color: #989898 !important; + font-size: 12px; + margin-top: 2px; +} +#edu-bgtabletheadtech table tbody tr td span{ + color: #343434 !important; +} +#edu-bgtabletheadtech table tbody tr td:nth-child(1) span{ + color: #656565 !important; +} +#edu-bgtabletheadtech table tbody tr td:nth-child(3) span{ + color: #9A9A9A !important; +} +#edu-bgtablethead table thead tr th{ + font-weight: 400; + color: #666 !important; +} + + +#edu-bgtabletheadtech table tbody tr td{ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +#search_not_teachers_ul li label a{ + color:#4C4C4C; +} +#search_not_students_ul li label a{ + color:#4C4C4C; +} + +#search_not_students_ul li label span:nth-child(2){ + color:#9A9A9A; +} + +#search_not_students_ul li label span:nth-child(3){ + color: #CBCBCB; +} + + +.loginX{ + position: absolute; + right: 6px; + top: 0px; +} + +#newtrainingtask-popup{ + width:840px; +} + +.TrainingList{ + color:#9A9A9A; + font-size:14px; + line-height: 32px; +} +.TrainingListchild{ + color:#FF6800; +} +.newshixun_tab_div{ + padding: 0px 22px 0px -5px; + max-height: 90px; + overflow-y: auto; +} + +.newtask_popup_con{ + padding:20px 0px 20px 0px; +} + +#new_shixun_homework_list{ + padding: 0px 3px 0px 20px; +} + +.choose_idsbox{ + width:100%; + height: 30px; + background:#EAEAEA; +} +.task-hidechoose_idsbox{ + width: 100px; + color:#343434; +} +.task-hidechild{ + display: inline-block; + margin-left:10px; +} +.search-spannew{ + margin-right: 32px; +} +.newdetails{ + color: #4CACFF; + width: 80px; +} +.widthnew90{ + width: 90px; +} +.widthnew250{ + width: 250px; +} +.widthnew180{ + width: 180px; +} +.clearfixnewclass{ + height: 38px; + border-bottom: 1px solid #EBEBEB; + padding-top: 10px; +} +.over490{ + max-height: 420px; +} +.widthnew280{ + width:280px; +} +.widthnew100{ + width: 170px; + text-align: left; + color:#676767; +} +.widthnew210{ + width: 229px; + text-align: right; + color: #676767; +} +.widthnew142{ + width: 147px; + text-align: right; + color: #676767; +} +.widthnew132{ + width: 81px; + text-align: right; + color: #676767; +} +.FFFFF{ + color:#FFFFFF !important; + margin-right: 61px; +} + +.search-spannewshixun_name_search::-webkit-input-placeholder{ + color: #9A9A9A; +} +.search-spannewshixun_name_search:-moz-placeholder{ + color: #9A9A9A; +} +.search-spannewshixun_name_search:-ms-input-placeholder{ + color: #9A9A9A;; +} + + +/*在线课堂作业*/ +.classaInputOverflow{ + display: block; + color: #333; + font-size: 16px; + max-width: 516px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 16px; + font-family: MicrosoftYaHei-Bold; + color: #05101A !important; + font-weight: Bold; + margin-top: 3px; +} + +.marginxe61f{ + margin-top: 5px; + margin-left: 6px; + color: #747A7F !important; +} +.classaInputleft{ + font-size: 16px; + font-family: MicrosoftYaHei-Bold; + color: #05101A !important; + font-weight: Bold; +} + +.Training_details{ + background: rgba(76,172,255,1); + border-radius: 12px; + color: #FFF !important; + width: 76px !important; + height: 22px !important; + line-height: 21px !important; + padding: 0px !important; + border: 1px solid rgba(76,172,255,1); + margin-top: 7px; +} +.Training_FCFCFC{ + background:#B2B2B2; + border-radius: 12px; + color: #FFF !important; + width: 76px !important; + height: 22px !important; + line-height: 21px !important; + padding: 0px !important; + border: 1px solid #B2B2B2; + margin-top: 7px; +} +.Training_FCFCFC a{ + color: #FFF; + font-size: 14px; +} +.Training_details a{ + color: #FFF; + font-size: 14px; +} +.Foundedin{ + color: #CCCCCC; + font-size: 14px; +} +.color343434{ + color:#343434; + font-size:14px; +} +.colortFF6800{ + color: #FF6800; + font-size:14px; +} +.colort21B351{ + color: #21B351; + font-size:14px; +} +.edu-filter-btn-redgreenBtn{ + width:94px; + height:22px; + background: #FFF; + border-radius: 12px !important; + line-height: 22px !important; + padding: 0px !important; + color: #DD1717 !important; + margin-top: 7px; + border: 1px solid #DD1717; + font-size: 14px; +} +.edu-filter-btn-no-latehomeStatusBtn{ + width: 66px; + height: 22px; + background: #FFF; + border-radius: 12px !important; + line-height: 22px !important; + padding: 0px !important; + color: #747A7F !important; + margin-top: 7px; + border: 1px solid #747A7F; + font-size: 14px; +} +.edu-filter-btn-endhomeStatusBtn{ + width: 66px; + height: 22px; + background:#FFF; + border-radius: 12px !important; + line-height: 22px !important; + padding: 0px !important; + color: #747A7F !important; + margin-top: 7px; + border: 1px solid #747A7F; + font-size: 14px; +} +.edu-filter-btn-endgreenhomeStatusBtn{ + width: 100px; + height: 22px; + background:#FFF; + border-radius: 12px !important; + line-height: 22px !important; + padding: 0px !important; + color: #29BD8B !important; + margin-top: 7px; + border: 1px solid #29BD8B; + font-size: 14px; +} +.edu-filter-btn-orangehomeStatusBtn{ + width: 66px; + height: 22px; + background: #FFF; + border-radius: 12px !important; + line-height: 22px !important; + padding: 0px !important; + color: #ff6800 !important; + margin-top: 7px; + border: 1px solid #ff6800; + font-size: 14px; +} +.newcolor-red{ + color: #DD1717; +} +.newcolor-orange{ + color: #FF6800; +} +.color4CACFF{ + color:#4CACFF !important; + font-size:14px; +} +.paddingLeft30{ + padding-left:30%; +} +.paddingLeft35{ + padding-left:35%; +} +.paddingLeft20{ + padding-left:20%; +} +.color979797{ + font-size: 14px; + color: #979797 !important; + padding-left: 2%; +} +.marginRight55{ + margin-right: 55px; +} +.marginTop{ + margin-right: 33%; + margin-top: 20px; +} +.marginTop30{ + margin:30px 30% 20px 0px; +} +/*选择实训弹框*/ +.Select_trainingFont{ + font-weight: Bold; + font-size:16px; + font-family:MicrosoftYaHei-Bold; + color:#05101A !important; +} +.TrainingHead{ + padding: 0px !important; + height: 151px !important; + margin-bottom: 10px; + border: 1px solid transparent; +} +#resources-Sourcesbg{ + border-top: 1px solid #eee; + border-bottom: 1px solid transparent; +} +.homework_index_list .mh550 #resources-Sourcesbg:nth-child(1) { + border-top:1px solid transparent; +} + +.height55{ + height: 55px; + border-bottom: 1px solid #eee; +} +.TrainingHead div:nth-child(2){ + border-bottom:1px solid transparent; +} + +.mt12ml25{ + margin-top: 12px; + margin-left: 25px; +} +.mat13{ + margin-top: 13px; +} +#homework_index_tab a{ + font-size: 14px !important; + display: inline-block; + margin-right: 20px; +} +.homework_index_taba{color: #459be5 !important;} +.relativemrt{ + position: relative; + margin-top: 10px; + margin-right: -14px; +} +.borderEAEAEA{ + border:1px solid #EAEAEA; +} +.borderEAEAEA::-webkit-input-placeholder{color: #9A9A9A; font-size:14px; } + +.borderEAEAEA:-moz-placeholder{color: #9A9A9A; font-size:14px;} + +.borderEAEAEA::-moz-placeholder{color: #9A9A9A; font-size:14px;} + +.borderEAEAEA:-ms-input-placeholder{color: #9A9A9A; font-size:14px;} + +/*选择实训弹窗*/ +.shixuns_countfont{ + color: #9A9A9A; + font-size:14px; + margin-left: 10px; +} +.shixuns_count{ + color: #05101A; + font-size:14px; +} +#shixun_search_form_div{ + margin-top: 20px; + margin-bottom: 20px !important; +} +.relativemrtnew{ + margin-top: -3px; +} + +#import_resource_div_list{ + padding: 20px !important; + height: 260px !important; + max-height: 260px !important; + overflow-y:auto; +} +.newtask_popup_con{ + padding: 15px 36px 30px 36px; +} +.zuoyebtn{ + margin-right: 50px; + margin-left: 185px; + color: #FFF !important; +} +.newsedu-shuxunsearch{ + top: -6px !important; + right: 10px !important; + position: absolute; +} +.shixuntaskname{ + width:85px; + text-align: left !important; +} +.shixunstaskum{ + width: 15px; + text-align: left !important; +} +.shixunstasktype{ + text-align:left !important; +} +.shixuntasktitle{ + text-align:left; + width: 280px; + color: #4C4C4C !important; + padding: 0px 0px 0px 5px; +} +.singlebtn{ + margin-top: 25px; + margin-left: 196px; +} +.singlefrbtn{ + margin-right: 40px; + color: #FFF !important; +} +.student_workcontent{ + padding: 10px 30px 30px 30px; +} + +.newsinglebtn{ + margin-top: 25px; + margin-right: 150px; +} +.newsinglebtna{ + margin-top: 25px; + margin-right: 130px; +} +.newsinglebtnaTwo{ + margin-top: 32px; + margin-right: 138px; +} +.singlepublishbtn{ + padding-left: 17px; + padding-right: 15px; +} +.singlepublishbtn{ + padding-left: 17px; + padding-right: 15px; +} +.tasklepublishbtn{ + padding-left: 16px; + padding-right: 16px; +} +.newsinglebtntwo { + margin-top: 25px; + margin-right: 75px; +} +.singlefrbtntwo{ + margin-right: 40px; +} +.edu-pop-table-grey{ + border: 1px solid transparent; + background: #F7FBFF; + max-height: 198px; + overflow-y: auto; + display: block; +} +.edu-pop-table-grey tr td{ + border: 1px solid transparent; +} +.publish-btn{ + background: #4CACFF !important; + width: 86px !important; + height: 28px !important; + line-height: 28px !important; + color: #FFF !important; + border:1px solid #4CACFF !important; + border-radius: 2px !important; + font-size:14px; + font-weight: 500 !important; +} +a.singlepublish{ + background: #9A9A9A !important; + width: 86px !important; + height: 28px !important; + line-height: 28px !important; + border: 1px solid #9A9A9A !important; + color: #FFF !important; + border-radius: 2px !important; + font-size: 14px; + font-weight: 500; + text-align: center; +} +a.singlepublishtwo{ + margin-right: 50px; + padding-right: 15px; + padding-left: 17px; +} +.publish-btntwo{ + margin-right: 50px; + padding-right: 12px !important; + padding-left: 20px !important; +} +.studentcontent{ + color: #05101A !important; + font-size: 16px; +} +.class-containersdu{ + color: #989898 !important; +} +.class-containersdu a{ + color: #989898 !important; +} +.user_bg_shadowfont{ + color: #333333 !important; + max-width: 300px; + height: 26px; + line-height: 26px !important; + font-size: 18px; + font-family: MicrosoftYaHei; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.homework_top_conton{ + height: 40px !important; + padding-top: 26px; +} +.newgreengreenBtn{ + margin-top: 2px; +} +.newgreendetails{ + margin-top: 2px; +} +.goTraining_deta{ + margin-top: -2px; + color:#999999; +} + +.background-newBlue{ + width:118px !important; + height:48px !important; + border:1px solid #4CACFF !important; + border-radius: 24px !important; +} +.background-newBlue a{ + color: #4CACFF !important; +} + +.edu-tab-navhomework{ + height: 80px !important; + padding-top: 38px; +} +.newhomework_info_list tr td{ + border:1px solid transparent; +} +.newhomework_info_list.hover-td_1 tbody tr:hover{ + background: transparent; +} +.short_note_but{ + width: 80px; + height: 27px; + border: 1px solid #CCC; + text-align: center; + line-height: 27px; + cursor:pointer; +} +.short_note_but:hover{ + background: #F3F3F3; +} +#newhomework_list{ + width: 100%; + height: 30px; + margin-top: 10px; +} +.navdefaultsetting{ + width: 118px !important; + height: 48px !important; + border: 1px solid transparent; + border-radius: 24px !important; +} +.newpadding40{ + padding: 40px !important; +} +.editormd-html-preview{ + color: #323232 !important; + font-size: 14px !important; +} +#homework_editorMd_description hr{ + border: 1px solid transparent; +} +#homework_explanation_div{ + padding: 5px 60px !important; +} +.jobDescription{ + color: #29BD8B; + font-size: 16px !important; + font-weight: 500; +} +.newBorder_info_listtwo:hover{ + color:#FFF !important; +} +.newnoteDetailPoint{ + width: 100px; + height: 70px; + background-color: #4cacff; + border-radius: 35px; + color: #fff; + text-align: center; + margin: 0 auto; + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 2px 0; + cursor: pointer; + line-height: 22px; + padding-top: 12px; +} +.newCommentItem{ + height: 112px; + border-bottom: 1px solid transparent; +} +.comment_reply_box{ + margin-top: 20px; +} +.panel-mes-headbox{ + padding: 10px; +} +.colorCCC{ + color: #CCCCCC !important; +} +.panelHeaddiv{ + padding-left: 30px; +} +.newpanel-comment_item{ + width: 94%; + padding: 0px 0px 0px 30px; + margin-bottom: 20px; +} +.mt4{ + margin-top:4px; +} +.panel-comment_itemorig_cont{ + border: solid 1px transparent !important; + background: #EBEBEB !important; + padding: 0px !important; + color: #999 !important; +} +.orig_ClearfixBox{ + padding: 0px !important; +} +.ptl8{ + padding-left: 8px; +} + + +/*毕业设计*/ +#selectionSubject p{margin: 0px 30px;height: 56px;line-height: 56px;border-bottom:1px solid #ebebeb;display: flex;} +#selectionSubject p:first-child{background-color: #F5F5F5;text-align: center;border-bottom: none;color: #666666;padding: 0px 30px;margin: 0px!important;} +#selectionSubject p span{min-width: 80px;float: left;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;padding: 0px 5px;box-sizing: border-box;text-align: center;color: #989898} +#selectionSubject p span.s-w{width:130px;} +#selectionSubject p span.m-w{width:170px;} +#selectionSubject p span.l-w{width:240px;} +/*毕设任务*/ +.teamPartForm{background-color: #F4F4F4;padding: 10px 20px;height: 416px;overflow-y: auto;width: 404px;box-sizing: border-box} +.teamPartForm li{line-height: 28px;background-color: #fff;padding: 0px 20px;display: flex;margin-bottom: 10px;} +.teamPartForm li span{float: left;} +.teamPartForm li a{float: right;} +.teamPartForm li a.i-opacity{opacity: 0.4} +/*评阅--评论*/ +.task-commits-item{padding:30px 0px;display: flex;border-bottom: 1px solid #EBEBEB;} +.task-commits-item:last-child{border-bottom: none;} +.task-c-i-sub{padding:20px 0px;display: flex;border-bottom: 1px solid #EBEBEB;} +.task-c-i-sub:last-child{border-bottom: none;} +.r-p-f-span{position: absolute;right: 3px;bottom: 10px;color: #999;font-size: 12px;line-height: 15px;} + +/*----------------------------超级管理员------------------------------------*/ +.NotCountUrl{display: inline-block;height: 22px;text-align: center;width: 22px;line-height: 22px;color: #fff;background-color: #666;border-radius: 4px;} +.havaCountUrl{background-color: #91D5FF;display: inline-block;height: 22px;text-align: center;width: 22px;line-height: 22px;border-radius: 4px;color: #2B9AFD!important;} +.manageName{display: inline-block;height: 22px;line-height: 22px;padding: 0px 5px;border:1px solid #91D5FF;background-color: #E6F7FF;color: #91D5FF;border-radius: 4px;margin-top: 5px;} +/*工程认证*/ +.ManagerFindPanel{width: 260px;height: 34px;} +.ManagerFindPanel > input{width: 100%;border:1px solid #eee;padding: 0px 25px 0px 5px;outline: none;box-sizing: border-box;height: 34px;line-height: 34px;} +.ManagerFindPanel > i{position: absolute;right: 5px;top:0px;color: #eee;} + +.majorItem{margin-bottom: 10px;} +.majorItem-line{height: 40px;line-height: 40px;background-color: #f5f5f5;font-size: 14px;padding: 0px 10px;cursor: pointer;color: #666;} +.collegeManage{float: left;padding: 0px 8px;border-radius: 6px;background-color: #f5f5f5;margin: 3px 0px 3px 10px;height: 34px;line-height: 34px;} +/*合作伙伴*/ +.edu-cooperation li{height: 60px;width: 210px;padding: 10px 0px;margin-left: 20px;float: left;margin-bottom: 20px;text-align: center;line-height: 40px;box-sizing: border-box} +.edu-cooperation li img{height: 40px;width: 210px;} +/*单位-合作伙伴*/ +.addOperation{width: 100%;display: block;height: 56px;line-height: 56px;text-align: center;border-bottom: 1px solid #eee;} +.partnerList li a{ + display: block;height: 40px;line-height: 40px;padding:0px 10px;width: 100%;overflow:hidden; white-space: nowrap; text-overflow:ellipsis; + box-sizing: border-box;position: relative; +} +.partnerList li a.active:after{ + position: absolute;left: 0px;height: 100%;width: 2px;content: '';background: #4cacff; +} +.partnerList{max-height: 500px;overflow-y: auto;} +.manageList{float: left} +.manageList li{width: 60px;float: left;margin-right: 15px;border-radius: 50%;text-align: center;position: relative;margin-bottom: 10px;} +.manageList li>a.addManage,.manageList li>img{width: 60px;height: 60px;line-height: 49px;margin-right: 10px;border-radius: 50%;display: block} +.addManage{display: block;background: #cdcdcd;color: #fff!important;font-size: 55px;} +.managementName{display: block;width: 60px;color: #666;} +.removeImg{position: absolute;right: 1px;top: -12px;} +.tableList .tableHead{background: #fafafa} +.tableList{min-height: 400px;} +.tableList li{height: 45px;line-height: 45px;} +.tableList li span{float: left;display: block;text-align: center} +.tableList li span:nth-child(1){width: 10%} +.tableList li span:nth-child(2){width: 60%;text-align: left} +.tableList li span:nth-child(3){width: 10%;float: right} +.tableList li span:nth-child(4){width: 20%;float: right} + + +/* 兼容(小屏幕)手机浏览器 */ +.newHeader , .newMain , .newFooter { + max-width: unset; +} +.educontentTop{ + width: 1178px !important; +} +.inner-footer_con { + width: auto; +} + +.competition_img{width: 120px; height: 90px;} + +.careershover{ + margin-right:30px !important; +} +.careershover ul li a{ + color:#000 !important; +} +.careershover ul li{ + height: 35px !important; + line-height: 35px !important; +} +.edu-menu-listnew{ + width: 165px !important; + top: 60px; + left: 0px; +} +.edu-menu-listnew li{ + padding: 0px 0px 0px 8px !important; + text-align: left; + margin-right: 0px !important; +} +.edu-menu-listnew li a{ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + color:#000 !important; + width:85% !important; + margin-left: 24px; +} + +.edu-menu-listnew li a:hover{ + color:#fff !important; +} + +.edu-menu-panel:hover .careersiconfont, .edu-menu-panel:hover{ + color:#4C4C4C !important; +} + +/*工程认证*/ +/*首页*/ +.authMainImg{width: 100%;height: 240px;background:url("/images/educoder/auth/banner1.jpg") no-repeat top center;background-size: 100% 100%;justify-content: center;align-items: center;display: -webkit-flex;} +.ListTableLine>p,.ListTableLine>.ListTableTitle{padding: 0px 30px;background-color: #F5F5F5;line-height: 40px;height: 56px;padding-top: 8px;box-sizing: border-box;} +.ListTableLine>p span,.ListTableTitle span{float: left;color: #666;box-sizing: border-box} +.ListTableLine li.clearfix{min-height: 48px;padding: 10px 0px;box-sizing: border-box;margin:0px 30px;border-bottom: 1px solid #eaeaea;} +.ListTableLine ul li.clearfix:last-child,.ListTableLine li.clearfix:last-child{border-bottom: none;} +.ListTableLine li>span{float: left;box-sizing: border-box;} + +.ListTableLine.disInline > .ListTableTitle,.ListTableLine.disInline li{line-height: 20px;min-height: 56px;} +.ListTableLine .column-No{text-align: center;width: 80px;float: left;} +.ListTableLine .column-first{text-align: center;width: 30px;float: left;margin-right: 20px} +.ListTableLine .column-second{text-align: center;width: 42px;float: left;margin-right: 20px} +.ListTableLine .column-1{width: 100px;text-align: left;padding-left: 5px;box-sizing: border-box} +.ListTableLine .column-2{width: 180px;text-align: center;padding-left: 5px;box-sizing: border-box} +.ListTableLine .column-3{width: 330px;text-align: left;padding-left: 5px;box-sizing: border-box} +.ListTableLine .column-4{width: 400px;text-align: left;padding-left: 5px;box-sizing: border-box} +.ListTableLine .column-5{width: 120px;text-align: center;padding-left: 5px;float: right;box-sizing: border-box} +.newListTableLine .column-5{width: 103px;text-align: center;padding-left: 5px;float: right;box-sizing: border-box} +.ListTableLine .column-6{width: 130px;padding-left: 5px;box-sizing: border-box;text-align: center;} +.ListTableLine .column-7{width: 200px;text-align: center;padding-left: 5px;box-sizing: border-box} +.ListTableLine .column-8{width: 280px;text-align: left;padding-left: 5px;box-sizing: border-box} +.ListTableLine .column-9{width: 199px;text-align: left;padding-left: 5px;box-sizing: border-box} +.ListTableLine .column-10{width: 201px;text-align: left;padding-left: 5px;box-sizing: border-box} +.ListTableLine .column-11{width: 90px;text-align: left;padding-left: 5px;box-sizing: border-box} + +.managerPanel a{margin-right:24px;} +.managerPanel a:nth-child(16n){margin-right: 0px;} +.managerPanel a span{display: block;text-align: center;max-width: 48px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color: #666;} +.managerPanel a:hover span{color: #4cacff!important;} +/*具体学年*/ +.MajorName{display: inline-block;position: relative;padding: 0px 5px;height: 28px;line-height: 28px;background-color: #ebebeb;border-radius: 14px;color:#323232;margin:0px 3px 5px 3px;} +.MajorColumn{max-width: 362px;} +.MajorName > i{position: absolute;top:-11px;right:-5px;color: #CBCBCB;cursor: pointer;} +.MajorName > i:hover{color: #4CACFF} +/*培养目标*/ +#traningNav{margin-bottom: 0px!important;} +#traningNav>li{float: left;padding:0px 30px 30px 30px;font-size: 16px;} +#traningNav>li>a,#traningNav li>i{color: #666!important;position: relative} +#traningNav>li.active > a,#traningNav li.active > i{color: #05101A!important;} +#traningNav>li.active > a:after{content: '';position: absolute;width: 64px;left: 50%;margin-left: -32px;height: 2px;background-color: #05101A;bottom: -35px;} + +#traningNav>li>.ecTitle {width: 20px;height: 20px;border: 1px solid rgba(65, 140, 205, 1);border-radius: 50%;text-align: center; +line-height: 20px;display: inline-block;color: rgba(65, 140, 205, 1) !important;margin-right: 8px;} +#traningNav>li>.ecTitlefont:hover{color: rgba(65, 140, 205, 1) !important;} +.ecimgs{height: 90px;line-height: 90px;box-sizing: border-box;} +#traningNav>li>.ecTitlefontFFF{color:#fff!important;} +#traningNav>li>.ecTitleFFF {width: 20px;height: 20px;border: 1px solid #fff;border-radius: 50%;text-align: center;line-height: 20px; + display: inline-block;color: #fff !important;margin-right: 8px;} +.traningNavs>li {padding: 0px 10px 30px 12px !important;} +.ecimgs1{background: url("/images/educoder/auth/1.png");background-repeat: no-repeat;background-size: 100% 100%;-moz-background-size: 100% 100%; + height: 90px;line-height: 90px;box-sizing: border-box;} +.ecimgs3{background: url("/images/educoder/auth/3.png"); background-repeat: no-repeat;background-size: 100% 100%; + -moz-background-size: 100% 100%;height: 90px;line-height: 90px;box-sizing: border-box;} +/*毕业要求VS培养目标*/ +.sustain{display: inline-block;width: 14px;height: 14px;background-color: #29BD8B;border-radius: 50%;} +.gaugeOutfit{position: relative;height: 70px;width: 120px;background:linear-gradient(30deg,transparent 49.5%,#eee 50%,#eee 50%,transparent 50.5%);} +.gaugeOutfit span:first-child{position: absolute;left: 8px;top: 46px;} +.gaugeOutfit span:last-child{position: absolute;right: 8px;top: 14px;} +.sustainLine td:not(:first-child):hover{background-color:rgba(41,189,139,0.1);cursor: pointer} +/*毕业要求VS课程体系*/ +.tableScroll{width: auto;white-space:nowrap;min-width: 100%;} +/*课程目标VS毕业要求指标点*/ +.CourseTargetPoint thead th{vertical-align: baseline;} +.CourseTargetPoint tbody tr td{vertical-align: top;} +/*毕业要求对通用标准的支撑*/ +.td-head{height: 82px;} +.td-head-child{line-height: 82px;height: 82px;} +#requireTable tbody { + display:block; + max-height:800px; + overflow-y:auto; + overflow-x: hidden; +} + +#requireTable thead,#requireTable tbody tr { + display:table; + width:100%; + table-layout:fixed; +} + +#requireTable thead { + width: calc( 100% ) +} +#requireTable thead .td-head-child:last-child{border-right: none;} + + +/*用户列表*/ +.managerPanels a{margin-right:24px;} +.managerPanels a:nth-child(16n){margin-right: 0px;} +.managerPanels a span{display: block;text-align: center;max-width: 70px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color: #666;} +.managerPanels a:hover span{color: #4cacff!important;} +.userimg{position: absolute;top: -16px;right: -5px;} +.useradd{font-size: 42px !important; position: absolute; top: -16px;} +.ListTableLines .column-2{ + width: 150px; + text-align: center; + padding-left: 5px; + box-sizing: border-box; + color:#999999; +} +.ListTableLines .column-No{ + color:#999999; +} +.courselist .column-2{ + width: 150px; + text-align: center; + padding-left: 5px; + box-sizing: border-box; + color:#656565; +} +.courselist .column-No{ + color:#999999; +} +.poll_list a { + display: inline-block; + padding: 20px; + font-size: 18px; + text-align: center; + position: relative; + color: #05101a; +} + +.substancenenew{ + width: 236px; + height: 156px; + background: rgba(248,248,248,1); + border: 2px dotted rgba(225,225,225,1); + opacity: 1; + border-radius: 4px; + padding-top: 50px; + position: inherit; +} + +.substancepad{ + padding: 20px 20px 0px 20px; + border-bottom: 1px solid transparent; +} + +.substancefont{ + height:24px; + font-size:18px; + font-family:Microsoft YaHei; + font-weight:400; + line-height:21px; + color:rgba(153,153,153,1); + opacity:1; + margin-top: -8px; +} + +.topten{ + width: 1px; + height: 100px; + border: 2px soild rgba(225,225,225,1); + background: rgba(225,225,225,1); + border: 1px solid rgba(225,225,225,1); + margin: 0 auto; +} + +.leftten{ + width: 100px; + height: 1px; + background: rgba(225,225,225,1); + border: 1px solid rgba(225,225,225,1); + margin: 0px auto; + position: absolute; + top: 120px; + left: 88px; } \ No newline at end of file From e7c04e8c583500556b1318bdb9389ad47338615f Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 11 Apr 2019 11:28:15 +0800 Subject: [PATCH 06/28] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E7=9A=84=E6=95=99=E5=AD=A6=E5=9B=A2=E9=98=9F=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E3=80=81=E4=B8=8A=E7=A7=BB=E3=80=81=E4=B8=8B?= =?UTF-8?q?=E7=A7=BB=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/subjects_controller.rb | 48 +++++++++++++++++-- app/models/subject.rb | 2 +- app/views/subjects/_subject_members.html.erb | 22 ++++----- .../subjects/down_member_position.js.erb | 1 + app/views/subjects/up_member_position.js.erb | 1 + config/routes.rb | 2 + ...1022220_add_position_to_subject_members.rb | 11 +++++ 7 files changed, 72 insertions(+), 15 deletions(-) create mode 100644 app/views/subjects/down_member_position.js.erb create mode 100644 app/views/subjects/up_member_position.js.erb create mode 100644 db/migrate/20190411022220_add_position_to_subject_members.rb diff --git a/app/controllers/subjects_controller.rb b/app/controllers/subjects_controller.rb index e526d468..a59747aa 100644 --- a/app/controllers/subjects_controller.rb +++ b/app/controllers/subjects_controller.rb @@ -242,14 +242,56 @@ class SubjectsController < ApplicationController memberships = params[:membership][:user_ids] memberships.each do |member| user = User.find(member) - SubjectMember.create!(:user_id => member, :subject_id => @subject.id, :role => 2) + SubjectMember.create!(:user_id => member, :subject_id => @subject.id, :role => 2, + :position => @subject.subject_members.size + 1) end end end def delete_member - member = @subject.subject_members.where(:user_id => params[:mem_id]).first - member.destroy if member + if User.current.admin? + ActiveRecord::Base.transaction do + member = @subject.subject_members.where(:id => params[:mem_id]).first + if member.present? && member.role != 1 + @subject.subject_members.where("position > #{member.position}").update_all("position = position - 1") + member.destroy + end + end + else + render_403 + end + end + + def up_member_position + if User.current.member_of_subject?(@subject) + ActiveRecord::Base.transaction do + member = @subject.subject_members.where(:id => params[:mem_id]).first + raise "不能再上移了" if member.position == 1 + up_member = @subject.subject_members.where(:position => member.position - 1).first + up_member.update_attribute(:position, member.position) + member.update_attribute(:position, member.position - 1) + end + else + render_403 + end + end + + def down_member_position + if User.current.member_of_subject?(@subject) + ActiveRecord::Base.transaction do + begin + member = @subject.subject_members.where(:id => params[:mem_id]).first + raise "不能再下移了" if member.position == @subject.subject_members.count + down_member = @subject.subject_members.where(:position => member.position + 1).first + down_member.update_attribute(:position, member.position) + member.update_attribute(:position, member.position + 1) + rescue Exception => e + raise ActiveRecord::Rollback + end + end + else + render_403 + end end def statistics diff --git a/app/models/subject.rb b/app/models/subject.rb index af330e85..819d446c 100644 --- a/app/models/subject.rb +++ b/app/models/subject.rb @@ -2,7 +2,7 @@ class Subject < ActiveRecord::Base #status :0 编辑中 1 审核中 2 发布 # belongs_to :user has_many :users, :through => :subject_members - has_many :subject_members, :dependent => :destroy, :order => "subject_members.id DESC" + has_many :subject_members, :dependent => :destroy, :order => "subject_members.position asc" has_many :career_stages, :through => :career_stage_subjects has_many :career_stage_subjects, :dependent => :destroy diff --git a/app/views/subjects/_subject_members.html.erb b/app/views/subjects/_subject_members.html.erb index f0746b46..87c518c7 100644 --- a/app/views/subjects/_subject_members.html.erb +++ b/app/views/subjects/_subject_members.html.erb @@ -14,23 +14,23 @@ - - - - + <% if User.current.admin? && member.role != 1 %> + + + + <% end %> - + <% if User.current.member_of_subject?(@subject) && member.position > 1 %> + + <% end %> - - + <% if User.current.member_of_subject?(@subject) && member.position < @subject.subject_members.size %> + - - - - + <% end %> diff --git a/app/views/subjects/down_member_position.js.erb b/app/views/subjects/down_member_position.js.erb new file mode 100644 index 00000000..c2467836 --- /dev/null +++ b/app/views/subjects/down_member_position.js.erb @@ -0,0 +1 @@ +$("#subject_members").html("<%= j(render :partial => 'subject_members') %>"); \ No newline at end of file diff --git a/app/views/subjects/up_member_position.js.erb b/app/views/subjects/up_member_position.js.erb new file mode 100644 index 00000000..c2467836 --- /dev/null +++ b/app/views/subjects/up_member_position.js.erb @@ -0,0 +1 @@ +$("#subject_members").html("<%= j(render :partial => 'subject_members') %>"); \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 3acb9123..f72d1a56 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -339,6 +339,8 @@ RedmineApp::Application.routes.draw do ## oauth相关 match 'add_collaborators', :via => [:get, :post] post 'add_subject_members' delete 'delete_member' + post 'up_member_position' + post 'down_member_position' end collection do diff --git a/db/migrate/20190411022220_add_position_to_subject_members.rb b/db/migrate/20190411022220_add_position_to_subject_members.rb new file mode 100644 index 00000000..d8dac183 --- /dev/null +++ b/db/migrate/20190411022220_add_position_to_subject_members.rb @@ -0,0 +1,11 @@ +class AddPositionToSubjectMembers < ActiveRecord::Migration + def change + add_column :subject_members, :position, :integer, :default => 1 + + Subject.all.each do |subject| + subject.subject_members.reorder("id asc").each_with_index do |member, index| + member.update_column('position', index + 1) + end + end + end +end From 81eb573c039ae61e7d3e6b7445069d674e20f2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 11 Apr 2019 14:44:15 +0800 Subject: [PATCH 07/28] =?UTF-8?q?=E6=9C=80=E6=96=B0=E8=AF=BE=E5=A0=82?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E6=97=B6=E9=97=B4=20=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=A6=81=E6=B1=82=E8=B0=83=E6=95=B4=E6=BB=91?= =?UTF-8?q?=E5=8A=A8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/cooperates/_partner_item.html.erb | 14 ++++++++------ public/stylesheets/educoder/edu-main.css | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/app/views/cooperates/_partner_item.html.erb b/app/views/cooperates/_partner_item.html.erb index a094c452..09490e39 100644 --- a/app/views/cooperates/_partner_item.html.erb +++ b/app/views/cooperates/_partner_item.html.erb @@ -1,23 +1,25 @@

序号 - 单位名称 - 教师 - 学生 + 单位名称 + 教师 + 学生 课堂 发布实训 实训报告 + 最新课堂动态时间 使用详情

    <% @schools.each_with_index do |school, index| %>
  • <%= index + 1 %> - <%= school.name %> - <%= school.teacher_count %> - <%= school.student_count %> + <%= school.name %> + <%= school.teacher_count %> + <%= school.student_count %> <%= school.course_count %> <%= school.shixun_count %> <%= school.shixun_report_count %> + 2019-04-11 时间 <% if school.statistic_url != "" %> 查看 diff --git a/public/stylesheets/educoder/edu-main.css b/public/stylesheets/educoder/edu-main.css index 9912bd61..dac31425 100644 --- a/public/stylesheets/educoder/edu-main.css +++ b/public/stylesheets/educoder/edu-main.css @@ -3,6 +3,22 @@ body{font-size:14px; line-height:2.0;background:#fafafa!important;font-family: "微软雅黑","宋体"; color:#05101a;height: 100%;position: relative; } html,body{height:100%;} +/*滚动条样式*/ +body::-webkit-scrollbar {/*滚动条整体样式*/ + width: 8px; /*高宽分别对应横竖滚动条的尺寸*/ + height: 8px; +} +body::-webkit-scrollbar-thumb {/*滚动条里面小方块*/ + border-radius: 5px; + -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); + background: #47494d; +} +body::-webkit-scrollbar-track {/*滚动条里面轨道*/ + -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); + border-radius: 0; + background: rgba(0,0,0,0.1); +} + body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,span{ margin:0; padding:0;} table,input,textarea,select,button {outline: none;border-radius: 3px; font-family: "微软雅黑","宋体"; font-size:14px;line-height:1.9;border:1px solid #eaeaea;background: #FFFFff; color:#05101A;} textarea{resize: none;} From 3f63a5149950e86a15e85ec15ca10810f66664fa Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 11 Apr 2019 16:28:39 +0800 Subject: [PATCH 08/28] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E7=9A=84=E6=96=B0=E5=BB=BA=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 5 ++++ app/views/users/_l_course.html.erb | 31 ++++++++++++----------- app/views/users/_l_project.html.erb | 31 ++++++++++++----------- app/views/users/_l_shixun.html.erb | 38 +++++++++++++++-------------- app/views/users/_p_path.html.erb | 31 ++++++++++++----------- 5 files changed, 76 insertions(+), 60 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 3868f5a5..9e51ebbb 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -2559,6 +2559,11 @@ class UsersController < ApplicationController end end @objects_count = @objects.size + page = params[:page] ? params[:page].to_i : 1 + @new_icon = @user == User.current && page == 1 && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) + + # 用户进自己主页的全部列表时有个新建入口,在objects头部加一个"new"元素以确保翻页的正确性 + @objects.unshift 'new' if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) @objects = paginateHelper @objects, 16 respond_to do |format| diff --git a/app/views/users/_l_course.html.erb b/app/views/users/_l_course.html.erb index 4a020502..eeb9f92a 100644 --- a/app/views/users/_l_course.html.erb +++ b/app/views/users/_l_course.html.erb @@ -16,30 +16,33 @@
    - -
    + <% if @new_icon %> + +
    - + -
    -
    +
    +
    新建课堂 +
    -
    -
    +
    + <% @objects.shift %> + <% end %> <%#= render :partial => "users/course_item", :locals => {:objects => @objects} %> diff --git a/app/views/users/_l_project.html.erb b/app/views/users/_l_project.html.erb index 1c0792b5..0113c646 100644 --- a/app/views/users/_l_project.html.erb +++ b/app/views/users/_l_project.html.erb @@ -16,31 +16,34 @@
    - -
    + <% if @new_icon %> + +
    - -
    -
    +
    +
    新建项目 +
    -
    -
    +
    + <% @objects.shift %> + <% end %> <% @objects.each do |object| %> <% allow_visit = object.is_public || User.current.admin? || User.current.member_of?(object) %> diff --git a/app/views/users/_l_shixun.html.erb b/app/views/users/_l_shixun.html.erb index a6a91904..68dcdf6c 100644 --- a/app/views/users/_l_shixun.html.erb +++ b/app/views/users/_l_shixun.html.erb @@ -35,32 +35,34 @@
    - -
    + <% if @new_icon %> + +
    - -
    -
    +
    +
    - - 新建实训 - + + 新建实训 + +
    -
    - -
    +
    + <% @objects.shift %> + <% end %> <% @objects.each do |object| %>
    diff --git a/app/views/users/_p_path.html.erb b/app/views/users/_p_path.html.erb index b4873366..96fe683b 100644 --- a/app/views/users/_p_path.html.erb +++ b/app/views/users/_p_path.html.erb @@ -23,31 +23,34 @@
    - -
    + <% if @new_icon %> + +
    - -
    -
    +
    +
    新建实训课程 +
    -
    -
    +
    + <% @objects.shift %> + <% end %> <% @objects.each_with_index do |object, index| %> From 44f7cebbed79a7adc1a422682cc50dcd320d38cf Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 11 Apr 2019 16:56:17 +0800 Subject: [PATCH 09/28] =?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/controllers/users_controller.rb | 8 +++----- app/views/users/_l_course.html.erb | 1 - app/views/users/_l_project.html.erb | 1 - app/views/users/_l_shixun.html.erb | 1 - app/views/users/_p_path.html.erb | 1 - 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 9e51ebbb..af38d85d 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -2559,12 +2559,10 @@ class UsersController < ApplicationController end end @objects_count = @objects.size - page = params[:page] ? params[:page].to_i : 1 - @new_icon = @user == User.current && page == 1 && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) + @new_icon = @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) - # 用户进自己主页的全部列表时有个新建入口,在objects头部加一个"new"元素以确保翻页的正确性 - @objects.unshift 'new' if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) - @objects = paginateHelper @objects, 16 + # 用户进自己主页的全部列表时有个新建入口,所以翻页只有15个 + @objects = paginateHelper @objects, 15 respond_to do |format| format.js diff --git a/app/views/users/_l_course.html.erb b/app/views/users/_l_course.html.erb index eeb9f92a..195fc2d9 100644 --- a/app/views/users/_l_course.html.erb +++ b/app/views/users/_l_course.html.erb @@ -41,7 +41,6 @@
    - <% @objects.shift %> <% end %> diff --git a/app/views/users/_l_project.html.erb b/app/views/users/_l_project.html.erb index 0113c646..83ee900e 100644 --- a/app/views/users/_l_project.html.erb +++ b/app/views/users/_l_project.html.erb @@ -42,7 +42,6 @@
    - <% @objects.shift %> <% end %> <% @objects.each do |object| %> diff --git a/app/views/users/_l_shixun.html.erb b/app/views/users/_l_shixun.html.erb index 68dcdf6c..49c9e78a 100644 --- a/app/views/users/_l_shixun.html.erb +++ b/app/views/users/_l_shixun.html.erb @@ -61,7 +61,6 @@
    - <% @objects.shift %> <% end %> <% @objects.each do |object| %> diff --git a/app/views/users/_p_path.html.erb b/app/views/users/_p_path.html.erb index 96fe683b..408c094f 100644 --- a/app/views/users/_p_path.html.erb +++ b/app/views/users/_p_path.html.erb @@ -49,7 +49,6 @@
    - <% @objects.shift %> <% end %> From d62ffc27ff296cad92c4792f3571cd1ad73bdbc3 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 11 Apr 2019 17:08:44 +0800 Subject: [PATCH 10/28] =?UTF-8?q?=E2=80=9C=E5=90=88=E4=BD=9C=E4=BC=99?= =?UTF-8?q?=E4=BC=B4=E2=80=9D=E7=9A=84=E7=AE=A1=E7=90=86=E5=91=98=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=9C=A8=E2=80=9C=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E2=80=9D=E9=A1=B5=E9=9D=A2=E4=B8=AD=E5=A2=9E=E5=8A=A0=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E8=AF=BE=E5=A0=82=E5=8A=A8=E6=80=81=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/school.rb | 6 ++++++ app/views/cooperates/_partner_item.html.erb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/models/school.rb b/app/models/school.rb index 62e27987..8d377e97 100644 --- a/app/models/school.rb +++ b/app/models/school.rb @@ -66,4 +66,10 @@ class School < ActiveRecord::Base dep = departments.where("identifier is not null").first url = dep.present? ? "/colleges/#{dep.identifier}/statistics" : "" end + + def course_act_time + CourseActivity.find_by_sql("SELECT max(ca.updated_at) as max_update FROM course_activities ca left join courses on ca.course_id = + courses.id LEFT JOIN user_extensions ON courses.tea_id=user_extensions.user_id WHERE + user_extensions.`school_id` = #{self.id}").first.try(:max_update) + end end diff --git a/app/views/cooperates/_partner_item.html.erb b/app/views/cooperates/_partner_item.html.erb index 09490e39..87b94c8e 100644 --- a/app/views/cooperates/_partner_item.html.erb +++ b/app/views/cooperates/_partner_item.html.erb @@ -19,7 +19,7 @@ <%= school.course_count %> <%= school.shixun_count %> <%= school.shixun_report_count %> - 2019-04-11 时间 + <%= school.course_act_time.present? ? format_time(school.course_act_time) : "--" %> <% if school.statistic_url != "" %> 查看 From ffdbf3c78281a6b425bddbfb723653917b62e32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 11 Apr 2019 18:04:17 +0800 Subject: [PATCH 11/28] =?UTF-8?q?=E6=9A=82=E6=97=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=96=B0=E5=BB=BA=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_l_course.html.erb | 34 ++++++++++++++++++++++++- app/views/users/_l_project.html.erb | 34 ++++++++++++++++++++++++- app/views/users/_l_shixun.html.erb | 31 ++++++++++++++++++++++ app/views/users/_p_path.html.erb | 31 +++++++++++++++++++++- public/stylesheets/educoder/edu-all.css | 6 +++++ 5 files changed, 133 insertions(+), 3 deletions(-) diff --git a/app/views/users/_l_course.html.erb b/app/views/users/_l_course.html.erb index 195fc2d9..7e2ec22b 100644 --- a/app/views/users/_l_course.html.erb +++ b/app/views/users/_l_course.html.erb @@ -97,5 +97,37 @@
    <% else %> - <%= render :partial => "welcome/no_data" %> + +
    + <% if @new_icon %> + + +
    + + + +
    +
    + + + 新建课堂 + + +
    +
    + +
    + + <% end %> + + <%= render :partial => "welcome/no_data" %> + +
    <% end %> diff --git a/app/views/users/_l_project.html.erb b/app/views/users/_l_project.html.erb index 83ee900e..594de149 100644 --- a/app/views/users/_l_project.html.erb +++ b/app/views/users/_l_project.html.erb @@ -96,5 +96,37 @@
    <% else %> - <%= render :partial => "welcome/no_data" %> + +
    + <% if @new_icon %> + +
    + + + + +
    +
    + + + 新建项目 + + +
    +
    + +
    + <% end %> + + <%= render :partial => "welcome/no_data" %> +
    + <% end %> diff --git a/app/views/users/_l_shixun.html.erb b/app/views/users/_l_shixun.html.erb index 49c9e78a..d3a54827 100644 --- a/app/views/users/_l_shixun.html.erb +++ b/app/views/users/_l_shixun.html.erb @@ -100,5 +100,36 @@
<% else %> + +
+ <% if @new_icon %> + +
+ +
+ + +
+
+
+
+
+ +
+ +
+
+ + + 新建实训 + + +
+
+ +
+ <% end %> + <%= render :partial => "welcome/no_data" %> +
<% end %> diff --git a/app/views/users/_p_path.html.erb b/app/views/users/_p_path.html.erb index 408c094f..96308e19 100644 --- a/app/views/users/_p_path.html.erb +++ b/app/views/users/_p_path.html.erb @@ -86,5 +86,34 @@
<% else %> - <%= render :partial => "welcome/no_data" %> +
+ <% if @new_icon %> + +
+ + + +
+
+ + + 新建实训课程 + + +
+
+ +
+ <% end %> + + <%= render :partial => "welcome/no_data" %> +
<% end %> diff --git a/public/stylesheets/educoder/edu-all.css b/public/stylesheets/educoder/edu-all.css index f52da577..644a218c 100644 --- a/public/stylesheets/educoder/edu-all.css +++ b/public/stylesheets/educoder/edu-all.css @@ -3217,4 +3217,10 @@ line-height: 20px;display: inline-block;color: rgba(65, 140, 205, 1) !important; position: absolute; top: 120px; left: 88px; +} + +.squarebox{ + position: absolute; + top: -10%; + left: 20%; } \ No newline at end of file From 5e0b771412174d55a39c6ad1fb442c6e4f156f27 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 12 Apr 2019 10:57:54 +0800 Subject: [PATCH 12/28] =?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/controllers/users_controller.rb | 12 +++++++++--- app/views/users/_l_course.html.erb | 2 +- app/views/users/_l_project.html.erb | 1 + app/views/users/_l_shixun.html.erb | 1 + app/views/users/_p_path.html.erb | 1 + 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index af38d85d..5a160436 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -2559,10 +2559,16 @@ class UsersController < ApplicationController end end @objects_count = @objects.size - @new_icon = @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) - # 用户进自己主页的全部列表时有个新建入口,所以翻页只有15个 - @objects = paginateHelper @objects, 15 + # 用户访问自己主页的"我管理的"列表,且是第一页才显示新建入口 + page = params[:page] ? params[:page].to_i : 1 + @new_icon = @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) && page == 1 + + # 用户进自己主页的全部列表时有个新建入口,加一个"new",view层的第一页需要shift,这样翻页就没问题啦 + @objects = @objects.to_a + @objects.unshift("new") if @new_icon + + @objects = paginateHelper @objects, 16 respond_to do |format| format.js diff --git a/app/views/users/_l_course.html.erb b/app/views/users/_l_course.html.erb index 195fc2d9..f7164017 100644 --- a/app/views/users/_l_course.html.erb +++ b/app/views/users/_l_course.html.erb @@ -40,7 +40,7 @@
- + <% @objects.shift %> <% end %> diff --git a/app/views/users/_l_project.html.erb b/app/views/users/_l_project.html.erb index 83ee900e..0113c646 100644 --- a/app/views/users/_l_project.html.erb +++ b/app/views/users/_l_project.html.erb @@ -42,6 +42,7 @@
+ <% @objects.shift %> <% end %> <% @objects.each do |object| %> diff --git a/app/views/users/_l_shixun.html.erb b/app/views/users/_l_shixun.html.erb index 49c9e78a..68dcdf6c 100644 --- a/app/views/users/_l_shixun.html.erb +++ b/app/views/users/_l_shixun.html.erb @@ -61,6 +61,7 @@
+ <% @objects.shift %> <% end %> <% @objects.each do |object| %> diff --git a/app/views/users/_p_path.html.erb b/app/views/users/_p_path.html.erb index 408c094f..96fe683b 100644 --- a/app/views/users/_p_path.html.erb +++ b/app/views/users/_p_path.html.erb @@ -49,6 +49,7 @@
+ <% @objects.shift %> <% end %> From deaf1c78d1fa9463c75af90a01b674dc31acc2d4 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 12 Apr 2019 11:01:54 +0800 Subject: [PATCH 13/28] =?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/users/_l_course.html.erb | 2 +- app/views/users/_l_project.html.erb | 2 +- app/views/users/_l_shixun.html.erb | 2 +- app/views/users/_p_path.html.erb | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/users/_l_course.html.erb b/app/views/users/_l_course.html.erb index 95e8a60d..d3f161a2 100644 --- a/app/views/users/_l_course.html.erb +++ b/app/views/users/_l_course.html.erb @@ -99,7 +99,7 @@ <% else %>
- <% if @new_icon %> + <% if @user == User.current %>
diff --git a/app/views/users/_l_project.html.erb b/app/views/users/_l_project.html.erb index 0ca840bc..7f4d5411 100644 --- a/app/views/users/_l_project.html.erb +++ b/app/views/users/_l_project.html.erb @@ -99,7 +99,7 @@ <% else %>
- <% if @new_icon %> + <% if @user == User.current %>
diff --git a/app/views/users/_l_shixun.html.erb b/app/views/users/_l_shixun.html.erb index 0a01b9a6..ea227d7b 100644 --- a/app/views/users/_l_shixun.html.erb +++ b/app/views/users/_l_shixun.html.erb @@ -103,7 +103,7 @@ <% else %>
- <% if @new_icon %> + <% if @user == User.current %>
diff --git a/app/views/users/_p_path.html.erb b/app/views/users/_p_path.html.erb index 9700151d..8eefe060 100644 --- a/app/views/users/_p_path.html.erb +++ b/app/views/users/_p_path.html.erb @@ -88,7 +88,7 @@
<% else %>
- <% if @new_icon %> + <% if @user == User.current %>
@@ -114,7 +114,6 @@
<% end %> - <%= render :partial => "welcome/no_data" %>
<% end %> From e1fc755f4964574a820f72978e76311e815c3ac4 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 12 Apr 2019 11:03:05 +0800 Subject: [PATCH 14/28] =?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/users/_l_course.html.erb | 2 +- app/views/users/_l_project.html.erb | 2 +- app/views/users/_l_shixun.html.erb | 2 +- app/views/users/_p_path.html.erb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/users/_l_course.html.erb b/app/views/users/_l_course.html.erb index d3f161a2..77ef8a36 100644 --- a/app/views/users/_l_course.html.erb +++ b/app/views/users/_l_course.html.erb @@ -99,7 +99,7 @@ <% else %>
- <% if @user == User.current %> + <% if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) %>
diff --git a/app/views/users/_l_project.html.erb b/app/views/users/_l_project.html.erb index 7f4d5411..ab2df884 100644 --- a/app/views/users/_l_project.html.erb +++ b/app/views/users/_l_project.html.erb @@ -99,7 +99,7 @@ <% else %>
- <% if @user == User.current %> + <% if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) %>
diff --git a/app/views/users/_l_shixun.html.erb b/app/views/users/_l_shixun.html.erb index ea227d7b..df34c4b1 100644 --- a/app/views/users/_l_shixun.html.erb +++ b/app/views/users/_l_shixun.html.erb @@ -103,7 +103,7 @@ <% else %>
- <% if @user == User.current %> + <% if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) %>
diff --git a/app/views/users/_p_path.html.erb b/app/views/users/_p_path.html.erb index 8eefe060..d5a4e74c 100644 --- a/app/views/users/_p_path.html.erb +++ b/app/views/users/_p_path.html.erb @@ -88,7 +88,7 @@
<% else %>
- <% if @user == User.current %> + <% if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) %>
From 4eeb6f1fcc552d414fa570324135197b0f6106ab Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 12 Apr 2019 11:35:58 +0800 Subject: [PATCH 15/28] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8F=8D=E9=A6=88=E5=A2=9E=E5=8A=A0=E2=80=9C=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E9=A1=B5=E9=9D=A2=E7=BD=91=E5=9D=80=E2=80=9D=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=85=A5=E5=8F=A3=EF=BC=8C=E4=B8=94=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/account_controller.rb | 3 +- app/views/account/_suggest_show.html.erb | 141 +++++++++++++---------- app/views/account/help.html.erb | 2 +- app/views/users/_returnTop_btn.html.erb | 2 +- 4 files changed, 82 insertions(+), 66 deletions(-) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 7258b076..d58b9bdf 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -141,6 +141,7 @@ class AccountController < ApplicationController @resubmit = "#{code}" @agreement = Help.first @cooperation = Cooperation.all + @url = params[:url] @com_coop_img = CooImg.where(:img_type => 'com_coop').order("position asc") @edu_coop_img = CooImg.where(:img_type => 'edu_coop').order("position asc") @@ -208,7 +209,7 @@ class AccountController < ApplicationController end def insert_suggest - content = "

[#{params[:question_kind]}]

" + params[:description] + content = "

[#{params[:question_kind]}]

" + "

问题页面网址:#{params[:url]}

" + params[:description] PrivateMessage.create(:user_id => User.current.id, :target_id => 1, :sender_id => User.current.id, :receiver_id => 1, :content => content, :send_time => Time.now, :status => 1) PrivateMessage.create(:user_id => 1, :target_id => User.current.id, :sender_id => User.current.id, :receiver_id => 1, :content => content, :send_time => Time.now, :status => 0) redirect_to message_detail_user_path(User.current, :user_id => 1) diff --git a/app/views/account/_suggest_show.html.erb b/app/views/account/_suggest_show.html.erb index 9279d45a..e1891d13 100644 --- a/app/views/account/_suggest_show.html.erb +++ b/app/views/account/_suggest_show.html.erb @@ -1,6 +1,6 @@ <%= stylesheet_link_tag 'css/public','css/common'%> <%= content_for(:header_tags) do %> - <%= import_ke(enable_at: false, prettify: false, init_activity: false) %> + <%= import_ke(enable_at: false, prettify: false, init_activity: false) %> <% end %>
@@ -15,79 +15,94 @@ - <%= form_for('new_form',:url => insert_suggest_path(), :html =>{:id => "insert_suggest"}, :method => :post) do |f| %> -
- *问题分类 -
- - - - - - -
-
-
- *问题描述 -
- - -
-

内容不能为空

- - - - - - - 提交 - <% end %> + +
+

内容不能为空

+ + + + + + + 提交
+ <% end %>
\ No newline at end of file From d0178f1a9f25f521ed051d8100c8fa1b3facf6c1 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 12 Apr 2019 17:46:03 +0800 Subject: [PATCH 22/28] =?UTF-8?q?=E5=8A=A0=E4=BA=8B=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/homework_common_controller.rb | 559 +++++++++--------- 1 file changed, 283 insertions(+), 276 deletions(-) diff --git a/app/controllers/homework_common_controller.rb b/app/controllers/homework_common_controller.rb index a7a7d8c0..84f337d8 100644 --- a/app/controllers/homework_common_controller.rb +++ b/app/controllers/homework_common_controller.rb @@ -16,7 +16,7 @@ class HomeworkCommonController < ApplicationController before_filter :teacher_of_course, :only => [:new, :create, :edit, :update, :destroy, :start_anonymous_comment, :stop_anonymous_comment, :alert_anonymous_comment, :start_evaluation_set,:set_evaluation_attr,:score_rule_set,:alert_forbidden_anonymous_comment,:alert_open_student_works, :open_student_works,:add_to_homework_bank,:publish_notice,:end_notice,:publish_homework,:end_homework,:update_explanation, - :cancel_publish, :move_to_category] + :cancel_publish, :move_to_category,:homework_setting] # before_filter :member_of_course, :only => [:index,:setting] @@ -282,93 +282,94 @@ class HomeworkCommonController < ApplicationController end def homework_setting - if @homework.homework_detail_manual.try(:comment_status) == 0 && @course.course_groups.count > 1 - @homework.unified_setting = params[:unified_setting] ? true :false - end + ActiveRecord::Base.transaction do + if @homework.homework_detail_manual.try(:comment_status) == 0 && @course.course_groups.count > 1 + @homework.unified_setting = params[:unified_setting] ? true :false + end - if @homework.unified_setting - params_publish_time = params[:homework_publish_time] - params_end_time = params[:homework_end_time] - # params_archive_time = params[:homework_archive_time] - min_publish_time = params_publish_time - max_end_time = params_end_time - else - # 获取最小发布时间和最大截止时间,赋值给homework - params_publish_time = params[:homework_publish_time_group] - params_end_time = params[:homework_end_time_group] - # params_archive_time = params[:homework_archive_time_group] - min_publish_time = @homework.publish_time ? (format_time @homework.publish_time).to_s : "" - max_end_time = @homework.end_time ? (format_time @homework.end_time).to_s : "" - if params[:homework_end_time_group] - max_end_time = "" - params[:homework_end_time_group].each_with_index do |end_time, index| - if end_time != "" - if max_end_time == "" || end_time > max_end_time - max_end_time = end_time + if @homework.unified_setting + params_publish_time = params[:homework_publish_time] + params_end_time = params[:homework_end_time] + # params_archive_time = params[:homework_archive_time] + min_publish_time = params_publish_time + max_end_time = params_end_time + else + # 获取最小发布时间和最大截止时间,赋值给homework + params_publish_time = params[:homework_publish_time_group] + params_end_time = params[:homework_end_time_group] + # params_archive_time = params[:homework_archive_time_group] + min_publish_time = @homework.publish_time ? (format_time @homework.publish_time).to_s : "" + max_end_time = @homework.end_time ? (format_time @homework.end_time).to_s : "" + if params[:homework_end_time_group] + max_end_time = "" + params[:homework_end_time_group].each_with_index do |end_time, index| + if end_time != "" + if max_end_time == "" || end_time > max_end_time + max_end_time = end_time + end end end end - end - if params[:homework_publish_time_group] - params[:homework_publish_time_group].each_with_index do |publish_time, index| - if publish_time != "" - if min_publish_time == "" || publish_time < min_publish_time - min_publish_time = publish_time + if params[:homework_publish_time_group] + params[:homework_publish_time_group].each_with_index do |publish_time, index| + if publish_time != "" + if min_publish_time == "" || publish_time < min_publish_time + min_publish_time = publish_time + end end end end end - end - # 不统一设置且分班数大于一则更新分组设置 - if !@homework.unified_setting && @course.course_groups.count > 1 - @course.course_groups.each_with_index do |group, index| - homework_group_setting = @homework.homework_group_settings.where(:course_group_id => group.id).first - unless homework_group_setting - homework_group_setting = HomeworkGroupSetting.create(:homework_common_id => @homework.id, :course_group_id => group.id, :course_id => @course.id) + # 不统一设置且分班数大于一则更新分组设置 + if !@homework.unified_setting && @course.course_groups.count > 1 + @course.course_groups.each_with_index do |group, index| + homework_group_setting = @homework.homework_group_settings.where(:course_group_id => group.id).first + unless homework_group_setting + homework_group_setting = HomeworkGroupSetting.create(:homework_common_id => @homework.id, :course_group_id => group.id, :course_id => @course.id) + end end - end - group_id = [] - @homework.homework_group_settings.where("publish_time is null or publish_time > '#{Time.now}'").joins(:course_group).reorder("CONVERT(course_groups.name USING gbk) COLLATE gbk_chinese_ci ASC").each_with_index do |setting, index| - if params[:homework_publish_time_group] && min_publish_time != "" - if params[:homework_publish_time_group][index] && params[:homework_publish_time_group][index] != "" - setting.update_column(:publish_time, params[:homework_publish_time_group][index]) + group_id = [] + @homework.homework_group_settings.where("publish_time is null or publish_time > '#{Time.now}'").joins(:course_group).reorder("CONVERT(course_groups.name USING gbk) COLLATE gbk_chinese_ci ASC").each_with_index do |setting, index| + if params[:homework_publish_time_group] && min_publish_time != "" + if params[:homework_publish_time_group][index] && params[:homework_publish_time_group][index] != "" + setting.update_column(:publish_time, params[:homework_publish_time_group][index]) + end + elsif params[:homework_publish_time_group] && min_publish_time == "" + setting.update_column(:publish_time, Time.now) + group_id << setting.course_group_id end - elsif params[:homework_publish_time_group] && min_publish_time == "" - setting.update_column(:publish_time, Time.now) - group_id << setting.course_group_id end - end - @homework.homework_group_settings.where("end_time is null or end_time > '#{Time.now}'").joins(:course_group).reorder("CONVERT(course_groups.name USING gbk) COLLATE gbk_chinese_ci ASC").each_with_index do |setting, index| - if params[:homework_end_time_group] && max_end_time != "" - if params[:homework_end_time_group][index] && params[:homework_end_time_group][index] != "" - setting.update_column(:end_time, params[:homework_end_time_group][index]) + @homework.homework_group_settings.where("end_time is null or end_time > '#{Time.now}'").joins(:course_group).reorder("CONVERT(course_groups.name USING gbk) COLLATE gbk_chinese_ci ASC").each_with_index do |setting, index| + if params[:homework_end_time_group] && max_end_time != "" + if params[:homework_end_time_group][index] && params[:homework_end_time_group][index] != "" + setting.update_column(:end_time, params[:homework_end_time_group][index]) + end + elsif params[:homework_end_time_group] && max_end_time == "" + setting.update_column(:end_time, Time.at(((1.month.since.to_i)/3600.0).ceil * 3600)) end - elsif params[:homework_end_time_group] && max_end_time == "" - setting.update_column(:end_time, Time.at(((1.month.since.to_i)/3600.0).ceil * 3600)) end + # 统一设置则删除分组设置 + elsif @homework.unified_setting + @homework.homework_group_settings.destroy_all end - # 统一设置则删除分组设置 - elsif @homework.unified_setting - @homework.homework_group_settings.destroy_all - end - # homework 的记录更新 - # 发布时间不为空 - if params_publish_time && min_publish_time != "" - @homework.publish_time = min_publish_time - @homework.end_time = max_end_time - # @homework.archive_time = params_archive_time if params_archive_time - if @homework.publish_time < Time.now and @homework_detail_manual.comment_status == 0 - @homework_detail_manual.comment_status = 1 - create_homework_user = 1 - - if @homework.course_acts.size == 0 - @homework.course_acts << CourseActivity.new(:user_id => @homework.user_id,:course_id => @homework.course_id) + # homework 的记录更新 + # 发布时间不为空 + if params_publish_time && min_publish_time != "" + @homework.publish_time = min_publish_time + @homework.end_time = max_end_time + # @homework.archive_time = params_archive_time if params_archive_time + if @homework.publish_time < Time.now and @homework_detail_manual.comment_status == 0 + @homework_detail_manual.comment_status = 1 + create_homework_user = 1 + + if @homework.course_acts.size == 0 + @homework.course_acts << CourseActivity.new(:user_id => @homework.user_id,:course_id => @homework.course_id) + end end - end =begin if @homework.archive_time < Time.now && @homework_detail_manual.comment_status < 6 @homework_detail_manual.comment_status = 6 @@ -376,22 +377,22 @@ class HomeworkCommonController < ApplicationController @homework_detail_manual.comment_status = 5 end =end - # 发布时间未设置 则按当前时间立即发布 - elsif params_publish_time && min_publish_time == "" - @homework_detail_manual.comment_status = 1 - @homework.publish_time = Time.now - @homework.unified_setting = 1 - @homework.end_time = Time.at(((1.month.since.to_i)/3600.0).ceil * 3600) - # @homework.archive_time = Time.at(((2.months.since.to_i)/3600.0).ceil * 3600) - - create_homework_user = 1 - if @homework.course_acts.size == 0 - @homework.course_acts << CourseActivity.new(:user_id => @homework.user_id,:course_id => @homework.course_id) - end - # 已发布的作业,只更新截止时间和结束时间 - else - @homework.end_time = max_end_time if params_end_time - # @homework.archive_time = params_archive_time if params_archive_time + # 发布时间未设置 则按当前时间立即发布 + elsif params_publish_time && min_publish_time == "" + @homework_detail_manual.comment_status = 1 + @homework.publish_time = Time.now + @homework.unified_setting = 1 + @homework.end_time = Time.at(((1.month.since.to_i)/3600.0).ceil * 3600) + # @homework.archive_time = Time.at(((2.months.since.to_i)/3600.0).ceil * 3600) + + create_homework_user = 1 + if @homework.course_acts.size == 0 + @homework.course_acts << CourseActivity.new(:user_id => @homework.user_id,:course_id => @homework.course_id) + end + # 已发布的作业,只更新截止时间和结束时间 + else + @homework.end_time = max_end_time if params_end_time + # @homework.archive_time = params_archive_time if params_archive_time =begin if @homework.archive_time < Time.now && @homework_detail_manual.comment_status < 6 @@ -400,189 +401,190 @@ class HomeworkCommonController < ApplicationController @homework_detail_manual.comment_status = 5 end =end - end + end - if params[:homework_allow_late] == '1' - @homework.allow_late = true - if @homework.late_penalty != params[:homework_late_penalty].to_i - @homework.student_works.where(:work_status => 2).each do |work| - work.late_penalty = params[:homework_late_penalty].to_i - work.save + if params[:homework_allow_late] == '1' + @homework.allow_late = true + if @homework.late_penalty != params[:homework_late_penalty].to_i + @homework.student_works.where(:work_status => 2).each do |work| + work.late_penalty = params[:homework_late_penalty].to_i + work.save + end end + @homework.late_penalty = params[:homework_late_penalty].to_i + else + @homework.allow_late = false + @homework.late_penalty = 0 end - @homework.late_penalty = params[:homework_late_penalty].to_i - else - @homework.allow_late = false - @homework.late_penalty = 0 - end - anonymous_comment = @homework.anonymous_comment - absence_penalty = @homework_detail_manual.absence_penalty - appeal_penalty = @homework_detail_manual.appeal_penalty - if @homework_detail_manual.comment_status < 3 - if params[:homework_anonymous_comment] - @homework.anonymous_comment = 0 - @homework_detail_manual.evaluation_start = params[:homework_evaluation_start] if params[:homework_evaluation_start] + anonymous_comment = @homework.anonymous_comment + absence_penalty = @homework_detail_manual.absence_penalty + appeal_penalty = @homework_detail_manual.appeal_penalty + if @homework_detail_manual.comment_status < 3 + if params[:homework_anonymous_comment] + @homework.anonymous_comment = 0 + @homework_detail_manual.evaluation_start = params[:homework_evaluation_start] if params[:homework_evaluation_start] + @homework_detail_manual.evaluation_end = params[:homework_evaluation_end] if params[:homework_evaluation_end] + @homework_detail_manual.evaluation_num = params[:homework_evaluation_num] if params[:homework_evaluation_num] + @homework_detail_manual.absence_penalty = params[:homework_absence_penalty] if params[:homework_absence_penalty] + + else + @homework.anonymous_comment = 1 + @homework_detail_manual.evaluation_start = nil + @homework_detail_manual.evaluation_end = nil + @homework_detail_manual.evaluation_num = 0 + @homework_detail_manual.absence_penalty = 0 + end + else @homework_detail_manual.evaluation_end = params[:homework_evaluation_end] if params[:homework_evaluation_end] @homework_detail_manual.evaluation_num = params[:homework_evaluation_num] if params[:homework_evaluation_num] @homework_detail_manual.absence_penalty = params[:homework_absence_penalty] if params[:homework_absence_penalty] + end + if anonymous_comment != @homework.anonymous_comment + @homework_detail_manual.te_proportion = 1 + @homework_detail_manual.ta_proportion = 0 + @homework_detail_programing.ta_proportion = 0 if @homework_detail_programing + end + if @homework_detail_manual.comment_status < 4 + if @homework.anonymous_comment == 0 && params[:homework_anonymous_appeal] + @homework.anonymous_appeal = 1 + @homework_detail_manual.appeal_time = params[:homework_appeal_time] if params[:homework_appeal_time] + @homework_detail_manual.appeal_penalty = params[:homework_appeal_penalty] if params[:homework_appeal_penalty] + else + @homework.anonymous_appeal = 0 + @homework_detail_manual.appeal_time = nil + @homework_detail_manual.appeal_penalty = 0 + end else - @homework.anonymous_comment = 1 - @homework_detail_manual.evaluation_start = nil - @homework_detail_manual.evaluation_end = nil - @homework_detail_manual.evaluation_num = 0 - @homework_detail_manual.absence_penalty = 0 - end - else - @homework_detail_manual.evaluation_end = params[:homework_evaluation_end] if params[:homework_evaluation_end] - @homework_detail_manual.evaluation_num = params[:homework_evaluation_num] if params[:homework_evaluation_num] - @homework_detail_manual.absence_penalty = params[:homework_absence_penalty] if params[:homework_absence_penalty] - end - if anonymous_comment != @homework.anonymous_comment - @homework_detail_manual.te_proportion = 1 - @homework_detail_manual.ta_proportion = 0 - @homework_detail_programing.ta_proportion = 0 if @homework_detail_programing - end - if @homework_detail_manual.comment_status < 4 - if @homework.anonymous_comment == 0 && params[:homework_anonymous_appeal] - @homework.anonymous_appeal = 1 @homework_detail_manual.appeal_time = params[:homework_appeal_time] if params[:homework_appeal_time] @homework_detail_manual.appeal_penalty = params[:homework_appeal_penalty] if params[:homework_appeal_penalty] - - else - @homework.anonymous_appeal = 0 - @homework_detail_manual.appeal_time = nil - @homework_detail_manual.appeal_penalty = 0 - end - else - @homework_detail_manual.appeal_time = params[:homework_appeal_time] if params[:homework_appeal_time] - @homework_detail_manual.appeal_penalty = params[:homework_appeal_penalty] if params[:homework_appeal_penalty] - end - if absence_penalty != @homework_detail_manual.absence_penalty && @homework_detail_manual.comment_status >= 4 - all_dis_eva = StudentWorksEvaluationDistribution.where(:student_work_id => @homework.student_works.map(&:id)) - has_sw_count = all_dis_eva.select("distinct user_id").count - anon_count = all_dis_eva.count / has_sw_count - @homework.student_works.where("work_status != 0").each do |student_work| - absence_penalty_count = student_work.user.student_works_evaluation_distributions.where(:student_work_id => @homework.student_works.map(&:id)).count - student_work.user.student_works_scores.where(:student_work_id => @homework.student_works.map(&:id), :reviewer_role => 3).count - student_work.absence_penalty = absence_penalty_count > 0 ? absence_penalty_count * @homework_detail_manual.absence_penalty : 0 - student_work.save end - end - if appeal_penalty != @homework_detail_manual.appeal_penalty && @homework_detail_manual.comment_status >= 4 - @homework.student_works.each do |student_work| - appeal_penalty_count = student_work.user.student_works_scores.where(:student_work_id => @homework.student_works.map(&:id), :appeal_status => 3).count - student_work.appeal_penalty = appeal_penalty_count > 0 ? appeal_penalty_count * @homework_detail_manual.absence_penalty : 0 - student_work.save - end - end - - # 助教评分模式有变更 则更新学生分数 - if params[:homework_ta_mode] && @homework_detail_manual.ta_mode.to_i != params[:homework_ta_mode].to_i - @homework_detail_manual.ta_mode = params[:ta_mode].to_i - @homework_detail_manual.save - if @homework_detail_manual.ta_mode == 1 + if absence_penalty != @homework_detail_manual.absence_penalty && @homework_detail_manual.comment_status >= 4 + all_dis_eva = StudentWorksEvaluationDistribution.where(:student_work_id => @homework.student_works.map(&:id)) + has_sw_count = all_dis_eva.select("distinct user_id").count + anon_count = all_dis_eva.count / has_sw_count @homework.student_works.where("work_status != 0").each do |student_work| - ts_score = StudentWorksScore.find_by_sql("SELECT AVG(score) AS score FROM (SELECT * FROM (SELECT * FROM student_works_scores WHERE student_work_id = #{student_work.id} AND reviewer_role = 2 AND score IS NOT NULL ORDER BY created_at DESC) AS t GROUP BY user_id) AS a") - student_work.teaching_asistant_score = ts_score.first.score.nil? ? nil : ts_score.first.score.try(:round, 2).to_f + absence_penalty_count = student_work.user.student_works_evaluation_distributions.where(:student_work_id => @homework.student_works.map(&:id)).count - student_work.user.student_works_scores.where(:student_work_id => @homework.student_works.map(&:id), :reviewer_role => 3).count + student_work.absence_penalty = absence_penalty_count > 0 ? absence_penalty_count * @homework_detail_manual.absence_penalty : 0 student_work.save end - else - @homework.student_works.where("work_status != 0").each do |student_work| - ts_score = StudentWorksScore.where("student_work_id = #{student_work.id} AND reviewer_role = 2 AND score IS NOT NULL").order("created_at DESC") - student_work.teaching_asistant_score = ts_score.first.nil? ? nil : ts_score.first.score + end + if appeal_penalty != @homework_detail_manual.appeal_penalty && @homework_detail_manual.comment_status >= 4 + @homework.student_works.each do |student_work| + appeal_penalty_count = student_work.user.student_works_scores.where(:student_work_id => @homework.student_works.map(&:id), :appeal_status => 3).count + student_work.appeal_penalty = appeal_penalty_count > 0 ? appeal_penalty_count * @homework_detail_manual.absence_penalty : 0 student_work.save end end - end - # 最终成绩组成 - if params[:homework_final_mode] && params[:homework_final_mode].to_i != @homework_detail_manual.final_mode - @homework_detail_manual.final_mode = params[:homework_final_mode].to_i - if params[:homework_final_mode].to_i == 0 - @homework_detail_manual.te_proportion = params[:te_proportion] - @homework_detail_manual.ta_proportion = params[:ta_proportion] - @homework_detail_programing.ta_proportion = params[:sy_proportion] if @homework_detail_programing - @homework_detail_programing.save if @homework_detail_programing - end - @homework_detail_manual.save if @homework_detail_manual - @homework.save - @homework = HomeworkCommon.find @homework.id - @homework.student_works.where("work_status != 0").each do |student_work| - # set_final_score @homework,student_work - student_work.save + # 助教评分模式有变更 则更新学生分数 + if params[:homework_ta_mode] && @homework_detail_manual.ta_mode.to_i != params[:homework_ta_mode].to_i + @homework_detail_manual.ta_mode = params[:ta_mode].to_i + @homework_detail_manual.save + if @homework_detail_manual.ta_mode == 1 + @homework.student_works.where("work_status != 0").each do |student_work| + ts_score = StudentWorksScore.find_by_sql("SELECT AVG(score) AS score FROM (SELECT * FROM (SELECT * FROM student_works_scores WHERE student_work_id = #{student_work.id} AND reviewer_role = 2 AND score IS NOT NULL ORDER BY created_at DESC) AS t GROUP BY user_id) AS a") + student_work.teaching_asistant_score = ts_score.first.score.nil? ? nil : ts_score.first.score.try(:round, 2).to_f + student_work.save + end + else + @homework.student_works.where("work_status != 0").each do |student_work| + ts_score = StudentWorksScore.where("student_work_id = #{student_work.id} AND reviewer_role = 2 AND score IS NOT NULL").order("created_at DESC") + student_work.teaching_asistant_score = ts_score.first.nil? ? nil : ts_score.first.score + student_work.save + end + end end - elsif params[:homework_final_mode] && @homework_detail_manual.final_mode == 0 - if (params[:te_proportion] && params[:te_proportion].to_s != @homework_detail_manual.te_proportion.to_s) || (params[:ta_proportion] && params[:ta_proportion].to_s != @homework_detail_manual.ta_proportion.to_s) || (@homework_detail_programing && @homework_detail_programing.ta_proportion.to_s != params[:sy_proportion].to_s) - @homework_detail_manual.te_proportion = params[:te_proportion] - @homework_detail_manual.ta_proportion = params[:ta_proportion] - @homework_detail_programing.ta_proportion = params[:sy_proportion] if @homework_detail_programing + # 最终成绩组成 + if params[:homework_final_mode] && params[:homework_final_mode].to_i != @homework_detail_manual.final_mode + @homework_detail_manual.final_mode = params[:homework_final_mode].to_i + if params[:homework_final_mode].to_i == 0 + @homework_detail_manual.te_proportion = params[:te_proportion] + @homework_detail_manual.ta_proportion = params[:ta_proportion] + @homework_detail_programing.ta_proportion = params[:sy_proportion] if @homework_detail_programing + @homework_detail_programing.save if @homework_detail_programing + end @homework_detail_manual.save if @homework_detail_manual - @homework_detail_programing.save if @homework_detail_programing @homework.save @homework = HomeworkCommon.find @homework.id @homework.student_works.where("work_status != 0").each do |student_work| # set_final_score @homework,student_work student_work.save end + elsif params[:homework_final_mode] && @homework_detail_manual.final_mode == 0 + if (params[:te_proportion] && params[:te_proportion].to_s != @homework_detail_manual.te_proportion.to_s) || (params[:ta_proportion] && params[:ta_proportion].to_s != @homework_detail_manual.ta_proportion.to_s) || (@homework_detail_programing && @homework_detail_programing.ta_proportion.to_s != params[:sy_proportion].to_s) + @homework_detail_manual.te_proportion = params[:te_proportion] + @homework_detail_manual.ta_proportion = params[:ta_proportion] + @homework_detail_programing.ta_proportion = params[:sy_proportion] if @homework_detail_programing + + @homework_detail_manual.save if @homework_detail_manual + @homework_detail_programing.save if @homework_detail_programing + @homework.save + @homework = HomeworkCommon.find @homework.id + @homework.student_works.where("work_status != 0").each do |student_work| + # set_final_score @homework,student_work + student_work.save + end + end end - end - if @homework.homework_type == 4 - @homework.work_efficiency = params[:work_efficiency] ? 1 : 0 - if params[:eff_score] != @homework.eff_score - @homework.eff_score = params[:eff_score] - score_change = true - end - if @homework_detail_manual.answer_open_evaluation != params[:answer_open_evaluation].to_i - @homework_detail_manual.answer_open_evaluation = params[:answer_open_evaluation].to_i - score_change = true - end - if @homework_detail_manual.shixun_evaluation != params[:shixun_evaluation].to_i - @homework_detail_manual.shixun_evaluation = params[:shixun_evaluation].to_i - score_change = true - end - if params[:challenge] - score_change = true - params[:challenge].each_with_index do |challenge_id, index| - setting = @homework.homework_challenge_settings.where(:challenge_id => challenge_id).first - if setting - setting.update_attributes(:score => params[:score][index]) - else - HomeworkChallengeSetting.create(:homework_common_id => @homework.id, :challenge_id => challenge_id, :shixun_id => @homework.homework_commons_shixuns.shixun_id, :score => params[:score][index]) + if @homework.homework_type == 4 + @homework.work_efficiency = params[:work_efficiency] ? 1 : 0 + if params[:eff_score] != @homework.eff_score + @homework.eff_score = params[:eff_score] + score_change = true + end + if @homework_detail_manual.answer_open_evaluation != params[:answer_open_evaluation].to_i + @homework_detail_manual.answer_open_evaluation = params[:answer_open_evaluation].to_i + score_change = true + end + if @homework_detail_manual.shixun_evaluation != params[:shixun_evaluation].to_i + @homework_detail_manual.shixun_evaluation = params[:shixun_evaluation].to_i + score_change = true + end + if params[:challenge] + score_change = true + params[:challenge].each_with_index do |challenge_id, index| + setting = @homework.homework_challenge_settings.where(:challenge_id => challenge_id).first + if setting + setting.update_attributes(:score => params[:score][index]) + else + HomeworkChallengeSetting.create(:homework_common_id => @homework.id, :challenge_id => challenge_id, :shixun_id => @homework.homework_commons_shixuns.shixun_id, :score => params[:score][index]) + end end + @homework.homework_challenge_settings.where("challenge_id not in (#{params[:challenge].join(',')})").destroy_all end - @homework.homework_challenge_settings.where("challenge_id not in (#{params[:challenge].join(',')})").destroy_all - end - @homework.score_open = params[:homework_score_open] ? 1 : 0 - @homework.save! - if score_change - homework_challenge_settings = HomeworkChallengeSetting.where(:homework_common_id => @homework.id) - @homework.student_works.where("work_status != 0").each do |student_work| - set_shixun_final_score student_work, @homework_detail_manual.answer_open_evaluation, homework_challenge_settings + @homework.score_open = params[:homework_score_open] ? 1 : 0 + @homework.save! + if score_change + homework_challenge_settings = HomeworkChallengeSetting.where(:homework_common_id => @homework.id) + @homework.student_works.where("work_status != 0").each do |student_work| + set_shixun_final_score student_work, @homework_detail_manual.answer_open_evaluation, homework_challenge_settings + end + # 更新所有学生的效率分 + update_student_eff_score HomeworkCommon.where(:id => @homework.id).first end - # 更新所有学生的效率分 - update_student_eff_score HomeworkCommon.where(:id => @homework.id).first + else + @homework.work_public = params[:homework_work_public] ? 1 : 0 + @homework.score_open = params[:homework_score_open] ? 1 : 0 + @homework.answer_public = params[:homework_answer_public] ? 1 : 0 + @homework.comment_public = params[:homework_comment_public] ? 1 : 0 + @homework.save! end - else - @homework.work_public = params[:homework_work_public] ? 1 : 0 - @homework.score_open = params[:homework_score_open] ? 1 : 0 - @homework.answer_public = params[:homework_answer_public] ? 1 : 0 - @homework.comment_public = params[:homework_comment_public] ? 1 : 0 - @homework.save! - end - @homework_detail_manual.save - if create_homework_user.present? - if group_id.present? && group_id.size != 0 - if group_id.size == @course.course_groups.count - create_works_tiding @homework, @course.student + @homework_detail_manual.save + if create_homework_user.present? + if group_id.present? && group_id.size != 0 + if group_id.size == @course.course_groups.count + create_works_tiding @homework, @course.student + else + members = @course.members.where(:course_group_id => group_id) + create_works_tiding @homework, members + end else - members = @course.members.where(:course_group_id => group_id) - create_works_tiding @homework, members + create_works_tiding @homework, @course.student end - else - create_works_tiding @homework, @course.student end end redirect_to student_work_index_path(:homework => @homework.id) @@ -929,60 +931,62 @@ class HomeworkCommonController < ApplicationController end def publish_homework - if @homework.homework_detail_manual.try(:comment_status) == 0 - if params[:group_ids] - if @course.course_groups.where(:id => params[:group_ids].split(",")).count == @course.course_groups.count - @homework.homework_group_settings.destroy_all - @homework.update_attribute("unified_setting", true) - # 发消息 - create_works_tiding @homework, @course.student - else - @homework.update_attribute("unified_setting", false) - @course.course_groups.each do |group| - homework_group_setting = @homework.homework_group_settings.where(:course_group_id => group.id).first - unless homework_group_setting - HomeworkGroupSetting.create(:homework_common_id => @homework.id, :course_group_id => group.id, :course_id => @course.id, :publish_time => @homework.publish_time, :end_time => @homework.end_time) + ActiveRecord::Base.transaction do + if @homework.homework_detail_manual.try(:comment_status) == 0 + if params[:group_ids] + if @course.course_groups.where(:id => params[:group_ids].split(",")).count == @course.course_groups.count + @homework.homework_group_settings.destroy_all + @homework.update_attribute("unified_setting", true) + # 发消息 + create_works_tiding @homework, @course.student + else + @homework.update_attribute("unified_setting", false) + @course.course_groups.each do |group| + homework_group_setting = @homework.homework_group_settings.where(:course_group_id => group.id).first + unless homework_group_setting + HomeworkGroupSetting.create(:homework_common_id => @homework.id, :course_group_id => group.id, :course_id => @course.id, :publish_time => @homework.publish_time, :end_time => @homework.end_time) + end end + @homework.homework_group_settings.where(:course_group_id => params[:group_ids].split(",")).update_all(:publish_time => Time.now) + @homework.homework_group_settings.where(:course_group_id => params[:group_ids].split(","), :end_time => nil).update_all(:end_time => Time.at(((1.month.since.to_i)/3600.0).ceil * 3600)) + # 发消息 + members = @course.members.where(:course_group_id => params[:group_ids].split(",")) + create_works_tiding @homework, members end - @homework.homework_group_settings.where(:course_group_id => params[:group_ids].split(",")).update_all(:publish_time => Time.now) - @homework.homework_group_settings.where(:course_group_id => params[:group_ids].split(","), :end_time => nil).update_all(:end_time => Time.at(((1.month.since.to_i)/3600.0).ceil * 3600)) - # 发消息 - members = @course.members.where(:course_group_id => params[:group_ids].split(",")) - create_works_tiding @homework, members + else + @homework.homework_group_settings.destroy_all + create_works_tiding @homework, @course.student end - else - @homework.homework_group_settings.destroy_all - create_works_tiding @homework, @course.student - end - @homework.update_attribute("publish_time", Time.now) + @homework.update_attribute("publish_time", Time.now) - if @homework.end_time.nil? - @homework.update_attribute("end_time", Time.at(((1.month.since.to_i)/3600.0).ceil * 3600)) - elsif HomeworkGroupSetting.where("homework_common_id = #{@homework.id} and end_time is not null").count > 0 - @homework.update_attribute("end_time", HomeworkGroupSetting.where("homework_common_id = #{@homework.id} and end_time is not null").map(&:end_time).max) - end + if @homework.end_time.nil? + @homework.update_attribute("end_time", Time.at(((1.month.since.to_i)/3600.0).ceil * 3600)) + elsif HomeworkGroupSetting.where("homework_common_id = #{@homework.id} and end_time is not null").count > 0 + @homework.update_attribute("end_time", HomeworkGroupSetting.where("homework_common_id = #{@homework.id} and end_time is not null").map(&:end_time).max) + end =begin if @homework.archive_time.nil? @homework.update_attribute("archive_time", Time.at(((2.months.since.to_i)/3600.0).ceil * 3600)) end =end - @homework.homework_detail_manual.update_attribute('comment_status', 1) + @homework.homework_detail_manual.update_attribute('comment_status', 1) - if @homework.course_acts.size == 0 - @homework.course_acts << CourseActivity.new(:user_id => @homework.user_id,:course_id => @homework.course_id) + if @homework.course_acts.size == 0 + @homework.course_acts << CourseActivity.new(:user_id => @homework.user_id,:course_id => @homework.course_id) + end + else + @homework.homework_group_settings.where(:course_group_id => params[:group_ids].split(",")).update_all(:publish_time => Time.now) + @homework.homework_group_settings.where(:course_group_id => params[:group_ids].split(","), :end_time => nil).update_all(:end_time => Time.at(((1.month.since.to_i)/3600.0).ceil * 3600)) + if HomeworkGroupSetting.where("homework_common_id = #{@homework.id} and end_time is not null").count > 0 + @homework.update_attribute("end_time", HomeworkGroupSetting.where("homework_common_id = #{@homework.id} and end_time is not null").map(&:end_time).max) + end + # 发消息 + members = @course.members.where(:course_group_id => params[:group_ids].split(",")) + create_works_tiding @homework, members end - else - @homework.homework_group_settings.where(:course_group_id => params[:group_ids].split(",")).update_all(:publish_time => Time.now) - @homework.homework_group_settings.where(:course_group_id => params[:group_ids].split(","), :end_time => nil).update_all(:end_time => Time.at(((1.month.since.to_i)/3600.0).ceil * 3600)) - if HomeworkGroupSetting.where("homework_common_id = #{@homework.id} and end_time is not null").count > 0 - @homework.update_attribute("end_time", HomeworkGroupSetting.where("homework_common_id = #{@homework.id} and end_time is not null").map(&:end_time).max) + if @homework.end_time > Time.now && @homework.homework_detail_manual.try(:comment_status) > 1 + @homework.homework_detail_manual.update_attribute("comment_status", 1) end - # 发消息 - members = @course.members.where(:course_group_id => params[:group_ids].split(",")) - create_works_tiding @homework, members - end - if @homework.end_time > Time.now && @homework.homework_detail_manual.try(:comment_status) > 1 - @homework.homework_detail_manual.update_attribute("comment_status", 1) end redirect_to student_work_index_path(:homework => @homework.id) end @@ -1032,7 +1036,8 @@ class HomeworkCommonController < ApplicationController def end_homework time = Time.now student_works = @homework.student_works.where("0=1") - # if @homework.homework_detail_manual.try(:comment_status) == 1 && @homework.end_time > time + ActiveRecord::Base.transaction do +# if @homework.homework_detail_manual.try(:comment_status) == 1 && @homework.end_time > time if params[:group_ids] # @homework.homework_group_settings.where(:course_group_id => params[:group_id]).where("publish_time > '#{Time.now}' or publish_time is null").update_all(:publish_time => time) @homework.homework_group_settings.where(:course_group_id => params[:group_ids].split(",")).update_all(:end_time => time) @@ -1069,7 +1074,9 @@ class HomeworkCommonController < ApplicationController # 更新所有学生的效率分 update_student_eff_score HomeworkCommon.where(:id => @homework.id).first end - # end +# end + end + redirect_to student_work_index_path(:homework => @homework.id) end From 688c721bd31d2e27f8d6da08babf593b19a49680 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 12 Apr 2019 18:17:22 +0800 Subject: [PATCH 23/28] 1 --- app/views/challenges/_edit_evaluating_page.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/challenges/_edit_evaluating_page.html.erb b/app/views/challenges/_edit_evaluating_page.html.erb index ae905663..6a04a07b 100644 --- a/app/views/challenges/_edit_evaluating_page.html.erb +++ b/app/views/challenges/_edit_evaluating_page.html.erb @@ -297,7 +297,7 @@ $("#test_file_name").show(); }else{ $("#challenge_shixun_update").submit(); - location.reload(); + // location.reload(); } } \ No newline at end of file From 096b9583862e585bc53a4dfbbc6dec3ea6f01ebf Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 13 Apr 2019 09:19:07 +0800 Subject: [PATCH 24/28] =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=85=A5=E5=88=B0=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E8=A1=A8=EF=BC=8C=E4=B8=B4=E6=97=B6=E8=A1=A8=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/welcome_controller.rb | 150 ++++++++++++++++++ app/models/local_challenge.rb | 3 + app/models/local_challenge_tag.rb | 3 + app/models/local_mirror_repository.rb | 3 + app/models/local_shixun.rb | 3 + app/models/local_shixun_tag_repertoire.rb | 2 + app/models/local_test_set.rb | 3 + app/models/shixun_tag_repertoire.rb | 2 +- config/routes.rb | 3 + ...70441_migrate_homework_common_end_times.rb | 14 +- ...80718_migrate_homework_common_end_time2.rb | 12 +- .../20190412012134_create_local_shixuns.rb | 47 ++++++ ...025818_create_local_mirror_repositories.rb | 10 ++ ...547_create_local_shixun_tag_repertoires.rb | 10 ++ .../20190412062718_create_local_challenges.rb | 29 ++++ .../20190412062923_create_local_test_sets.rb | 14 ++ ...90412063622_create_local_challenge_tags.rb | 10 ++ ...5_add_test_set_score_to_local_challenge.rb | 5 + ...412074140_add_shixun_id_to_local_shixun.rb | 5 + ...0412080258_add_score_to_local_test_sets.rb | 5 + lib/tasks/shixun_local.rake | 0 spec/factories/local_challenge_tags.rb | 6 + spec/factories/local_challenges.rb | 25 +++ spec/factories/local_mirror_repositories.rb | 6 + .../factories/local_shixun_tag_repertoires.rb | 6 + spec/factories/local_shixuns.rb | 37 +++++ spec/factories/local_test_sets.rb | 10 ++ spec/models/local_challenge_spec.rb | 5 + spec/models/local_challenge_tag_spec.rb | 5 + spec/models/local_mirror_repository_spec.rb | 5 + spec/models/local_shixun_spec.rb | 5 + .../local_shixun_tag_repertoire_spec.rb | 5 + spec/models/local_test_set_spec.rb | 5 + 33 files changed, 439 insertions(+), 14 deletions(-) create mode 100644 app/models/local_challenge.rb create mode 100644 app/models/local_challenge_tag.rb create mode 100644 app/models/local_mirror_repository.rb create mode 100644 app/models/local_shixun.rb create mode 100644 app/models/local_shixun_tag_repertoire.rb create mode 100644 app/models/local_test_set.rb create mode 100644 db/migrate/20190412012134_create_local_shixuns.rb create mode 100644 db/migrate/20190412025818_create_local_mirror_repositories.rb create mode 100644 db/migrate/20190412033547_create_local_shixun_tag_repertoires.rb create mode 100644 db/migrate/20190412062718_create_local_challenges.rb create mode 100644 db/migrate/20190412062923_create_local_test_sets.rb create mode 100644 db/migrate/20190412063622_create_local_challenge_tags.rb create mode 100644 db/migrate/20190412073015_add_test_set_score_to_local_challenge.rb create mode 100644 db/migrate/20190412074140_add_shixun_id_to_local_shixun.rb create mode 100644 db/migrate/20190412080258_add_score_to_local_test_sets.rb create mode 100644 lib/tasks/shixun_local.rake create mode 100644 spec/factories/local_challenge_tags.rb create mode 100644 spec/factories/local_challenges.rb create mode 100644 spec/factories/local_mirror_repositories.rb create mode 100644 spec/factories/local_shixun_tag_repertoires.rb create mode 100644 spec/factories/local_shixuns.rb create mode 100644 spec/factories/local_test_sets.rb create mode 100644 spec/models/local_challenge_spec.rb create mode 100644 spec/models/local_challenge_tag_spec.rb create mode 100644 spec/models/local_mirror_repository_spec.rb create mode 100644 spec/models/local_shixun_spec.rb create mode 100644 spec/models/local_shixun_tag_repertoire_spec.rb create mode 100644 spec/models/local_test_set_spec.rb diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index a1e7299a..c6fa78d9 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -28,6 +28,156 @@ class WelcomeController < ApplicationController skip_before_filter :check_authentication, :only => [:index] require 'simple_xlsx_reader' + + DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z) + def shixun_to_local + identifiers = params[:identifiers].split(",") + shixuns = Shixun.where(identifier: identifiers) + # 不重复导入 + ActiveRecord::Base.transaction do + begin + shixuns.each do |shixun| + if LocalShixun.where(shixun_id: shixun.id).blank? + + local_shixun = LocalShixun.create!(name: shixun.name, description: shixun.description, user_id: User.current.id, status: 0, + trainee: shixun.trainee, webssh: shixun.webssh, multi_webssh: shixun.multi_webssh, + can_copy: shixun.can_copy, identifier: generate_identifier, shixun_id: shixun.id, + use_scope: shixun.use_scope, visits: 1, evaluate_script: shixun.evaluate_script) + + # 同步镜像 + if shixun.mirror_repositories.present? + shixun.mirror_repositories.each do |mirror| + LocalMirrorRepository.create!(:local_shixun_id => local_shixun.id, :mirror_repository_id => mirror.id) + end + end + + # 同步技术标签 + shixun.shixun_tag_repertoires.each do |str| + LocalShixunTagRepertoire.create!(:tag_repertoire_id => str.tag_repertoire_id, :local_shixun_id => local_shixun.id) + end + + # 不需要同步版本库,版本库应该是从本地导入到线上的时候由线上版本创建的 + + # 同步复制关卡 + if shixun.challenges.present? + shixun.challenges.each do |challenge| + new_challenge = LocalChallenge.new + new_challenge.attributes = challenge.attributes.dup.except("id","shixun_id","user_id") + new_challenge.local_shixun_id = local_shixun.id + new_challenge.save! + # 评测题,选择题暂时不考虑 + # 同步测试集 + if challenge.test_sets.present? + challenge.test_sets.each do |test_set| + new_test_set = LocalTestSet.new + new_test_set.attributes = test_set.attributes.dup.except("id","challenge_id") + new_test_set.local_challenge_id = new_challenge.id + new_test_set.save! + end + end + # 同步关卡标签 + challenge_tags = ChallengeTag.where("challenge_id =? and challenge_choose_id is null", challenge.id) + if challenge_tags.present? + challenge_tags.each do |challenge_tag| + LocalChallengeTag.create!(:local_challenge_id => new_challenge.id, :name => challenge_tag.try(:name)) + end + end + end + end + end + end + render :json => {status: 0, message: "同步成功"} + rescue Exception => e + logger.error("shixun_local_in ##{e.message}") + render :json => {status: -1, message: "同步失败,#{e.message}"} + raise ActiveRecord::Rollback + end + + end + end + + def local_to_shixun + ActiveRecord::Base.transaction do + LocalShixun.find_each do |local_shixun| + identifier = generate_identifier + shixun = Shixun.create!(name: local_shixun.name, description: local_shixun.description, user_id: User.current.id, + trainee: local_shixun.trainee, webssh: local_shixun.webssh, multi_webssh: local_shixun.multi_webssh, + can_copy: local_shixun.can_copy, identifier: identifier, reset_time: Time.now, + modify_time: Time.now, use_scope: local_shixun.use_scope, visits: 1, evaluate_script: local_shixun.evaluate_script) + m = ShixunMember.new(:user_id => User.current.id, :role => 1) + shixun.shixun_members << m + + # 同步镜像 + local_mirrors = LocalMirrorRepository.where(local_shixun_id: local_shixun.id) + if local_mirrors.present? + local_mirrors.each do |local_mirror| + ShixunMirrorRepository.create!(:shixun_id => shixun.id, :mirror_repository_id => local_mirror.mirror_repository_id) + end + end + + # 同步技术标签 + local_shixun_tags = LocalShixunTagRepertoire.where(local_shixun_id: local_shixun.id) + if local_shixun_tags.present? + local_shixun_tags.each do |str| + ShixunTagRepertoire.create!(:tag_repertoire_id => str.tag_repertoire_id, :shixun_id => shixun.id) + end + end + + # 创建版本库 + repository = Repository.new + repository.shixun = shixun + repository.type = 'Repository::Gitlab' + repository.identifier = shixun.identifier.downcase + repository.project_id = -1 + repository.save! + s = Trustie::Gitlab::Sync.new + s.create_shixun(shixun, repository) + raise "版本库创建失败" if shixun.gpid.blank? # 若和gitlab没同步成功,则抛出异常 + g = Gitlab.client + shixun.update_column(:git_url, g.project(shixun.gpid).path_with_namespace) + + # 同步关卡信息 + local_challenges = LocalChallenge.where(local_shixun_id: local_shixun.id) + if local_challenges.present? + local_challenges.each do |local_challenge| + new_challenge = Challenge.new + new_challenge.attributes = local_challenge.attributes.dup.except("id","local_shixun_id","user_id") + new_challenge.user_id = User.current.id + new_challenge.shixun_id = shixun.id + new_challenge.save! + + # 同步测试集 + local_test_sets = LocalTestSet.where(local_challenge_id: local_challenge.id) + if local_test_sets.present? + local_test_sets.each do |local_test_set| + new_test_set = TestSet.new + new_test_set.attributes = local_test_set.attributes.dup.except("id","challenge_id") + new_test_set.challenge_id = new_challenge.id + new_test_set.save! + end + end + + # 同步关卡标签 + local_challenge_tags = LocalChallengeTag.where(local_challenge_id: local_challenge.id) + if local_challenge_tags.present? + local_challenge_tags.each do |local_challenge_tag| + ChallengeTag.create!(:challenge_id => new_challenge.id, :name => local_challenge_tag.try(:name)) + end + end + end + end + render :json => {status: 0, message: "success", identifier: shixun.identifier} + end + end + end + + + # 生成表示码 + def generate_identifier + code = DCODES.sample(8).join + return generate_identifier if Shixun.where(identifier: code).present? + code + end def index images = PortalImage.where(status: true).order("position asc") diff --git a/app/models/local_challenge.rb b/app/models/local_challenge.rb new file mode 100644 index 00000000..10cf4586 --- /dev/null +++ b/app/models/local_challenge.rb @@ -0,0 +1,3 @@ +class LocalChallenge < ActiveRecord::Base + +end diff --git a/app/models/local_challenge_tag.rb b/app/models/local_challenge_tag.rb new file mode 100644 index 00000000..9768ef30 --- /dev/null +++ b/app/models/local_challenge_tag.rb @@ -0,0 +1,3 @@ +class LocalChallengeTag < ActiveRecord::Base + +end diff --git a/app/models/local_mirror_repository.rb b/app/models/local_mirror_repository.rb new file mode 100644 index 00000000..d402a2df --- /dev/null +++ b/app/models/local_mirror_repository.rb @@ -0,0 +1,3 @@ +class LocalMirrorRepository < ActiveRecord::Base + +end diff --git a/app/models/local_shixun.rb b/app/models/local_shixun.rb new file mode 100644 index 00000000..b8480236 --- /dev/null +++ b/app/models/local_shixun.rb @@ -0,0 +1,3 @@ +class LocalShixun < ActiveRecord::Base + +end diff --git a/app/models/local_shixun_tag_repertoire.rb b/app/models/local_shixun_tag_repertoire.rb new file mode 100644 index 00000000..b3d2721b --- /dev/null +++ b/app/models/local_shixun_tag_repertoire.rb @@ -0,0 +1,2 @@ +class LocalShixunTagRepertoire < ActiveRecord::Base +end diff --git a/app/models/local_test_set.rb b/app/models/local_test_set.rb new file mode 100644 index 00000000..f4320b58 --- /dev/null +++ b/app/models/local_test_set.rb @@ -0,0 +1,3 @@ +class LocalTestSet < ActiveRecord::Base + +end diff --git a/app/models/shixun_tag_repertoire.rb b/app/models/shixun_tag_repertoire.rb index 83a52ee6..8164c98d 100644 --- a/app/models/shixun_tag_repertoire.rb +++ b/app/models/shixun_tag_repertoire.rb @@ -1,4 +1,4 @@ -class ShixunTagRepertoire < ActiveRecord::Base + class ShixunTagRepertoire < ActiveRecord::Base # attr_accessible :title, :body belongs_to :shixun belongs_to :tag_repertoire diff --git a/config/routes.rb b/config/routes.rb index 3acb9123..28319fd3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -281,6 +281,9 @@ RedmineApp::Application.routes.draw do ## oauth相关 end get 'welcome/ccf' => 'welcome#ccf' + get 'welcome/shixun_to_local' => 'welcome#shixun_to_local' + get 'welcome/local_to_shixun' => 'welcome#local_to_shixun' + # get 'competitions/home' => 'competitions#home' # get 'competitions/hn' => 'competitions#index' # get 'competitions/db' => 'competitions#db' diff --git a/db/migrate/20190329070441_migrate_homework_common_end_times.rb b/db/migrate/20190329070441_migrate_homework_common_end_times.rb index 0fa7b6cb..ac6bb087 100644 --- a/db/migrate/20190329070441_migrate_homework_common_end_times.rb +++ b/db/migrate/20190329070441_migrate_homework_common_end_times.rb @@ -1,12 +1,12 @@ class MigrateHomeworkCommonEndTimes < ActiveRecord::Migration def up - homework_commons = HomeworkCommon.where("id < 21549") - homework_commons.find_each do |homework| - sql = "update homework_commons set end_time = (select max(end_time) from - homework_seconds where id = #{homework.id}) where id = #{homework.id}" - - ActiveRecord::Base.connection.execute(sql) - end + # homework_commons = HomeworkCommon.where("id < 21549") + # homework_commons.find_each do |homework| + # sql = "update homework_commons set end_time = (select max(end_time) from + # homework_seconds where id = #{homework.id}) where id = #{homework.id}" + # + # ActiveRecord::Base.connection.execute(sql) + # end end def down diff --git a/db/migrate/20190329080718_migrate_homework_common_end_time2.rb b/db/migrate/20190329080718_migrate_homework_common_end_time2.rb index 65d4670a..19f048fe 100644 --- a/db/migrate/20190329080718_migrate_homework_common_end_time2.rb +++ b/db/migrate/20190329080718_migrate_homework_common_end_time2.rb @@ -1,11 +1,11 @@ class MigrateHomeworkCommonEndTime2 < ActiveRecord::Migration def up - homework_commons = HomeworkCommon.where("id >= 21549") - homework_commons.each do |homework| - if homework.publish_time.nil? - homework.update_column('end_time', nil) - end - end + # homework_commons = HomeworkCommon.where("id >= 21549") + # homework_commons.each do |homework| + # if homework.publish_time.nil? + # homework.update_column('end_time', nil) + # end + # end end def down diff --git a/db/migrate/20190412012134_create_local_shixuns.rb b/db/migrate/20190412012134_create_local_shixuns.rb new file mode 100644 index 00000000..39d5adae --- /dev/null +++ b/db/migrate/20190412012134_create_local_shixuns.rb @@ -0,0 +1,47 @@ +class CreateLocalShixuns < ActiveRecord::Migration + def change + create_table :local_shixuns do |t| + t.string :name + t.text :description + t.integer :user_id + t.integer :gpid + t.integer :visits + t.integer :status + t.string :language + t.text :authentication + t.string :identifier + t.text :propaedeutics + t.integer :trainee + t.integer :major_id + t.integer :webssh + t.boolean :homepage_show + t.boolean :hidden + t.integer :fork_from + t.boolean :can_copy + t.datetime :modifiy_tim + t.datetime :reset_time + t.integer :closer_id + t.datetime :end_time + t.string :git_url + t.boolean :vnc + t.integer :myshixuns_count + t.integer :challenges_count + t.integer :use_scope + t.text :evaluate_script + t.integer :mirror_script_id + t.string :image_text + t.boolean :code_hidden + t.boolean :task_pass + t.integer :exec_time + t.string :test_set_permission + t.boolean :sigle_training + t.boolean :hide_code + t.boolean :multi_webssh + t.integer :excute_time + t.integer :averge_star + t.integer :forbid_copy + + t.timestamps + end + end +end diff --git a/db/migrate/20190412025818_create_local_mirror_repositories.rb b/db/migrate/20190412025818_create_local_mirror_repositories.rb new file mode 100644 index 00000000..a47bff50 --- /dev/null +++ b/db/migrate/20190412025818_create_local_mirror_repositories.rb @@ -0,0 +1,10 @@ +class CreateLocalMirrorRepositories < ActiveRecord::Migration + def change + create_table :local_mirror_repositories do |t| + t.integer :local_shixun_id + t.integer :mirror_repository_id + + t.timestamps + end + end +end diff --git a/db/migrate/20190412033547_create_local_shixun_tag_repertoires.rb b/db/migrate/20190412033547_create_local_shixun_tag_repertoires.rb new file mode 100644 index 00000000..d870316a --- /dev/null +++ b/db/migrate/20190412033547_create_local_shixun_tag_repertoires.rb @@ -0,0 +1,10 @@ +class CreateLocalShixunTagRepertoires < ActiveRecord::Migration + def change + create_table :local_shixun_tag_repertoires do |t| + t.integer :tag_repertoire_id + t.integer :local_shixun_id + + t.timestamps + end + end +end diff --git a/db/migrate/20190412062718_create_local_challenges.rb b/db/migrate/20190412062718_create_local_challenges.rb new file mode 100644 index 00000000..156e2a4b --- /dev/null +++ b/db/migrate/20190412062718_create_local_challenges.rb @@ -0,0 +1,29 @@ +class CreateLocalChallenges < ActiveRecord::Migration + def change + create_table :local_challenges do |t| + t.integer :local_shixun_id + t.string :subject + t.integer :status + t.integer :position + t.text :task_pass + t.text :answer + t.integer :score + t.integer :visits + t.string :path + t.integer :evaluation_way + t.integer :difficulty + t.string :exec_path + t.integer :code_line + t.integer :st + t.text :web_route + t.text :picture_path + t.text :expect_picture_path + t.integer :challenge_tags_count + t.datetime :modify_time + t.string :original_picture_path + t.integer :show_type + + t.timestamps + end + end +end diff --git a/db/migrate/20190412062923_create_local_test_sets.rb b/db/migrate/20190412062923_create_local_test_sets.rb new file mode 100644 index 00000000..1ec6e0af --- /dev/null +++ b/db/migrate/20190412062923_create_local_test_sets.rb @@ -0,0 +1,14 @@ +class CreateLocalTestSets < ActiveRecord::Migration + def change + create_table :local_test_sets do |t| + t.text :input + t.text :output + t.integer :local_challenge_id + t.integer :is_public + t.integer :result + t.integer :position + + t.timestamps + end + end +end diff --git a/db/migrate/20190412063622_create_local_challenge_tags.rb b/db/migrate/20190412063622_create_local_challenge_tags.rb new file mode 100644 index 00000000..0b35a12e --- /dev/null +++ b/db/migrate/20190412063622_create_local_challenge_tags.rb @@ -0,0 +1,10 @@ +class CreateLocalChallengeTags < ActiveRecord::Migration + def change + create_table :local_challenge_tags do |t| + t.string :name + t.integer :local_challenge_id + + t.timestamps + end + end +end diff --git a/db/migrate/20190412073015_add_test_set_score_to_local_challenge.rb b/db/migrate/20190412073015_add_test_set_score_to_local_challenge.rb new file mode 100644 index 00000000..49661522 --- /dev/null +++ b/db/migrate/20190412073015_add_test_set_score_to_local_challenge.rb @@ -0,0 +1,5 @@ +class AddTestSetScoreToLocalChallenge < ActiveRecord::Migration + def change + add_column :local_challenges, :test_set_score, :integer + end +end diff --git a/db/migrate/20190412074140_add_shixun_id_to_local_shixun.rb b/db/migrate/20190412074140_add_shixun_id_to_local_shixun.rb new file mode 100644 index 00000000..15d9853c --- /dev/null +++ b/db/migrate/20190412074140_add_shixun_id_to_local_shixun.rb @@ -0,0 +1,5 @@ +class AddShixunIdToLocalShixun < ActiveRecord::Migration + def change + add_column :local_shixuns, :shixun_id, :integer + end +end diff --git a/db/migrate/20190412080258_add_score_to_local_test_sets.rb b/db/migrate/20190412080258_add_score_to_local_test_sets.rb new file mode 100644 index 00000000..8015badd --- /dev/null +++ b/db/migrate/20190412080258_add_score_to_local_test_sets.rb @@ -0,0 +1,5 @@ +class AddScoreToLocalTestSets < ActiveRecord::Migration + def change + add_column :local_test_sets, :score, :integer + end +end diff --git a/lib/tasks/shixun_local.rake b/lib/tasks/shixun_local.rake new file mode 100644 index 00000000..e69de29b diff --git a/spec/factories/local_challenge_tags.rb b/spec/factories/local_challenge_tags.rb new file mode 100644 index 00000000..033d487b --- /dev/null +++ b/spec/factories/local_challenge_tags.rb @@ -0,0 +1,6 @@ +FactoryGirl.define do + factory :local_challenge_tag do + name "MyString" + local_challenge_id 1 + end +end diff --git a/spec/factories/local_challenges.rb b/spec/factories/local_challenges.rb new file mode 100644 index 00000000..f8094a5c --- /dev/null +++ b/spec/factories/local_challenges.rb @@ -0,0 +1,25 @@ +FactoryGirl.define do + factory :local_challenge do + local_shixun_id 1 + subject "MyString" + status 1 + position 1 + task_pass "" + answer "" + score 1 + visits 1 + path "MyString" + evaluation_way 1 + difficulty 1 + exec_path "MyString" + code_line 1 + st 1 + web_route "MyText" + picture_path "MyText" + expect_picture_path "MyText" + challenge_tags_count 1 + modify_time "2019-04-12 14:27:18" + original_picture_path "MyString" + show_type 1 + end +end diff --git a/spec/factories/local_mirror_repositories.rb b/spec/factories/local_mirror_repositories.rb new file mode 100644 index 00000000..c56d4106 --- /dev/null +++ b/spec/factories/local_mirror_repositories.rb @@ -0,0 +1,6 @@ +FactoryGirl.define do + factory :local_mirror_repository do + local_shixun_id 1 + mirror_repository_id 1 + end +end diff --git a/spec/factories/local_shixun_tag_repertoires.rb b/spec/factories/local_shixun_tag_repertoires.rb new file mode 100644 index 00000000..c0368634 --- /dev/null +++ b/spec/factories/local_shixun_tag_repertoires.rb @@ -0,0 +1,6 @@ +FactoryGirl.define do + factory :local_shixun_tag_repertoire do + tag_repertoire_id 1 + local_shixun_id 1 + end +end diff --git a/spec/factories/local_shixuns.rb b/spec/factories/local_shixuns.rb new file mode 100644 index 00000000..c0e0b736 --- /dev/null +++ b/spec/factories/local_shixuns.rb @@ -0,0 +1,37 @@ +FactoryGirl.define do + factory :local_shixun do + name "MyString" + description "MyText" + user_id 1 + gpid 1 + visits 1 + status 1 + language "MyString" + authentication false + identifier "MyString" + propaedeutics "MyText" + trainee 1 + major_id 1 + webssh 1 + homepage_show false + hidden false + fork_from 1 + can_copy false + modifiy_tim "2019-04-12 09:21:34" + reset_time "" + closer_id 1 + end_time "2019-04-12 09:21:34" + git_url "MyString" + vnc false + myshixuns_count 1 + challenges_count 1 + use_scope 1 + evaluate_script "" + mirror_script_id 1 + image_text "MyString" + code_hidden false + task_pass false + exec_time 1 + test_set "MyString" + end +end diff --git a/spec/factories/local_test_sets.rb b/spec/factories/local_test_sets.rb new file mode 100644 index 00000000..792da326 --- /dev/null +++ b/spec/factories/local_test_sets.rb @@ -0,0 +1,10 @@ +FactoryGirl.define do + factory :local_test_set do + input "" + output "" + local_challenge_id 1 + is_public 1 + result 1 + position 1 + end +end diff --git a/spec/models/local_challenge_spec.rb b/spec/models/local_challenge_spec.rb new file mode 100644 index 00000000..b123e68c --- /dev/null +++ b/spec/models/local_challenge_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe LocalChallenge, :type => :model do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/local_challenge_tag_spec.rb b/spec/models/local_challenge_tag_spec.rb new file mode 100644 index 00000000..7aac14ed --- /dev/null +++ b/spec/models/local_challenge_tag_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe LocalChallengeTag, :type => :model do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/local_mirror_repository_spec.rb b/spec/models/local_mirror_repository_spec.rb new file mode 100644 index 00000000..d88aab72 --- /dev/null +++ b/spec/models/local_mirror_repository_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe LocalMirrorRepository, :type => :model do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/local_shixun_spec.rb b/spec/models/local_shixun_spec.rb new file mode 100644 index 00000000..deff5715 --- /dev/null +++ b/spec/models/local_shixun_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe LocalShixun, :type => :model do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/local_shixun_tag_repertoire_spec.rb b/spec/models/local_shixun_tag_repertoire_spec.rb new file mode 100644 index 00000000..f3d780b0 --- /dev/null +++ b/spec/models/local_shixun_tag_repertoire_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe LocalShixunTagRepertoire, :type => :model do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/local_test_set_spec.rb b/spec/models/local_test_set_spec.rb new file mode 100644 index 00000000..117ff963 --- /dev/null +++ b/spec/models/local_test_set_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe LocalTestSet, :type => :model do + pending "add some examples to (or delete) #{__FILE__}" +end From 49ef49a32530bebebf96e28deb5f6d1f8eef0bbe Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 13 Apr 2019 10:07:27 +0800 Subject: [PATCH 25/28] 1 --- app/controllers/myshixuns_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/myshixuns_controller.rb b/app/controllers/myshixuns_controller.rb index 030f3f10..e0157b67 100644 --- a/app/controllers/myshixuns_controller.rb +++ b/app/controllers/myshixuns_controller.rb @@ -451,15 +451,12 @@ class MyshixunsController < ApplicationController # 只有评测中的game才会创建和更新代码评测中的信息 logger.info("##################game: #{game.status}") logger.info("##################retry_status: #{game.retry_status}") - if game.status == 1 || game.status == 2 && game.retry_status == 1 + if game.status == 1 || game.status == 2 if msg.blank? RunCodeMessage.create!(:game_id => game_id, :status => 1, :message => message) else msg.update_attributes(:status => (msg.status + 1), :message => message) end - else - # 评测完成,初始化评测信息的状态 - msg.update_attributes(:status => 0, :message => nil) if msg.present? end render :json => {:data => "success"} end From 59ff646a4ff4f240835ff6beead4278fe0f8cc87 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 13 Apr 2019 11:25:28 +0800 Subject: [PATCH 26/28] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/welcome_controller.rb | 11 +++++++++++ config/routes.rb | 1 + 2 files changed, 12 insertions(+) diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index c6fa78d9..06602a5c 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -30,6 +30,17 @@ class WelcomeController < ApplicationController require 'simple_xlsx_reader' DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z) + def local_init + LocalShixun.delete_all + LocalMirrorRepository.delete_all + LocalShixunTagRepertoire.delete_all + LocalChallenge.delete_all + LocalTestSet.delete_all + LocalChallengeTag.delete_all + render :json => {status: 0, message: "success"} + end + + def shixun_to_local identifiers = params[:identifiers].split(",") shixuns = Shixun.where(identifier: identifiers) diff --git a/config/routes.rb b/config/routes.rb index ea70b6a2..47a052db 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -283,6 +283,7 @@ RedmineApp::Application.routes.draw do ## oauth相关 get 'welcome/ccf' => 'welcome#ccf' get 'welcome/shixun_to_local' => 'welcome#shixun_to_local' get 'welcome/local_to_shixun' => 'welcome#local_to_shixun' + get 'welcome/local_init' => 'welcome#local_init' # get 'competitions/home' => 'competitions#home' # get 'competitions/hn' => 'competitions#index' From 98c5bcca6e3b200e7901faa9c8cfe30000492753 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 13 Apr 2019 18:26:07 +0800 Subject: [PATCH 27/28] local to shixun --- app/controllers/welcome_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index 06602a5c..00bab5b6 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -73,7 +73,7 @@ class WelcomeController < ApplicationController if shixun.challenges.present? shixun.challenges.each do |challenge| new_challenge = LocalChallenge.new - new_challenge.attributes = challenge.attributes.dup.except("id","shixun_id","user_id") + new_challenge.attributes = challenge.attributes.dup.except("id","shixun_id","user_id", "test_set_score") new_challenge.local_shixun_id = local_shixun.id new_challenge.save! # 评测题,选择题暂时不考虑 @@ -109,6 +109,7 @@ class WelcomeController < ApplicationController def local_to_shixun ActiveRecord::Base.transaction do + shixun_list = [] LocalShixun.find_each do |local_shixun| identifier = generate_identifier shixun = Shixun.create!(name: local_shixun.name, description: local_shixun.description, user_id: User.current.id, @@ -177,8 +178,9 @@ class WelcomeController < ApplicationController end end end - render :json => {status: 0, message: "success", identifier: shixun.identifier} + shixun_list << shixun.identifier end + render :json => {status: 0, message: "success", identifier: shixun_list} end end From a3e3fa096566e648e729a68b21b94c61b9200d79 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 13 Apr 2019 18:30:00 +0800 Subject: [PATCH 28/28] .. --- app/controllers/welcome_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index 00bab5b6..c9d41c0a 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -153,7 +153,7 @@ class WelcomeController < ApplicationController if local_challenges.present? local_challenges.each do |local_challenge| new_challenge = Challenge.new - new_challenge.attributes = local_challenge.attributes.dup.except("id","local_shixun_id","user_id") + new_challenge.attributes = local_challenge.attributes.dup.except("id","local_shixun_id","user_id", "test_set_score") new_challenge.user_id = User.current.id new_challenge.shixun_id = shixun.id new_challenge.save!