Unverified Commit 6cbadc95 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

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


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent be444cb6384f
......@@ -131,3 +131,7 @@ pre.well-pre {
.dropdown-menu > li > a:focus {
background: #29b;
}
.gl-hide {
display: none;
}
......@@ -18,12 +18,12 @@
%div
= link_to '#', class: 'js-toggle-colors-link' do
Customize colors
.control-group.js-toggle-colors-container.hide
.control-group.js-toggle-colors-container.gl-hide
= f.label :color, "Background Color"
.controls
= f.text_field :color, placeholder: "#AA33EE"
.light Hex values as 3 double digit numbers, starting with a # sign.
.control-group.js-toggle-colors-container.hide
.control-group.js-toggle-colors-container.gl-hide
= f.label :font, "Font Color"
.controls
= f.text_field :font, placeholder: "#224466"
......
......@@ -5,4 +5,4 @@
.content_list
- else
%p.nothing_here_message Projects activity will be displayed here
.loading.hide
.loading.gl-hide
......@@ -11,7 +11,7 @@
.content_list
- else
%p.nothing_here_message Project activity will be displayed here
.loading.hide
.loading.gl-hide
.side.col-md-4
- if @group.description.present?
.description-block
......
#modal-shortcuts.modal.hide
#modal-shortcuts.modal.gl-hide
.modal-header
%a.close{href: "#", "data-dismiss" => "modal"} ×
%h3 Keyboard Shortcuts
......
......@@ -10,7 +10,7 @@
%ul.nav.navbar-nav
%li
%a
%div.hide.turbolink-spinner
%div.gl-hide.turbolink-spinner
%i.icon-refresh.icon-spin
Loading...
%li
......
......@@ -15,7 +15,7 @@
%ul.nav
%li
%a
%div.hide.turbolink-spinner
%div.gl-hide.turbolink-spinner
%i.icon-refresh.icon-spin
Loading...
%li
......
......@@ -7,4 +7,4 @@
= hidden_field_tag :search_code, true
= hidden_field_tag :repository_ref, @ref
= submit_tag 'Go' if ENV['RAILS_ENV'] == 'test'
.search-autocomplete-json.hide{:'data-autocomplete-opts' => search_autocomplete_source }
.search-autocomplete-json.gl-hide{:'data-autocomplete-opts' => search_autocomplete_source }
......@@ -49,7 +49,7 @@
%div
= f.text_field :username, required: true, class: 'input-xlarge input-xpadding'
&nbsp;
%span.loading-gif.hide= image_tag "ajax_loader.gif"
%span.loading-gif.gl-hide= image_tag "ajax_loader.gif"
%p.light
= user_url(@user)
%div
......
......@@ -43,7 +43,7 @@
%span.btn.btn-tiny
%i.icon-chevron-down
%span Advanced notifications settings
.js-toggle-visibility-container.hide
.js-toggle-visibility-container.gl-hide
%hr
%h4 Groups:
%ul.bordered-list
......
%div#modal-remove-blob.modal.hide
%div#modal-remove-blob.modal.gl-hide
.modal-header
%a.close{href: "#", "data-dismiss" => "modal"} ×
%h3.page-title Remove #{@blob.name}
......
......@@ -47,7 +47,7 @@
- if @branches.any?
and in
= link_to("#{pluralize(@branches.count, "other branch")}", "#", class: "js-details-expand")
%span.js-details-contain.hide
%span.js-details-contain.gl-hide
= commit_branches_links(@project, @branches)
.commit-box
......
......@@ -11,7 +11,7 @@
.frame.deleted
%a{href: project_blob_path(@project, tree_join(@commit.parent_id, diff.old_path))}
%img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"}
%p.image-info.hide
%p.image-info.gl-hide
%span.meta-filesize= "#{number_to_human_size old_file.size}"
|
%b W:
......@@ -23,7 +23,7 @@
.frame.added
%a{href: project_blob_path(@project, tree_join(@commit.id, diff.new_path))}
%img{src: "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"}
%p.image-info.hide
%p.image-info.gl-hide
%span.meta-filesize= "#{number_to_human_size file.size}"
|
%b W:
......@@ -32,7 +32,7 @@
%b H:
%span.meta-height
%div.swipe.view.hide
%div.swipe.view.gl-hide
.swipe-frame
.frame.deleted
%img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"}
......@@ -43,7 +43,7 @@
%span.top-handle
%span.bottom-handle
%div.onion-skin.view.hide
%div.onion-skin.view.gl-hide
.onion-skin-frame
.frame.deleted
%img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"}
......@@ -56,8 +56,8 @@
.opaque
.view-modes.hide
.view-modes.gl-hide
%ul.view-modes-menu
%li.two-up{data: {mode: 'two-up'}} 2-up
%li.swipe{data: {mode: 'swipe'}} Swipe
%li.onion-skin{data: {mode: 'onion-skin'}} Onion skin
\ No newline at end of file
%li.onion-skin{data: {mode: 'onion-skin'}} Onion skin
......@@ -5,5 +5,5 @@
:plain
$(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
$('.project-submit').enable();
$('.save-project-loader').hide();
$('.save-project-loader').gl-hide();
$('.project-edit-container').show();
......@@ -97,7 +97,7 @@
Show it to me
%i.icon-chevron-down
.js-toggle-visibility-container.hide
.js-toggle-visibility-container.gl-hide
- if can? current_user, :archive_project, @project
.ui-box.ui-box-danger
.title
......@@ -182,7 +182,7 @@
- else
%p.nothing_here_message Only project owner can remove a project
.save-project-loader.hide
.save-project-loader.gl-hide
%center
= image_tag "ajax_loader.gif"
%h3 Saving project.
......
......@@ -21,14 +21,14 @@
%ol.contributors-list.clearfix
:javascript
$(".stat-graph").hide();
$(".stat-graph").gl-hide();
$.ajax({
type: "GET",
url: location.href,
complete: function() {
$(".stat-graph").fadeIn();
$(".loading-graph").hide();
$(".loading-graph").gl-hide();
},
dataType: "script"
});
......@@ -2,7 +2,7 @@
.title
= check_box_tag "check_all_issues", nil, false, class: "check_all_issues left"
.clearfix
.issues_bulk_update.hide
.issues_bulk_update.gl-hide
= form_tag bulk_update_project_issues_path(@project), method: :post do
%span Update selected issues with &nbsp;
= select_tag('update[status]', options_for_select(['open', 'closed']), prompt: "Status")
......
......@@ -6,7 +6,7 @@
$('.issue-box .context').html("#{escape_javascript(render partial: 'issue_context', locals: { issue: @issue })}");
$('.issue-box .context').effect('highlight');
$('.chosen').chosen();
$('.edit-issue.inline-update input[type="submit"]').hide();
$('.edit-issue.inline-update input[type="submit"]').gl-hide();
- if @issue.milestone
$('.milestone-nav-link').replaceWith("#{escape_javascript(link_to "| #{@issue.milestone.title}", project_milestone_path(@issue.project, @issue.milestone), :class => 'milestone-nav-link')}")
- else
......
......@@ -12,7 +12,7 @@
8 of #{@commits.count} commits displayed.
%strong
%a.show-all-commits Click here to show all
%ul.all-commits.hide.well-list
%ul.all-commits.gl-hide.well-list
- @commits.each do |commit|
= render "projects/commits/commit", commit: commit, project: @merge_request.source_project
......
%div#modal_merge_info.modal.hide
%div#modal_merge_info.modal.gl-hide
.modal-header
%a.close{href: "#", "data-dismiss" => "modal"} ×
%h3 How to merge
......@@ -46,6 +46,6 @@
modal.show();
});
$('.modal-header .close').bind("click", function(){
modal.hide();
modal.gl-hide();
})
})
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