thread.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. @import '_variables';
  2. @import '_mixins';
  3. .conversation {
  4. @include panel(100%, 600px);
  5. .show-more {
  6. margin-bottom: 10px;
  7. }
  8. }
  9. .main-thread {
  10. margin-bottom: 20px;
  11. background-color: var(--bg_panel);
  12. }
  13. .main-tweet, .replies {
  14. padding-top: 50px;
  15. margin-top: -50px;
  16. }
  17. .main-tweet .tweet-content {
  18. font-size: 18px;
  19. }
  20. @media(max-width: 600px) {
  21. .main-tweet .tweet-content {
  22. font-size: 16px;
  23. }
  24. }
  25. .reply {
  26. background-color: var(--bg_panel);
  27. margin-bottom: 10px;
  28. }
  29. .thread-line {
  30. .timeline-item::before,
  31. &.timeline-item::before {
  32. background: var(--accent_dark);
  33. content: '';
  34. position: relative;
  35. min-width: 3px;
  36. width: 3px;
  37. left: 26px;
  38. border-radius: 2px;
  39. margin-left: -3px;
  40. margin-bottom: 37px;
  41. top: 56px;
  42. z-index: 1;
  43. pointer-events: none;
  44. }
  45. .with-header:not(:first-child)::after {
  46. background: var(--accent_dark);
  47. content: '';
  48. position: relative;
  49. float: left;
  50. min-width: 3px;
  51. width: 3px;
  52. right: calc(100% - 26px);
  53. border-radius: 2px;
  54. margin-left: -3px;
  55. margin-bottom: 37px;
  56. bottom: 10px;
  57. height: 30px;
  58. z-index: 1;
  59. pointer-events: none;
  60. }
  61. .unavailable::before {
  62. top: 48px;
  63. margin-bottom: 28px;
  64. }
  65. .more-replies::before {
  66. content: '...';
  67. background: unset;
  68. color: var(--more_replies_dots);
  69. font-weight: bold;
  70. font-size: 20px;
  71. line-height: 0.25em;
  72. left: 1.2em;
  73. width: 5px;
  74. top: 2px;
  75. margin-bottom: 0;
  76. margin-left: -2.5px;
  77. }
  78. .earlier-replies {
  79. padding-bottom: 0;
  80. margin-bottom: -5px;
  81. }
  82. }
  83. .timeline-item.thread-last::before {
  84. background: unset;
  85. min-width: unset;
  86. width: 0;
  87. margin: 0;
  88. }
  89. .more-replies {
  90. padding-top: 0.3em !important;
  91. }
  92. .more-replies-text {
  93. @include ellipsis;
  94. display: block;
  95. margin-left: 58px;
  96. padding: 7px 0;
  97. }