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.

666 lines
11 KiB

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