闭社主体 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.

595 lines
9.9 KiB

  1. .hero-widget {
  2. margin-bottom: 10px;
  3. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  4. &__img {
  5. width: 100%;
  6. position: relative;
  7. overflow: hidden;
  8. border-radius: 4px 4px 0 0;
  9. background: $base-shadow-color;
  10. img {
  11. object-fit: cover;
  12. display: block;
  13. width: 100%;
  14. height: 100%;
  15. margin: 0;
  16. border-radius: 4px 4px 0 0;
  17. }
  18. }
  19. &__text {
  20. background: $ui-base-color;
  21. padding: 20px;
  22. border-radius: 0 0 4px 4px;
  23. font-size: 15px;
  24. color: $darker-text-color;
  25. line-height: 20px;
  26. word-wrap: break-word;
  27. font-weight: 400;
  28. .emojione {
  29. width: 20px;
  30. height: 20px;
  31. margin: -3px 0 0;
  32. }
  33. p {
  34. margin-bottom: 20px;
  35. &:last-child {
  36. margin-bottom: 0;
  37. }
  38. }
  39. em {
  40. display: inline;
  41. margin: 0;
  42. padding: 0;
  43. font-weight: 700;
  44. background: transparent;
  45. font-family: inherit;
  46. font-size: inherit;
  47. line-height: inherit;
  48. color: lighten($darker-text-color, 10%);
  49. }
  50. a {
  51. color: $secondary-text-color;
  52. text-decoration: none;
  53. &:hover {
  54. text-decoration: underline;
  55. }
  56. }
  57. }
  58. @media screen and (max-width: $no-gap-breakpoint) {
  59. display: none;
  60. }
  61. }
  62. .endorsements-widget {
  63. margin-bottom: 10px;
  64. padding-bottom: 10px;
  65. h4 {
  66. padding: 10px;
  67. text-transform: uppercase;
  68. font-weight: 700;
  69. font-size: 13px;
  70. color: $darker-text-color;
  71. }
  72. .account {
  73. padding: 10px 0;
  74. &:last-child {
  75. border-bottom: 0;
  76. }
  77. .account__display-name {
  78. display: flex;
  79. align-items: center;
  80. }
  81. }
  82. .trends__item {
  83. padding: 10px;
  84. }
  85. }
  86. .trends-widget {
  87. h4 {
  88. color: $darker-text-color;
  89. }
  90. }
  91. .box-widget {
  92. padding: 20px;
  93. border-radius: 4px;
  94. background: $ui-base-color;
  95. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  96. }
  97. .placeholder-widget {
  98. padding: 16px;
  99. border-radius: 4px;
  100. border: 2px dashed $dark-text-color;
  101. text-align: center;
  102. color: $darker-text-color;
  103. margin-bottom: 10px;
  104. }
  105. .contact-widget {
  106. min-height: 100%;
  107. font-size: 15px;
  108. color: $darker-text-color;
  109. line-height: 20px;
  110. word-wrap: break-word;
  111. font-weight: 400;
  112. padding: 0;
  113. h4 {
  114. padding: 10px;
  115. text-transform: uppercase;
  116. font-weight: 700;
  117. font-size: 13px;
  118. color: $darker-text-color;
  119. }
  120. .account {
  121. border-bottom: 0;
  122. padding: 10px 0;
  123. padding-top: 5px;
  124. }
  125. & > a {
  126. display: inline-block;
  127. padding: 10px;
  128. padding-top: 0;
  129. color: $darker-text-color;
  130. text-decoration: none;
  131. white-space: nowrap;
  132. overflow: hidden;
  133. text-overflow: ellipsis;
  134. &:hover,
  135. &:focus,
  136. &:active {
  137. text-decoration: underline;
  138. }
  139. }
  140. }
  141. .moved-account-widget {
  142. padding: 15px;
  143. padding-bottom: 20px;
  144. border-radius: 4px;
  145. background: $ui-base-color;
  146. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  147. color: $secondary-text-color;
  148. font-weight: 400;
  149. margin-bottom: 10px;
  150. strong,
  151. a {
  152. font-weight: 500;
  153. @each $lang in $cjk-langs {
  154. &:lang(#{$lang}) {
  155. font-weight: 700;
  156. }
  157. }
  158. }
  159. a {
  160. color: inherit;
  161. text-decoration: underline;
  162. &.mention {
  163. text-decoration: none;
  164. span {
  165. text-decoration: none;
  166. }
  167. &:focus,
  168. &:hover,
  169. &:active {
  170. text-decoration: none;
  171. span {
  172. text-decoration: underline;
  173. }
  174. }
  175. }
  176. }
  177. &__message {
  178. margin-bottom: 15px;
  179. .fa {
  180. margin-right: 5px;
  181. color: $darker-text-color;
  182. }
  183. }
  184. &__card {
  185. .detailed-status__display-avatar {
  186. position: relative;
  187. cursor: pointer;
  188. }
  189. .detailed-status__display-name {
  190. margin-bottom: 0;
  191. text-decoration: none;
  192. span {
  193. font-weight: 400;
  194. }
  195. }
  196. }
  197. }
  198. .memoriam-widget {
  199. padding: 20px;
  200. border-radius: 4px;
  201. background: $base-shadow-color;
  202. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  203. font-size: 14px;
  204. color: $darker-text-color;
  205. margin-bottom: 10px;
  206. }
  207. .page-header {
  208. background: lighten($ui-base-color, 8%);
  209. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  210. border-radius: 4px;
  211. padding: 60px 15px;
  212. text-align: center;
  213. margin: 10px 0;
  214. h1 {
  215. color: $primary-text-color;
  216. font-size: 36px;
  217. line-height: 1.1;
  218. font-weight: 700;
  219. margin-bottom: 10px;
  220. }
  221. p {
  222. font-size: 15px;
  223. color: $darker-text-color;
  224. }
  225. @media screen and (max-width: $no-gap-breakpoint) {
  226. margin-top: 0;
  227. background: lighten($ui-base-color, 4%);
  228. h1 {
  229. font-size: 24px;
  230. }
  231. }
  232. }
  233. .directory {
  234. background: $ui-base-color;
  235. border-radius: 4px;
  236. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  237. &__tag {
  238. box-sizing: border-box;
  239. margin-bottom: 10px;
  240. & > a,
  241. & > div {
  242. display: flex;
  243. align-items: center;
  244. justify-content: space-between;
  245. background: $ui-base-color;
  246. border-radius: 4px;
  247. padding: 15px;
  248. text-decoration: none;
  249. color: inherit;
  250. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  251. }
  252. & > a {
  253. &:hover,
  254. &:active,
  255. &:focus {
  256. background: lighten($ui-base-color, 8%);
  257. }
  258. }
  259. &.active > a {
  260. background: $ui-highlight-color;
  261. cursor: default;
  262. }
  263. &.disabled > div {
  264. opacity: 0.5;
  265. cursor: default;
  266. }
  267. h4 {
  268. flex: 1 1 auto;
  269. font-size: 18px;
  270. font-weight: 700;
  271. color: $primary-text-color;
  272. white-space: nowrap;
  273. overflow: hidden;
  274. text-overflow: ellipsis;
  275. .fa {
  276. color: $darker-text-color;
  277. }
  278. small {
  279. display: block;
  280. font-weight: 400;
  281. font-size: 15px;
  282. margin-top: 8px;
  283. color: $darker-text-color;
  284. }
  285. }
  286. &.active h4 {
  287. &,
  288. .fa,
  289. small,
  290. .trends__item__current {
  291. color: $primary-text-color;
  292. }
  293. }
  294. .avatar-stack {
  295. flex: 0 0 auto;
  296. width: (36px + 4px) * 3;
  297. }
  298. &.active .avatar-stack .account__avatar {
  299. border-color: $ui-highlight-color;
  300. }
  301. .trends__item__current {
  302. padding-right: 0;
  303. }
  304. }
  305. }
  306. .avatar-stack {
  307. display: flex;
  308. justify-content: flex-end;
  309. .account__avatar {
  310. flex: 0 0 auto;
  311. width: 36px;
  312. height: 36px;
  313. border-radius: 50%;
  314. position: relative;
  315. margin-left: -10px;
  316. background: darken($ui-base-color, 8%);
  317. border: 2px solid $ui-base-color;
  318. &:nth-child(1) {
  319. z-index: 1;
  320. }
  321. &:nth-child(2) {
  322. z-index: 2;
  323. }
  324. &:nth-child(3) {
  325. z-index: 3;
  326. }
  327. }
  328. }
  329. .accounts-table {
  330. width: 100%;
  331. .account {
  332. padding: 0;
  333. border: 0;
  334. }
  335. strong {
  336. font-weight: 700;
  337. }
  338. thead th {
  339. text-align: center;
  340. text-transform: uppercase;
  341. color: $darker-text-color;
  342. font-weight: 700;
  343. padding: 10px;
  344. &:first-child {
  345. text-align: left;
  346. }
  347. }
  348. tbody td {
  349. padding: 15px 0;
  350. vertical-align: middle;
  351. border-bottom: 1px solid lighten($ui-base-color, 8%);
  352. }
  353. tbody tr:last-child td {
  354. border-bottom: 0;
  355. }
  356. &__count {
  357. width: 120px;
  358. text-align: center;
  359. font-size: 15px;
  360. font-weight: 500;
  361. color: $primary-text-color;
  362. small {
  363. display: block;
  364. color: $darker-text-color;
  365. font-weight: 400;
  366. font-size: 14px;
  367. }
  368. }
  369. &__comment {
  370. width: 50%;
  371. vertical-align: initial !important;
  372. }
  373. @media screen and (max-width: $no-gap-breakpoint) {
  374. tbody td.optional {
  375. display: none;
  376. }
  377. }
  378. }
  379. .moved-account-widget,
  380. .memoriam-widget,
  381. .box-widget,
  382. .contact-widget,
  383. .landing-page__information.contact-widget,
  384. .directory,
  385. .page-header {
  386. @media screen and (max-width: $no-gap-breakpoint) {
  387. margin-bottom: 0;
  388. box-shadow: none;
  389. border-radius: 0;
  390. }
  391. }
  392. $maximum-width: 1235px;
  393. $fluid-breakpoint: $maximum-width + 20px;
  394. .statuses-grid {
  395. min-height: 600px;
  396. @media screen and (max-width: 640px) {
  397. width: 100% !important; // Masonry layout is unnecessary at this width
  398. }
  399. &__item {
  400. width: (960px - 20px) / 3;
  401. @media screen and (max-width: $fluid-breakpoint) {
  402. width: (940px - 20px) / 3;
  403. }
  404. @media screen and (max-width: 640px) {
  405. width: 100%;
  406. }
  407. @media screen and (max-width: $no-gap-breakpoint) {
  408. width: 100vw;
  409. }
  410. }
  411. .detailed-status {
  412. border-radius: 4px;
  413. @media screen and (max-width: $no-gap-breakpoint) {
  414. border-top: 1px solid lighten($ui-base-color, 16%);
  415. }
  416. &.compact {
  417. .detailed-status__meta {
  418. margin-top: 15px;
  419. }
  420. .status__content {
  421. font-size: 15px;
  422. line-height: 20px;
  423. .emojione {
  424. width: 20px;
  425. height: 20px;
  426. margin: -3px 0 0;
  427. }
  428. .status__content__spoiler-link {
  429. line-height: 20px;
  430. margin: 0;
  431. }
  432. }
  433. .media-gallery,
  434. .status-card,
  435. .video-player {
  436. margin-top: 15px;
  437. }
  438. }
  439. }
  440. }
  441. .notice-widget {
  442. margin-bottom: 10px;
  443. color: $darker-text-color;
  444. p {
  445. margin-bottom: 10px;
  446. &:last-child {
  447. margin-bottom: 0;
  448. }
  449. }
  450. a {
  451. font-size: 14px;
  452. line-height: 20px;
  453. }
  454. }
  455. .notice-widget,
  456. .placeholder-widget {
  457. a {
  458. text-decoration: none;
  459. font-weight: 500;
  460. color: $ui-highlight-color;
  461. &:hover,
  462. &:focus,
  463. &:active {
  464. text-decoration: underline;
  465. }
  466. }
  467. }
  468. .table-of-contents {
  469. background: darken($ui-base-color, 4%);
  470. min-height: 100%;
  471. font-size: 14px;
  472. border-radius: 4px;
  473. li a {
  474. display: block;
  475. font-weight: 500;
  476. padding: 15px;
  477. overflow: hidden;
  478. white-space: nowrap;
  479. overflow: hidden;
  480. text-overflow: ellipsis;
  481. text-decoration: none;
  482. color: $primary-text-color;
  483. border-bottom: 1px solid lighten($ui-base-color, 4%);
  484. &:hover,
  485. &:focus,
  486. &:active {
  487. text-decoration: underline;
  488. }
  489. }
  490. li:last-child a {
  491. border-bottom: 0;
  492. }
  493. li ul {
  494. padding-left: 20px;
  495. border-bottom: 1px solid lighten($ui-base-color, 4%);
  496. }
  497. }