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.

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