widgets.scss 8.4 KB

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