提交 b82cb263 编写于 作者: D Dmitriy Zaporozhets

Use class instead id for css styles

上级 69751aac
...@@ -13,7 +13,10 @@ ul { ...@@ -13,7 +13,10 @@ ul {
border-bottom: 1px solid rgba(0, 0, 0, 0.05); border-bottom: 1px solid rgba(0, 0, 0, 0.05);
&.smoke { background-color:#f5f5f5; } &.smoke { background-color:#f5f5f5; }
&:hover { background:$hover; } &:hover {
background:$hover;
border-bottom:1px solid #ADF;
}
&:last-child { border:none } &:last-child { border:none }
.author { color: #999; } .author { color: #999; }
......
#tree-holder { .tree-holder {
#tree-content-holder { .tree-content-holder {
float:left; float:left;
width:100%; width:100%;
} }
#tree-readme-holder {
float:left;
width:100%;
.readme {
border:1px solid #ccc;
padding:12px;
background: #F7F7F7;
pre {
overflow: auto;
}
}
}
.tree_progress { .tree_progress {
display:none; display:none;
...@@ -25,7 +12,7 @@ ...@@ -25,7 +12,7 @@
} }
} }
#tree-slider { .tree-table {
@include border-radius(0); @include border-radius(0);
.tree-item { .tree-item {
&:hover { &:hover {
...@@ -55,8 +42,7 @@ ...@@ -55,8 +42,7 @@
} }
} }
.tree-table {
#tree-slider {
td { td {
background:#fafafa; background:#fafafa;
} }
...@@ -72,5 +58,4 @@ ...@@ -72,5 +58,4 @@
text-decoration: underline; text-decoration: underline;
} }
} }
} }
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
%li= link %li= link
.clear .clear
%div.tree_progress %div.tree_progress
#tree-content-holder %div#tree-content-holder.tree-content-holder
- if tree.is_blob? - if tree.is_blob?
= render partial: "tree/tree_file", locals: { name: tree.name, content: tree.data, file: tree } = render partial: "tree/tree_file", locals: { name: tree.name, content: tree.data, file: tree }
- else - else
- contents = tree.contents - contents = tree.contents
%table#tree-slider{class: "table_#{@hex_path}" } %table#tree-slider{class: "table_#{@hex_path} tree-table" }
%thead %thead
%th Name %th Name
%th Last Update %th Last Update
......
= render "head" = render "head"
#tree-holder= render partial: "tree", locals: {commit: @commit, tree: @tree} %div#tree-holder.tree-holder
= render "tree", commit: @commit, tree: @tree
:javascript :javascript
$(function() { $(function() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册