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.

620 lines
10 KiB

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