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.

364 lines
6.5 KiB

  1. .activity-stream {
  2. clear: both;
  3. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  4. .entry {
  5. background: $simple-background-color;
  6. .detailed-status.light,
  7. .status.light,
  8. .more.light {
  9. border-bottom: 1px solid $ui-secondary-color;
  10. animation: none;
  11. }
  12. &:last-child {
  13. &,
  14. .detailed-status.light,
  15. .status.light {
  16. border-bottom: 0;
  17. border-radius: 0 0 4px 4px;
  18. }
  19. }
  20. &:first-child {
  21. &,
  22. .detailed-status.light,
  23. .status.light {
  24. border-radius: 4px 4px 0 0;
  25. }
  26. &:last-child {
  27. &,
  28. .detailed-status.light,
  29. .status.light {
  30. border-radius: 4px;
  31. }
  32. }
  33. }
  34. @media screen and (max-width: 740px) {
  35. &,
  36. .detailed-status.light,
  37. .status.light {
  38. border-radius: 0 !important;
  39. }
  40. }
  41. }
  42. &.with-header {
  43. .entry {
  44. &:first-child {
  45. &,
  46. .detailed-status.light,
  47. .status.light {
  48. border-radius: 0;
  49. }
  50. &:last-child {
  51. &,
  52. .detailed-status.light,
  53. .status.light {
  54. border-radius: 0 0 4px 4px;
  55. }
  56. }
  57. }
  58. }
  59. }
  60. .media-gallery__gifv__label {
  61. bottom: 9px;
  62. }
  63. .status.light {
  64. padding: 14px 14px 14px (48px + 14px * 2);
  65. position: relative;
  66. min-height: 48px;
  67. cursor: default;
  68. .status__header {
  69. font-size: 15px;
  70. .status__meta {
  71. float: right;
  72. font-size: 14px;
  73. .status__relative-time {
  74. color: $lighter-text-color;
  75. }
  76. }
  77. }
  78. .status__display-name {
  79. display: block;
  80. max-width: 100%;
  81. padding-right: 25px;
  82. color: $inverted-text-color;
  83. }
  84. .status__avatar {
  85. position: absolute;
  86. left: 14px;
  87. top: 14px;
  88. width: 48px;
  89. height: 48px;
  90. @include avatar-size(48px);
  91. & > div {
  92. width: 48px;
  93. height: 48px;
  94. @include avatar-size(48px);
  95. }
  96. img {
  97. display: block;
  98. border-radius: 4px;
  99. @include avatar-radius();
  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. @include avatar-size(48px);
  173. img {
  174. display: block;
  175. border-radius: 4px;
  176. @include avatar-radius();
  177. }
  178. }
  179. .status__content {
  180. color: $inverted-text-color;
  181. a {
  182. color: $highlight-text-color;
  183. }
  184. a.status__content__spoiler-link {
  185. color: $primary-text-color;
  186. background: $ui-base-color;
  187. &:hover {
  188. background: lighten($ui-base-color, 8%);
  189. }
  190. }
  191. }
  192. .detailed-status__meta {
  193. margin-top: 15px;
  194. color: $light-text-color;
  195. font-size: 14px;
  196. line-height: 18px;
  197. a {
  198. color: inherit;
  199. }
  200. span > span {
  201. font-weight: 500;
  202. font-size: 12px;
  203. margin-left: 6px;
  204. display: inline-block;
  205. }
  206. }
  207. .status-card {
  208. border-color: lighten($ui-secondary-color, 4%);
  209. color: $lighter-text-color;
  210. &:hover {
  211. background: lighten($ui-secondary-color, 4%);
  212. }
  213. }
  214. .status-card__title,
  215. .status-card__description {
  216. color: $inverted-text-color;
  217. }
  218. .status-card__image {
  219. background: $ui-secondary-color;
  220. }
  221. }
  222. .media-spoiler {
  223. background: $ui-base-color;
  224. color: $darker-text-color;
  225. }
  226. .pre-header {
  227. padding: 14px 0;
  228. padding-left: (48px + 14px * 2);
  229. padding-bottom: 0;
  230. margin-bottom: -4px;
  231. color: $light-text-color;
  232. font-size: 14px;
  233. position: relative;
  234. .pre-header__icon {
  235. position: absolute;
  236. left: (48px + 14px * 2 - 30px);
  237. }
  238. .status__display-name.muted strong {
  239. color: $light-text-color;
  240. }
  241. }
  242. .open-in-web-link {
  243. text-decoration: none;
  244. &:hover {
  245. text-decoration: underline;
  246. }
  247. }
  248. .more {
  249. color: $darker-text-color;
  250. display: block;
  251. padding: 14px;
  252. text-align: center;
  253. &:not(:hover) {
  254. text-decoration: none;
  255. }
  256. }
  257. }
  258. .embed {
  259. .activity-stream {
  260. box-shadow: none;
  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. svg {
  275. width: 20px;
  276. height: auto;
  277. vertical-align: middle;
  278. margin-right: 5px;
  279. path:first-child {
  280. fill: $ui-primary-color;
  281. }
  282. path:last-child {
  283. fill: $simple-background-color;
  284. }
  285. }
  286. &:active,
  287. &:focus,
  288. &:hover {
  289. svg path:first-child {
  290. fill: lighten($ui-primary-color, 4%);
  291. }
  292. }
  293. }
  294. .status__content,
  295. .detailed-status__meta {
  296. flex: 100%;
  297. }
  298. }
  299. }
  300. }
  301. }