Skip to content

Commit

Permalink
general UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntss committed Oct 5, 2014
1 parent ece53c6 commit e3cf754
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion app/assets/javascripts/GPS.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// GPS menu
var GPSisOpen = false;

$(document).on("ready", function(){
$("#gps-menu").hide();
$(".menu-btn-mainMenu").on("click", openGPS);
Expand All @@ -7,7 +9,7 @@ $(document).on("ready", function(){

$(document).keyup(function(e) {
//if ESC key is pressed
if (e.keyCode == 27) {
if (e.keyCode == 27 && GPSisOpen == true) {
closeGPS();
}
});
Expand All @@ -16,6 +18,7 @@ function openGPS() {
$("#gps-menu").fadeIn(400, function() {
$(".menu-gps").flashScreen();
});
GPSisOpen = true;
}

function closeGPS() {
Expand Down
5 changes: 5 additions & 0 deletions app/assets/stylesheets/layout.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ hr {
min-width: 900px;
padding: 0;
}

.modal-backdrop {
z-index: 90;
}

.scrollbar {
overflow: hidden;
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/menues.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
border-radius: 4px;
margin-left: auto;
margin-right: auto;
margin-top: 45px;
margin-top: 55px;
&:hover {
color: $orange;
}
Expand Down
1 change: 0 additions & 1 deletion app/views/announcements/_announcement.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.media
= image_tag "pin.png", :class => "media-object pull-left"
= render :partial => "announcements/file_buttons", :locals => {:announcement => announcement }
.media-body
%h4.media-heading
Expand Down
2 changes: 1 addition & 1 deletion app/views/announcements/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Announcements
= "(#{@announcements.length})"

.col-sm-12
.col-sm-12.text-left
%h2
Announcements
- @announcements.each do |announcement|
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
%span.close-gps clic here
.menu-gps
.circle.news
= link_to 'news', announcements_path
= link_to 'News', announcements_path
.circle.photos
= link_to 'Photos', gallery_path
.circle.about
Expand Down

0 comments on commit e3cf754

Please sign in to comment.