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.

569 lines
9.3 KiB

  1. .admin-wrapper {
  2. display: flex;
  3. justify-content: center;
  4. height: 100%;
  5. .sidebar-wrapper {
  6. flex: 1;
  7. height: 100%;
  8. background: $ui-base-color;
  9. display: flex;
  10. justify-content: flex-end;
  11. }
  12. .sidebar {
  13. width: 240px;
  14. height: 100%;
  15. padding: 0;
  16. overflow-y: auto;
  17. .logo {
  18. display: block;
  19. margin: 40px auto;
  20. width: 100px;
  21. height: 100px;
  22. }
  23. ul {
  24. list-style: none;
  25. border-radius: 4px 0 0 4px;
  26. overflow: hidden;
  27. margin-bottom: 20px;
  28. a {
  29. display: block;
  30. padding: 15px;
  31. color: $darker-text-color;
  32. text-decoration: none;
  33. transition: all 200ms linear;
  34. border-radius: 4px 0 0 4px;
  35. i.fa {
  36. margin-right: 5px;
  37. }
  38. &:hover {
  39. color: $primary-text-color;
  40. background-color: darken($ui-base-color, 5%);
  41. transition: all 100ms linear;
  42. }
  43. &.selected {
  44. background: darken($ui-base-color, 2%);
  45. border-radius: 4px 0 0;
  46. }
  47. }
  48. ul {
  49. background: darken($ui-base-color, 4%);
  50. border-radius: 0 0 0 4px;
  51. margin: 0;
  52. a {
  53. border: 0;
  54. padding: 15px 35px;
  55. &.selected {
  56. color: $primary-text-color;
  57. background-color: $ui-highlight-color;
  58. border-bottom: 0;
  59. border-radius: 0;
  60. &:hover {
  61. background-color: lighten($ui-highlight-color, 5%);
  62. }
  63. }
  64. }
  65. }
  66. }
  67. }
  68. .content-wrapper {
  69. flex: 2;
  70. overflow: auto;
  71. }
  72. .content {
  73. max-width: 700px;
  74. padding: 20px 15px;
  75. padding-top: 60px;
  76. padding-left: 25px;
  77. h2 {
  78. color: $secondary-text-color;
  79. font-size: 24px;
  80. line-height: 28px;
  81. font-weight: 400;
  82. margin-bottom: 40px;
  83. }
  84. h3 {
  85. color: $secondary-text-color;
  86. font-size: 20px;
  87. line-height: 28px;
  88. font-weight: 400;
  89. margin-bottom: 30px;
  90. }
  91. h4 {
  92. text-transform: uppercase;
  93. font-size: 13px;
  94. font-weight: 500;
  95. color: $darker-text-color;
  96. padding-bottom: 8px;
  97. margin-bottom: 8px;
  98. border-bottom: 1px solid lighten($ui-base-color, 8%);
  99. }
  100. h6 {
  101. font-size: 16px;
  102. color: $secondary-text-color;
  103. line-height: 28px;
  104. font-weight: 400;
  105. }
  106. & > p {
  107. font-size: 14px;
  108. line-height: 18px;
  109. color: $secondary-text-color;
  110. margin-bottom: 20px;
  111. strong {
  112. color: $primary-text-color;
  113. font-weight: 500;
  114. @each $lang in $cjk-langs {
  115. &:lang(#{$lang}) {
  116. font-weight: 700;
  117. }
  118. }
  119. }
  120. }
  121. hr {
  122. width: 100%;
  123. height: 0;
  124. border: 0;
  125. border-bottom: 1px solid rgba($ui-base-lighter-color, .6);
  126. margin: 20px 0;
  127. &.spacer {
  128. height: 1px;
  129. border: 0;
  130. }
  131. }
  132. .muted-hint {
  133. color: $darker-text-color;
  134. a {
  135. color: $highlight-text-color;
  136. }
  137. }
  138. .positive-hint {
  139. color: $valid-value-color;
  140. font-weight: 500;
  141. }
  142. .negative-hint {
  143. color: $error-value-color;
  144. font-weight: 500;
  145. }
  146. }
  147. .simple_form {
  148. max-width: 400px;
  149. &.edit_user,
  150. &.new_form_admin_settings,
  151. &.new_form_two_factor_confirmation,
  152. &.new_form_delete_confirmation,
  153. &.new_import,
  154. &.new_domain_block,
  155. &.edit_domain_block {
  156. max-width: none;
  157. }
  158. .form_two_factor_confirmation_code,
  159. .form_delete_confirmation_password {
  160. max-width: 400px;
  161. }
  162. .actions {
  163. max-width: 400px;
  164. }
  165. }
  166. @media screen and (max-width: 600px) {
  167. display: block;
  168. overflow-y: auto;
  169. -webkit-overflow-scrolling: touch;
  170. .sidebar-wrapper,
  171. .content-wrapper {
  172. flex: 0 0 auto;
  173. height: auto;
  174. overflow: initial;
  175. }
  176. .sidebar {
  177. width: 100%;
  178. padding: 10px 0;
  179. height: auto;
  180. .logo {
  181. margin: 20px auto;
  182. }
  183. }
  184. .content {
  185. padding-top: 20px;
  186. }
  187. }
  188. }
  189. .filters {
  190. display: flex;
  191. flex-wrap: wrap;
  192. .filter-subset {
  193. flex: 0 0 auto;
  194. margin: 0 40px 10px 0;
  195. &:last-child {
  196. margin-bottom: 20px;
  197. }
  198. ul {
  199. margin-top: 5px;
  200. list-style: none;
  201. li {
  202. display: inline-block;
  203. margin-right: 5px;
  204. }
  205. }
  206. strong {
  207. font-weight: 500;
  208. text-transform: uppercase;
  209. font-size: 12px;
  210. @each $lang in $cjk-langs {
  211. &:lang(#{$lang}) {
  212. font-weight: 700;
  213. }
  214. }
  215. }
  216. a {
  217. display: inline-block;
  218. color: $darker-text-color;
  219. text-decoration: none;
  220. text-transform: uppercase;
  221. font-size: 12px;
  222. font-weight: 500;
  223. border-bottom: 2px solid $ui-base-color;
  224. &:hover {
  225. color: $primary-text-color;
  226. border-bottom: 2px solid lighten($ui-base-color, 5%);
  227. }
  228. &.selected {
  229. color: $highlight-text-color;
  230. border-bottom: 2px solid $ui-highlight-color;
  231. }
  232. }
  233. }
  234. }
  235. .report-accounts {
  236. display: flex;
  237. flex-wrap: wrap;
  238. margin-bottom: 20px;
  239. }
  240. .report-accounts__item {
  241. display: flex;
  242. flex: 250px;
  243. flex-direction: column;
  244. margin: 0 5px;
  245. & > strong {
  246. display: block;
  247. margin: 0 0 10px -5px;
  248. font-weight: 500;
  249. font-size: 14px;
  250. line-height: 18px;
  251. color: $secondary-text-color;
  252. @each $lang in $cjk-langs {
  253. &:lang(#{$lang}) {
  254. font-weight: 700;
  255. }
  256. }
  257. }
  258. .account-card {
  259. flex: 1 1 auto;
  260. }
  261. }
  262. .report-status,
  263. .account-status {
  264. display: flex;
  265. margin-bottom: 10px;
  266. .activity-stream {
  267. flex: 2 0 0;
  268. margin-right: 20px;
  269. max-width: calc(100% - 60px);
  270. .entry {
  271. border-radius: 4px;
  272. }
  273. }
  274. }
  275. .report-status__actions,
  276. .account-status__actions {
  277. flex: 0 0 auto;
  278. display: flex;
  279. flex-direction: column;
  280. .icon-button {
  281. font-size: 24px;
  282. width: 24px;
  283. text-align: center;
  284. margin-bottom: 10px;
  285. }
  286. }
  287. .simple_form.new_report_note,
  288. .simple_form.new_account_moderation_note {
  289. max-width: 100%;
  290. }
  291. .batch-form-box {
  292. display: flex;
  293. flex-wrap: wrap;
  294. margin-bottom: 5px;
  295. #form_status_batch_action {
  296. margin: 0 5px 5px 0;
  297. font-size: 14px;
  298. }
  299. input.button {
  300. margin: 0 5px 5px 0;
  301. }
  302. .media-spoiler-toggle-buttons {
  303. margin-left: auto;
  304. .button {
  305. overflow: visible;
  306. margin: 0 0 5px 5px;
  307. float: right;
  308. }
  309. }
  310. }
  311. .back-link {
  312. margin-bottom: 10px;
  313. font-size: 14px;
  314. a {
  315. color: $highlight-text-color;
  316. text-decoration: none;
  317. &:hover {
  318. text-decoration: underline;
  319. }
  320. }
  321. }
  322. .spacer {
  323. flex: 1 1 auto;
  324. }
  325. .log-entry {
  326. margin-bottom: 20px;
  327. line-height: 20px;
  328. &__header {
  329. display: flex;
  330. justify-content: flex-start;
  331. align-items: center;
  332. padding: 10px;
  333. background: $ui-base-color;
  334. color: $darker-text-color;
  335. border-radius: 4px 4px 0 0;
  336. font-size: 14px;
  337. position: relative;
  338. }
  339. &__avatar {
  340. margin-right: 10px;
  341. .avatar {
  342. display: block;
  343. margin: 0;
  344. border-radius: 50%;
  345. width: 40px;
  346. height: 40px;
  347. }
  348. }
  349. &__content {
  350. max-width: calc(100% - 90px);
  351. }
  352. &__title {
  353. word-wrap: break-word;
  354. }
  355. &__timestamp {
  356. color: $dark-text-color;
  357. }
  358. &__extras {
  359. background: lighten($ui-base-color, 6%);
  360. border-radius: 0 0 4px 4px;
  361. padding: 10px;
  362. color: $darker-text-color;
  363. font-family: 'mastodon-font-monospace', monospace;
  364. font-size: 12px;
  365. word-wrap: break-word;
  366. min-height: 20px;
  367. }
  368. &__icon {
  369. font-size: 28px;
  370. margin-right: 10px;
  371. color: $dark-text-color;
  372. }
  373. &__icon__overlay {
  374. position: absolute;
  375. top: 10px;
  376. right: 10px;
  377. width: 10px;
  378. height: 10px;
  379. border-radius: 50%;
  380. &.positive {
  381. background: $success-green;
  382. }
  383. &.negative {
  384. background: lighten($error-red, 12%);
  385. }
  386. &.neutral {
  387. background: $ui-highlight-color;
  388. }
  389. }
  390. a,
  391. .username,
  392. .target {
  393. color: $secondary-text-color;
  394. text-decoration: none;
  395. font-weight: 500;
  396. }
  397. .diff-old {
  398. color: lighten($error-red, 12%);
  399. }
  400. .diff-neutral {
  401. color: $secondary-text-color;
  402. }
  403. .diff-new {
  404. color: $success-green;
  405. }
  406. }
  407. a.name-tag,
  408. .name-tag,
  409. a.inline-name-tag,
  410. .inline-name-tag {
  411. text-decoration: none;
  412. color: $secondary-text-color;
  413. .username {
  414. font-weight: 500;
  415. }
  416. &.suspended {
  417. .username {
  418. text-decoration: line-through;
  419. color: lighten($error-red, 12%);
  420. }
  421. .avatar {
  422. filter: grayscale(100%);
  423. opacity: 0.8;
  424. }
  425. }
  426. }
  427. a.name-tag,
  428. .name-tag {
  429. display: flex;
  430. align-items: center;
  431. .avatar {
  432. display: block;
  433. margin: 0;
  434. margin-right: 5px;
  435. border-radius: 50%;
  436. }
  437. &.suspended {
  438. .avatar {
  439. filter: grayscale(100%);
  440. opacity: 0.8;
  441. }
  442. }
  443. }
  444. .speech-bubble {
  445. margin-bottom: 20px;
  446. border-left: 4px solid $ui-highlight-color;
  447. &.positive {
  448. border-left-color: $success-green;
  449. }
  450. &.negative {
  451. border-left-color: lighten($error-red, 12%);
  452. }
  453. &__bubble {
  454. padding: 16px;
  455. padding-left: 14px;
  456. font-size: 15px;
  457. line-height: 20px;
  458. border-radius: 4px 4px 4px 0;
  459. position: relative;
  460. font-weight: 500;
  461. a {
  462. color: $darker-text-color;
  463. }
  464. }
  465. &__owner {
  466. padding: 8px;
  467. padding-left: 12px;
  468. }
  469. time {
  470. color: $dark-text-color;
  471. }
  472. }