_base.scss 3.3 KB

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