The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

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