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.

686 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. .report-accounts {
  248. display: flex;
  249. flex-wrap: wrap;
  250. margin-bottom: 20px;
  251. }
  252. .report-accounts__item {
  253. display: flex;
  254. flex: 250px;
  255. flex-direction: column;
  256. margin: 0 5px;
  257. & > strong {
  258. display: block;
  259. margin: 0 0 10px -5px;
  260. font-weight: 500;
  261. font-size: 14px;
  262. line-height: 18px;
  263. color: $secondary-text-color;
  264. @each $lang in $cjk-langs {
  265. &:lang(#{$lang}) {
  266. font-weight: 700;
  267. }
  268. }
  269. }
  270. .account-card {
  271. flex: 1 1 auto;
  272. }
  273. }
  274. .report-status,
  275. .account-status {
  276. display: flex;
  277. margin-bottom: 10px;
  278. .activity-stream {
  279. flex: 2 0 0;
  280. margin-right: 20px;
  281. max-width: calc(100% - 60px);
  282. .entry {
  283. border-radius: 4px;
  284. }
  285. }
  286. }
  287. .report-status__actions,
  288. .account-status__actions {
  289. flex: 0 0 auto;
  290. display: flex;
  291. flex-direction: column;
  292. .icon-button {
  293. font-size: 24px;
  294. width: 24px;
  295. text-align: center;
  296. margin-bottom: 10px;
  297. }
  298. }
  299. .simple_form.new_report_note,
  300. .simple_form.new_account_moderation_note {
  301. max-width: 100%;
  302. }
  303. .batch-form-box {
  304. display: flex;
  305. flex-wrap: wrap;
  306. margin-bottom: 5px;
  307. #form_status_batch_action {
  308. margin: 0 5px 5px 0;
  309. font-size: 14px;
  310. }
  311. input.button {
  312. margin: 0 5px 5px 0;
  313. }
  314. .media-spoiler-toggle-buttons {
  315. margin-left: auto;
  316. .button {
  317. overflow: visible;
  318. margin: 0 0 5px 5px;
  319. float: right;
  320. }
  321. }
  322. }
  323. .back-link {
  324. margin-bottom: 10px;
  325. font-size: 14px;
  326. a {
  327. color: $highlight-text-color;
  328. text-decoration: none;
  329. &:hover {
  330. text-decoration: underline;
  331. }
  332. }
  333. }
  334. .spacer {
  335. flex: 1 1 auto;
  336. }
  337. .log-entry {
  338. margin-bottom: 20px;
  339. line-height: 20px;
  340. &__header {
  341. display: flex;
  342. justify-content: flex-start;
  343. align-items: center;
  344. padding: 10px;
  345. background: $ui-base-color;
  346. color: $darker-text-color;
  347. border-radius: 4px 4px 0 0;
  348. font-size: 14px;
  349. position: relative;
  350. }
  351. &__avatar {
  352. margin-right: 10px;
  353. .avatar {
  354. display: block;
  355. margin: 0;
  356. border-radius: 50%;
  357. width: 40px;
  358. height: 40px;
  359. }
  360. }
  361. &__content {
  362. max-width: calc(100% - 90px);
  363. }
  364. &__title {
  365. word-wrap: break-word;
  366. }
  367. &__timestamp {
  368. color: $dark-text-color;
  369. }
  370. &__extras {
  371. background: lighten($ui-base-color, 6%);
  372. border-radius: 0 0 4px 4px;
  373. padding: 10px;
  374. color: $darker-text-color;
  375. font-family: $font-monospace, monospace;
  376. font-size: 12px;
  377. word-wrap: break-word;
  378. min-height: 20px;
  379. }
  380. &__icon {
  381. font-size: 28px;
  382. margin-right: 10px;
  383. color: $dark-text-color;
  384. }
  385. &__icon__overlay {
  386. position: absolute;
  387. top: 10px;
  388. right: 10px;
  389. width: 10px;
  390. height: 10px;
  391. border-radius: 50%;
  392. &.positive {
  393. background: $success-green;
  394. }
  395. &.negative {
  396. background: lighten($error-red, 12%);
  397. }
  398. &.neutral {
  399. background: $ui-highlight-color;
  400. }
  401. }
  402. a,
  403. .username,
  404. .target {
  405. color: $secondary-text-color;
  406. text-decoration: none;
  407. font-weight: 500;
  408. }
  409. .diff-old {
  410. color: lighten($error-red, 12%);
  411. }
  412. .diff-neutral {
  413. color: $secondary-text-color;
  414. }
  415. .diff-new {
  416. color: $success-green;
  417. }
  418. }
  419. a.name-tag,
  420. .name-tag,
  421. a.inline-name-tag,
  422. .inline-name-tag {
  423. text-decoration: none;
  424. color: $secondary-text-color;
  425. .username {
  426. font-weight: 500;
  427. }
  428. &.suspended {
  429. .username {
  430. text-decoration: line-through;
  431. color: lighten($error-red, 12%);
  432. }
  433. .avatar {
  434. filter: grayscale(100%);
  435. opacity: 0.8;
  436. }
  437. }
  438. }
  439. a.name-tag,
  440. .name-tag {
  441. display: flex;
  442. align-items: center;
  443. .avatar {
  444. display: block;
  445. margin: 0;
  446. margin-right: 5px;
  447. border-radius: 50%;
  448. }
  449. &.suspended {
  450. .avatar {
  451. filter: grayscale(100%);
  452. opacity: 0.8;
  453. }
  454. }
  455. }
  456. .speech-bubble {
  457. margin-bottom: 20px;
  458. border-left: 4px solid $ui-highlight-color;
  459. &.positive {
  460. border-left-color: $success-green;
  461. }
  462. &.negative {
  463. border-left-color: lighten($error-red, 12%);
  464. }
  465. &.warning {
  466. border-left-color: $gold-star;
  467. }
  468. &__bubble {
  469. padding: 16px;
  470. padding-left: 14px;
  471. font-size: 15px;
  472. line-height: 20px;
  473. border-radius: 4px 4px 4px 0;
  474. position: relative;
  475. font-weight: 500;
  476. a {
  477. color: $darker-text-color;
  478. }
  479. }
  480. &__owner {
  481. padding: 8px;
  482. padding-left: 12px;
  483. }
  484. time {
  485. color: $dark-text-color;
  486. }
  487. }
  488. .report-card {
  489. background: $ui-base-color;
  490. border-radius: 4px;
  491. margin-bottom: 20px;
  492. &__profile {
  493. display: flex;
  494. justify-content: space-between;
  495. align-items: center;
  496. padding: 15px;
  497. .account {
  498. padding: 0;
  499. border: 0;
  500. &__avatar-wrapper {
  501. margin-left: 0;
  502. }
  503. }
  504. &__stats {
  505. flex: 0 0 auto;
  506. font-weight: 500;
  507. color: $darker-text-color;
  508. text-transform: uppercase;
  509. text-align: right;
  510. a {
  511. color: inherit;
  512. text-decoration: none;
  513. &:focus,
  514. &:hover,
  515. &:active {
  516. color: lighten($darker-text-color, 8%);
  517. }
  518. }
  519. .red {
  520. color: $error-value-color;
  521. }
  522. }
  523. }
  524. &__summary {
  525. &__item {
  526. display: flex;
  527. justify-content: flex-start;
  528. border-top: 1px solid darken($ui-base-color, 4%);
  529. &:hover {
  530. background: lighten($ui-base-color, 2%);
  531. }
  532. &__reported-by,
  533. &__assigned {
  534. padding: 15px;
  535. flex: 0 0 auto;
  536. box-sizing: border-box;
  537. width: 150px;
  538. color: $darker-text-color;
  539. &,
  540. .username {
  541. white-space: nowrap;
  542. overflow: hidden;
  543. text-overflow: ellipsis;
  544. }
  545. }
  546. &__content {
  547. flex: 1 1 auto;
  548. max-width: calc(100% - 300px);
  549. &__icon {
  550. color: $dark-text-color;
  551. margin-right: 4px;
  552. font-weight: 500;
  553. }
  554. }
  555. &__content a {
  556. display: block;
  557. box-sizing: border-box;
  558. width: 100%;
  559. padding: 15px;
  560. text-decoration: none;
  561. color: $darker-text-color;
  562. }
  563. }
  564. }
  565. }
  566. .one-line {
  567. white-space: nowrap;
  568. overflow: hidden;
  569. text-overflow: ellipsis;
  570. }