_base.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @import '_variables';
  2. @import '_mixins';
  3. @import 'thread';
  4. @import 'media';
  5. @import 'video';
  6. @import 'card';
  7. @import 'poll';
  8. @import 'quote';
  9. .tweet-body {
  10. flex: 1;
  11. min-width: 0;
  12. margin-left: 58px;
  13. pointer-events: none;
  14. z-index: 1;
  15. }
  16. .tweet-content {
  17. font-family: $font_3;
  18. line-height: 1.4em;
  19. pointer-events: all;
  20. display: inline;
  21. }
  22. .tweet-header {
  23. padding: 0;
  24. vertical-align: bottom;
  25. flex-basis: 100%;
  26. margin-bottom: .2em;
  27. a {
  28. display: inline-block;
  29. word-break: break-all;
  30. max-width: 100%;
  31. pointer-events: all;
  32. }
  33. }
  34. .tweet-name-row {
  35. padding: 0;
  36. display: flex;
  37. justify-content: space-between;
  38. }
  39. .fullname-and-username {
  40. display: flex;
  41. min-width: 0;
  42. }
  43. .fullname {
  44. @include ellipsis;
  45. flex-shrink: 2;
  46. max-width: 80%;
  47. font-size: 14px;
  48. font-weight: 700;
  49. color: $fg_color;
  50. }
  51. .username {
  52. @include ellipsis;
  53. min-width: 1.6em;
  54. margin-left: .4em;
  55. word-wrap: normal;
  56. }
  57. .tweet-date {
  58. display: flex;
  59. flex-shrink: 0;
  60. margin-left: 4px;
  61. }
  62. .tweet-avatar {
  63. display: contents !important;
  64. img {
  65. float: left;
  66. margin-top: 3px;
  67. margin-left: -58px;
  68. width: 48px;
  69. height: 48px;
  70. border-radius: 50%;
  71. }
  72. }
  73. .replying-to {
  74. color: $fg_dark;
  75. margin: -2px 0 4px;
  76. a {
  77. pointer-events: all;
  78. }
  79. }
  80. .retweet-header, .pinned, .tweet-stats {
  81. align-content: center;
  82. color: $grey;
  83. display: flex;
  84. flex-shrink: 0;
  85. flex-wrap: wrap;
  86. font-size: 14px;
  87. font-weight: 600;
  88. line-height: 22px;
  89. span {
  90. @include ellipsis;
  91. }
  92. }
  93. .retweet-header {
  94. margin-top: -5px !important;
  95. }
  96. .tweet-stats {
  97. margin-bottom: -3px;
  98. }
  99. .tweet-stat {
  100. padding-top: 5px;
  101. padding-right: 8px;
  102. }
  103. .show-thread {
  104. display: block;
  105. pointer-events: all;
  106. }
  107. .unavailable-box {
  108. width: 100%;
  109. height: 100%;
  110. padding: 12px;
  111. border: solid 1px $dark_grey;
  112. border-radius: 10px;
  113. background-color: $bg_color;
  114. }
  115. .tweet-link {
  116. height: 100%;
  117. width: 100%;
  118. left: 0;
  119. top: 0;
  120. position: absolute;
  121. &:hover {
  122. background-color: #1a1a1a;
  123. }
  124. }