duoshuo.ejs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <div class="ds-thread" data-thread-key="<%= post.layout %>-<%= post.slug %>" data-title="<%= post.title %>" data-url="<%= page.permalink %>"></div>
  2. <script type="text/javascript">
  3. var duoshuoQuery = {short_name:'<%= theme.comment.duoshuo %>'};
  4. (function() {
  5. var ds = document.createElement('script');
  6. ds.type = 'text/javascript';ds.async = true;
  7. ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
  8. ds.charset = 'UTF-8';
  9. (document.getElementsByTagName('head')[0]
  10. || document.getElementsByTagName('body')[0]).appendChild(ds);
  11. })();
  12. </script>
  13. <style>
  14. #ds-thread #ds-reset .ds-textarea-wrapper {
  15. background: none;
  16. }
  17. #ds-reset .ds-avatar img {
  18. box-shadow: none;
  19. }
  20. #ds-reset .ds-gradient-bg {
  21. background: #f7f7f7;
  22. }
  23. #ds-thread #ds-reset li.ds-tab a {
  24. border-radius: 3px;
  25. }
  26. #ds-thread #ds-reset .ds-post-button {
  27. color: white;
  28. border: none;
  29. box-shadow: none;
  30. background: #d32;
  31. text-shadow: none;
  32. font-weight: normal;
  33. font-family: 'Microsoft Yahei';
  34. }
  35. #ds-thread #ds-reset .ds-post-button:hover {
  36. color: white;
  37. background: #DE594C;
  38. }
  39. #ds-thread #ds-reset .ds-post-button:active {
  40. background: #d32;
  41. }
  42. #ds-smilies-tooltip ul.ds-smilies-tabs li a.ds-current {
  43. color: white;
  44. background: #d32;
  45. box-shadow: none;
  46. text-shadow: none;
  47. font-weight: normal;
  48. }
  49. </style>