调整课程列表视图

This commit is contained in:
nwb 2014-07-19 10:55:46 +08:00
parent e1edb46ba2
commit 6bced5106e
2 changed files with 17 additions and 2 deletions

View File

@ -335,7 +335,7 @@ module ApplicationHelper
# set the project environment to please macros.
@course = course
if (ancestors.empty? )#|| course.is_descendant_of?(ancestors.last))
s << "<ul class=courses'>\n"
s << "<ul class=courses>\n"
else
ancestors.pop
s << "</li>"

View File

@ -696,7 +696,6 @@ ul.user_course_sort li{list-style-type:none;
height:auto;}
.info-break{
word-wrap: break-word;
word-break: break-all;
@ -1765,6 +1764,22 @@ input#content_comments {width: 99%}
p.pagination {margin-top:8px; font-size: 90%}
ul.courses {margin:0px; padding-left:0em;}
ul.courses ul {padding-left:1.6em;}
ul.courses.root {margin:0; padding:0;}
ul.courses li {list-style-type:none;}
ul.courses li {list-style-type:none;}
#courses-index ul.courses ul.courses { border-left: 3px solid #e0e0e0; padding-left:1em;}
#courses-index ul.courses li.root {margin-bottom: 1em;}
#courses-index ul.courses li.child {margin-top: 1em;}
#courses-index ul.courses div.root a.course {font-family:'微软雅黑', "Trebuchet MS", Verdana, sans-serif; font-weight: bold; font-size: 14px; margin: 0 0 10px 0; }
.my-course { padding-left: 18px; background: url(../images/fav.png) no-repeat 0 50%; }
/***** Tabular forms ******/
.tabular p{
margin: 0;