闭社主体 forked from https://github.com/tootsuite/mastodon
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.

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