fix metacodes page scrolling

use scheme from
http://brandonhilkert.com/blog/page-specific-javascript-in-rails/
This commit is contained in:
Devin Howard 2016-10-28 09:16:45 +08:00
parent 6b1220b533
commit 0b3bdab16f
2 changed files with 10 additions and 6 deletions

View file

@ -78,11 +78,15 @@ html {
}
body {
background: #d8d9da url(<%= asset_data_uri('shattered_@2X.png') %>);
font-family: 'din-medium', helvetica, sans-serif;
color: #424242;
-moz-osx-font-smoothing: grayscale;
overflow: hidden;
background: #d8d9da url(<%= asset_path('shattered_@2X.png') %>);
font-family: 'din-medium', helvetica, sans-serif;
color: #424242;
-moz-osx-font-smoothing: grayscale;
overflow: hidden;
&.controller-metacodes {
overflow-y: auto;
}
}
h1,
h2,

View file

@ -7,7 +7,7 @@
<%= render :partial => 'layouts/head' %>
<body class="<%= authenticated? ? "authenticated" : "unauthenticated" %>">
<body class="<%= authenticated? ? "authenticated" : "unauthenticated" %> controller-<%= controller_name %> action-<%= action_name %>">
<a class='feedback-icon' target='_blank' href='https://hylo.com/c/metamaps'></a>