diff options
author | Himanshu Kapoor <hkapoor@gitlab.com> | 2019-08-22 15:28:41 +0530 |
---|---|---|
committer | Himanshu Kapoor <hkapoor@gitlab.com> | 2019-08-23 00:06:59 +0530 |
commit | 9a58f2cd8f8639b58a398458f28358c13f448492 (patch) | |
tree | 931a49f509d76b5a7589a3eb1c6e7d3f606da3d6 | |
parent | a80b7dd3d3d1cc320d72c9a09c96b5ef2f09b7a0 (diff) | |
download | gitlab-ce-66022-git-clone-url-box-on-wiki-git-access-page-is-broken.tar.gz |
Replace media query css with responsive classes66022-git-clone-url-box-on-wiki-git-access-page-is-broken
Replace media breakpoint queries on .nav-controls
with utility classes for padding for certain responsive
layouts. This is in line with our goal to reuse utility classes
as much as we can.
-rw-r--r-- | app/assets/stylesheets/pages/wiki.scss | 6 | ||||
-rw-r--r-- | app/views/projects/wikis/edit.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/wikis/pages.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/wikis/show.html.haml | 2 |
4 files changed, 3 insertions, 9 deletions
diff --git a/app/assets/stylesheets/pages/wiki.scss b/app/assets/stylesheets/pages/wiki.scss index 6fea7ca1acd..0b65b915abf 100644 --- a/app/assets/stylesheets/pages/wiki.scss +++ b/app/assets/stylesheets/pages/wiki.scss @@ -59,12 +59,6 @@ display: none; } } - - @include media-breakpoint-only(md) { - .nav-controls { - padding-bottom: $gl-padding; - } - } } .wiki-git-access { diff --git a/app/views/projects/wikis/edit.html.haml b/app/views/projects/wikis/edit.html.haml index a2c26016b38..fbc8740e74e 100644 --- a/app/views/projects/wikis/edit.html.haml +++ b/app/views/projects/wikis/edit.html.haml @@ -22,7 +22,7 @@ - else = s_("Wiki|Create Page") - .nav-controls + .nav-controls.pb-md-3.pb-lg-0 - if @page.persisted? = link_to project_wiki_history_path(@project, @page), class: "btn" do = s_("Wiki|Page history") diff --git a/app/views/projects/wikis/pages.html.haml b/app/views/projects/wikis/pages.html.haml index 59332063193..275dc5dbd23 100644 --- a/app/views/projects/wikis/pages.html.haml +++ b/app/views/projects/wikis/pages.html.haml @@ -11,7 +11,7 @@ %h2.wiki-page-title = s_("Wiki|Wiki Pages") - .nav-controls + .nav-controls.pb-md-3.pb-lg-0 = link_to project_wikis_git_access_path(@project), class: 'btn' do = icon('cloud-download') = _("Clone repository") diff --git a/app/views/projects/wikis/show.html.haml b/app/views/projects/wikis/show.html.haml index 1ac67c60d85..c6197fe576e 100644 --- a/app/views/projects/wikis/show.html.haml +++ b/app/views/projects/wikis/show.html.haml @@ -15,7 +15,7 @@ = (_("Last edited by %{name}") % { name: "<strong>#{@page.last_version.author_name}</strong>" }).html_safe #{time_ago_with_tooltip(@page.last_version.authored_date)} - .nav-controls + .nav-controls.pb-md-3.pb-lg-0 = render 'main_links' - if @page.historical? |