_base.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. @import '_variables';
  2. @import '_mixins';
  3. @import 'thread';
  4. @import 'media';
  5. @import 'video';
  6. @import 'embed';
  7. @import 'card';
  8. @import 'poll';
  9. @import 'quote';
  10. .tweet-body {
  11. flex: 1;
  12. min-width: 0;
  13. margin-left: 58px;
  14. pointer-events: none;
  15. z-index: 1;
  16. }
  17. .tweet-content {
  18. font-family: $font_3;
  19. line-height: 1.3em;
  20. pointer-events: all;
  21. display: inline;
  22. }
  23. .tweet-bidi {
  24. display: block !important;
  25. }
  26. .tweet-header {
  27. padding: 0;
  28. vertical-align: bottom;
  29. flex-basis: 100%;
  30. margin-bottom: .2em;
  31. a {
  32. display: inline-block;
  33. word-break: break-all;
  34. max-width: 100%;
  35. pointer-events: all;
  36. }
  37. }
  38. .tweet-name-row {
  39. padding: 0;
  40. display: flex;
  41. justify-content: space-between;
  42. }
  43. .fullname-and-username {
  44. display: flex;
  45. min-width: 0;
  46. }
  47. .fullname {
  48. @include ellipsis;
  49. flex-shrink: 2;
  50. max-width: 80%;
  51. font-size: 14px;
  52. font-weight: 700;
  53. color: var(--fg_color);
  54. }
  55. .username {
  56. @include ellipsis;
  57. min-width: 1.6em;
  58. margin-left: .4em;
  59. word-wrap: normal;
  60. }
  61. .tweet-date {
  62. display: flex;
  63. flex-shrink: 0;
  64. margin-left: 4px;
  65. }
  66. .tweet-date a, .username, .show-more a {
  67. color: var(--fg_dark);
  68. }
  69. .tweet-published {
  70. margin: 0;
  71. margin-top: 5px;
  72. color: var(--grey);
  73. pointer-events: all;
  74. }
  75. .tweet-avatar {
  76. display: contents !important;
  77. img {
  78. float: left;
  79. margin-top: 3px;
  80. margin-left: -58px;
  81. width: 48px;
  82. height: 48px;
  83. }
  84. }
  85. .avatar {
  86. position: absolute;
  87. &.round {
  88. border-radius: 50%;
  89. }
  90. &.mini {
  91. margin-right: 5px;
  92. margin-top: -1px;
  93. width: 20px;
  94. height: 20px;
  95. }
  96. }
  97. .tweet-embed {
  98. display: flex;
  99. flex-direction: column;
  100. justify-content: center;
  101. height: 100%;
  102. .tweet-content { font-size: 18px }
  103. .tweet-body {
  104. display: flex;
  105. flex-direction: column;
  106. max-height: calc(100vh - 0.75em * 2);
  107. }
  108. }
  109. .attribution {
  110. display: flex;
  111. pointer-events: all;
  112. margin: 5px 0;
  113. strong {
  114. color: var(--fg_color);
  115. }
  116. }
  117. .media-tag-block {
  118. padding-top: 5px;
  119. pointer-events: all;
  120. color: var(--fg_faded);
  121. .icon-container {
  122. padding-right: 2px;
  123. }
  124. .media-tag, .icon-container {
  125. color: var(--fg_faded);
  126. }
  127. }
  128. .timeline-container .media-tag-block {
  129. font-size: 13px;
  130. }
  131. .tweet-geo {
  132. color: var(--fg_faded);
  133. }
  134. .replying-to {
  135. color: var(--fg_faded);
  136. margin: -2px 0 4px;
  137. a {
  138. pointer-events: all;
  139. }
  140. }
  141. .retweet-header, .pinned, .tweet-stats {
  142. align-content: center;
  143. color: var(--grey);
  144. display: flex;
  145. flex-shrink: 0;
  146. flex-wrap: wrap;
  147. font-size: 14px;
  148. font-weight: 600;
  149. line-height: 22px;
  150. span {
  151. @include ellipsis;
  152. }
  153. }
  154. .retweet-header {
  155. margin-top: -5px !important;
  156. }
  157. .tweet-stats {
  158. margin-bottom: -3px;
  159. }
  160. .tweet-stat {
  161. padding-top: 5px;
  162. min-width: 1em;
  163. margin-right: 0.8em;
  164. }
  165. .show-thread {
  166. display: block;
  167. pointer-events: all;
  168. padding-top: 2px;
  169. }
  170. .unavailable-box {
  171. width: 100%;
  172. height: 100%;
  173. padding: 12px;
  174. border: solid 1px var(--dark_grey);
  175. box-sizing: border-box;
  176. border-radius: 10px;
  177. background-color: var(--bg_color);
  178. z-index: 2;
  179. }
  180. .tweet-link {
  181. height: 100%;
  182. width: 100%;
  183. left: 0;
  184. top: 0;
  185. position: absolute;
  186. &:hover {
  187. background-color: var(--bg_hover);
  188. }
  189. }