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.

702 lines
12 KiB

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