Commit 586678622c0e96a5d86c895daf7a307ff5d4d6e4

Authored by Dmitriy Zaporozhets
1 parent 988ce2c0

Restyle README section

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/sections/tree.scss
... ... @@ -113,3 +113,14 @@
113 113 float: left;
114 114 margin-top: 5px;
115 115 }
  116 +
  117 +.readme-holder {
  118 + border-top: 1px dashed #CCC;
  119 + padding-top: 10px;
  120 +
  121 + h4 {
  122 + font-size: 14px;
  123 + margin-bottom: 20px;
  124 + color: #777;
  125 + }
  126 +}
... ...
app/views/projects/tree/_readme.html.haml
1   -.file-holder#README
2   - .file-title
  1 +.readme-holder#README
  2 + %h4
3 3 %i.icon-file
4   - = readme.name
5   - .file-content.wiki
  4 + = readme.name
  5 + .wiki
6 6 - if gitlab_markdown?(readme.name)
7 7 = preserve do
8 8 = markdown(readme.data)
... ...