Skip to content

Commit

Permalink
Merge pull request #70 from crowdint/chore/fix-post-page
Browse files Browse the repository at this point in the history
[#84604518][3pts] Adds comments per paragraph
  • Loading branch information
Carlos A. Muñiz Moreno committed Mar 25, 2015
2 parents 7a54861 + cf7378e commit cda9ae6
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 13 deletions.
34 changes: 33 additions & 1 deletion app/assets/stylesheets/modules/categories.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
float: left;
margin: 50px 0 0 5%;
width: 10%;
&.for-post {
position: absolute;
@include mq-tablet(){
background-color: $blog-color;
display: block;
float: none;
margin: 0;
position: static;
text-align: center;
width: 100%;
select {
background-color: #007466;
border: none;
color: white;
font-family: 'Roboto Light';
font-size: 20px;
margin: 0.5em auto;
text-decoration: underline;
}
}
}

h1, h2, a {
color: $darkgray;
Expand All @@ -17,7 +38,18 @@
margin: 60px 0 20px;
}

.category { line-height: 30px; }
.categories-mobile {
display: none;
@include mq-tablet(){
display: block;
}
}

.categories-desktop {
@include mq-tablet(){
display: none;
}
}

@include mq-tablet(){ display: none; }
}
1 change: 1 addition & 0 deletions app/assets/stylesheets/modules/menu-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
margin: 0 auto;
padding: 25px 5% 0;
text-align: center;
overflow: auto;
@include mq-tablet() {
max-width: 768px;
padding: 25px 20px 0;
Expand Down
6 changes: 0 additions & 6 deletions app/views/crowdblog/posts/_disqus.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ javascript:
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
if ($(document).width() > tabletSize) {
$(document).ready(function() {
$('.body p').inlineDisqussions({ highlighted: true });
});
}
a href="http://disqus.com" class="dsq-brlink"
| blog comments powered by
span class="logo-disqus" Disqus
9 changes: 5 additions & 4 deletions app/views/crowdblog/posts/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
= render 'application/we_share' if @page == 1
.categories
= link_to root_path do
h2.category-home Blog Home
h1.categories-title We write about
= render @categories, index_view: true
.categories-desktop
= link_to root_path do
h2.category-home Blog Home
h1.categories-title We write about
= render @categories, index_view: true
.archive
= link_to main_app.archive_path do
h2 Blog Archive
Expand Down
4 changes: 2 additions & 2 deletions app/views/crowdblog/posts/show.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.categories
.categories.for-post
.categories-desktop
h1.title We write about
h1.categories-title We write about
= render partial: 'crowdblog/categories/category_details', collection: @categories, as: :category
.categories-mobile
= select_tag :category,
Expand Down

0 comments on commit cda9ae6

Please sign in to comment.