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.

414 lines
6.7 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. 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. .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. .moved-account-widget {
  106. padding: 15px;
  107. padding-bottom: 20px;
  108. border-radius: 4px;
  109. background: $ui-base-color;
  110. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  111. color: $secondary-text-color;
  112. font-weight: 400;
  113. margin-bottom: 10px;
  114. strong,
  115. a {
  116. font-weight: 500;
  117. @each $lang in $cjk-langs {
  118. &:lang(#{$lang}) {
  119. font-weight: 700;
  120. }
  121. }
  122. }
  123. a {
  124. color: inherit;
  125. text-decoration: underline;
  126. &.mention {
  127. text-decoration: none;
  128. span {
  129. text-decoration: none;
  130. }
  131. &:focus,
  132. &:hover,
  133. &:active {
  134. text-decoration: none;
  135. span {
  136. text-decoration: underline;
  137. }
  138. }
  139. }
  140. }
  141. &__message {
  142. margin-bottom: 15px;
  143. .fa {
  144. margin-right: 5px;
  145. color: $darker-text-color;
  146. }
  147. }
  148. &__card {
  149. .detailed-status__display-avatar {
  150. position: relative;
  151. cursor: pointer;
  152. }
  153. .detailed-status__display-name {
  154. margin-bottom: 0;
  155. text-decoration: none;
  156. span {
  157. font-weight: 400;
  158. }
  159. }
  160. }
  161. }
  162. .memoriam-widget {
  163. padding: 20px;
  164. border-radius: 4px;
  165. background: $base-shadow-color;
  166. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  167. font-size: 14px;
  168. color: $darker-text-color;
  169. margin-bottom: 10px;
  170. }
  171. .directory {
  172. background: $ui-base-color;
  173. border-radius: 4px;
  174. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  175. &__tag {
  176. box-sizing: border-box;
  177. margin-bottom: 10px;
  178. & > a,
  179. & > div {
  180. display: flex;
  181. align-items: center;
  182. justify-content: space-between;
  183. background: $ui-base-color;
  184. border-radius: 4px;
  185. padding: 15px;
  186. text-decoration: none;
  187. color: inherit;
  188. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  189. }
  190. & > a {
  191. &:hover,
  192. &:active,
  193. &:focus {
  194. background: lighten($ui-base-color, 8%);
  195. }
  196. }
  197. &.active > a {
  198. background: $ui-highlight-color;
  199. cursor: default;
  200. }
  201. &.disabled > div {
  202. opacity: 0.5;
  203. cursor: default;
  204. }
  205. h4 {
  206. flex: 1 1 auto;
  207. font-size: 18px;
  208. font-weight: 700;
  209. color: $primary-text-color;
  210. white-space: nowrap;
  211. overflow: hidden;
  212. text-overflow: ellipsis;
  213. .fa {
  214. color: $darker-text-color;
  215. }
  216. small {
  217. display: block;
  218. font-weight: 400;
  219. font-size: 15px;
  220. margin-top: 8px;
  221. color: $darker-text-color;
  222. }
  223. }
  224. &.active h4 {
  225. &,
  226. .fa,
  227. small,
  228. .trends__item__current {
  229. color: $primary-text-color;
  230. }
  231. }
  232. .avatar-stack {
  233. flex: 0 0 auto;
  234. width: (36px + 4px) * 3;
  235. }
  236. &.active .avatar-stack .account__avatar {
  237. border-color: $ui-highlight-color;
  238. }
  239. .trends__item__current {
  240. padding-right: 0;
  241. }
  242. }
  243. }
  244. .accounts-table {
  245. width: 100%;
  246. .account {
  247. padding: 0;
  248. border: 0;
  249. }
  250. strong {
  251. font-weight: 700;
  252. }
  253. thead th {
  254. text-align: center;
  255. text-transform: uppercase;
  256. color: $darker-text-color;
  257. font-weight: 700;
  258. padding: 10px;
  259. &:first-child {
  260. text-align: left;
  261. }
  262. }
  263. tbody td {
  264. padding: 15px 0;
  265. vertical-align: middle;
  266. border-bottom: 1px solid lighten($ui-base-color, 8%);
  267. }
  268. tbody tr:last-child td {
  269. border-bottom: 0;
  270. }
  271. &__count {
  272. width: 120px;
  273. text-align: center;
  274. font-size: 15px;
  275. font-weight: 500;
  276. color: $primary-text-color;
  277. small {
  278. display: block;
  279. color: $darker-text-color;
  280. font-weight: 400;
  281. font-size: 14px;
  282. }
  283. }
  284. tbody td.accounts-table__extra {
  285. width: 120px;
  286. text-align: right;
  287. color: $darker-text-color;
  288. padding-right: 16px;
  289. a {
  290. text-decoration: none;
  291. color: inherit;
  292. &:focus,
  293. &:hover,
  294. &:active {
  295. text-decoration: underline;
  296. }
  297. }
  298. }
  299. &__comment {
  300. width: 50%;
  301. vertical-align: initial !important;
  302. }
  303. tbody td.accounts-table__interrelationships {
  304. width: 21px;
  305. padding-right: 16px;
  306. }
  307. .fa {
  308. font-size: 16px;
  309. &.active {
  310. color: $highlight-text-color;
  311. }
  312. &.passive {
  313. color: $passive-text-color;
  314. }
  315. &.active.passive {
  316. color: $active-passive-text-color;
  317. }
  318. }
  319. @media screen and (max-width: $no-gap-breakpoint) {
  320. tbody td.optional {
  321. display: none;
  322. }
  323. }
  324. }
  325. .moved-account-widget,
  326. .memoriam-widget,
  327. .directory {
  328. @media screen and (max-width: $no-gap-breakpoint) {
  329. margin-bottom: 0;
  330. box-shadow: none;
  331. border-radius: 0;
  332. }
  333. }
  334. .placeholder-widget {
  335. a {
  336. text-decoration: none;
  337. font-weight: 500;
  338. color: $ui-highlight-color;
  339. &:hover,
  340. &:focus,
  341. &:active {
  342. text-decoration: underline;
  343. }
  344. }
  345. }