Skip to content

Commit

Permalink
Include tw bootstrap manually. Fix hide class
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
  • Loading branch information
dzaporozhets committed Jan 1, 2014
1 parent a379bd0 commit 8c1d414
Show file tree
Hide file tree
Showing 37 changed files with 127 additions and 50 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/behaviors/toggler_behavior.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $ ->
toggleClass('icon-chevron-down').
toggleClass('icon-chevron-up')
container = $(".js-toggle-visibility-container")
container.toggleClass("gl-hide")
container.toggleClass("hide")
e.preventDefault()

$("body").on "click", ".js-toggle-button", (e) ->
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
@import "main/fonts.scss";

/**
* Twitter bootstrap:
* Customized Twitter bootstrap
*/
@import 'bootstrap';
@import 'gl_bootstrap';

/**
* Font icons
Expand Down
4 changes: 0 additions & 4 deletions app/assets/stylesheets/generic/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ pre.well-pre {
background: #29b;
}

.gl-hide {
display: none;
}

.breadcrumb > li + li:before {
content: "/";
padding: 0;
Expand Down
80 changes: 80 additions & 0 deletions app/assets/stylesheets/gl_bootstrap.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// Core variables and mixins
@import "bootstrap/variables";
@import "bootstrap/mixins";

// Reset
@import "bootstrap/normalize";
@import "bootstrap/print";

// Core CSS
@import "bootstrap/scaffolding";
@import "bootstrap/type";
@import "bootstrap/code";
@import "bootstrap/grid";
@import "bootstrap/tables";
@import "bootstrap/forms";
@import "bootstrap/buttons";

// Components
@import "bootstrap/component-animations";
@import "bootstrap/glyphicons";
@import "bootstrap/dropdowns";
@import "bootstrap/button-groups";
@import "bootstrap/input-groups";
@import "bootstrap/navs";
@import "bootstrap/navbar";
@import "bootstrap/breadcrumbs";
@import "bootstrap/pagination";
@import "bootstrap/pager";
@import "bootstrap/labels";
@import "bootstrap/badges";
@import "bootstrap/jumbotron";
@import "bootstrap/thumbnails";
@import "bootstrap/alerts";
@import "bootstrap/progress-bars";
@import "bootstrap/media";
@import "bootstrap/list-group";
@import "bootstrap/panels";
@import "bootstrap/wells";
@import "bootstrap/close";

// Components w/ JavaScript
@import "bootstrap/modals";
@import "bootstrap/tooltip";
@import "bootstrap/popovers";
@import "bootstrap/carousel";

// Utility classes
.clearfix {
@include clearfix();
}
.center-block {
@include center-block();
}
.pull-right {
float: right !important;
}
.pull-left {
float: left !important;
}
.hide {
display: none;
}
.show {
display: block !important;
}
.invisible {
visibility: hidden;
}
.text-hide {
@include text-hide();
}
.hidden {
display: none !important;
visibility: hidden !important;
}
.affix {
position: fixed;
}

@import "bootstrap/responsive-utilities";
1 change: 1 addition & 0 deletions app/assets/stylesheets/sections/events.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
margin-top: 4px;
margin-left: 0px;
max-width: 200px;
float: none;
}

p:last-child {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/sections/notes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ ul.notes {
overflow: hidden;
display: block;
position:relative;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
p { color: $style_color; }

.avatar {
Expand Down Expand Up @@ -122,6 +121,7 @@ ul.notes {
.file .notes_holder {
font-size: 13px;
line-height: 18px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

td {
border: 1px solid #ddd;
Expand Down
4 changes: 2 additions & 2 deletions app/views/admin/broadcast_messages/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
%div
= link_to '#', class: 'js-toggle-colors-link' do
Customize colors
.form-group.js-toggle-colors-container.gl-hide
.form-group.js-toggle-colors-container.hide
= f.label :color, "Background Color"
.col-sm-10
= f.text_field :color, placeholder: "#AA33EE"
.light Hex values as 3 double digit numbers, starting with a # sign.
.form-group.js-toggle-colors-container.gl-hide
.form-group.js-toggle-colors-container.hide
= f.label :font, "Font Color"
.col-sm-10
= f.text_field :font, placeholder: "#224466"
Expand Down
2 changes: 1 addition & 1 deletion app/views/dashboard/_activities.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
.content_list
- else
%p.nothing_here_message Projects activity will be displayed here
.loading.gl-hide
.loading.hide
2 changes: 1 addition & 1 deletion app/views/groups/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.content_list
- else
%p.nothing_here_message Project activity will be displayed here
.loading.gl-hide
.loading.hide
.side.col-md-4
- if @group.description.present?
.description-block
Expand Down
2 changes: 1 addition & 1 deletion app/views/help/_shortcuts.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#modal-shortcuts.modal.gl-hide
#modal-shortcuts.modal.hide
.modal-header
%a.close{href: "#", "data-dismiss" => "modal"} ×
%h3 Keyboard Shortcuts
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_head_panel.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%ul.nav.navbar-nav
%li
%a
%div.gl-hide.turbolink-spinner
%div.hide.turbolink-spinner
%i.icon-refresh.icon-spin
Loading...
%li.hidden-sm
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_public_head_panel.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
%ul.nav
%li
%a
%div.gl-hide.turbolink-spinner
%div.hide.turbolink-spinner
%i.icon-refresh.icon-spin
Loading...
%li
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_search.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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.gl-hide{:'data-autocomplete-opts' => search_autocomplete_source }
.search-autocomplete-json.hide{:'data-autocomplete-opts' => search_autocomplete_source }
2 changes: 1 addition & 1 deletion app/views/profiles/accounts/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
%div
= f.text_field :username, required: true, class: 'form-control'
&nbsp;
%span.loading-gif.gl-hide= image_tag "ajax_loader.gif"
%span.loading-gif.hide= image_tag "ajax_loader.gif"
%p.light
= user_url(@user)
%div
Expand Down
2 changes: 1 addition & 1 deletion app/views/profiles/notifications/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
%span.btn.btn-tiny
%i.icon-chevron-down
%span Advanced notifications settings
.js-toggle-visibility-container.gl-hide
.js-toggle-visibility-container.hide
%hr
%h4 Groups:
%ul.bordered-list
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/blob/_remove.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%div#modal-remove-blob.modal.gl-hide
%div#modal-remove-blob.modal.hide
.modal-header
%a.close{href: "#", "data-dismiss" => "modal"} ×
%h3.page-title Remove #{@blob.name}
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/commit/_commit_box.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
- if @branches.any?
and in
= link_to("#{pluralize(@branches.count, "other branch")}", "#", class: "js-details-expand")
%span.js-details-contain.gl-hide
%span.js-details-contain.hide
= commit_branches_links(@project, @branches)

.commit-box
Expand Down
10 changes: 5 additions & 5 deletions app/views/projects/commits/_image.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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.gl-hide
%p.image-info.hide
%span.meta-filesize= "#{number_to_human_size old_file.size}"
|
%b W:
Expand All @@ -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.gl-hide
%p.image-info.hide
%span.meta-filesize= "#{number_to_human_size file.size}"
|
%b W:
Expand All @@ -32,7 +32,7 @@
%b H:
%span.meta-height

%div.swipe.view.gl-hide
%div.swipe.view.hide
.swipe-frame
.frame.deleted
%img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"}
Expand All @@ -43,7 +43,7 @@
%span.top-handle
%span.bottom-handle

%div.onion-skin.view.gl-hide
%div.onion-skin.view.hide
.onion-skin-frame
.frame.deleted
%img{src: "data:#{old_file.mime_type};base64,#{Base64.encode64(old_file.data)}"}
Expand All @@ -56,7 +56,7 @@
.opaque


.view-modes.gl-hide
.view-modes.hide
%ul.view-modes-menu
%li.two-up{data: {mode: 'two-up'}} 2-up
%li.swipe{data: {mode: 'swipe'}} Swipe
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/create.js.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
:plain
$(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
$('.project-submit').enable();
$('.save-project-loader').gl-hide();
$('.save-project-loader').hide();
$('.project-edit-container').show();
4 changes: 2 additions & 2 deletions app/views/projects/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
Show it to me
%i.icon-chevron-down

.js-toggle-visibility-container.gl-hide
.js-toggle-visibility-container.hide
- if can? current_user, :archive_project, @project
.ui-box.ui-box-danger
.title
Expand Down Expand Up @@ -182,7 +182,7 @@
- else
%p.nothing_here_message Only project owner can remove a project

.save-project-loader.gl-hide
.save-project-loader.hide
%center
= image_tag "ajax_loader.gif"
%h3 Saving project.
Expand Down
4 changes: 2 additions & 2 deletions app/views/projects/graphs/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
%ol.contributors-list.clearfix

:javascript
$(".stat-graph").gl-hide();
$(".stat-graph").hide();
$.ajax({
type: "GET",
url: location.href,
complete: function() {
$(".stat-graph").fadeIn();
$(".loading-graph").gl-hide();
$(".loading-graph").hide();
},
dataType: "script"
});
2 changes: 1 addition & 1 deletion app/views/projects/issues/_issues.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.title
= check_box_tag "check_all_issues", nil, false, class: "check_all_issues left"
.clearfix
.issues_bulk_update.gl-hide
.issues_bulk_update.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")
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/issues/update.js.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]').gl-hide();
$('.edit-issue.inline-update input[type="submit"]').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
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/merge_requests/show/_commits.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
8 of #{@commits.count} commits displayed.
%strong
%a.show-all-commits Click here to show all
%ul.all-commits.gl-hide.well-list
%ul.all-commits.hide.well-list
- @commits.each do |commit|
= render "projects/commits/commit", commit: commit, project: @merge_request.source_project

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%div#modal_merge_info.modal.gl-hide
%div#modal_merge_info.modal.hide
.modal-header
%a.close{href: "#", "data-dismiss" => "modal"} ×
%h3 How to merge
Expand Down Expand Up @@ -46,6 +46,6 @@
modal.show();
});
$('.modal-header .close').bind("click", function(){
modal.gl-hide();
modal.hide();
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
.alert.alert-info
%strong This merge request already can not be merged. Try to reload page.

.merge-in-progress.gl-hide
.merge-in-progress.hide
%span.cgray
%i.icon-refresh.icon-spin
&nbsp;
Expand Down
4 changes: 2 additions & 2 deletions app/views/projects/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
= link_to "#", class: 'js-toggle-visibility-link' do
%span Customize repository name?

.form-group.js-toggle-visibility-container.gl-hide
.form-group.js-toggle-visibility-container.hide
= f.label :path, class: 'control-label' do
%span Repository name
.col-sm-10
Expand Down Expand Up @@ -60,7 +60,7 @@
= link_to new_group_path, class: "btn btn-tiny" do
Create a group

.save-project-loader.gl-hide
.save-project-loader.hide
%center
= image_tag "ajax_loader.gif"
%h3 Creating project &amp; repository.
Expand Down

0 comments on commit 8c1d414

Please sign in to comment.