Commit 6cbadc953f172bf331c059b05c71ca85736d3030

Authored by Dmitriy Zaporozhets
1 parent 5c3e0f61

css class .hide has \!important so use gl-hide instead

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/gitlab_bootstrap/common.scss
@@ -131,3 +131,7 @@ pre.well-pre { @@ -131,3 +131,7 @@ pre.well-pre {
131 .dropdown-menu > li > a:focus { 131 .dropdown-menu > li > a:focus {
132 background: #29b; 132 background: #29b;
133 } 133 }
  134 +
  135 +.gl-hide {
  136 + display: none;
  137 +}
app/views/admin/broadcast_messages/index.html.haml
@@ -18,12 +18,12 @@ @@ -18,12 +18,12 @@
18 %div 18 %div
19 = link_to '#', class: 'js-toggle-colors-link' do 19 = link_to '#', class: 'js-toggle-colors-link' do
20 Customize colors 20 Customize colors
21 - .control-group.js-toggle-colors-container.hide 21 + .control-group.js-toggle-colors-container.gl-hide
22 = f.label :color, "Background Color" 22 = f.label :color, "Background Color"
23 .controls 23 .controls
24 = f.text_field :color, placeholder: "#AA33EE" 24 = f.text_field :color, placeholder: "#AA33EE"
25 .light Hex values as 3 double digit numbers, starting with a # sign. 25 .light Hex values as 3 double digit numbers, starting with a # sign.
26 - .control-group.js-toggle-colors-container.hide 26 + .control-group.js-toggle-colors-container.gl-hide
27 = f.label :font, "Font Color" 27 = f.label :font, "Font Color"
28 .controls 28 .controls
29 = f.text_field :font, placeholder: "#224466" 29 = f.text_field :font, placeholder: "#224466"
app/views/dashboard/_activities.html.haml
@@ -5,4 +5,4 @@ @@ -5,4 +5,4 @@
5 .content_list 5 .content_list
6 - else 6 - else
7 %p.nothing_here_message Projects activity will be displayed here 7 %p.nothing_here_message Projects activity will be displayed here
8 -.loading.hide 8 +.loading.gl-hide
app/views/groups/show.html.haml
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 .content_list 11 .content_list
12 - else 12 - else
13 %p.nothing_here_message Project activity will be displayed here 13 %p.nothing_here_message Project activity will be displayed here
14 - .loading.hide 14 + .loading.gl-hide
15 .side.col-md-4 15 .side.col-md-4
16 - if @group.description.present? 16 - if @group.description.present?
17 .description-block 17 .description-block
app/views/help/_shortcuts.html.haml
1 -#modal-shortcuts.modal.hide 1 +#modal-shortcuts.modal.gl-hide
2 .modal-header 2 .modal-header
3 %a.close{href: "#", "data-dismiss" => "modal"} × 3 %a.close{href: "#", "data-dismiss" => "modal"} ×
4 %h3 Keyboard Shortcuts 4 %h3 Keyboard Shortcuts
app/views/layouts/_head_panel.html.haml
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 %ul.nav.navbar-nav 10 %ul.nav.navbar-nav
11 %li 11 %li
12 %a 12 %a
13 - %div.hide.turbolink-spinner 13 + %div.gl-hide.turbolink-spinner
14 %i.icon-refresh.icon-spin 14 %i.icon-refresh.icon-spin
15 Loading... 15 Loading...
16 %li 16 %li
app/views/layouts/_public_head_panel.html.haml
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 %ul.nav 15 %ul.nav
16 %li 16 %li
17 %a 17 %a
18 - %div.hide.turbolink-spinner 18 + %div.gl-hide.turbolink-spinner
19 %i.icon-refresh.icon-spin 19 %i.icon-refresh.icon-spin
20 Loading... 20 Loading...
21 %li 21 %li
app/views/layouts/_search.html.haml
@@ -7,4 +7,4 @@ @@ -7,4 +7,4 @@
7 = hidden_field_tag :search_code, true 7 = hidden_field_tag :search_code, true
8 = hidden_field_tag :repository_ref, @ref 8 = hidden_field_tag :repository_ref, @ref
9 = submit_tag 'Go' if ENV['RAILS_ENV'] == 'test' 9 = submit_tag 'Go' if ENV['RAILS_ENV'] == 'test'
10 - .search-autocomplete-json.hide{:'data-autocomplete-opts' => search_autocomplete_source } 10 + .search-autocomplete-json.gl-hide{:'data-autocomplete-opts' => search_autocomplete_source }
app/views/profiles/accounts/show.html.haml
@@ -49,7 +49,7 @@ @@ -49,7 +49,7 @@
49 %div 49 %div
50 = f.text_field :username, required: true, class: 'input-xlarge input-xpadding' 50 = f.text_field :username, required: true, class: 'input-xlarge input-xpadding'
51 &nbsp; 51 &nbsp;
52 - %span.loading-gif.hide= image_tag "ajax_loader.gif" 52 + %span.loading-gif.gl-hide= image_tag "ajax_loader.gif"
53 %p.light 53 %p.light
54 = user_url(@user) 54 = user_url(@user)
55 %div 55 %div
app/views/profiles/notifications/show.html.haml
@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
43 %span.btn.btn-tiny 43 %span.btn.btn-tiny
44 %i.icon-chevron-down 44 %i.icon-chevron-down
45 %span Advanced notifications settings 45 %span Advanced notifications settings
46 -.js-toggle-visibility-container.hide 46 +.js-toggle-visibility-container.gl-hide
47 %hr 47 %hr
48 %h4 Groups: 48 %h4 Groups:
49 %ul.bordered-list 49 %ul.bordered-list
app/views/projects/blob/_remove.html.haml
1 -%div#modal-remove-blob.modal.hide 1 +%div#modal-remove-blob.modal.gl-hide
2 .modal-header 2 .modal-header
3 %a.close{href: "#", "data-dismiss" => "modal"} × 3 %a.close{href: "#", "data-dismiss" => "modal"} ×
4 %h3.page-title Remove #{@blob.name} 4 %h3.page-title Remove #{@blob.name}
app/views/projects/commit/_commit_box.html.haml
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 - if @branches.any? 47 - if @branches.any?
48 and in 48 and in
49 = link_to("#{pluralize(@branches.count, "other branch")}", "#", class: "js-details-expand") 49 = link_to("#{pluralize(@branches.count, "other branch")}", "#", class: "js-details-expand")
50 - %span.js-details-contain.hide 50 + %span.js-details-contain.gl-hide
51 = commit_branches_links(@project, @branches) 51 = commit_branches_links(@project, @branches)
52 52
53 .commit-box 53 .commit-box
app/views/projects/commits/_image.html.haml
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 .frame.deleted 11 .frame.deleted
12 %a{href: project_blob_path(@project, tree_join(@commit.parent_id, diff.old_path))} 12 %a{href: project_blob_path(@project, tree_join(@commit.parent_id, diff.old_path))}
13 %img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"} 13 %img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"}
14 - %p.image-info.hide 14 + %p.image-info.gl-hide
15 %span.meta-filesize= "#{number_to_human_size old_file.size}" 15 %span.meta-filesize= "#{number_to_human_size old_file.size}"
16 | 16 |
17 %b W: 17 %b W:
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 .frame.added 23 .frame.added
24 %a{href: project_blob_path(@project, tree_join(@commit.id, diff.new_path))} 24 %a{href: project_blob_path(@project, tree_join(@commit.id, diff.new_path))}
25 %img{src: "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"} 25 %img{src: "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"}
26 - %p.image-info.hide 26 + %p.image-info.gl-hide
27 %span.meta-filesize= "#{number_to_human_size file.size}" 27 %span.meta-filesize= "#{number_to_human_size file.size}"
28 | 28 |
29 %b W: 29 %b W:
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
32 %b H: 32 %b H:
33 %span.meta-height 33 %span.meta-height
34 34
35 - %div.swipe.view.hide 35 + %div.swipe.view.gl-hide
36 .swipe-frame 36 .swipe-frame
37 .frame.deleted 37 .frame.deleted
38 %img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"} 38 %img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"}
@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
43 %span.top-handle 43 %span.top-handle
44 %span.bottom-handle 44 %span.bottom-handle
45 45
46 - %div.onion-skin.view.hide 46 + %div.onion-skin.view.gl-hide
47 .onion-skin-frame 47 .onion-skin-frame
48 .frame.deleted 48 .frame.deleted
49 %img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"} 49 %img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"}
@@ -56,8 +56,8 @@ @@ -56,8 +56,8 @@
56 .opaque 56 .opaque
57 57
58 58
59 - .view-modes.hide 59 + .view-modes.gl-hide
60 %ul.view-modes-menu 60 %ul.view-modes-menu
61 %li.two-up{data: {mode: 'two-up'}} 2-up 61 %li.two-up{data: {mode: 'two-up'}} 2-up
62 %li.swipe{data: {mode: 'swipe'}} Swipe 62 %li.swipe{data: {mode: 'swipe'}} Swipe
63 - %li.onion-skin{data: {mode: 'onion-skin'}} Onion skin  
64 \ No newline at end of file 63 \ No newline at end of file
  64 + %li.onion-skin{data: {mode: 'onion-skin'}} Onion skin
