Commit 8e989d4863d6425f87e3a7230ff86823b6b2e551
1 parent
7a0a552b
Exists in
master
and in
4 other branches
revert all wiki changes
Showing
4 changed files
with
18 additions
and
22 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/files.scss
| @@ -37,6 +37,20 @@ | @@ -37,6 +37,20 @@ | ||
| 37 | background:#fff; | 37 | background:#fff; |
| 38 | font-size: 11px; | 38 | font-size: 11px; |
| 39 | 39 | ||
| 40 | + &.wiki { | ||
| 41 | + font-size: 13px; | ||
| 42 | + code { | ||
| 43 | + padding:0 4px; | ||
| 44 | + } | ||
| 45 | + padding:20px; | ||
| 46 | + h1, h2 { | ||
| 47 | + line-height: 46px; | ||
| 48 | + } | ||
| 49 | + h3, h4 { | ||
| 50 | + line-height: 40px; | ||
| 51 | + } | ||
| 52 | + } | ||
| 53 | + | ||
| 40 | &.image_file { | 54 | &.image_file { |
| 41 | background:#eee; | 55 | background:#eee; |
| 42 | text-align:center; | 56 | text-align:center; |
app/assets/stylesheets/main.scss
app/assets/stylesheets/sections/wiki.scss
app/views/wikis/show.html.haml
| @@ -10,9 +10,10 @@ | @@ -10,9 +10,10 @@ | ||
| 10 | %i.icon-edit | 10 | %i.icon-edit |
| 11 | Edit | 11 | Edit |
| 12 | %br | 12 | %br |
| 13 | -.file_content.wiki | ||
| 14 | - = preserve do | ||
| 15 | - = markdown @wiki.content | 13 | +.file_holder |
| 14 | + .file_content.wiki | ||
| 15 | + = preserve do | ||
| 16 | + = markdown @wiki.content | ||
| 16 | 17 | ||
| 17 | %p.time Last edited by #{@wiki.user.name}, #{time_ago_in_words @wiki.created_at} ago | 18 | %p.time Last edited by #{@wiki.user.name}, #{time_ago_in_words @wiki.created_at} ago |
| 18 | - if can? current_user, :admin_wiki, @project | 19 | - if can? current_user, :admin_wiki, @project |