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.
 
 
 
 

711 righe
15 KiB

  1. // Notes!
  2. // Sass color functions, "darken" and "lighten" are automatically replaced.
  3. html {
  4. scrollbar-color: $ui-base-color rgba($ui-base-color, 0.25);
  5. }
  6. // Change the colors of button texts
  7. .button {
  8. color: $white;
  9. &.button-alternative-2 {
  10. color: $white;
  11. }
  12. }
  13. // Change default background colors of columns
  14. .column > .scrollable,
  15. .getting-started,
  16. .column-inline-form {
  17. background: $white;
  18. border: 1px solid lighten($ui-base-color, 8%);
  19. border-top: 0;
  20. }
  21. .column-back-button,
  22. .column-header {
  23. background: $white;
  24. border: 1px solid lighten($ui-base-color, 8%);
  25. @media screen and (max-width: $no-gap-breakpoint) {
  26. border-top: 0;
  27. }
  28. &--slim-button {
  29. border: 0;
  30. top: -49px;
  31. right: 1px;
  32. }
  33. }
  34. .column-header__back-button,
  35. .column-header__button,
  36. .column-header__button.active,
  37. .account__header__bar {
  38. background: $white;
  39. }
  40. .column-header__button.active {
  41. color: $ui-highlight-color;
  42. &:hover,
  43. &:active,
  44. &:focus {
  45. color: $ui-highlight-color;
  46. background: $white;
  47. }
  48. }
  49. .account__header__bar .avatar .account__avatar {
  50. border-color: $white;
  51. }
  52. .getting-started__footer a {
  53. color: $ui-secondary-color;
  54. text-decoration: underline;
  55. }
  56. .column-subheading {
  57. background: darken($ui-base-color, 4%);
  58. border-bottom: 1px solid lighten($ui-base-color, 8%);
  59. }
  60. .getting-started,
  61. .scrollable {
  62. .column-link {
  63. background: $white;
  64. border-bottom: 1px solid lighten($ui-base-color, 8%);
  65. &:hover,
  66. &:active,
  67. &:focus {
  68. background: $ui-base-color;
  69. }
  70. }
  71. }
  72. .getting-started .navigation-bar {
  73. border-top: 1px solid lighten($ui-base-color, 8%);
  74. border-bottom: 1px solid lighten($ui-base-color, 8%);
  75. @media screen and (max-width: $no-gap-breakpoint) {
  76. border-top: 0;
  77. }
  78. }
  79. .compose-form__autosuggest-wrapper,
  80. .poll__text input[type="text"],
  81. .compose-form .spoiler-input__input,
  82. .compose-form__poll-wrapper select,
  83. .search__input,
  84. .setting-text,
  85. .box-widget input[type="text"],
  86. .box-widget input[type="email"],
  87. .box-widget input[type="password"],
  88. .box-widget textarea,
  89. .statuses-grid .detailed-status,
  90. .audio-player {
  91. border: 1px solid lighten($ui-base-color, 8%);
  92. }
  93. .search__input {
  94. @media screen and (max-width: $no-gap-breakpoint) {
  95. border-top: 0;
  96. border-bottom: 0;
  97. }
  98. }
  99. .list-editor .search .search__input {
  100. border-top: 0;
  101. border-bottom: 0;
  102. }
  103. .compose-form__poll-wrapper select {
  104. background: $simple-background-color url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='#{hex-color(lighten($ui-base-color, 8%))}'/></svg>") no-repeat right 8px center / auto 16px;
  105. }
  106. .compose-form__poll-wrapper,
  107. .compose-form__poll-wrapper .poll__footer {
  108. border-top-color: lighten($ui-base-color, 8%);
  109. }
  110. .notification__filter-bar {
  111. border: 1px solid lighten($ui-base-color, 8%);
  112. border-top: 0;
  113. }
  114. .compose-form .compose-form__buttons-wrapper {
  115. background: $ui-base-color;
  116. border: 1px solid lighten($ui-base-color, 8%);
  117. border-top: 0;
  118. }
  119. .drawer__header,
  120. .drawer__inner {
  121. background: $white;
  122. border: 1px solid lighten($ui-base-color, 8%);
  123. }
  124. .drawer__inner__mastodon {
  125. background: $white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 234.80078 31.757813" width="234.80078" height="31.757812"><path d="M19.599609 0c-1.05 0-2.10039.375-2.90039 1.125L0 16.925781v14.832031h234.80078V17.025391l-16.5-15.900391c-1.6-1.5-4.20078-1.5-5.80078 0l-13.80078 13.099609c-1.6 1.5-4.19883 1.5-5.79883 0L179.09961 1.125c-1.6-1.5-4.19883-1.5-5.79883 0L159.5 14.224609c-1.6 1.5-4.20078 1.5-5.80078 0L139.90039 1.125c-1.6-1.5-4.20078-1.5-5.80078 0l-13.79883 13.099609c-1.6 1.5-4.20078 1.5-5.80078 0L100.69922 1.125c-1.600001-1.5-4.198829-1.5-5.798829 0l-13.59961 13.099609c-1.6 1.5-4.200781 1.5-5.800781 0L61.699219 1.125c-1.6-1.5-4.198828-1.5-5.798828 0L42.099609 14.224609c-1.6 1.5-4.198828 1.5-5.798828 0L22.5 1.125C21.7.375 20.649609 0 19.599609 0z" fill="#{hex-color($ui-base-color)}"/></svg>') no-repeat bottom / 100% auto;
  126. }
  127. // Change the colors used in compose-form
  128. .compose-form {
  129. .compose-form__modifiers {
  130. .compose-form__upload__actions .icon-button {
  131. color: lighten($white, 7%);
  132. &:active,
  133. &:focus,
  134. &:hover {
  135. color: $white;
  136. }
  137. }
  138. .compose-form__upload-description input {
  139. color: lighten($white, 7%);
  140. &::placeholder {
  141. color: lighten($white, 7%);
  142. }
  143. }
  144. }
  145. .compose-form__buttons-wrapper {
  146. background: darken($ui-base-color, 6%);
  147. }
  148. .autosuggest-textarea__suggestions {
  149. background: darken($ui-base-color, 6%);
  150. }
  151. .autosuggest-textarea__suggestions__item {
  152. &:hover,
  153. &:focus,
  154. &:active,
  155. &.selected {
  156. background: lighten($ui-base-color, 4%);
  157. }
  158. }
  159. }
  160. .emoji-mart-bar {
  161. border-color: lighten($ui-base-color, 4%);
  162. &:first-child {
  163. background: darken($ui-base-color, 6%);
  164. }
  165. }
  166. .emoji-mart-search input {
  167. background: rgba($ui-base-color, 0.3);
  168. border-color: $ui-base-color;
  169. }
  170. // Change the background colors of statuses
  171. .focusable:focus {
  172. background: $ui-base-color;
  173. }
  174. .status.status-direct {
  175. background: lighten($ui-base-color, 4%);
  176. }
  177. .focusable:focus .status.status-direct {
  178. background: lighten($ui-base-color, 8%);
  179. }
  180. .detailed-status,
  181. .detailed-status__action-bar {
  182. background: $white;
  183. }
  184. // Change the background colors of status__content__spoiler-link
  185. .reply-indicator__content .status__content__spoiler-link,
  186. .status__content .status__content__spoiler-link {
  187. background: $ui-base-color;
  188. &:hover {
  189. background: lighten($ui-base-color, 4%);
  190. }
  191. }
  192. // Change the background colors of media and video spoilers
  193. .media-spoiler,
  194. .video-player__spoiler {
  195. background: $ui-base-color;
  196. }
  197. .privacy-dropdown.active .privacy-dropdown__value.active .icon-button {
  198. color: $white;
  199. }
  200. .account-gallery__item a {
  201. background-color: $ui-base-color;
  202. }
  203. // Change the colors used in the dropdown menu
  204. .dropdown-menu {
  205. background: $white;
  206. &__arrow {
  207. &.left {
  208. border-left-color: $white;
  209. }
  210. &.top {
  211. border-top-color: $white;
  212. }
  213. &.bottom {
  214. border-bottom-color: $white;
  215. }
  216. &.right {
  217. border-right-color: $white;
  218. }
  219. }
  220. &__item {
  221. a {
  222. background: $white;
  223. color: $darker-text-color;
  224. }
  225. }
  226. }
  227. // Change the text colors on inverted background
  228. .privacy-dropdown__option.active,
  229. .privacy-dropdown__option:hover,
  230. .privacy-dropdown__option.active .privacy-dropdown__option__content,
  231. .privacy-dropdown__option.active .privacy-dropdown__option__content strong,
  232. .privacy-dropdown__option:hover .privacy-dropdown__option__content,
  233. .privacy-dropdown__option:hover .privacy-dropdown__option__content strong,
  234. .dropdown-menu__item a:active,
  235. .dropdown-menu__item a:focus,
  236. .dropdown-menu__item a:hover,
  237. .actions-modal ul li:not(:empty) a.active,
  238. .actions-modal ul li:not(:empty) a.active button,
  239. .actions-modal ul li:not(:empty) a:active,
  240. .actions-modal ul li:not(:empty) a:active button,
  241. .actions-modal ul li:not(:empty) a:focus,
  242. .actions-modal ul li:not(:empty) a:focus button,
  243. .actions-modal ul li:not(:empty) a:hover,
  244. .actions-modal ul li:not(:empty) a:hover button,
  245. .admin-wrapper .sidebar ul .simple-navigation-active-leaf a,
  246. .simple_form .block-button,
  247. .simple_form .button,
  248. .simple_form button {
  249. color: $white;
  250. }
  251. .dropdown-menu__separator {
  252. border-bottom-color: lighten($ui-base-color, 4%);
  253. }
  254. // Change the background colors of modals
  255. .actions-modal,
  256. .boost-modal,
  257. .confirmation-modal,
  258. .mute-modal,
  259. .report-modal,
  260. .embed-modal,
  261. .error-modal,
  262. .onboarding-modal {
  263. background: $ui-base-color;
  264. }
  265. .column-header__collapsible-inner {
  266. background: darken($ui-base-color, 4%);
  267. border: 1px solid lighten($ui-base-color, 8%);
  268. border-top: 0;
  269. }
  270. .boost-modal__action-bar,
  271. .confirmation-modal__action-bar,
  272. .mute-modal__action-bar,
  273. .onboarding-modal__paginator,
  274. .error-modal__footer {
  275. background: darken($ui-base-color, 6%);
  276. .onboarding-modal__nav,
  277. .error-modal__nav {
  278. &:hover,
  279. &:focus,
  280. &:active {
  281. background-color: darken($ui-base-color, 12%);
  282. }
  283. }
  284. }
  285. .display-case__case {
  286. background: $white;
  287. }
  288. .embed-modal .embed-modal__container .embed-modal__html {
  289. background: $white;
  290. &:focus {
  291. background: darken($ui-base-color, 6%);
  292. }
  293. }
  294. .react-toggle-track {
  295. background: $ui-secondary-color;
  296. }
  297. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  298. background: darken($ui-secondary-color, 10%);
  299. }
  300. .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  301. background: lighten($ui-highlight-color, 10%);
  302. }
  303. // Change the default color used for the text in an empty column or on the error column
  304. .empty-column-indicator,
  305. .error-column {
  306. color: $primary-text-color;
  307. background: $white;
  308. }
  309. .tabs-bar {
  310. background: $white;
  311. border: 1px solid lighten($ui-base-color, 8%);
  312. border-bottom: 0;
  313. @media screen and (max-width: $no-gap-breakpoint) {
  314. border-top: 0;
  315. }
  316. &__link {
  317. padding-bottom: 14px;
  318. border-bottom-width: 1px;
  319. border-bottom-color: lighten($ui-base-color, 8%);
  320. &:hover,
  321. &:active,
  322. &:focus {
  323. background: $ui-base-color;
  324. }
  325. &.active {
  326. &:hover,
  327. &:active,
  328. &:focus {
  329. background: transparent;
  330. border-bottom-color: $ui-highlight-color;
  331. }
  332. }
  333. }
  334. }
  335. // Change the default colors used on some parts of the profile pages
  336. .activity-stream-tabs {
  337. background: $account-background-color;
  338. border-bottom-color: lighten($ui-base-color, 8%);
  339. }
  340. .box-widget,
  341. .nothing-here,
  342. .page-header,
  343. .directory__tag > a,
  344. .directory__tag > div,
  345. .landing-page__call-to-action,
  346. .contact-widget,
  347. .landing .hero-widget__text,
  348. .landing-page__information.contact-widget {
  349. background: $white;
  350. border: 1px solid lighten($ui-base-color, 8%);
  351. @media screen and (max-width: $no-gap-breakpoint) {
  352. border-left: 0;
  353. border-right: 0;
  354. border-top: 0;
  355. }
  356. }
  357. .landing .hero-widget__text {
  358. border-top: 0;
  359. border-bottom: 0;
  360. }
  361. .simple_form {
  362. input[type=text],
  363. input[type=number],
  364. input[type=email],
  365. input[type=password],
  366. textarea {
  367. &:hover {
  368. border-color: lighten($ui-base-color, 12%);
  369. }
  370. }
  371. }
  372. .landing .hero-widget__footer {
  373. background: $white;
  374. border: 1px solid lighten($ui-base-color, 8%);
  375. border-top: 0;
  376. @media screen and (max-width: $no-gap-breakpoint) {
  377. border: 0;
  378. }
  379. }
  380. .brand__tagline {
  381. color: $ui-secondary-color;
  382. }
  383. .directory__tag > a {
  384. &:hover,
  385. &:active,
  386. &:focus {
  387. background: $ui-base-color;
  388. }
  389. @media screen and (max-width: $no-gap-breakpoint) {
  390. border: 0;
  391. }
  392. }
  393. .directory__tag.active > a,
  394. .directory__tag.active > div {
  395. border-color: $ui-highlight-color;
  396. &,
  397. h4,
  398. h4 small,
  399. .fa,
  400. .trends__item__current {
  401. color: $white;
  402. }
  403. &:hover,
  404. &:active,
  405. &:focus {
  406. background: $ui-highlight-color;
  407. }
  408. }
  409. .batch-table {
  410. &__toolbar,
  411. &__row,
  412. .nothing-here {
  413. border-color: lighten($ui-base-color, 8%);
  414. }
  415. }
  416. .activity-stream {
  417. border: 1px solid lighten($ui-base-color, 8%);
  418. &--under-tabs {
  419. border-top: 0;
  420. }
  421. .entry {
  422. background: $account-background-color;
  423. .detailed-status.light,
  424. .more.light,
  425. .status.light {
  426. border-bottom-color: lighten($ui-base-color, 8%);
  427. }
  428. }
  429. .status.light {
  430. .status__content {
  431. color: $primary-text-color;
  432. }
  433. .display-name {
  434. strong {
  435. color: $primary-text-color;
  436. }
  437. }
  438. }
  439. }
  440. .accounts-grid {
  441. .account-grid-card {
  442. .controls {
  443. .icon-button {
  444. color: $darker-text-color;
  445. }
  446. }
  447. .name {
  448. a {
  449. color: $primary-text-color;
  450. }
  451. }
  452. .username {
  453. color: $darker-text-color;
  454. }
  455. .account__header__content {
  456. color: $primary-text-color;
  457. }
  458. }
  459. }
  460. .simple_form,
  461. .table-form {
  462. .warning {
  463. box-shadow: none;
  464. background: rgba($error-red, 0.5);
  465. text-shadow: none;
  466. }
  467. .recommended {
  468. border-color: $ui-highlight-color;
  469. color: $ui-highlight-color;
  470. background-color: rgba($ui-highlight-color, 0.1);
  471. }
  472. }
  473. .compose-form .compose-form__warning {
  474. border-color: $ui-highlight-color;
  475. background-color: rgba($ui-highlight-color, 0.1);
  476. &,
  477. a {
  478. color: $ui-highlight-color;
  479. }
  480. }
  481. .status__content,
  482. .reply-indicator__content {
  483. a {
  484. color: $highlight-text-color;
  485. }
  486. }
  487. .button.logo-button {
  488. color: $white;
  489. svg {
  490. fill: $white;
  491. }
  492. }
  493. .public-layout {
  494. .account__section-headline {
  495. border: 1px solid lighten($ui-base-color, 8%);
  496. @media screen and (max-width: $no-gap-breakpoint) {
  497. border-top: 0;
  498. }
  499. }
  500. .header,
  501. .public-account-header,
  502. .public-account-bio {
  503. box-shadow: none;
  504. }
  505. .public-account-bio,
  506. .hero-widget__text {
  507. background: $account-background-color;
  508. border: 1px solid lighten($ui-base-color, 8%);
  509. }
  510. .header {
  511. background: $ui-base-color;
  512. border: 1px solid lighten($ui-base-color, 8%);
  513. @media screen and (max-width: $no-gap-breakpoint) {
  514. border: 0;
  515. }
  516. .brand {
  517. &:hover,
  518. &:focus,
  519. &:active {
  520. background: lighten($ui-base-color, 4%);
  521. }
  522. }
  523. }
  524. .public-account-header {
  525. &__image {
  526. background: lighten($ui-base-color, 12%);
  527. &::after {
  528. box-shadow: none;
  529. }
  530. }
  531. &__bar {
  532. &::before {
  533. background: $account-background-color;
  534. border: 1px solid lighten($ui-base-color, 8%);
  535. border-top: 0;
  536. }
  537. .avatar img {
  538. border-color: $account-background-color;
  539. }
  540. @media screen and (max-width: $no-columns-breakpoint) {
  541. background: $account-background-color;
  542. border: 1px solid lighten($ui-base-color, 8%);
  543. border-top: 0;
  544. }
  545. }
  546. &__tabs {
  547. &__name {
  548. h1,
  549. h1 small {
  550. color: $white;
  551. @media screen and (max-width: $no-columns-breakpoint) {
  552. color: $primary-text-color;
  553. }
  554. }
  555. }
  556. }
  557. &__extra {
  558. .public-account-bio {
  559. border: 0;
  560. }
  561. .public-account-bio .account__header__fields {
  562. border-color: lighten($ui-base-color, 8%);
  563. }
  564. }
  565. }
  566. }
  567. .notification__filter-bar button.active::after,
  568. .account__section-headline a.active::after {
  569. border-color: transparent transparent $white;
  570. }
  571. .hero-widget,
  572. .box-widget,
  573. .contact-widget,
  574. .landing-page__information.contact-widget,
  575. .moved-account-widget,
  576. .memoriam-widget,
  577. .activity-stream,
  578. .nothing-here,
  579. .directory__tag > a,
  580. .directory__tag > div,
  581. .card > a,
  582. .page-header,
  583. .compose-form .compose-form__warning {
  584. box-shadow: none;
  585. }
  586. .audio-player .video-player__controls button,
  587. .audio-player .video-player__time-sep,
  588. .audio-player .video-player__time-current,
  589. .audio-player .video-player__time-total {
  590. color: $primary-text-color;
  591. }