app/views/projects/create.js.haml
@@ -5,5 +5,5 @@ @@ -5,5 +5,5 @@
5 :plain 5 :plain
6 $(".project-edit-errors").html("#{escape_javascript(render('errors'))}"); 6 $(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
7 $('.project-submit').enable(); 7 $('.project-submit').enable();
8 - $('.save-project-loader').hide(); 8 + $('.save-project-loader').gl-hide();
9 $('.project-edit-container').show(); 9 $('.project-edit-container').show();
app/views/projects/edit.html.haml
@@ -97,7 +97,7 @@ @@ -97,7 +97,7 @@
97 Show it to me 97 Show it to me
98 %i.icon-chevron-down 98 %i.icon-chevron-down
99 99
100 - .js-toggle-visibility-container.hide 100 + .js-toggle-visibility-container.gl-hide
101 - if can? current_user, :archive_project, @project 101 - if can? current_user, :archive_project, @project
102 .ui-box.ui-box-danger 102 .ui-box.ui-box-danger
103 .title 103 .title
@@ -182,7 +182,7 @@ @@ -182,7 +182,7 @@
182 - else 182 - else
183 %p.nothing_here_message Only project owner can remove a project 183 %p.nothing_here_message Only project owner can remove a project
184 184
185 -.save-project-loader.hide 185 +.save-project-loader.gl-hide
186 %center 186 %center
187 = image_tag "ajax_loader.gif" 187 = image_tag "ajax_loader.gif"
188 %h3 Saving project. 188 %h3 Saving project.
app/views/projects/graphs/show.html.haml
@@ -21,14 +21,14 @@ @@ -21,14 +21,14 @@
21 %ol.contributors-list.clearfix 21 %ol.contributors-list.clearfix
22 22
23 :javascript 23 :javascript
24 - $(".stat-graph").hide(); 24 + $(".stat-graph").gl-hide();
25 25
26 $.ajax({ 26 $.ajax({
27 type: "GET", 27 type: "GET",
28 url: location.href, 28 url: location.href,
29 complete: function() { 29 complete: function() {
30 $(".stat-graph").fadeIn(); 30 $(".stat-graph").fadeIn();
31 - $(".loading-graph").hide(); 31 + $(".loading-graph").gl-hide();
32 }, 32 },
33 dataType: "script" 33 dataType: "script"
34 }); 34 });
app/views/projects/issues/_issues.html.haml
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 .title 2 .title
3 = check_box_tag "check_all_issues", nil, false, class: "check_all_issues left" 3 = check_box_tag "check_all_issues", nil, false, class: "check_all_issues left"
4 .clearfix 4 .clearfix
5 - .issues_bulk_update.hide 5 + .issues_bulk_update.gl-hide
6 = form_tag bulk_update_project_issues_path(@project), method: :post do 6 = form_tag bulk_update_project_issues_path(@project), method: :post do
7 %span Update selected issues with &nbsp; 7 %span Update selected issues with &nbsp;
8 = select_tag('update[status]', options_for_select(['open', 'closed']), prompt: "Status") 8 = select_tag('update[status]', options_for_select(['open', 'closed']), prompt: "Status")
app/views/projects/issues/update.js.haml
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 $('.issue-box .context').html("#{escape_javascript(render partial: 'issue_context', locals: { issue: @issue })}"); 6 $('.issue-box .context').html("#{escape_javascript(render partial: 'issue_context', locals: { issue: @issue })}");
7 $('.issue-box .context').effect('highlight'); 7 $('.issue-box .context').effect('highlight');
8 $('.chosen').chosen(); 8 $('.chosen').chosen();
9 - $('.edit-issue.inline-update input[type="submit"]').hide(); 9 + $('.edit-issue.inline-update input[type="submit"]').gl-hide();
10 - if @issue.milestone 10 - if @issue.milestone
11 $('.milestone-nav-link').replaceWith("#{escape_javascript(link_to "| #{@issue.milestone.title}", project_milestone_path(@issue.project, @issue.milestone), :class => 'milestone-nav-link')}") 11 $('.milestone-nav-link').replaceWith("#{escape_javascript(link_to "| #{@issue.milestone.title}", project_milestone_path(@issue.project, @issue.milestone), :class => 'milestone-nav-link')}")
12 - else 12 - else
app/views/projects/merge_requests/show/_commits.html.haml
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 8 of #{@commits.count} commits displayed. 12 8 of #{@commits.count} commits displayed.
13 %strong 13 %strong
14 %a.show-all-commits Click here to show all 14 %a.show-all-commits Click here to show all
15 - %ul.all-commits.hide.well-list 15 + %ul.all-commits.gl-hide.well-list
16 - @commits.each do |commit| 16 - @commits.each do |commit|
17 = render "projects/commits/commit", commit: commit, project: @merge_request.source_project 17 = render "projects/commits/commit", commit: commit, project: @merge_request.source_project
18 18
app/views/projects/merge_requests/show/_how_to_merge.html.haml
1 -%div#modal_merge_info.modal.hide 1 +%div#modal_merge_info.modal.gl-hide
2 .modal-header 2 .modal-header
3 %a.close{href: "#", "data-dismiss" => "modal"} × 3 %a.close{href: "#", "data-dismiss" => "modal"} ×
4 %h3 How to merge 4 %h3 How to merge
@@ -46,6 +46,6 @@ @@ -46,6 +46,6 @@
46 modal.show(); 46 modal.show();
47 }); 47 });
48 $('.modal-header .close').bind("click", function(){ 48 $('.modal-header .close').bind("click", function(){
49 - modal.hide(); 49 + modal.gl-hide();
50 }) 50 })
51 }) 51 })
app/views/projects/merge_requests/show/_mr_accept.html.haml
@@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
46 .alert.alert-info 46 .alert.alert-info
47 %strong This merge request already can not be merged. Try to reload page. 47 %strong This merge request already can not be merged. Try to reload page.
48 48
49 - .merge-in-progress.hide 49 + .merge-in-progress.gl-hide
50 %span.cgray 50 %span.cgray
51 %i.icon-refresh.icon-spin 51 %i.icon-refresh.icon-spin
52 &nbsp; 52 &nbsp;
app/views/projects/new.html.haml
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 = link_to "#", class: 'js-toggle-visibility-link' do 13 = link_to "#", class: 'js-toggle-visibility-link' do
14 %span Customize repository name? 14 %span Customize repository name?
15 15
16 - .control-group.js-toggle-visibility-container.hide 16 + .control-group.js-toggle-visibility-container.gl-hide
17 = f.label :path do 17 = f.label :path do
18 %span Repository name 18 %span Repository name
19 .controls 19 .controls
@@ -59,7 +59,7 @@ @@ -59,7 +59,7 @@
59 = link_to new_group_path, class: "btn btn-tiny" do 59 = link_to new_group_path, class: "btn btn-tiny" do
60 Create a group 60 Create a group
61 61
62 -.save-project-loader.hide 62 +.save-project-loader.gl-hide
63 %center 63 %center
64 = image_tag "ajax_loader.gif" 64 = image_tag "ajax_loader.gif"
65 %h3 Creating project &amp; repository. 65 %h3 Creating project &amp; repository.
app/views/projects/notes/_discussion.html.haml
@@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
40 .file= render "projects/notes/discussion_diff", discussion_notes: discussion_notes, note: note 40 .file= render "projects/notes/discussion_diff", discussion_notes: discussion_notes, note: note
41 - else 41 - else
42 = link_to 'show outdated discussion', '#', class: 'js-show-outdated-discussion' 42 = link_to 'show outdated discussion', '#', class: 'js-show-outdated-discussion'
43 - %div.hide.outdated-discussion 43 + %div.gl-hide.outdated-discussion
44 .content 44 .content
45 .notes{ rel: discussion_notes.first.discussion_id } 45 .notes{ rel: discussion_notes.first.discussion_id }
46 = render discussion_notes 46 = render discussion_notes
@@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
53 = render "projects/notes/discussion_reply_button", note: discussion_notes.first 53 = render "projects/notes/discussion_reply_button", note: discussion_notes.first
54 54
55 -# will be shown when the other one is hidden 55 -# will be shown when the other one is hidden
56 - .discussion-hidden.content.hide 56 + .discussion-hidden.content.gl-hide
57 .note 57 .note
58 %em Hidden discussion. 58 %em Hidden discussion.
59 = link_to "javascript:;", class: "js-details-target js-toggler-target" do 59 = link_to "javascript:;", class: "js-details-target js-toggler-target" do
app/views/projects/show.html.haml
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 = render "events/event_last_push", event: @last_push 5 = render "events/event_last_push", event: @last_push
6 = render 'shared/event_filter' 6 = render 'shared/event_filter'
7 .content_list 7 .content_list
8 - .loading.hide 8 + .loading.gl-hide
9 .col-md-3.project-side 9 .col-md-3.project-side
10 .clearfix 10 .clearfix
11 - if @project.archived? 11 - if @project.archived?
app/views/projects/tree/_blob_item.html.haml
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 = tree_icon(type) 3 = tree_icon(type)
4 %span= link_to truncate(blob_item.name, length: 40), project_blob_path(@project, tree_join(@id || @commit.id, blob_item.name)) 4 %span= link_to truncate(blob_item.name, length: 40), project_blob_path(@project, tree_join(@id || @commit.id, blob_item.name))
5 %td.tree_time_ago.cgray 5 %td.tree_time_ago.cgray
6 - %span.log_loading.hide 6 + %span.log_loading.gl-hide
7 Loading commit data... 7 Loading commit data...
8 = image_tag "ajax_loader_tree.gif", width: 14 8 = image_tag "ajax_loader_tree.gif", width: 14
9 %td.tree_commit{ colspan: 2 } 9 %td.tree_commit{ colspan: 2 }
app/views/projects/tree/_tree_item.html.haml
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 = tree_icon(type) 3 = tree_icon(type)
4 %span= link_to truncate(tree_item.name, length: 40), project_tree_path(@project, tree_join(@id || @commit.id, tree_item.name)) 4 %span= link_to truncate(tree_item.name, length: 40), project_tree_path(@project, tree_join(@id || @commit.id, tree_item.name))
5 %td.tree_time_ago.cgray 5 %td.tree_time_ago.cgray
6 - %span.log_loading.hide 6 + %span.log_loading.gl-hide
7 Loading commit data... 7 Loading commit data...
8 = image_tag "ajax_loader_tree.gif", width: 14 8 = image_tag "ajax_loader_tree.gif", width: 14
9 %td.tree_commit{ colspan: 2 } 9 %td.tree_commit{ colspan: 2 }
app/views/projects/update.js.haml
@@ -4,6 +4,6 @@ @@ -4,6 +4,6 @@
4 - else 4 - else
5 :plain 5 :plain
6 $(".project-edit-errors").html("#{escape_javascript(render('errors'))}"); 6 $(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
7 - $('.save-project-loader').hide(); 7 + $('.save-project-loader').gl-hide();
8 $('.project-edit-container').show(); 8 $('.project-edit-container').show();
9 $('.project-edit-content .btn-save').enableButton(); 9 $('.project-edit-content .btn-save').enableButton();
app/views/projects/wikis/_new.html.haml
1 -%div#modal-new-wiki.modal.hide 1 +%div#modal-new-wiki.modal.gl-hide
2 .modal-header 2 .modal-header
3 %a.close{href: "#", "data-dismiss" => "modal"} × 3 %a.close{href: "#", "data-dismiss" => "modal"} ×
4 %h3.page-title New Wiki Page 4 %h3.page-title New Wiki Page
app/views/shared/_no_ssh.html.haml
1 -- if cookies[:hide_no_ssh_message].blank? && current_user.require_ssh_key? && !current_user.hide_no_ssh_key 1 +- if cookies[:hide_no_ssh_message].blank? && current_user.require_ssh_key? && !current_user.gl-hide_no_ssh_key
2 .no-ssh-key-message 2 .no-ssh-key-message
3 .container 3 .container
4 You won't be able to pull or push project code via SSH until you #{link_to 'add an SSH key', new_profile_key_path} to your profile 4 You won't be able to pull or push project code via SSH until you #{link_to 'add an SSH key', new_profile_key_path} to your profile
app/views/users_groups/_users_group.html.haml
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 = link_to group_users_group_path(@group, member), data: { confirm: remove_user_from_group_message(@group, user) }, method: :delete, remote: true, class: "btn-tiny btn btn-remove", title: 'Remove user from group' do 16 = link_to group_users_group_path(@group, member), data: { confirm: remove_user_from_group_message(@group, user) }, method: :delete, remote: true, class: "btn-tiny btn btn-remove", title: 'Remove user from group' do
17 %i.icon-minus.icon-white 17 %i.icon-minus.icon-white
18 18
19 - .edit-member.hide.js-toggle-content 19 + .edit-member.gl-hide.js-toggle-content
20 = form_for [@group, member], remote: true do |f| 20 = form_for [@group, member], remote: true do |f|
21 .alert.prepend-top-20 21 .alert.prepend-top-20
22 = f.select :group_access, options_for_select(UsersGroup.group_access_roles, member.group_access) 22 = f.select :group_access, options_for_select(UsersGroup.group_access_roles, member.group_access)