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.

580 lines
9.4 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. }
  143. .simple_form {
  144. max-width: 400px;
  145. &.edit_user,
  146. &.new_form_admin_settings,
  147. &.new_form_two_factor_confirmation,
  148. &.new_form_delete_confirmation,
  149. &.new_import,
  150. &.new_domain_block,
  151. &.edit_domain_block {
  152. max-width: none;
  153. }
  154. .form_two_factor_confirmation_code,
  155. .form_delete_confirmation_password {
  156. max-width: 400px;
  157. }
  158. .actions {
  159. max-width: 400px;
  160. }
  161. }
  162. @media screen and (max-width: 600px) {
  163. display: block;
  164. overflow-y: auto;
  165. -webkit-overflow-scrolling: touch;
  166. .sidebar-wrapper,
  167. .content-wrapper {
  168. flex: 0 0 auto;
  169. height: auto;
  170. overflow: initial;
  171. }
  172. .sidebar {
  173. width: 100%;
  174. padding: 10px 0;
  175. height: auto;
  176. .logo {
  177. margin: 20px auto;
  178. }
  179. }
  180. .content {
  181. padding-top: 20px;
  182. }
  183. }
  184. }
  185. .filters {
  186. display: flex;
  187. flex-wrap: wrap;
  188. .filter-subset {
  189. flex: 0 0 auto;
  190. margin: 0 40px 10px 0;
  191. &:last-child {
  192. margin-bottom: 20px;
  193. }
  194. ul {
  195. margin-top: 5px;
  196. list-style: none;
  197. li {
  198. display: inline-block;
  199. margin-right: 5px;
  200. }
  201. }
  202. strong {
  203. font-weight: 500;
  204. text-transform: uppercase;
  205. font-size: 12px;
  206. @each $lang in $cjk-langs {
  207. &:lang(#{$lang}) {
  208. font-weight: 700;
  209. }
  210. }
  211. }
  212. a {
  213. display: inline-block;
  214. color: $darker-text-color;
  215. text-decoration: none;
  216. text-transform: uppercase;
  217. font-size: 12px;
  218. font-weight: 500;
  219. border-bottom: 2px solid $ui-base-color;
  220. &:hover {
  221. color: $primary-text-color;
  222. border-bottom: 2px solid lighten($ui-base-color, 5%);
  223. }
  224. &.selected {
  225. color: $highlight-text-color;
  226. border-bottom: 2px solid $ui-highlight-color;
  227. }
  228. }
  229. }
  230. }
  231. .flavour-screen {
  232. display: block;
  233. margin: 10px auto;
  234. max-width: 100%;
  235. }
  236. .flavour-description {
  237. display: block;
  238. font-size: 16px;
  239. margin: 10px 0;
  240. & > p {
  241. margin: 10px 0;
  242. }
  243. }
  244. .report-accounts {
  245. display: flex;
  246. flex-wrap: wrap;
  247. margin-bottom: 20px;
  248. }
  249. .report-accounts__item {
  250. display: flex;
  251. flex: 250px;
  252. flex-direction: column;
  253. margin: 0 5px;
  254. & > strong {
  255. display: block;
  256. margin: 0 0 10px -5px;
  257. font-weight: 500;
  258. font-size: 14px;
  259. line-height: 18px;
  260. color: $secondary-text-color;
  261. @each $lang in $cjk-langs {
  262. &:lang(#{$lang}) {
  263. font-weight: 700;
  264. }
  265. }
  266. }
  267. .account-card {
  268. flex: 1 1 auto;
  269. }
  270. }
  271. .report-status,
  272. .account-status {
  273. display: flex;
  274. margin-bottom: 10px;
  275. .activity-stream {
  276. flex: 2 0 0;
  277. margin-right: 20px;
  278. max-width: calc(100% - 60px);
  279. .entry {
  280. border-radius: 4px;
  281. }
  282. }
  283. }
  284. .report-status__actions,
  285. .account-status__actions {
  286. flex: 0 0 auto;
  287. display: flex;
  288. flex-direction: column;
  289. .icon-button {
  290. font-size: 24px;
  291. width: 24px;
  292. text-align: center;
  293. margin-bottom: 10px;
  294. }
  295. }
  296. .simple_form.new_report_note,
  297. .simple_form.new_account_moderation_note {
  298. max-width: 100%;
  299. }
  300. .batch-form-box {
  301. display: flex;
  302. flex-wrap: wrap;
  303. margin-bottom: 5px;
  304. #form_status_batch_action {
  305. margin: 0 5px 5px 0;
  306. font-size: 14px;
  307. }
  308. input.button {
  309. margin: 0 5px 5px 0;
  310. }
  311. .media-spoiler-toggle-buttons {
  312. margin-left: auto;
  313. .button {
  314. overflow: visible;
  315. margin: 0 0 5px 5px;
  316. float: right;
  317. }
  318. }
  319. }
  320. .back-link {
  321. margin-bottom: 10px;
  322. font-size: 14px;
  323. a {
  324. color: $highlight-text-color;
  325. text-decoration: none;
  326. &:hover {
  327. text-decoration: underline;
  328. }
  329. }
  330. }
  331. .spacer {
  332. flex: 1 1 auto;
  333. }
  334. .log-entry {
  335. margin-bottom: 20px;
  336. line-height: 20px;
  337. &__header {
  338. display: flex;
  339. justify-content: flex-start;
  340. align-items: center;
  341. padding: 10px;
  342. background: $ui-base-color;
  343. color: $darker-text-color;
  344. border-radius: 4px 4px 0 0;
  345. font-size: 14px;
  346. position: relative;
  347. }
  348. &__avatar {
  349. margin-right: 10px;
  350. .avatar {
  351. display: block;
  352. margin: 0;
  353. border-radius: 50%;
  354. width: 40px;
  355. height: 40px;
  356. }
  357. }
  358. &__content {
  359. max-width: calc(100% - 90px);
  360. }
  361. &__title {
  362. word-wrap: break-word;
  363. }
  364. &__timestamp {
  365. color: $dark-text-color;
  366. }
  367. &__extras {
  368. background: lighten($ui-base-color, 6%);
  369. border-radius: 0 0 4px 4px;
  370. padding: 10px;
  371. color: $darker-text-color;
  372. font-family: 'mastodon-font-monospace', monospace;
  373. font-size: 12px;
  374. word-wrap: break-word;
  375. min-height: 20px;
  376. }
  377. &__icon {
  378. font-size: 28px;
  379. margin-right: 10px;
  380. color: $dark-text-color;
  381. }
  382. &__icon__overlay {
  383. position: absolute;
  384. top: 10px;
  385. right: 10px;
  386. width: 10px;
  387. height: 10px;
  388. border-radius: 50%;
  389. &.positive {
  390. background: $success-green;
  391. }
  392. &.negative {
  393. background: lighten($error-red, 12%);
  394. }
  395. &.neutral {
  396. background: $ui-highlight-color;
  397. }
  398. }
  399. a,
  400. .username,
  401. .target {
  402. color: $secondary-text-color;
  403. text-decoration: none;
  404. font-weight: 500;
  405. }
  406. .diff-old {
  407. color: lighten($error-red, 12%);
  408. }
  409. .diff-neutral {
  410. color: $secondary-text-color;
  411. }
  412. .diff-new {
  413. color: $success-green;
  414. }
  415. }
  416. a.name-tag,
  417. .name-tag,
  418. a.inline-name-tag,
  419. .inline-name-tag {
  420. text-decoration: none;
  421. color: $secondary-text-color;
  422. .username {
  423. font-weight: 500;
  424. }
  425. &.suspended {
  426. .username {
  427. text-decoration: line-through;
  428. color: lighten($error-red, 12%);
  429. }
  430. .avatar {
  431. filter: grayscale(100%);
  432. opacity: 0.8;
  433. }
  434. }
  435. }
  436. a.name-tag,
  437. .name-tag {
  438. display: flex;
  439. align-items: center;
  440. .avatar {
  441. display: block;
  442. margin: 0;
  443. margin-right: 5px;
  444. border-radius: 50%;
  445. }
  446. &.suspended {
  447. .avatar {
  448. filter: grayscale(100%);
  449. opacity: 0.8;
  450. }
  451. }
  452. }
  453. .speech-bubble {
  454. margin-bottom: 20px;
  455. border-left: 4px solid $ui-highlight-color;
  456. &.positive {
  457. border-left-color: $success-green;
  458. }
  459. &.negative {
  460. border-left-color: lighten($error-red, 12%);
  461. }
  462. &__bubble {
  463. padding: 16px;
  464. padding-left: 14px;
  465. font-size: 15px;
  466. line-height: 20px;
  467. border-radius: 4px 4px 4px 0;
  468. position: relative;
  469. font-weight: 500;
  470. a {
  471. color: $darker-text-color;
  472. }
  473. }
  474. &__owner {
  475. padding: 8px;
  476. padding-left: 12px;
  477. }
  478. time {
  479. color: $dark-text-color;
  480. }
  481. }