diff --git a/app/assets/images/grey_wash_wall.png b/app/assets/images/grey_wash_wall.png new file mode 100644 index 0000000..d54e889 Binary files /dev/null and b/app/assets/images/grey_wash_wall.png differ diff --git a/app/assets/javascripts/lib/items/items.js.erb b/app/assets/javascripts/lib/items/items.js.erb index 83608ff..f803a19 100755 --- a/app/assets/javascripts/lib/items/items.js.erb +++ b/app/assets/javascripts/lib/items/items.js.erb @@ -134,3 +134,17 @@ var Items = function(){ } itemsLibrary = new Items(); + +$(function(){ + $(".open-slide").click(function(){ + $("#pageslide .content").css("padding","0"); + }); + + $(".mobile-view-btn").click(function(){ + $(".nano").nanoScroller(); + $("#pageslide .content").css( "background-image", "url('/assets/grey_wash_wall.png')"); + $("#pageslide_iframe").css("width","400px"); + $("#pageslide_iframe").css("left","28%"); + $("#pageslide_iframe").css("box-shadow","0px 0px 40px #333"); + }); +}); diff --git a/app/templates/mobile/orbit_mobile/assets/stylesheets/mobile/unit/_main-menu.scss b/app/templates/mobile/orbit_mobile/assets/stylesheets/mobile/unit/_main-menu.scss index 2f703fe..517c614 100644 --- a/app/templates/mobile/orbit_mobile/assets/stylesheets/mobile/unit/_main-menu.scss +++ b/app/templates/mobile/orbit_mobile/assets/stylesheets/mobile/unit/_main-menu.scss @@ -18,6 +18,7 @@ .navbar-collapse { padding: 0; .navbar-nav { + margin: 0; & > li { border-right: 1px solid #9FC0CF; &.open { diff --git a/app/templates/mobile/orbit_mobile/home/header.html.erb b/app/templates/mobile/orbit_mobile/home/header.html.erb index 43e50a6..8cbcce5 100644 --- a/app/templates/mobile/orbit_mobile/home/header.html.erb +++ b/app/templates/mobile/orbit_mobile/home/header.html.erb @@ -1,5 +1,4 @@
-

MOBILE!!!

diff --git a/app/views/admin/items/_node.html.erb b/app/views/admin/items/_node.html.erb index c5ae3bb..fff1f48 100644 --- a/app/views/admin/items/_node.html.erb +++ b/app/views/admin/items/_node.html.erb @@ -21,7 +21,7 @@ <%# elsif node.class.to_s.downcase.eql?("link") %> <%#= link_to content_tag(:i, nil, class: "icon-edit"), "#link", class: "open-slide tip link edit", title: t('editing.link'), data: {title: t('editing.link'), id: node.id.to_s, parent: node.parent_id.to_s, form: {name: node.name}.merge(node.title_translations).merge(node.urls)} %> <%# end %> - <%= link_to content_tag(:i, nil, class: "icons-mobile"), pages_edit_view_path(:id => node.id.to_s, :mobile_view=>1), class: "view-page open-slide tip", title: "Edit Mobile Page", data: {title: "Edit Mobile Page"} if node.class.to_s.downcase.eql?("page") && current_site.mobile_on%> + <%= link_to content_tag(:i, nil, class: "icons-mobile"), pages_edit_view_path(:id => node.id.to_s, :mobile_view=>1), class: "view-page open-slide tip mobile-view-btn", title: "Edit Mobile Page", data: {title: "Edit Mobile Page"} if node.class.to_s.downcase.eql?("page") && current_site.mobile_on%> <% unless name.eql? "sitemap" %> <%= link_to content_tag(:i, nil, class: "icon-edit"), edit_page_path(node.id), class: "open-slide tip page edit", title: "Edit Page", data: {title: "Edit Page"} if node.class.to_s.downcase.eql?("page") && !node.root? %> <%= link_to content_tag(:i, nil, class: "icons-newspaper"), new_page_path(:parent_page => node.id.to_s), class: "open-slide tip page", title: "Add Page", data: {title: "Add Page", id: 'new', parent: node.id.to_s} if node.class.to_s.eql?('Page') && level < 3 %>