闭社主体 forked from https://github.com/tootsuite/mastodon
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.

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