You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

367 lines
6.4 KiB

  1. .activity-stream {
  2. clear: both;
  3. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  4. div[data-component] {
  5. width: 100%;
  6. }
  7. .entry {
  8. background: $simple-background-color;
  9. .detailed-status.light,
  10. .status.light,
  11. .more.light {
  12. border-bottom: 1px solid $ui-secondary-color;
  13. animation: none;
  14. }
  15. &:last-child {
  16. &,
  17. .detailed-status.light,
  18. .status.light {
  19. border-bottom: 0;
  20. border-radius: 0 0 4px 4px;
  21. }
  22. }
  23. &:first-child {
  24. &,
  25. .detailed-status.light,
  26. .status.light {
  27. border-radius: 4px 4px 0 0;
  28. }
  29. &:last-child {
  30. &,
  31. .detailed-status.light,
  32. .status.light {
  33. border-radius: 4px;
  34. }
  35. }
  36. }
  37. @media screen and (max-width: 740px) {
  38. &,
  39. .detailed-status.light,
  40. .status.light {
  41. border-radius: 0 !important;
  42. }
  43. }
  44. }
  45. &.with-header {
  46. .entry {
  47. &:first-child {
  48. &,
  49. .detailed-status.light,
  50. .status.light {
  51. border-radius: 0;
  52. }
  53. &:last-child {
  54. &,
  55. .detailed-status.light,
  56. .status.light {
  57. border-radius: 0 0 4px 4px;
  58. }
  59. }
  60. }
  61. }
  62. }
  63. .media-gallery__gifv__label {
  64. bottom: 9px;
  65. }
  66. .status.light {
  67. padding: 14px 14px 14px (48px + 14px * 2);
  68. position: relative;
  69. min-height: 48px;
  70. cursor: default;
  71. .status__header {
  72. font-size: 15px;
  73. .status__meta {
  74. float: right;
  75. font-size: 14px;
  76. .status__relative-time {
  77. color: $lighter-text-color;
  78. }
  79. }
  80. }
  81. .status__display-name {
  82. display: block;
  83. max-width: 100%;
  84. padding-right: 25px;
  85. color: $inverted-text-color;
  86. }
  87. .status__avatar {
  88. position: absolute;
  89. left: 14px;
  90. top: 14px;
  91. width: 48px;
  92. height: 48px;
  93. & > div {
  94. width: 48px;
  95. height: 48px;
  96. }
  97. img {
  98. display: block;
  99. border-radius: 4px;
  100. }
  101. }
  102. .display-name {
  103. display: block;
  104. max-width: 100%;
  105. overflow: hidden;
  106. white-space: nowrap;
  107. text-overflow: ellipsis;
  108. strong {
  109. font-weight: 500;
  110. color: $inverted-text-color;
  111. @each $lang in $cjk-langs {
  112. &:lang(#{$lang}) {
  113. font-weight: 700;
  114. }
  115. }
  116. }
  117. span {
  118. font-size: 14px;
  119. color: $light-text-color;
  120. }
  121. }
  122. .status__content {
  123. color: $inverted-text-color;
  124. a {
  125. color: $highlight-text-color;
  126. }
  127. a.status__content__spoiler-link {
  128. color: $primary-text-color;
  129. background: $ui-base-color;
  130. &:hover {
  131. background: lighten($ui-base-color, 8%);
  132. }
  133. }
  134. }
  135. }
  136. .detailed-status.light {
  137. padding: 14px;
  138. background: $simple-background-color;
  139. cursor: default;
  140. .detailed-status__display-name {
  141. display: block;
  142. overflow: hidden;
  143. margin-bottom: 15px;
  144. & > div {
  145. float: left;
  146. margin-right: 10px;
  147. }
  148. .display-name {
  149. display: block;
  150. max-width: 100%;
  151. overflow: hidden;
  152. white-space: nowrap;
  153. text-overflow: ellipsis;
  154. strong {
  155. font-weight: 500;
  156. color: $inverted-text-color;
  157. @each $lang in $cjk-langs {
  158. &:lang(#{$lang}) {
  159. font-weight: 700;
  160. }
  161. }
  162. }
  163. span {
  164. font-size: 14px;
  165. color: $light-text-color;
  166. }
  167. }
  168. }
  169. .avatar {
  170. width: 48px;
  171. height: 48px;
  172. img {
  173. display: block;
  174. border-radius: 4px;
  175. }
  176. }
  177. .status__content {
  178. color: $inverted-text-color;
  179. a {
  180. color: $highlight-text-color;
  181. }
  182. a.status__content__spoiler-link {
  183. color: $primary-text-color;
  184. background: $ui-base-color;
  185. &:hover {
  186. background: lighten($ui-base-color, 8%);
  187. }
  188. }
  189. }
  190. .detailed-status__meta {
  191. margin-top: 15px;
  192. color: $light-text-color;
  193. font-size: 14px;
  194. line-height: 18px;
  195. a {
  196. color: inherit;
  197. }
  198. span > span {
  199. font-weight: 500;
  200. font-size: 12px;
  201. margin-left: 6px;
  202. display: inline-block;
  203. }
  204. }
  205. .status-card {
  206. border-color: lighten($ui-secondary-color, 4%);
  207. color: $lighter-text-color;
  208. &:hover {
  209. background: lighten($ui-secondary-color, 4%);
  210. }
  211. }
  212. .status-card__title,
  213. .status-card__description {
  214. color: $inverted-text-color;
  215. }
  216. .status-card__image {
  217. background: $ui-secondary-color;
  218. }
  219. }
  220. .media-spoiler {
  221. background: $ui-base-color;
  222. color: $darker-text-color;
  223. }
  224. .pre-header {
  225. padding: 14px 0;
  226. padding-left: (48px + 14px * 2);
  227. padding-bottom: 0;
  228. margin-bottom: -4px;
  229. color: $light-text-color;
  230. font-size: 14px;
  231. position: relative;
  232. .pre-header__icon {
  233. position: absolute;
  234. left: (48px + 14px * 2 - 30px);
  235. }
  236. .status__display-name.muted strong {
  237. color: $light-text-color;
  238. }
  239. }
  240. .open-in-web-link {
  241. text-decoration: none;
  242. &:hover {
  243. text-decoration: underline;
  244. }
  245. }
  246. .more {
  247. color: $darker-text-color;
  248. display: block;
  249. padding: 14px;
  250. text-align: center;
  251. &:not(:hover) {
  252. text-decoration: none;
  253. }
  254. }
  255. }
  256. .embed {
  257. .activity-stream {
  258. box-shadow: none;
  259. }
  260. }
  261. .entry {
  262. .detailed-status.light {
  263. display: flex;
  264. flex-wrap: wrap;
  265. justify-content: space-between;
  266. align-items: flex-start;
  267. .detailed-status__display-name {
  268. flex: 1;
  269. margin: 0 5px 15px 0;
  270. }
  271. .button.button-secondary.logo-button {
  272. flex: 0 auto;
  273. font-size: 14px;
  274. background: $ui-highlight-color;
  275. color: $primary-text-color;
  276. border: 0;
  277. svg {
  278. width: 20px;
  279. height: auto;
  280. vertical-align: middle;
  281. margin-right: 5px;
  282. path:first-child {
  283. fill: $primary-text-color;
  284. }
  285. path:last-child {
  286. fill: $ui-highlight-color;
  287. }
  288. }
  289. &:active,
  290. &:focus,
  291. &:hover {
  292. background: lighten($ui-highlight-color, 10%);
  293. svg path:last-child {
  294. fill: lighten($ui-highlight-color, 10%);
  295. }
  296. }
  297. }
  298. .status__content,
  299. .detailed-status__meta {
  300. flex: 100%;
  301. }
  302. }
  303. }