[skip ci] Replace .visible-sm-* with .d-block.d-md-none
This commit is contained in:
parent
ec0976eb9d
commit
a4be459608
8 changed files with 11 additions and 11 deletions
|
@ -163,8 +163,8 @@
|
|||
<button
|
||||
v-if="hasSidebarButton"
|
||||
type="button"
|
||||
class="btn btn-secondary d-block d-sm-none
|
||||
visible-sm-block sidebar-toggle-btn js-sidebar-build-toggle js-sidebar-build-toggle-header"
|
||||
class="btn btn-secondary d-block d-sm-none d-md-none
|
||||
sidebar-toggle-btn js-sidebar-build-toggle js-sidebar-build-toggle-header"
|
||||
aria-label="Toggle Sidebar"
|
||||
id="toggleSidebar"
|
||||
>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- reporter = abuse_report.reporter
|
||||
- user = abuse_report.user
|
||||
%tr
|
||||
%th.d-block.d-sm-none.visible-sm-block
|
||||
%th.d-block.d-sm-none.d-md-none
|
||||
%strong User
|
||||
%td
|
||||
- if user
|
||||
|
@ -11,7 +11,7 @@
|
|||
- else
|
||||
(removed)
|
||||
%td
|
||||
%strong.subheading.d-block.d-sm-none.visible-sm-block Reported by
|
||||
%strong.subheading.d-block.d-sm-none.d-md-none Reported by
|
||||
- if reporter
|
||||
= link_to reporter.name, reporter
|
||||
- else
|
||||
|
@ -19,7 +19,7 @@
|
|||
.light.small
|
||||
= time_ago_with_tooltip(abuse_report.created_at)
|
||||
%td
|
||||
%strong.subheading.d-block.d-sm-none.visible-sm-block Message
|
||||
%strong.subheading.d-block.d-sm-none.d-md-none Message
|
||||
.message
|
||||
= markdown_field(abuse_report, :message)
|
||||
%td
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
- if header_link?(:search)
|
||||
%li.hidden-sm.hidden-xs
|
||||
= render 'layouts/search' unless current_controller?(:search)
|
||||
%li.visible-sm-inline-block.d-inline-block.d-sm-none-block
|
||||
%li.d-inline-block.d-sm-none.d-md-none
|
||||
= link_to search_path, title: 'Search', aria: { label: "Search" }, data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
|
||||
= sprite_icon('search', size: 16)
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
%span= _('Options')
|
||||
= icon('caret-down')
|
||||
%ul.dropdown-menu.dropdown-menu-align-right
|
||||
%li.d-block.d-sm-none.visible-sm-block
|
||||
%li.d-block.d-sm-none.d-md-none
|
||||
= link_to project_tree_path(@project, @commit) do
|
||||
#{ _('Browse Files') }
|
||||
- unless @commit.has_been_reverted?(current_user)
|
||||
|
|
|
@ -27,5 +27,5 @@
|
|||
= link_to "New issue", new_project_issue_path(@project, issue: build_failed_issue_options), class: 'btn btn-new btn-inverted'
|
||||
- if can?(current_user, :update_build, @build) && @build.retryable?
|
||||
= link_to "Retry job", retry_project_job_path(@project, @build), class: 'btn btn-inverted-secondary', method: :post
|
||||
%button.btn.btn-secondary.float-right.d-block.d-sm-none.visible-sm-block.build-gutter-toggle.js-sidebar-build-toggle{ role: "button", type: "button" }
|
||||
%button.btn.btn-secondary.float-right.d-block.d-sm-none.d-md-none.build-gutter-toggle.js-sidebar-build-toggle{ role: "button", type: "button" }
|
||||
= icon('angle-double-left')
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
= @build.name
|
||||
- if can?(current_user, :update_build, @build) && @build.retryable?
|
||||
= link_to "Retry", retry_namespace_project_job_path(@project.namespace, @project, @build), class: 'js-retry-button float-right btn btn-inverted-secondary btn-retry visible-md-block visible-lg-block', method: :post
|
||||
%a.gutter-toggle.float-right.d-block.d-sm-none.visible-sm-block.js-sidebar-build-toggle{ href: "#", 'aria-label': 'Toggle Sidebar', role: 'button' }
|
||||
%a.gutter-toggle.float-right.d-block.d-sm-none.d-md-none.js-sidebar-build-toggle{ href: "#", 'aria-label': 'Toggle Sidebar', role: 'button' }
|
||||
= icon('angle-double-right')
|
||||
|
||||
#js-details-block-vue
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
%aside.right-sidebar.right-sidebar-expanded.wiki-sidebar.js-wiki-sidebar.js-right-sidebar{ data: { "offset-top" => "50", "spy" => "affix" } }
|
||||
.sidebar-container
|
||||
.block.wiki-sidebar-header.append-bottom-default
|
||||
%a.gutter-toggle.float-right.d-block.d-sm-none.visible-sm-block.js-sidebar-wiki-toggle{ href: "#" }
|
||||
%a.gutter-toggle.float-right.d-block.d-sm-none.d-md-none.js-sidebar-wiki-toggle{ href: "#" }
|
||||
= icon('angle-double-right')
|
||||
|
||||
- git_access_url = project_wikis_git_access_path(@project)
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
%li.label-list-item{ id: label_css_id, data: { id: label.id } }
|
||||
= render "shared/label_row", label: label
|
||||
|
||||
.visible-xs.visible-sm-inline-block.dropdown
|
||||
.visible-xs.d-inline-block.d-md-none.dropdown
|
||||
%button.btn.btn-secondary.label-options-toggle{ type: 'button', data: { toggle: "dropdown" } }
|
||||
Options
|
||||
= icon('caret-down')
|
||||
|
|
Loading…
Reference in a new issue