_base.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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 {
  103. font-size: 18px
  104. }
  105. .tweet-body {
  106. display: flex;
  107. flex-direction: column;
  108. max-height: calc(100vh - 0.75em * 2);
  109. }
  110. }
  111. .attribution {
  112. display: flex;
  113. pointer-events: all;
  114. margin: 5px 0;
  115. strong {
  116. color: var(--fg_color);
  117. }
  118. }
  119. .media-tag-block {
  120. padding-top: 5px;
  121. pointer-events: all;
  122. color: var(--fg_faded);
  123. .icon-container {
  124. padding-right: 2px;
  125. }
  126. .media-tag, .icon-container {
  127. color: var(--fg_faded);
  128. }
  129. }
  130. .timeline-container .media-tag-block {
  131. font-size: 13px;
  132. }
  133. .tweet-geo {
  134. color: var(--fg_faded);
  135. }
  136. .replying-to {
  137. color: var(--fg_faded);
  138. margin: -2px 0 4px;
  139. a {
  140. pointer-events: all;
  141. }
  142. }
  143. .retweet-header, .pinned, .tweet-stats {
  144. align-content: center;
  145. color: var(--grey);
  146. display: flex;
  147. flex-shrink: 0;
  148. flex-wrap: wrap;
  149. font-size: 14px;
  150. font-weight: 600;
  151. line-height: 22px;
  152. span {
  153. @include ellipsis;
  154. }
  155. }
  156. .retweet-header {
  157. margin-top: -5px !important;
  158. }
  159. .tweet-stats {
  160. margin-bottom: -3px;
  161. }
  162. .tweet-stat {
  163. padding-top: 5px;
  164. min-width: 1em;
  165. margin-right: 0.8em;
  166. }
  167. .show-thread {
  168. display: block;
  169. pointer-events: all;
  170. padding-top: 2px;
  171. }
  172. .unavailable-box {
  173. width: 100%;
  174. height: 100%;
  175. padding: 12px;
  176. border: solid 1px var(--dark_grey);
  177. box-sizing: border-box;
  178. border-radius: 10px;
  179. background-color: var(--bg_color);
  180. z-index: 2;
  181. }
  182. .tweet-link {
  183. height: 100%;
  184. width: 100%;
  185. left: 0;
  186. top: 0;
  187. position: absolute;
  188. &:hover {
  189. background-color: var(--bg_hover);
  190. }
  191. }