The code powering m.abunchtell.com https://m.abunchtell.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

713 rader
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. .block-modal,
  260. .report-modal,
  261. .embed-modal,
  262. .error-modal,
  263. .onboarding-modal {
  264. background: $ui-base-color;
  265. }
  266. .column-header__collapsible-inner {
  267. background: darken($ui-base-color, 4%);
  268. border: 1px solid lighten($ui-base-color, 8%);
  269. border-top: 0;
  270. }
  271. .boost-modal__action-bar,
  272. .confirmation-modal__action-bar,
  273. .mute-modal__action-bar,
  274. .block-modal__action-bar,
  275. .onboarding-modal__paginator,
  276. .error-modal__footer {
  277. background: darken($ui-base-color, 6%);
  278. .onboarding-modal__nav,
  279. .error-modal__nav {
  280. &:hover,
  281. &:focus,
  282. &:active {
  283. background-color: darken($ui-base-color, 12%);
  284. }
  285. }
  286. }
  287. .display-case__case {
  288. background: $white;
  289. }
  290. .embed-modal .embed-modal__container .embed-modal__html {
  291. background: $white;
  292. &:focus {
  293. background: darken($ui-base-color, 6%);
  294. }
  295. }
  296. .react-toggle-track {
  297. background: $ui-secondary-color;
  298. }
  299. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  300. background: darken($ui-secondary-color, 10%);
  301. }
  302. .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  303. background: lighten($ui-highlight-color, 10%);
  304. }
  305. // Change the default color used for the text in an empty column or on the error column
  306. .empty-column-indicator,
  307. .error-column {
  308. color: $primary-text-color;
  309. background: $white;
  310. }
  311. .tabs-bar {
  312. background: $white;
  313. border: 1px solid lighten($ui-base-color, 8%);
  314. border-bottom: 0;
  315. @media screen and (max-width: $no-gap-breakpoint) {
  316. border-top: 0;
  317. }
  318. &__link {
  319. padding-bottom: 14px;
  320. border-bottom-width: 1px;
  321. border-bottom-color: lighten($ui-base-color, 8%);
  322. &:hover,
  323. &:active,
  324. &:focus {
  325. background: $ui-base-color;
  326. }
  327. &.active {
  328. &:hover,
  329. &:active,
  330. &:focus {
  331. background: transparent;
  332. border-bottom-color: $ui-highlight-color;
  333. }
  334. }
  335. }
  336. }
  337. // Change the default colors used on some parts of the profile pages
  338. .activity-stream-tabs {
  339. background: $account-background-color;
  340. border-bottom-color: lighten($ui-base-color, 8%);
  341. }
  342. .box-widget,
  343. .nothing-here,
  344. .page-header,
  345. .directory__tag > a,
  346. .directory__tag > div,
  347. .landing-page__call-to-action,
  348. .contact-widget,
  349. .landing .hero-widget__text,
  350. .landing-page__information.contact-widget {
  351. background: $white;
  352. border: 1px solid lighten($ui-base-color, 8%);
  353. @media screen and (max-width: $no-gap-breakpoint) {
  354. border-left: 0;
  355. border-right: 0;
  356. border-top: 0;
  357. }
  358. }
  359. .landing .hero-widget__text {
  360. border-top: 0;
  361. border-bottom: 0;
  362. }
  363. .simple_form {
  364. input[type=text],
  365. input[type=number],
  366. input[type=email],
  367. input[type=password],
  368. textarea {
  369. &:hover {
  370. border-color: lighten($ui-base-color, 12%);
  371. }
  372. }
  373. }
  374. .landing .hero-widget__footer {
  375. background: $white;
  376. border: 1px solid lighten($ui-base-color, 8%);
  377. border-top: 0;
  378. @media screen and (max-width: $no-gap-breakpoint) {
  379. border: 0;
  380. }
  381. }
  382. .brand__tagline {
  383. color: $ui-secondary-color;
  384. }
  385. .directory__tag > a {
  386. &:hover,
  387. &:active,
  388. &:focus {
  389. background: $ui-base-color;
  390. }
  391. @media screen and (max-width: $no-gap-breakpoint) {
  392. border: 0;
  393. }
  394. }
  395. .directory__tag.active > a,
  396. .directory__tag.active > div {
  397. border-color: $ui-highlight-color;
  398. &,
  399. h4,
  400. h4 small,
  401. .fa,
  402. .trends__item__current {
  403. color: $white;
  404. }
  405. &:hover,
  406. &:active,
  407. &:focus {
  408. background: $ui-highlight-color;
  409. }
  410. }
  411. .batch-table {
  412. &__toolbar,
  413. &__row,
  414. .nothing-here {
  415. border-color: lighten($ui-base-color, 8%);
  416. }
  417. }
  418. .activity-stream {
  419. border: 1px solid lighten($ui-base-color, 8%);
  420. &--under-tabs {
  421. border-top: 0;
  422. }
  423. .entry {
  424. background: $account-background-color;
  425. .detailed-status.light,
  426. .more.light,
  427. .status.light {
  428. border-bottom-color: lighten($ui-base-color, 8%);
  429. }
  430. }
  431. .status.light {
  432. .status__content {
  433. color: $primary-text-color;
  434. }
  435. .display-name {
  436. strong {
  437. color: $primary-text-color;
  438. }
  439. }
  440. }
  441. }
  442. .accounts-grid {
  443. .account-grid-card {
  444. .controls {
  445. .icon-button {
  446. color: $darker-text-color;
  447. }
  448. }
  449. .name {
  450. a {
  451. color: $primary-text-color;
  452. }
  453. }
  454. .username {
  455. color: $darker-text-color;
  456. }
  457. .account__header__content {
  458. color: $primary-text-color;
  459. }
  460. }
  461. }
  462. .simple_form,
  463. .table-form {
  464. .warning {
  465. box-shadow: none;
  466. background: rgba($error-red, 0.5);
  467. text-shadow: none;
  468. }
  469. .recommended {
  470. border-color: $ui-highlight-color;
  471. color: $ui-highlight-color;
  472. background-color: rgba($ui-highlight-color, 0.1);
  473. }
  474. }
  475. .compose-form .compose-form__warning {
  476. border-color: $ui-highlight-color;
  477. background-color: rgba($ui-highlight-color, 0.1);
  478. &,
  479. a {
  480. color: $ui-highlight-color;
  481. }
  482. }
  483. .status__content,
  484. .reply-indicator__content {
  485. a {
  486. color: $highlight-text-color;
  487. }
  488. }
  489. .button.logo-button {
  490. color: $white;
  491. svg {
  492. fill: $white;
  493. }
  494. }
  495. .public-layout {
  496. .account__section-headline {
  497. border: 1px solid lighten($ui-base-color, 8%);
  498. @media screen and (max-width: $no-gap-breakpoint) {
  499. border-top: 0;
  500. }
  501. }
  502. .header,
  503. .public-account-header,
  504. .public-account-bio {
  505. box-shadow: none;
  506. }
  507. .public-account-bio,
  508. .hero-widget__text {
  509. background: $account-background-color;
  510. border: 1px solid lighten($ui-base-color, 8%);
  511. }
  512. .header {
  513. background: $ui-base-color;
  514. border: 1px solid lighten($ui-base-color, 8%);
  515. @media screen and (max-width: $no-gap-breakpoint) {
  516. border: 0;
  517. }
  518. .brand {
  519. &:hover,
  520. &:focus,
  521. &:active {
  522. background: lighten($ui-base-color, 4%);
  523. }
  524. }
  525. }
  526. .public-account-header {
  527. &__image {
  528. background: lighten($ui-base-color, 12%);
  529. &::after {
  530. box-shadow: none;
  531. }
  532. }
  533. &__bar {
  534. &::before {
  535. background: $account-background-color;
  536. border: 1px solid lighten($ui-base-color, 8%);
  537. border-top: 0;
  538. }
  539. .avatar img {
  540. border-color: $account-background-color;
  541. }
  542. @media screen and (max-width: $no-columns-breakpoint) {
  543. background: $account-background-color;
  544. border: 1px solid lighten($ui-base-color, 8%);
  545. border-top: 0;
  546. }
  547. }
  548. &__tabs {
  549. &__name {
  550. h1,
  551. h1 small {
  552. color: $white;
  553. @media screen and (max-width: $no-columns-breakpoint) {
  554. color: $primary-text-color;
  555. }
  556. }
  557. }
  558. }
  559. &__extra {
  560. .public-account-bio {
  561. border: 0;
  562. }
  563. .public-account-bio .account__header__fields {
  564. border-color: lighten($ui-base-color, 8%);
  565. }
  566. }
  567. }
  568. }
  569. .notification__filter-bar button.active::after,
  570. .account__section-headline a.active::after {
  571. border-color: transparent transparent $white;
  572. }
  573. .hero-widget,
  574. .box-widget,
  575. .contact-widget,
  576. .landing-page__information.contact-widget,
  577. .moved-account-widget,
  578. .memoriam-widget,
  579. .activity-stream,
  580. .nothing-here,
  581. .directory__tag > a,
  582. .directory__tag > div,
  583. .card > a,
  584. .page-header,
  585. .compose-form .compose-form__warning {
  586. box-shadow: none;
  587. }
  588. .audio-player .video-player__controls button,
  589. .audio-player .video-player__time-sep,
  590. .audio-player .video-player__time-current,
  591. .audio-player .video-player__time-total {
  592. color: $primary-text-color;
  593. }