Commit 0ff1fccd authored by Clement Ho's avatar Clement Ho

[skip ci] Rename .hide to .d-none

parent b413785e
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
v-if="canAttachFile" v-if="canAttachFile"
class="uploading-container" class="uploading-container"
> >
<span class="uploading-progress-container hide"> <span class="uploading-progress-container d-none">
<i <i
class="fa fa-file-image-o toolbar-button-icon" class="fa fa-file-image-o toolbar-button-icon"
aria-hidden="true" aria-hidden="true"
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</i> </i>
</span> </span>
</span> </span>
<span class="uploading-error-container hide"> <span class="uploading-error-container d-none">
<span class="uploading-error-icon"> <span class="uploading-error-icon">
<i <i
class="fa fa-file-image-o toolbar-button-icon" class="fa fa-file-image-o toolbar-button-icon"
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
Attach a file Attach a file
</button> </button>
<button <button
class="btn btn-secondary btn-xs hide button-cancel-uploading-files" class="btn btn-secondary btn-xs d-none button-cancel-uploading-files"
type="button" type="button"
> >
Cancel Cancel
......
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
.form-group.js-toggle-colors-container .form-group.js-toggle-colors-container
.col-sm-10.col-sm-offset-2 .col-sm-10.col-sm-offset-2
= link_to 'Customize colors', '#', class: 'js-toggle-colors-link' = link_to 'Customize colors', '#', class: 'js-toggle-colors-link'
.form-group.js-toggle-colors-container.hide .form-group.js-toggle-colors-container.d-none
= f.label :color, "Background Color", class: 'control-label' = f.label :color, "Background Color", class: 'control-label'
.col-sm-10 .col-sm-10
= f.color_field :color, class: "form-control" = f.color_field :color, class: "form-control"
.form-group.js-toggle-colors-container.hide .form-group.js-toggle-colors-container.d-none
= f.label :font, "Font Color", class: 'control-label' = f.label :font, "Font Color", class: 'control-label'
.col-sm-10 .col-sm-10
= f.color_field :font, class: "form-control" = f.color_field :font, class: "form-control"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.row .row
.col-lg-12.js-ci-variable-list-section{ data: { save_endpoint: save_endpoint } } .col-lg-12.js-ci-variable-list-section{ data: { save_endpoint: save_endpoint } }
.hide.alert.alert-danger.js-ci-variable-error-box .d-none.alert.alert-danger.js-ci-variable-error-box
%ul.ci-variable-list %ul.ci-variable-list
- @variables.each.each do |variable| - @variables.each.each do |variable|
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
= render 'ci/variables/variable_row', form_field: 'variables' = render 'ci/variables/variable_row', form_field: 'variables'
.prepend-top-20 .prepend-top-20
%button.btn.btn-success.js-secret-variables-save-button{ type: 'button' } %button.btn.btn-success.js-secret-variables-save-button{ type: 'button' }
%span.hide.js-secret-variables-save-loading-icon %span.d-none.js-secret-variables-save-loading-icon
= icon('spinner spin') = icon('spinner spin')
= _('Save variables') = _('Save variables')
%button.btn.btn-info.btn-inverted.prepend-left-10.js-secret-value-reveal-button{ type: 'button', data: { secret_reveal_status: "#{@variables.size == 0}" } } %button.btn.btn-info.btn-inverted.prepend-left-10.js-secret-value-reveal-button{ type: 'button', data: { secret_reveal_status: "#{@variables.size == 0}" } }
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
.username.form-group .username.form-group
= f.label :username = f.label :username
= f.text_field :username, class: "form-control middle", pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS, required: true, title: 'Please create a username with only alphanumeric characters.' = f.text_field :username, class: "form-control middle", pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS, required: true, title: 'Please create a username with only alphanumeric characters.'
%p.validation-error.hide Username is already taken. %p.validation-error.d-none Username is already taken.
%p.validation-success.hide Username is available. %p.validation-success.d-none Username is available.
%p.validation-pending.hide Checking username availability... %p.validation-pending.d-none Checking username availability...
.form-group .form-group
= f.label :email = f.label :email
= f.email_field :email, class: "form-control middle", required: true, title: "Please provide a valid email address." = f.email_field :email, class: "form-control middle", required: true, title: "Please provide a valid email address."
......
...@@ -52,4 +52,4 @@ ...@@ -52,4 +52,4 @@
= hidden_field_tag :snippets, true = hidden_field_tag :snippets, true
= hidden_field_tag :repository_ref, @ref = hidden_field_tag :repository_ref, @ref
= button_tag 'Go' if ENV['RAILS_ENV'] == 'test' = button_tag 'Go' if ENV['RAILS_ENV'] == 'test'
.search-autocomplete-opts.hide{ :'data-autocomplete-path' => search_autocomplete_path, :'data-autocomplete-project-id' => @project.try(:id), :'data-autocomplete-project-ref' => @ref } .search-autocomplete-opts.d-none{ :'data-autocomplete-path' => search_autocomplete_path, :'data-autocomplete-project-id' => @project.try(:id), :'data-autocomplete-project-ref' => @ref }
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
.md-write-holder .md-write-holder
= yield = yield
.md.md-preview-holder.js-md-preview.hide.md-preview{ data: { url: url } } .md.md-preview-holder.js-md-preview.d-none.md-preview{ data: { url: url } }
.referenced-commands.hide .referenced-commands.d-none
- if referenced_users - if referenced_users
.referenced-users.hide .referenced-users.d-none
%span %span
= icon("exclamation-triangle") = icon("exclamation-triangle")
You are about to add You are about to add
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
.file-editor.code .file-editor.code
%pre.js-edit-mode-pane#editor= params[:content] || local_assigns[:blob_data] %pre.js-edit-mode-pane#editor= params[:content] || local_assigns[:blob_data]
- if local_assigns[:path] - if local_assigns[:path]
.js-edit-mode-pane#preview.hide .js-edit-mode-pane#preview.d-none
.center .center
%h2 %h2
%i.icon-spinner.icon-spin %i.icon-spinner.icon-spin
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
- if @branches.any? || @tags.any? || @tags_limit_exceeded - if @branches.any? || @tags.any? || @tags_limit_exceeded
%span %span
= link_to "…", "#", class: "js-details-expand label label-gray" = link_to "…", "#", class: "js-details-expand label label-gray"
%span.js-details-content.hide %span.js-details-content.d-none
= commit_branches_links(@project, @branches) = commit_branches_links(@project, @branches)
- if @tags_limit_exceeded - if @tags_limit_exceeded
= render 'limit_exceeded_message', objects: :tag, label_for_message: "tags" = render 'limit_exceeded_message', objects: :tag, label_for_message: "tags"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
.wrap .wrap
.frame.deleted .frame.deleted
= image_tag(old_blob_raw_url, alt: diff_file.old_path, lazy: false) = image_tag(old_blob_raw_url, alt: diff_file.old_path, lazy: false)
%p.image-info.hide %p.image-info.d-none
%span.meta-filesize= number_to_human_size(old_blob.size) %span.meta-filesize= number_to_human_size(old_blob.size)
| |
%strong W: %strong W:
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
%span.meta-height %span.meta-height
.wrap .wrap
= render partial: "projects/diffs/image_diff_frame", locals: { class_name: "added js-image-frame #{class_name}", position: position, note_type: DiffNote.name, image_path: blob_raw_url, alt: diff_file.new_path } = render partial: "projects/diffs/image_diff_frame", locals: { class_name: "added js-image-frame #{class_name}", position: position, note_type: DiffNote.name, image_path: blob_raw_url, alt: diff_file.new_path }
%p.image-info.hide %p.image-info.d-none
%span.meta-filesize= number_to_human_size(blob.size) %span.meta-filesize= number_to_human_size(blob.size)
| |
%strong W: %strong W:
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
%strong H: %strong H:
%span.meta-height %span.meta-height
.swipe.view.hide .swipe.view.d-none
.swipe-frame .swipe-frame
.frame.deleted .frame.deleted
= image_tag(old_blob_raw_url, alt: diff_file.old_path, lazy: false) = image_tag(old_blob_raw_url, alt: diff_file.old_path, lazy: false)
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
%span.top-handle %span.top-handle
%span.bottom-handle %span.bottom-handle
.onion-skin.view.hide .onion-skin.view.d-none
.onion-skin-frame .onion-skin-frame
.frame.deleted .frame.deleted
= image_tag(old_blob_raw_url, alt: diff_file.old_path, lazy: false) = image_tag(old_blob_raw_url, alt: diff_file.old_path, lazy: false)
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
.dragger{ :style => "left: 0px;" } .dragger{ :style => "left: 0px;" }
.opaque .opaque
.view-modes.hide .view-modes.d-none
%ul.view-modes-menu %ul.view-modes-menu
%li.two-up{ data: { mode: 'two-up' } } 2-up %li.two-up{ data: { mode: 'two-up' } } 2-up
%li.swipe{ data: { mode: 'swipe' } } Swipe %li.swipe{ data: { mode: 'swipe' } } Swipe
......
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
%strong Removed projects cannot be restored! %strong Removed projects cannot be restored!
= button_to 'Remove project', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_project_message(@project) } = button_to 'Remove project', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_project_message(@project) }
.save-project-loader.hide .save-project-loader.d-none
.center .center
%h2 %h2
%i.fa.fa-spinner.fa-spin %i.fa.fa-spinner.fa-spin
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
%p.prepend-top-default %p.prepend-top-default
You must have permission to create a project in a namespace before forking. You must have permission to create a project in a namespace before forking.
.save-project-loader.hide.js-fork-content .save-project-loader.d-none.js-fork-content
%h2.text-center %h2.text-center
= icon('spinner spin') = icon('spinner spin')
Forking repository Forking repository
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
%p.slead %p.slead
= s_('ContributorsPage|Please wait a moment, this page will automatically refresh when ready.') = s_('ContributorsPage|Please wait a moment, this page will automatically refresh when ready.')
.stat-graph.hide .stat-graph.d-none
.header.clearfix .header.clearfix
%h3#date_header.page-title %h3#date_header.page-title
%p.light %p.light
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
= icon('spinner', class: 'fa-spin') = icon('spinner', class: 'fa-spin')
%span.text %span.text
Checking branch availability… Checking branch availability…
.btn-group.available.hide .btn-group.available.d-none
%button.btn.js-create-merge-request.btn-success.btn-inverted{ type: 'button', data: { action: data_action } } %button.btn.js-create-merge-request.btn-success.btn-inverted{ type: 'button', data: { action: data_action } }
= value = value
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
%p %p
%button.btn.group.btn-group.d-flex.js-reveal-variables Reveal Variables %button.btn.group.btn-group.d-flex.js-reveal-variables Reveal Variables
%dl.js-build-variables.trigger-build-variables.hide %dl.js-build-variables.trigger-build-variables.d-none
- @build.trigger_variables.each do |trigger_variable| - @build.trigger_variables.each do |trigger_variable|
%dt.js-build-variable.trigger-build-variable= trigger_variable[:key] %dt.js-build-variable.trigger-build-variable= trigger_variable[:key]
%dd.js-build-value.trigger-build-value= trigger_variable[:value] %dd.js-build-value.trigger-build-value= trigger_variable[:value]
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
New Merge Request New Merge Request
= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], url: project_new_merge_request_path(@project), method: :get, html: { class: "merge-request-form form-inline js-requires-input" } do |f| = form_for [@project.namespace.becomes(Namespace), @project, @merge_request], url: project_new_merge_request_path(@project), method: :get, html: { class: "merge-request-form form-inline js-requires-input" } do |f|
.hide.alert.alert-danger.mr-compare-errors .d-none.alert.alert-danger.mr-compare-errors
.merge-request-branches.js-merge-request-new-compare.row{ 'data-target-project-url': project_new_merge_request_update_branches_path(@source_project), 'data-source-branch-url': project_new_merge_request_branch_from_path(@source_project), 'data-target-branch-url': project_new_merge_request_branch_to_path(@source_project) } .merge-request-branches.js-merge-request-new-compare.row{ 'data-target-project-url': project_new_merge_request_update_branches_path(@source_project), 'data-source-branch-url': project_new_merge_request_branch_from_path(@source_project), 'data-target-branch-url': project_new_merge_request_branch_to_path(@source_project) }
.col-md-6 .col-md-6
.panel.panel-default.panel-new-merge-request .panel.panel-default.panel-new-merge-request
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
= render "shared/import_form", f: f = render "shared/import_form", f: f
= render 'new_project_fields', f: f, project_name_id: "import-url-name" = render 'new_project_fields', f: f, project_name_id: "import-url-name"
.save-project-loader.hide .save-project-loader.d-none
.center .center
%h2 %h2
%i.fa.fa-spinner.fa-spin %i.fa.fa-spinner.fa-spin
......
...@@ -30,6 +30,6 @@ ...@@ -30,6 +30,6 @@
= link_to("#", class: "js-details-expand hidden-xs hidden-sm") do = link_to("#", class: "js-details-expand hidden-xs hidden-sm") do
%span.text-expander %span.text-expander
\... \...
%span.js-details-content.hide %span.js-details-content.d-none
= link_to @pipeline.sha, project_commit_path(@project, @pipeline.sha), class: "commit-sha commit-hash-full" = link_to @pipeline.sha, project_commit_path(@project, @pipeline.sha), class: "commit-sha commit-hash-full"
= clipboard_button(text: @pipeline.sha, title: "Copy commit SHA to clipboard") = clipboard_button(text: @pipeline.sha, title: "Copy commit SHA to clipboard")
%span.log_loading.hide %span.log_loading.d-none
%i.fa.fa-spinner.fa-spin %i.fa.fa-spinner.fa-spin
Loading commit data... Loading commit data...
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
.hint.js-with-description-hint .hint.js-with-description-hint
= link_to "#", class: "js-with-description-link" do = link_to "#", class: "js-with-description-link" do
Include description in commit message Include description in commit message
.hint.js-without-description-hint.hide .hint.js-without-description-hint.d-none
= link_to "#", class: "js-without-description-link" do = link_to "#", class: "js-without-description-link" do
Don't include description in commit message Don't include description in commit message
- if cookies[:hide_project_limit_message].blank? && !current_user.hide_project_limit && !current_user.can_create_project? && current_user.projects_limit > 0 - if cookies[:hide_project_limit_message].blank? && !current_user.d-none_project_limit && !current_user.can_create_project? && current_user.projects_limit > 0
.project-limit-message.alert.alert-warning.hidden-xs .project-limit-message.alert.alert-warning.hidden-xs
You won't be able to create new projects because you have reached your project limit. You won't be able to create new projects because you have reached your project limit.
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
supported supported
%span.uploading-container %span.uploading-container
%span.uploading-progress-container.hide %span.uploading-progress-container.d-none
= icon('file-image-o', class: 'toolbar-button-icon') = icon('file-image-o', class: 'toolbar-button-icon')
%span.attaching-file-message %span.attaching-file-message
-# Populated by app/assets/javascripts/dropzone_input.js -# Populated by app/assets/javascripts/dropzone_input.js
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
%span.uploading-spinner %span.uploading-spinner
= icon('spinner spin', class: 'toolbar-button-icon') = icon('spinner spin', class: 'toolbar-button-icon')
%span.uploading-error-container.hide %span.uploading-error-container.d-none
%span.uploading-error-icon %span.uploading-error-icon
= icon('file-image-o', class: 'toolbar-button-icon') = icon('file-image-o', class: 'toolbar-button-icon')
%span.uploading-error-message %span.uploading-error-message
...@@ -32,4 +32,4 @@ ...@@ -32,4 +32,4 @@
= icon('file-image-o', class: 'toolbar-button-icon') = icon('file-image-o', class: 'toolbar-button-icon')
Attach a file Attach a file
%button.btn.btn-secondary.btn-xs.hide.button-cancel-uploading-files{ type: 'button' } Cancel %button.btn.btn-secondary.btn-xs.d-none.button-cancel-uploading-files{ type: 'button' } Cancel
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