widgets.scss 11 KB

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