The code powering m.abunchtell.com https://m.abunchtell.com
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

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