diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-10 18:09:12 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-10 18:09:12 +0200 |
commit | e25656d09bea03892a1d7720cdd70894db7805aa (patch) | |
tree | ee40d4622c77526f5b36df7560b7f6b2fb2d5fa9 /app | |
parent | dd20da1bfff2cd5ea43c8c3c6837bd40e5f44f4f (diff) | |
download | gitlab-ce-e25656d09bea03892a1d7720cdd70894db7805aa.tar.gz |
Improve wiki typography
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/stylesheets/gitlab_bootstrap/files.scss | 23 | ||||
-rw-r--r-- | app/assets/stylesheets/gitlab_bootstrap/typography.scss | 19 | ||||
-rw-r--r-- | app/views/issues/show.html.haml | 5 |
3 files changed, 27 insertions, 20 deletions
diff --git a/app/assets/stylesheets/gitlab_bootstrap/files.scss b/app/assets/stylesheets/gitlab_bootstrap/files.scss index 83954da525a..865a10e1fd7 100644 --- a/app/assets/stylesheets/gitlab_bootstrap/files.scss +++ b/app/assets/stylesheets/gitlab_bootstrap/files.scss @@ -37,24 +37,6 @@ background: #fff; font-size: 11px; - &.wiki { - font-size: 13px; - code { - padding: 0 4px; - } - padding: 20px; - - h1 { font-size: 26px; line-height: 46px; } - h2 { font-size: 22px; line-height: 42px; } - h3 { font-size: 20px; line-height: 40px; } - h4 { font-size: 18px; line-height: 32px; } - h5 { font-size: 16px; line-height: 26px; } - - .white .highlight pre { - background: #f5f5f5; - } - } - &.image_file { background: #eee; text-align: center; @@ -64,6 +46,11 @@ } } + &.wiki { + padding: 20px; + font-size: 13px; + } + &.blob_file { } diff --git a/app/assets/stylesheets/gitlab_bootstrap/typography.scss b/app/assets/stylesheets/gitlab_bootstrap/typography.scss index 81fb79a43f2..e74a0de125b 100644 --- a/app/assets/stylesheets/gitlab_bootstrap/typography.scss +++ b/app/assets/stylesheets/gitlab_bootstrap/typography.scss @@ -81,3 +81,22 @@ a:focus { .monospace { font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace; } + +/** + * Wiki typography + * + */ +.wiki { + font-size: 13px; + + code { padding: 0 4px; } + p { font-size: 13px; } + h1 { font-size: 32px; line-height: 40px; margin: 10px 0;} + h2 { font-size: 26px; line-height: 40px; margin: 10px 0;} + h3 { font-size: 22px; line-height: 40px; margin: 10px 0;} + h4 { font-size: 18px; line-height: 20px; margin: 10px 0;} + h5 { font-size: 14px; line-height: 20px; margin: 10px 0;} + h6 { font-size: 12px; line-height: 20px; margin: 10px 0;} + .white .highlight pre { background: #f5f5f5; } + ul { margin: 0 0 9px 25px !important; } +} diff --git a/app/views/issues/show.html.haml b/app/views/issues/show.html.haml index b96af36fcc0..10f647de3d2 100644 --- a/app/views/issues/show.html.haml +++ b/app/views/issues/show.html.haml @@ -51,8 +51,9 @@ - if @issue.description.present? .ui-box-bottom - = preserve do - = markdown @issue.description + .wiki + = preserve do + = markdown @issue.description .issue_notes.voting_notes#notes= render "notes/notes_with_form", tid: @issue.id, tt: "issue" |