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

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