_base.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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. .verified-icon {
  42. margin-left: 2px;
  43. }
  44. }
  45. .fullname-and-username {
  46. display: flex;
  47. min-width: 0;
  48. }
  49. .fullname {
  50. @include ellipsis;
  51. flex-shrink: 2;
  52. max-width: 80%;
  53. font-size: 14px;
  54. font-weight: 700;
  55. color: var(--fg_color);
  56. }
  57. .username {
  58. @include ellipsis;
  59. min-width: 1.6em;
  60. margin-left: 0.4em;
  61. word-wrap: normal;
  62. }
  63. .tweet-date {
  64. display: flex;
  65. flex-shrink: 0;
  66. margin-left: 4px;
  67. }
  68. .tweet-date a,
  69. .username,
  70. .show-more a {
  71. color: var(--fg_dark);
  72. }
  73. .tweet-published {
  74. margin-top: 6px;
  75. margin-bottom: 0px;
  76. color: var(--grey);
  77. }
  78. .tweet-avatar {
  79. display: contents !important;
  80. img {
  81. float: left;
  82. margin-top: 3px;
  83. margin-left: -58px;
  84. width: 48px;
  85. height: 48px;
  86. }
  87. }
  88. .avatar {
  89. &.round {
  90. border-radius: 50%;
  91. user-select: none;
  92. -webkit-user-select: none;
  93. }
  94. &.mini {
  95. position: unset;
  96. margin-right: 5px;
  97. margin-top: -1px;
  98. width: 20px;
  99. height: 20px;
  100. }
  101. }
  102. body:has(> .embed-wrapper),
  103. body:has(> .tweet-embed) {
  104. margin: 0;
  105. padding: 0;
  106. width: 100%;
  107. background: transparent;
  108. overflow: hidden;
  109. }
  110. html:has(body > .embed-wrapper),
  111. html:has(body > .tweet-embed) {
  112. background: transparent;
  113. overflow: hidden;
  114. }
  115. .embed-wrapper {
  116. width: 100%;
  117. box-sizing: border-box;
  118. border: 1px solid var(--border_grey);
  119. border-radius: 12px;
  120. overflow: hidden;
  121. .embed-footer {
  122. display: block;
  123. padding: 12px 16px;
  124. border-top: 1px solid var(--border_grey);
  125. background: var(--bg_panel);
  126. color: var(--accent);
  127. font-size: 14px;
  128. font-weight: 500;
  129. text-align: center;
  130. text-decoration: none;
  131. transition: background-color 0.15s;
  132. &:hover {
  133. background: var(--bg_hover);
  134. }
  135. }
  136. }
  137. .tweet-embed {
  138. position: relative;
  139. width: 100%;
  140. box-sizing: border-box;
  141. background-color: var(--bg_panel);
  142. transition: background-color 0.15s ease;
  143. &:hover {
  144. background-color: var(--bg_hover);
  145. }
  146. .timeline-item {
  147. display: block;
  148. pointer-events: none;
  149. background-color: transparent;
  150. }
  151. .tweet-link:hover {
  152. background-color: transparent;
  153. }
  154. .tweet-content {
  155. font-size: 18px;
  156. }
  157. .avatar:not(.mini) {
  158. position: absolute;
  159. }
  160. .quote-media-container {
  161. max-height: 600px;
  162. }
  163. .quote-media-container .gallery-row .attachment,
  164. .quote-media-container .gallery-row .attachment > video,
  165. .quote-media-container .gallery-row .attachment > img,
  166. .quote-media-container .still-image,
  167. .quote-media-container .still-image img,
  168. .still-image,
  169. .still-image img {
  170. max-height: 600px;
  171. }
  172. &.error-embed {
  173. display: flex;
  174. align-items: center;
  175. justify-content: center;
  176. min-height: 160px;
  177. padding: 20px;
  178. border: 1px solid var(--border_grey);
  179. border-radius: 12px;
  180. cursor: default;
  181. &:hover {
  182. background-color: var(--bg_panel);
  183. }
  184. .error-panel {
  185. margin: 0;
  186. }
  187. }
  188. }
  189. .attribution {
  190. display: flex;
  191. pointer-events: all;
  192. margin: 5px 0;
  193. strong {
  194. color: var(--fg_color);
  195. }
  196. }
  197. .media-tag-block {
  198. padding-top: 5px;
  199. pointer-events: all;
  200. color: var(--fg_faded);
  201. .icon-container {
  202. padding-right: 2px;
  203. }
  204. .media-tag,
  205. .icon-container {
  206. color: var(--fg_faded);
  207. }
  208. }
  209. .timeline-container .media-tag-block {
  210. font-size: 13px;
  211. }
  212. .tweet-geo {
  213. color: var(--fg_faded);
  214. }
  215. .replying-to {
  216. color: var(--fg_faded);
  217. margin: -2px 0 4px;
  218. a {
  219. pointer-events: all;
  220. }
  221. }
  222. .retweet-header,
  223. .pinned,
  224. .tweet-stats {
  225. align-content: center;
  226. color: var(--grey);
  227. display: flex;
  228. flex-shrink: 0;
  229. flex-wrap: wrap;
  230. font-size: 14px;
  231. font-weight: 600;
  232. line-height: 22px;
  233. span {
  234. @include ellipsis;
  235. }
  236. }
  237. .retweet-header {
  238. margin-top: -5px !important;
  239. }
  240. .tweet-stats {
  241. margin-bottom: -3px;
  242. user-select: none;
  243. -webkit-user-select: none;
  244. }
  245. .tweet-stat {
  246. padding-top: 5px;
  247. min-width: 1em;
  248. margin-right: 0.8em;
  249. }
  250. .show-thread {
  251. display: block;
  252. pointer-events: all;
  253. padding-top: 2px;
  254. }
  255. .unavailable-box {
  256. width: 100%;
  257. height: 100%;
  258. padding: 12px;
  259. border: solid 1px var(--dark_grey);
  260. box-sizing: border-box;
  261. border-radius: 10px;
  262. background-color: var(--bg_color);
  263. z-index: 2;
  264. }
  265. .tweet-link {
  266. height: 100%;
  267. width: 100%;
  268. left: 0;
  269. top: 0;
  270. position: absolute;
  271. user-select: none;
  272. -webkit-user-select: none;
  273. &:hover {
  274. background-color: var(--bg_hover);
  275. }
  276. }
  277. .latest-post-version {
  278. border-bottom: 1px solid var(--dark_grey);
  279. border-top: 1px solid var(--dark_grey);
  280. padding: 01ch 0px;
  281. margin: 1ch 0px;
  282. color: var(--grey);
  283. a {
  284. pointer-events: all;
  285. }
  286. }
  287. .community-note {
  288. background-color: var(--bg_elements);
  289. margin-top: 10px;
  290. border: solid 1px var(--dark_grey);
  291. border-radius: 10px;
  292. overflow: hidden;
  293. pointer-events: all;
  294. &:hover {
  295. background-color: var(--bg_panel);
  296. border-color: var(--grey);
  297. }
  298. }
  299. .community-note-header {
  300. background-color: var(--bg_hover);
  301. font-weight: 700;
  302. padding: 8px 10px;
  303. padding-top: 6px;
  304. display: flex;
  305. align-items: center;
  306. gap: 2px;
  307. .icon-container {
  308. flex-shrink: 0;
  309. color: var(--accent);
  310. }
  311. }
  312. .community-note-text {
  313. white-space: pre-line;
  314. padding: 10px 10px;
  315. padding-top: 6px;
  316. }
  317. .disclosures {
  318. display: flex;
  319. flex-direction: column;
  320. color: var(--grey);
  321. font-size: 14px;
  322. margin-top: 4px;
  323. margin-bottom: -2px;
  324. .icon-attention-circled {
  325. margin-right: -3px;
  326. }
  327. }