[Article Actions] Using position sticky (#945)

This commit is contained in:
Juan Manuel Ramallo 2018-10-18 13:27:58 -03:00 committed by Ben Halpern
parent 3fd15e2153
commit 6ada73136b
5 changed files with 4 additions and 7 deletions

View file

@ -647,7 +647,7 @@ header{
.article-actions{
text-align:center;
padding:9px 0px 16px;
position: fixed;
position: sticky;
bottom:0;
z-index:22;
background: white;

View file

@ -5,7 +5,6 @@
.home{
position:relative;
overflow:hidden;
min-height:440px;
margin:auto;
max-width:1250px;
@ -560,7 +559,7 @@
}
.bm-success{
display:none;
}
}
&.selected{
color: darken($purple, 33%);
background: transparent;

View file

@ -28,7 +28,6 @@ body {
.universal-page-content-wrapper{
overflow:hidden;
min-height:88vh;
visibility: visible;
&.stories-index,&.notifications-index,&.stories-search,&.podcast_episodes-index,&.reading_list_items-index,.tags-index{
@ -94,4 +93,4 @@ button{
input[type="submit"]{
cursor:pointer;
};
};

View file

@ -165,7 +165,6 @@
<%= @article.processed_html.html_safe %>
</div>
<%= render "articles/collection", position: "bottom" %>
<%= render 'articles/actions' %>
</section>
<% if @article.body_markdown && @article.body_markdown.size > 900 %>
<% cache("article-about-author-#{@user.id}-#{@user.updated_at}", :expires_in => 100.hours) do %>
@ -200,6 +199,7 @@
</div>
</div>
<% end %>
<%= render 'articles/actions' %>
</div>
<% cache("article-bottom-content-#{@article.cached_tag_list_array.sort}", :expires_in => 6.hours) do %>
<% @classic_article = Suggester::Articles::Classic.new(@article).get %>

View file

@ -21,7 +21,6 @@
<style>
.home {
position: relative;
overflow: hidden;
text-align: center;
min-height: 440px;
margin: auto;