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.

368 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. @include avatar-size(48px);
  94. & > div {
  95. width: 48px;
  96. height: 48px;
  97. @include avatar-size(48px);
  98. }
  99. img {
  100. display: block;
  101. border-radius: 4px;
  102. @include avatar-radius();
  103. }
  104. }
  105. .display-name {
  106. display: block;
  107. max-width: 100%;
  108. //overflow: hidden;
  109. //white-space: nowrap;
  110. //text-overflow: ellipsis;
  111. strong {
  112. font-weight: 500;
  113. color: $inverted-text-color;
  114. @each $lang in $cjk-langs {
  115. &:lang(#{$lang}) {
  116. font-weight: 700;
  117. }
  118. }
  119. }
  120. span {
  121. font-size: 14px;
  122. color: $light-text-color;
  123. }
  124. }
  125. .status__content {
  126. color: $inverted-text-color;
  127. a {
  128. color: $highlight-text-color;
  129. }
  130. a.status__content__spoiler-link {
  131. color: $primary-text-color;
  132. background: $ui-base-color;
  133. &:hover {
  134. background: lighten($ui-base-color, 8%);
  135. }
  136. }
  137. }
  138. }
  139. .detailed-status.light {
  140. padding: 14px;
  141. background: $simple-background-color;
  142. cursor: default;
  143. .detailed-status__display-name {
  144. display: block;
  145. overflow: hidden;
  146. margin-bottom: 15px;
  147. & > div {
  148. float: left;
  149. margin-right: 10px;
  150. }
  151. .display-name {
  152. display: block;
  153. max-width: 100%;
  154. overflow: hidden;
  155. white-space: nowrap;
  156. text-overflow: ellipsis;
  157. strong {
  158. font-weight: 500;
  159. color: $inverted-text-color;
  160. @each $lang in $cjk-langs {
  161. &:lang(#{$lang}) {
  162. font-weight: 700;
  163. }
  164. }
  165. }
  166. span {
  167. font-size: 14px;
  168. color: $light-text-color;
  169. }
  170. }
  171. }
  172. .avatar {
  173. width: 48px;
  174. height: 48px;
  175. @include avatar-size(48px);
  176. img {
  177. display: block;
  178. border-radius: 4px;
  179. @include avatar-radius();
  180. }
  181. }
  182. .status__content {
  183. color: $inverted-text-color;
  184. a {
  185. color: $highlight-text-color;
  186. }
  187. a.status__content__spoiler-link {
  188. color: $primary-text-color;
  189. background: $ui-base-color;
  190. &:hover {
  191. background: lighten($ui-base-color, 8%);
  192. }
  193. }
  194. }
  195. .detailed-status__meta {
  196. margin-top: 15px;
  197. color: $light-text-color;
  198. font-size: 14px;
  199. line-height: 18px;
  200. a {
  201. color: inherit;
  202. }
  203. span > span {
  204. font-weight: 500;
  205. font-size: 12px;
  206. margin-left: 6px;
  207. display: inline-block;
  208. }
  209. }
  210. .status-card {
  211. border-color: lighten($ui-secondary-color, 4%);
  212. color: $lighter-text-color;
  213. &:hover {
  214. background: lighten($ui-secondary-color, 4%);
  215. }
  216. }
  217. .status-card__title,
  218. .status-card__description {
  219. color: $inverted-text-color;
  220. }
  221. .status-card__image {
  222. background: $ui-secondary-color;
  223. }
  224. }
  225. .media-spoiler {
  226. background: $ui-base-color;
  227. color: $darker-text-color;
  228. }
  229. .pre-header {
  230. padding: 14px 0;
  231. padding-left: (48px + 14px * 2);
  232. padding-bottom: 0;
  233. margin-bottom: -4px;
  234. color: $light-text-color;
  235. font-size: 14px;
  236. position: relative;
  237. .pre-header__icon {
  238. position: absolute;
  239. left: (48px + 14px * 2 - 30px);
  240. }
  241. .status__display-name.muted strong {
  242. color: $light-text-color;
  243. }
  244. }
  245. .open-in-web-link {
  246. text-decoration: none;
  247. &:hover {
  248. text-decoration: underline;
  249. }
  250. }
  251. .more {
  252. color: $darker-text-color;
  253. display: block;
  254. padding: 14px;
  255. text-align: center;
  256. &:not(:hover) {
  257. text-decoration: none;
  258. }
  259. }
  260. }
  261. .embed {
  262. .activity-stream {
  263. box-shadow: none;
  264. }
  265. }
  266. .entry {
  267. .detailed-status.light {
  268. display: flex;
  269. flex-wrap: wrap;
  270. justify-content: space-between;
  271. align-items: flex-start;
  272. .detailed-status__display-name {
  273. flex: 1;
  274. margin: 0 5px 15px 0;
  275. }
  276. .button.button-secondary.logo-button {
  277. flex: 0 auto;
  278. font-size: 14px;
  279. svg {
  280. width: 20px;
  281. height: auto;
  282. vertical-align: middle;
  283. margin-right: 5px;
  284. path:first-child {
  285. fill: $ui-primary-color;
  286. }
  287. path:last-child {
  288. fill: $simple-background-color;
  289. }
  290. }
  291. &:active,
  292. &:focus,
  293. &:hover {
  294. svg path:first-child {
  295. fill: lighten($ui-primary-color, 4%);
  296. }
  297. }
  298. }
  299. .status__content,
  300. .detailed-status__meta {
  301. flex: 100%;
  302. }
  303. }
  304. }