Commit 6cbadc953f172bf331c059b05c71ca85736d3030
1 parent
5c3e0f61
Exists in
spb-stable
and in
3 other branches
css class .hide has \!important so use gl-hide instead
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
30 changed files
with
44 additions
and
40 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/common.scss
app/views/admin/broadcast_messages/index.html.haml
... | ... | @@ -18,12 +18,12 @@ |
18 | 18 | %div |
19 | 19 | = link_to '#', class: 'js-toggle-colors-link' do |
20 | 20 | Customize colors |
21 | - .control-group.js-toggle-colors-container.hide | |
21 | + .control-group.js-toggle-colors-container.gl-hide | |
22 | 22 | = f.label :color, "Background Color" |
23 | 23 | .controls |
24 | 24 | = f.text_field :color, placeholder: "#AA33EE" |
25 | 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 | 27 | = f.label :font, "Font Color" |
28 | 28 | .controls |
29 | 29 | = f.text_field :font, placeholder: "#224466" | ... | ... |
app/views/dashboard/_activities.html.haml
app/views/groups/show.html.haml
app/views/help/_shortcuts.html.haml
app/views/layouts/_head_panel.html.haml
app/views/layouts/_public_head_panel.html.haml
app/views/layouts/_search.html.haml
... | ... | @@ -7,4 +7,4 @@ |
7 | 7 | = hidden_field_tag :search_code, true |
8 | 8 | = hidden_field_tag :repository_ref, @ref |
9 | 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 | 49 | %div |
50 | 50 | = f.text_field :username, required: true, class: 'input-xlarge input-xpadding' |
51 | 51 | |
52 | - %span.loading-gif.hide= image_tag "ajax_loader.gif" | |
52 | + %span.loading-gif.gl-hide= image_tag "ajax_loader.gif" | |
53 | 53 | %p.light |
54 | 54 | = user_url(@user) |
55 | 55 | %div | ... | ... |
app/views/profiles/notifications/show.html.haml
app/views/projects/blob/_remove.html.haml
app/views/projects/commit/_commit_box.html.haml
... | ... | @@ -47,7 +47,7 @@ |
47 | 47 | - if @branches.any? |
48 | 48 | and in |
49 | 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 | 51 | = commit_branches_links(@project, @branches) |
52 | 52 | |
53 | 53 | .commit-box | ... | ... |
app/views/projects/commits/_image.html.haml
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | .frame.deleted |
12 | 12 | %a{href: project_blob_path(@project, tree_join(@commit.parent_id, diff.old_path))} |
13 | 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 | 15 | %span.meta-filesize= "#{number_to_human_size old_file.size}" |
16 | 16 | | |
17 | 17 | %b W: |
... | ... | @@ -23,7 +23,7 @@ |
23 | 23 | .frame.added |
24 | 24 | %a{href: project_blob_path(@project, tree_join(@commit.id, diff.new_path))} |
25 | 25 | %img{src: "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"} |
26 | - %p.image-info.hide | |
26 | + %p.image-info.gl-hide | |
27 | 27 | %span.meta-filesize= "#{number_to_human_size file.size}" |
28 | 28 | | |
29 | 29 | %b W: |
... | ... | @@ -32,7 +32,7 @@ |
32 | 32 | %b H: |
33 | 33 | %span.meta-height |
34 | 34 | |
35 | - %div.swipe.view.hide | |
35 | + %div.swipe.view.gl-hide | |
36 | 36 | .swipe-frame |
37 | 37 | .frame.deleted |
38 | 38 | %img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"} |
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | %span.top-handle |
44 | 44 | %span.bottom-handle |
45 | 45 | |
46 | - %div.onion-skin.view.hide | |
46 | + %div.onion-skin.view.gl-hide | |
47 | 47 | .onion-skin-frame |
48 | 48 | .frame.deleted |
49 | 49 | %img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"} |
... | ... | @@ -56,8 +56,8 @@ |
56 | 56 | .opaque |
57 | 57 | |
58 | 58 | |
59 | - .view-modes.hide | |
59 | + .view-modes.gl-hide | |
60 | 60 | %ul.view-modes-menu |
61 | 61 | %li.two-up{data: {mode: 'two-up'}} 2-up |
62 | 62 | %li.swipe{data: {mode: 'swipe'}} Swipe |
63 | - %li.onion-skin{data: {mode: 'onion-skin'}} Onion skin | |
64 | 63 | \ No newline at end of file |
64 | + %li.onion-skin{data: {mode: 'onion-skin'}} Onion skin | ... | ... |
app/views/projects/create.js.haml
app/views/projects/edit.html.haml
... | ... | @@ -97,7 +97,7 @@ |
97 | 97 | Show it to me |
98 | 98 | %i.icon-chevron-down |
99 | 99 | |
100 | - .js-toggle-visibility-container.hide | |
100 | + .js-toggle-visibility-container.gl-hide | |
101 | 101 | - if can? current_user, :archive_project, @project |
102 | 102 | .ui-box.ui-box-danger |
103 | 103 | .title |
... | ... | @@ -182,7 +182,7 @@ |
182 | 182 | - else |
183 | 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 | 186 | %center |
187 | 187 | = image_tag "ajax_loader.gif" |
188 | 188 | %h3 Saving project. | ... | ... |
app/views/projects/graphs/show.html.haml
... | ... | @@ -21,14 +21,14 @@ |
21 | 21 | %ol.contributors-list.clearfix |
22 | 22 | |
23 | 23 | :javascript |
24 | - $(".stat-graph").hide(); | |
24 | + $(".stat-graph").gl-hide(); | |
25 | 25 | |
26 | 26 | $.ajax({ |
27 | 27 | type: "GET", |
28 | 28 | url: location.href, |
29 | 29 | complete: function() { |
30 | 30 | $(".stat-graph").fadeIn(); |
31 | - $(".loading-graph").hide(); | |
31 | + $(".loading-graph").gl-hide(); | |
32 | 32 | }, |
33 | 33 | dataType: "script" |
34 | 34 | }); | ... | ... |
app/views/projects/issues/_issues.html.haml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | .title |
3 | 3 | = check_box_tag "check_all_issues", nil, false, class: "check_all_issues left" |
4 | 4 | .clearfix |
5 | - .issues_bulk_update.hide | |
5 | + .issues_bulk_update.gl-hide | |
6 | 6 | = form_tag bulk_update_project_issues_path(@project), method: :post do |
7 | 7 | %span Update selected issues with |
8 | 8 | = select_tag('update[status]', options_for_select(['open', 'closed']), prompt: "Status") | ... | ... |
app/views/projects/issues/update.js.haml
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | $('.issue-box .context').html("#{escape_javascript(render partial: 'issue_context', locals: { issue: @issue })}"); |
7 | 7 | $('.issue-box .context').effect('highlight'); |
8 | 8 | $('.chosen').chosen(); |
9 | - $('.edit-issue.inline-update input[type="submit"]').hide(); | |
9 | + $('.edit-issue.inline-update input[type="submit"]').gl-hide(); | |
10 | 10 | - if @issue.milestone |
11 | 11 | $('.milestone-nav-link').replaceWith("#{escape_javascript(link_to "| #{@issue.milestone.title}", project_milestone_path(@issue.project, @issue.milestone), :class => 'milestone-nav-link')}") |
12 | 12 | - else | ... | ... |
app/views/projects/merge_requests/show/_commits.html.haml
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 | 8 of #{@commits.count} commits displayed. |
13 | 13 | %strong |
14 | 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 | 16 | - @commits.each do |commit| |
17 | 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 | 2 | .modal-header |
3 | 3 | %a.close{href: "#", "data-dismiss" => "modal"} × |
4 | 4 | %h3 How to merge |
... | ... | @@ -46,6 +46,6 @@ |
46 | 46 | modal.show(); |
47 | 47 | }); |
48 | 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
app/views/projects/new.html.haml
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | = link_to "#", class: 'js-toggle-visibility-link' do |
14 | 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 | 17 | = f.label :path do |
18 | 18 | %span Repository name |
19 | 19 | .controls |
... | ... | @@ -59,7 +59,7 @@ |
59 | 59 | = link_to new_group_path, class: "btn btn-tiny" do |
60 | 60 | Create a group |
61 | 61 | |
62 | -.save-project-loader.hide | |
62 | +.save-project-loader.gl-hide | |
63 | 63 | %center |
64 | 64 | = image_tag "ajax_loader.gif" |
65 | 65 | %h3 Creating project & repository. | ... | ... |
app/views/projects/notes/_discussion.html.haml
... | ... | @@ -40,7 +40,7 @@ |
40 | 40 | .file= render "projects/notes/discussion_diff", discussion_notes: discussion_notes, note: note |
41 | 41 | - else |
42 | 42 | = link_to 'show outdated discussion', '#', class: 'js-show-outdated-discussion' |
43 | - %div.hide.outdated-discussion | |
43 | + %div.gl-hide.outdated-discussion | |
44 | 44 | .content |
45 | 45 | .notes{ rel: discussion_notes.first.discussion_id } |
46 | 46 | = render discussion_notes |
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | = render "projects/notes/discussion_reply_button", note: discussion_notes.first |
54 | 54 | |
55 | 55 | -# will be shown when the other one is hidden |
56 | - .discussion-hidden.content.hide | |
56 | + .discussion-hidden.content.gl-hide | |
57 | 57 | .note |
58 | 58 | %em Hidden discussion. |
59 | 59 | = link_to "javascript:;", class: "js-details-target js-toggler-target" do | ... | ... |
app/views/projects/show.html.haml
app/views/projects/tree/_blob_item.html.haml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | = tree_icon(type) |
4 | 4 | %span= link_to truncate(blob_item.name, length: 40), project_blob_path(@project, tree_join(@id || @commit.id, blob_item.name)) |
5 | 5 | %td.tree_time_ago.cgray |
6 | - %span.log_loading.hide | |
6 | + %span.log_loading.gl-hide | |
7 | 7 | Loading commit data... |
8 | 8 | = image_tag "ajax_loader_tree.gif", width: 14 |
9 | 9 | %td.tree_commit{ colspan: 2 } | ... | ... |
app/views/projects/tree/_tree_item.html.haml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | = tree_icon(type) |
4 | 4 | %span= link_to truncate(tree_item.name, length: 40), project_tree_path(@project, tree_join(@id || @commit.id, tree_item.name)) |
5 | 5 | %td.tree_time_ago.cgray |
6 | - %span.log_loading.hide | |
6 | + %span.log_loading.gl-hide | |
7 | 7 | Loading commit data... |
8 | 8 | = image_tag "ajax_loader_tree.gif", width: 14 |
9 | 9 | %td.tree_commit{ colspan: 2 } | ... | ... |
app/views/projects/update.js.haml
... | ... | @@ -4,6 +4,6 @@ |
4 | 4 | - else |
5 | 5 | :plain |
6 | 6 | $(".project-edit-errors").html("#{escape_javascript(render('errors'))}"); |
7 | - $('.save-project-loader').hide(); | |
7 | + $('.save-project-loader').gl-hide(); | |
8 | 8 | $('.project-edit-container').show(); |
9 | 9 | $('.project-edit-content .btn-save').enableButton(); | ... | ... |
app/views/projects/wikis/_new.html.haml
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 | 2 | .no-ssh-key-message |
3 | 3 | .container |
4 | 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 | 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 | 17 | %i.icon-minus.icon-white |
18 | 18 | |
19 | - .edit-member.hide.js-toggle-content | |
19 | + .edit-member.gl-hide.js-toggle-content | |
20 | 20 | = form_for [@group, member], remote: true do |f| |
21 | 21 | .alert.prepend-top-20 |
22 | 22 | = f.select :group_access, options_for_select(UsersGroup.group_access_roles, member.group_access) | ... | ... |