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.

496 lines
8.1 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: rgba($primary-text-color, 0.7);
  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: $ui-secondary-color;
  79. font-size: 24px;
  80. line-height: 28px;
  81. font-weight: 400;
  82. margin-bottom: 40px;
  83. }
  84. h3 {
  85. color: $ui-secondary-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: $ui-primary-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: $ui-secondary-color;
  103. line-height: 28px;
  104. font-weight: 400;
  105. }
  106. & > p {
  107. font-size: 14px;
  108. line-height: 18px;
  109. color: $ui-secondary-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. margin: 20px 0;
  123. border: 0;
  124. background: transparent;
  125. border-bottom: 1px solid $ui-base-color;
  126. }
  127. .muted-hint {
  128. color: $ui-primary-color;
  129. a {
  130. color: $ui-highlight-color;
  131. }
  132. }
  133. .positive-hint {
  134. color: $valid-value-color;
  135. font-weight: 500;
  136. }
  137. }
  138. .simple_form {
  139. max-width: 400px;
  140. &.edit_user,
  141. &.new_form_admin_settings,
  142. &.new_form_two_factor_confirmation,
  143. &.new_form_delete_confirmation,
  144. &.new_import,
  145. &.new_domain_block,
  146. &.edit_domain_block {
  147. max-width: none;
  148. }
  149. .form_two_factor_confirmation_code,
  150. .form_delete_confirmation_password {
  151. max-width: 400px;
  152. }
  153. .actions {
  154. max-width: 400px;
  155. }
  156. }
  157. @media screen and (max-width: 600px) {
  158. display: block;
  159. overflow-y: auto;
  160. -webkit-overflow-scrolling: touch;
  161. .sidebar-wrapper,
  162. .content-wrapper {
  163. flex: 0 0 auto;
  164. height: auto;
  165. overflow: initial;
  166. }
  167. .sidebar {
  168. width: 100%;
  169. padding: 10px 0;
  170. height: auto;
  171. .logo {
  172. margin: 20px auto;
  173. }
  174. }
  175. .content {
  176. padding-top: 20px;
  177. }
  178. }
  179. }
  180. .filters {
  181. display: flex;
  182. flex-wrap: wrap;
  183. .filter-subset {
  184. flex: 0 0 auto;
  185. margin: 0 40px 10px 0;
  186. &:last-child {
  187. margin-bottom: 20px;
  188. }
  189. ul {
  190. margin-top: 5px;
  191. list-style: none;
  192. li {
  193. display: inline-block;
  194. margin-right: 5px;
  195. }
  196. }
  197. strong {
  198. font-weight: 500;
  199. text-transform: uppercase;
  200. font-size: 12px;
  201. @each $lang in $cjk-langs {
  202. &:lang(#{$lang}) {
  203. font-weight: 700;
  204. }
  205. }
  206. }
  207. a {
  208. display: inline-block;
  209. color: rgba($primary-text-color, 0.7);
  210. text-decoration: none;
  211. text-transform: uppercase;
  212. font-size: 12px;
  213. font-weight: 500;
  214. border-bottom: 2px solid $ui-base-color;
  215. &:hover {
  216. color: $primary-text-color;
  217. border-bottom: 2px solid lighten($ui-base-color, 5%);
  218. }
  219. &.selected {
  220. color: $ui-highlight-color;
  221. border-bottom: 2px solid $ui-highlight-color;
  222. }
  223. }
  224. }
  225. }
  226. .report-accounts {
  227. display: flex;
  228. flex-wrap: wrap;
  229. margin-bottom: 20px;
  230. }
  231. .report-accounts__item {
  232. display: flex;
  233. flex: 250px;
  234. flex-direction: column;
  235. margin: 0 5px;
  236. & > strong {
  237. display: block;
  238. margin: 0 0 10px -5px;
  239. font-weight: 500;
  240. font-size: 14px;
  241. line-height: 18px;
  242. color: $ui-secondary-color;
  243. @each $lang in $cjk-langs {
  244. &:lang(#{$lang}) {
  245. font-weight: 700;
  246. }
  247. }
  248. }
  249. .account-card {
  250. flex: 1 1 auto;
  251. }
  252. }
  253. .report-status,
  254. .account-status {
  255. display: flex;
  256. margin-bottom: 10px;
  257. .activity-stream {
  258. flex: 2 0 0;
  259. margin-right: 20px;
  260. max-width: calc(100% - 60px);
  261. .entry {
  262. border-radius: 4px;
  263. }
  264. }
  265. }
  266. .report-status__actions,
  267. .account-status__actions {
  268. flex: 0 0 auto;
  269. display: flex;
  270. flex-direction: column;
  271. .icon-button {
  272. font-size: 24px;
  273. width: 24px;
  274. text-align: center;
  275. margin-bottom: 10px;
  276. }
  277. }
  278. .batch-form-box {
  279. display: flex;
  280. flex-wrap: wrap;
  281. margin-bottom: 5px;
  282. #form_status_batch_action {
  283. margin: 0 5px 5px 0;
  284. font-size: 14px;
  285. }
  286. input.button {
  287. margin: 0 5px 5px 0;
  288. }
  289. .media-spoiler-toggle-buttons {
  290. margin-left: auto;
  291. .button {
  292. overflow: visible;
  293. margin: 0 0 5px 5px;
  294. float: right;
  295. }
  296. }
  297. }
  298. .batch-checkbox,
  299. .batch-checkbox-all {
  300. display: flex;
  301. align-items: center;
  302. margin-right: 5px;
  303. }
  304. .back-link {
  305. margin-bottom: 10px;
  306. font-size: 14px;
  307. a {
  308. color: $classic-highlight-color;
  309. text-decoration: none;
  310. &:hover {
  311. text-decoration: underline;
  312. }
  313. }
  314. }
  315. .spacer {
  316. flex: 1 1 auto;
  317. }
  318. .log-entry {
  319. margin-bottom: 8px;
  320. line-height: 20px;
  321. &__header {
  322. display: flex;
  323. justify-content: flex-start;
  324. align-items: center;
  325. padding: 10px;
  326. background: $ui-base-color;
  327. color: $ui-primary-color;
  328. border-radius: 4px 4px 0 0;
  329. font-size: 14px;
  330. position: relative;
  331. }
  332. &__avatar {
  333. margin-right: 10px;
  334. .avatar {
  335. display: block;
  336. margin: 0;
  337. border-radius: 50%;
  338. width: 40px;
  339. height: 40px;
  340. }
  341. }
  342. &__content {
  343. max-width: calc(100% - 90px);
  344. }
  345. &__title {
  346. word-wrap: break-word;
  347. }
  348. &__timestamp {
  349. color: lighten($ui-base-color, 34%);
  350. }
  351. &__extras {
  352. background: lighten($ui-base-color, 6%);
  353. border-radius: 0 0 4px 4px;
  354. padding: 10px;
  355. color: $ui-primary-color;
  356. font-family: 'mastodon-font-monospace', monospace;
  357. font-size: 12px;
  358. word-wrap: break-word;
  359. min-height: 20px;
  360. }
  361. &__icon {
  362. font-size: 28px;
  363. margin-right: 10px;
  364. color: lighten($ui-base-color, 34%);
  365. }
  366. &__icon__overlay {
  367. position: absolute;
  368. top: 10px;
  369. right: 10px;
  370. width: 10px;
  371. height: 10px;
  372. border-radius: 50%;
  373. &.positive {
  374. background: $success-green;
  375. }
  376. &.negative {
  377. background: $error-red;
  378. }
  379. &.neutral {
  380. background: $ui-highlight-color;
  381. }
  382. }
  383. a,
  384. .username,
  385. .target {
  386. color: $ui-secondary-color;
  387. text-decoration: none;
  388. font-weight: 500;
  389. }
  390. .diff-old {
  391. color: $error-red;
  392. }
  393. .diff-neutral {
  394. color: $ui-secondary-color;
  395. }
  396. .diff-new {
  397. color: $success-green;
  398. }
  399. }
  400. .name-tag {
  401. display: flex;
  402. align-items: center;
  403. .avatar {
  404. display: block;
  405. margin: 0;
  406. margin-right: 5px;
  407. border-radius: 50%;
  408. }
  409. .username {
  410. font-weight: 500;
  411. }
  412. }