-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from crowdint/feature/inline-disquss
[#84604518][3pts] Adds comments per paragraph
- Loading branch information
Showing
6 changed files
with
423 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
.disqussion { | ||
font-family: sans-serif; | ||
font-size: 13px; | ||
font-weight: bold; | ||
left: 0; | ||
line-height: 16px; | ||
padding: 5px 10px 10px; | ||
position: absolute; | ||
text-align: center; | ||
top: 0; | ||
z-index: 7; | ||
|
||
&:hover a, &.hovered a { | ||
background: #999999; | ||
opacity: 1; | ||
} | ||
|
||
&:hover a:after, &.hovered a:after { | ||
border-top-color: #999999; | ||
} | ||
|
||
a { | ||
-moz-border-radius: 2px; | ||
-moz-transition: all 0.5s; | ||
-ms-border-radius: 2px; | ||
-o-border-radius: 2px; | ||
-o-transition: all 0.5s; | ||
-webkit-border-radius: 2px; | ||
-webkit-transition: all 0.5s; | ||
background: #bbbbbb; | ||
border-radius: 2px; | ||
color: white; | ||
cursor: pointer; | ||
display: block; | ||
height: 17px; | ||
opacity: 0; | ||
overflow: hidden; | ||
text-decoration: none; | ||
transition: all 0.5s; | ||
width: 20px; | ||
|
||
&.has-comments { opacity: .8; } | ||
|
||
&:after { | ||
-moz-transition: all 0.5s; | ||
-o-transition: all 0.5s; | ||
-webkit-transition: all 0.5s; | ||
border-left: 7px solid transparent; | ||
border-top: 7px solid #bbbbbb; | ||
content: " "; | ||
display: block; | ||
height: 0; | ||
left: 19px; | ||
position: absolute; | ||
top: 22px; | ||
transition: all 0.5s; | ||
width: 0; | ||
} | ||
} | ||
} | ||
|
||
.disqussion-contain:hover .disqussion a { | ||
opacity: 1; | ||
} | ||
|
||
#disqussions_wrapper { | ||
left: 0; | ||
position: absolute; | ||
top: 0; | ||
} | ||
|
||
#disqus_thread.positioned { | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
box-sizing: border-box; | ||
left: 0; | ||
padding: 5px 15px 0 15px; | ||
position: absolute; | ||
top: 0; | ||
} | ||
|
||
.disqussion-highlight #disqus_thread.positioned { | ||
background: #fff; | ||
z-index: 9; | ||
} | ||
|
||
#disqussions_overlay { | ||
background: rgba(0, 0, 0, 0.5); | ||
bottom: 0; | ||
display: none; | ||
left: 0; | ||
position: fixed; | ||
right: 0; | ||
top: 0; | ||
z-index: 8; | ||
} | ||
|
||
.disqussion-highlighted { | ||
background: #fff; | ||
position: relative; | ||
z-index: 9; | ||
} | ||
|
||
.main-disqussion-link-wrp { | ||
font-family: "Helvetica Neue", arial, sans-serif; | ||
text-align: center; | ||
a { color: $darkgray; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#disqus_thread | ||
|
||
javascript: | ||
var tabletSize = 1024; | ||
var disqus_shortname = "#{ ENV['DISQUS_SHORTNAME'] }"; | ||
var dsq = document.createElement('script'); | ||
dsq.type = 'text/javascript'; | ||
dsq.async = true; | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.