annotation.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @import "vars";
  2. @import "mixins";
  3. .article-annotations {
  4. display: none;
  5. .disclaimer {
  6. opacity: 0.5;
  7. font-size: 13px;
  8. line-height: 20px;
  9. }
  10. position: absolute;
  11. top: 0;
  12. left: 100%;
  13. font-size: 13px;
  14. line-height: 20px;
  15. margin-left: 100px;
  16. [contentEditable=true]{font-size: 13px; line-height: 20px; }
  17. .annotation-item-body,
  18. .annotation-reply-body {
  19. /* Non standard for webkit */
  20. word-break: break-word;
  21. -webkit-hyphens: auto;
  22. -moz-hyphens: auto;
  23. hyphens: auto;
  24. }
  25. .annotation-group {
  26. width: 250px;
  27. margin-top: -2px;
  28. .annotation-group-toggle {
  29. position: absolute;
  30. top: -15px;
  31. right: 100%;
  32. margin-right: 20px;
  33. opacity: 0.25;
  34. }
  35. .annotation-item {
  36. // border-bottom: 1px solid rgba(0,0,0,0.05);
  37. margin-bottom: $gutter-a/3;
  38. padding-bottom: $gutter-a/4;
  39. }
  40. .annotation-create-item,
  41. .annotation-item {
  42. .annotation-replies,
  43. .annotation-item-body {
  44. position: relative;
  45. margin-left: 44px;
  46. }
  47. .annotation-link { position: absolute; right: 0; top: 0; margin: -7px; opacity: 0.5;}
  48. .annotation-author {
  49. position: relative;
  50. color: $dark;
  51. font-weight: bold;
  52. img { position: absolute; top: 0; right: 100%; margin-right: 11px; margin-top: 2px; pointer-events: none;}
  53. }
  54. .annotation-replies {
  55. font-size: 11px;
  56. line-height: 15px;
  57. .annotation-create-reply,
  58. .annotation-reply {
  59. margin-bottom: $gutter-a/3;
  60. &:first-child {margin-top: $gutter-a/3; }
  61. &:last-of-type {margin-bottom: 0px; }
  62. .annotation-reply-body {
  63. position: relative;
  64. margin-left: 37px;
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }