Skip to content

Commit

Permalink
[Article Actions] Using position sticky (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanuelramallo authored and benhalpern committed Oct 18, 2018
1 parent 3fd15e2 commit 6ada731
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/article-show.scss
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions app/assets/stylesheets/articles.scss
Expand Up @@ -5,7 +5,6 @@

.home{
position:relative;
overflow:hidden;
min-height:440px;
margin:auto;
max-width:1250px;
Expand Down Expand Up @@ -560,7 +559,7 @@
}
.bm-success{
display:none;
}
}
&.selected{
color: darken($purple, 33%);
background: transparent;
Expand Down
3 changes: 1 addition & 2 deletions app/assets/stylesheets/scaffolds.scss
Expand Up @@ -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{
Expand Down Expand Up @@ -94,4 +93,4 @@ button{

input[type="submit"]{
cursor:pointer;
};
};
2 changes: 1 addition & 1 deletion app/views/articles/show.html.erb
Expand Up @@ -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 %>
Expand Down Expand Up @@ -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 %>
Expand Down
1 change: 0 additions & 1 deletion app/views/layouts/application.html.erb
Expand Up @@ -21,7 +21,6 @@
<style>
.home {
position: relative;
overflow: hidden;
text-align: center;
min-height: 440px;
margin: auto;
Expand Down

0 comments on commit 6ada731

Please sign in to comment.