Commit 9fa65125 authored by Mike Greiling's avatar Mike Greiling

update design of wiki git access page

parent 48f4f76c
...@@ -8,10 +8,6 @@ ...@@ -8,10 +8,6 @@
.top-area { .top-area {
position: relative; position: relative;
&.sub-header-block {
padding-right: 40px;
}
button.sidebar-toggle { button.sidebar-toggle {
position: absolute; position: absolute;
right: 0; right: 0;
...@@ -24,10 +20,7 @@ ...@@ -24,10 +20,7 @@
} }
@media (min-width: $screen-md-min) { @media (min-width: $screen-md-min) {
&,
&.sub-header-block {
padding-right: 0; padding-right: 0;
}
button.sidebar-toggle { button.sidebar-toggle {
display: none; display: none;
...@@ -35,6 +28,37 @@ ...@@ -35,6 +28,37 @@
} }
} }
.wiki-page-header {
@extend .top-area;
.git-access-header {
padding: 16px 0 11px;
line-height: 28px;
font-size: 18px;
}
.git-clone-holder {
width: 480px;
padding-bottom: 40px;
}
@media (max-width: $screen-xs-max) {
.git-clone-holder {
width: 100%;
}
}
}
.wiki-git-access {
margin: $gl-padding 0;
h3 {
font-size: 22px;
font-weight: normal;
margin-top: 1.4em;
}
}
.right-sidebar.wiki-sidebar { .right-sidebar.wiki-sidebar {
padding: $gl-padding 0; padding: $gl-padding 0;
......
...@@ -2,31 +2,29 @@ ...@@ -2,31 +2,29 @@
- page_title "Git Access", "Wiki" - page_title "Git Access", "Wiki"
%div{ class: container_class } %div{ class: container_class }
.top-area.sub-header-block .wiki-page-header
%button.btn.btn-default.visible-xs.visible-sm.pull-right.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" } %button.btn.btn-default.visible-xs.visible-sm.pull-right.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
= icon('angle-double-left') = icon('angle-double-left')
%span.oneline .git-access-header
Git access for Clone repository
%strong= @project_wiki.path_with_namespace %strong= @project_wiki.path_with_namespace
.pull-right
= render "shared/clone_panel", project: @project_wiki = render "shared/clone_panel", project: @project_wiki
.prepend-top-default .wiki-git-access
%fieldset %h3 Install Gollum
%legend Install Gollum:
%pre.dark %pre.dark
:preserve :preserve
gem install gollum gem install gollum
%legend Clone Your Wiki: %h3 Clone your wiki
%pre.dark %pre.dark
:preserve :preserve
git clone #{ content_tag(:span, default_url_to_repo(@project_wiki), class: 'clone')} git clone #{ content_tag(:span, default_url_to_repo(@project_wiki), class: 'clone')}
cd #{h @project_wiki.path} cd #{h @project_wiki.path}
%legend Start Gollum And Edit Locally: %h3 Start Gollum and edit locally
%pre.dark %pre.dark
:preserve :preserve
gollum gollum
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment