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.

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