From 8e989d4863d6425f87e3a7230ff86823b6b2e551 Mon Sep 17 00:00:00 2001 From: Valeriy Sizov Date: Wed, 17 Oct 2012 16:14:20 +0300 Subject: [PATCH] revert all wiki changes --- app/assets/stylesheets/gitlab_bootstrap/files.scss | 14 ++++++++++++++ app/assets/stylesheets/main.scss | 6 ------ app/assets/stylesheets/sections/wiki.scss | 13 ------------- app/views/wikis/show.html.haml | 7 ++++--- 4 files changed, 18 insertions(+), 22 deletions(-) delete mode 100644 app/assets/stylesheets/sections/wiki.scss diff --git a/app/assets/stylesheets/gitlab_bootstrap/files.scss b/app/assets/stylesheets/gitlab_bootstrap/files.scss index caaefdb..cbc58d2 100644 --- a/app/assets/stylesheets/gitlab_bootstrap/files.scss +++ b/app/assets/stylesheets/gitlab_bootstrap/files.scss @@ -37,6 +37,20 @@ background:#fff; font-size: 11px; + &.wiki { + font-size: 13px; + code { + padding:0 4px; + } + padding:20px; + h1, h2 { + line-height: 46px; + } + h3, h4 { + line-height: 40px; + } + } + &.image_file { background:#eee; text-align:center; diff --git a/app/assets/stylesheets/main.scss b/app/assets/stylesheets/main.scss index 83ca049..c821c3c 100644 --- a/app/assets/stylesheets/main.scss +++ b/app/assets/stylesheets/main.scss @@ -189,9 +189,3 @@ $hover: #D9EDF7; * */ @import "sections/editor.scss"; - -/** - * Wiki styles - * - */ -@import "sections/wiki.scss"; diff --git a/app/assets/stylesheets/sections/wiki.scss b/app/assets/stylesheets/sections/wiki.scss deleted file mode 100644 index f3fae96..0000000 --- a/app/assets/stylesheets/sections/wiki.scss +++ /dev/null @@ -1,13 +0,0 @@ -.wiki { - font-size: 13px; - code { - padding:0 4px; - } - padding:20px; - h1, h2 { - line-height: 46px; - } - h3, h4 { - line-height: 40px; - } -} diff --git a/app/views/wikis/show.html.haml b/app/views/wikis/show.html.haml index fe85ba2..579ea1b 100644 --- a/app/views/wikis/show.html.haml +++ b/app/views/wikis/show.html.haml @@ -10,9 +10,10 @@ %i.icon-edit Edit %br -.file_content.wiki - = preserve do - = markdown @wiki.content +.file_holder + .file_content.wiki + = preserve do + = markdown @wiki.content %p.time Last edited by #{@wiki.user.name}, #{time_ago_in_words @wiki.created_at} ago - if can? current_user, :admin_wiki, @project -- libgit2 0.21.2