diff.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  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. .simple_form .button.button-tertiary {
  7. color: $highlight-text-color;
  8. }
  9. .status-card__actions button,
  10. .status-card__actions a {
  11. color: rgba($white, 0.8);
  12. &:hover,
  13. &:active,
  14. &:focus {
  15. color: $white;
  16. }
  17. }
  18. // Change default background colors of columns
  19. .column > .scrollable,
  20. .getting-started,
  21. .column-inline-form,
  22. .regeneration-indicator {
  23. background: $white;
  24. border: 1px solid lighten($ui-base-color, 8%);
  25. border-top: 0;
  26. }
  27. .error-column {
  28. border: 1px solid lighten($ui-base-color, 8%);
  29. }
  30. .column > .scrollable.about {
  31. border-top: 1px solid lighten($ui-base-color, 8%);
  32. }
  33. .about__meta,
  34. .about__section__title,
  35. .interaction-modal {
  36. background: $white;
  37. border: 1px solid lighten($ui-base-color, 8%);
  38. }
  39. .rules-list li::before {
  40. background: $ui-highlight-color;
  41. }
  42. .directory__card__img {
  43. background: lighten($ui-base-color, 12%);
  44. }
  45. .filter-form {
  46. background: $white;
  47. border-bottom: 1px solid lighten($ui-base-color, 8%);
  48. }
  49. .column-back-button,
  50. .column-header {
  51. background: $white;
  52. border: 1px solid lighten($ui-base-color, 8%);
  53. @media screen and (max-width: $no-gap-breakpoint) {
  54. border-top: 0;
  55. }
  56. &--slim-button {
  57. top: -50px;
  58. right: 0;
  59. }
  60. }
  61. .column-header__back-button,
  62. .column-header__button,
  63. .column-header__button.active,
  64. .account__header {
  65. background: $white;
  66. }
  67. .column-header {
  68. border-bottom: 0;
  69. }
  70. .column-header__button.active {
  71. color: $ui-highlight-color;
  72. &:hover,
  73. &:active,
  74. &:focus {
  75. color: $ui-highlight-color;
  76. background: $white;
  77. }
  78. }
  79. .account__header__bar .avatar .account__avatar {
  80. border-color: $white;
  81. }
  82. .getting-started__footer a {
  83. color: $ui-secondary-color;
  84. text-decoration: underline;
  85. }
  86. .confirmation-modal__secondary-button,
  87. .confirmation-modal__cancel-button,
  88. .mute-modal__cancel-button,
  89. .block-modal__cancel-button {
  90. color: lighten($ui-base-color, 26%);
  91. &:hover,
  92. &:focus,
  93. &:active {
  94. color: $primary-text-color;
  95. }
  96. }
  97. .column-subheading {
  98. background: darken($ui-base-color, 4%);
  99. border-bottom: 1px solid lighten($ui-base-color, 8%);
  100. }
  101. .getting-started,
  102. .scrollable {
  103. .column-link {
  104. background: $white;
  105. border-bottom: 1px solid lighten($ui-base-color, 8%);
  106. &:hover,
  107. &:active,
  108. &:focus {
  109. background: $ui-base-color;
  110. }
  111. }
  112. }
  113. .getting-started .navigation-bar {
  114. border-top: 1px solid lighten($ui-base-color, 8%);
  115. border-bottom: 1px solid lighten($ui-base-color, 8%);
  116. @media screen and (max-width: $no-gap-breakpoint) {
  117. border-top: 0;
  118. }
  119. }
  120. .compose-form__autosuggest-wrapper,
  121. .poll__option input[type='text'],
  122. .compose-form .spoiler-input__input,
  123. .compose-form__poll-wrapper select,
  124. .search__input,
  125. .setting-text,
  126. .report-dialog-modal__textarea,
  127. .audio-player {
  128. border: 1px solid lighten($ui-base-color, 8%);
  129. }
  130. .report-dialog-modal .dialog-option .poll__input {
  131. color: $white;
  132. }
  133. .search__input {
  134. @media screen and (max-width: $no-gap-breakpoint) {
  135. border-top: 0;
  136. border-bottom: 0;
  137. }
  138. }
  139. .list-editor .search .search__input {
  140. border-top: 0;
  141. border-bottom: 0;
  142. }
  143. .compose-form__poll-wrapper select {
  144. background: $simple-background-color
  145. 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>")
  146. no-repeat right 8px center / auto 16px;
  147. }
  148. .compose-form__poll-wrapper,
  149. .compose-form__poll-wrapper .poll__footer {
  150. border-top-color: lighten($ui-base-color, 8%);
  151. }
  152. .notification__filter-bar {
  153. border: 1px solid lighten($ui-base-color, 8%);
  154. border-top: 0;
  155. }
  156. .compose-form .compose-form__buttons-wrapper {
  157. background: $ui-base-color;
  158. border: 1px solid lighten($ui-base-color, 8%);
  159. border-top: 0;
  160. }
  161. .drawer__header,
  162. .drawer__inner {
  163. background: $white;
  164. border: 1px solid lighten($ui-base-color, 8%);
  165. }
  166. .drawer__inner__mastodon {
  167. background: $white
  168. 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>')
  169. no-repeat bottom / 100% auto;
  170. }
  171. // Change the colors used in compose-form
  172. .compose-form {
  173. .compose-form__modifiers {
  174. .compose-form__upload__actions .icon-button,
  175. .compose-form__upload__warning .icon-button {
  176. color: lighten($white, 7%);
  177. &:active,
  178. &:focus,
  179. &:hover {
  180. color: $white;
  181. }
  182. }
  183. }
  184. .compose-form__buttons-wrapper {
  185. background: darken($ui-base-color, 6%);
  186. }
  187. .autosuggest-textarea__suggestions {
  188. background: darken($ui-base-color, 6%);
  189. }
  190. .autosuggest-textarea__suggestions__item {
  191. &:hover,
  192. &:focus,
  193. &:active,
  194. &.selected {
  195. background: lighten($ui-base-color, 4%);
  196. }
  197. }
  198. }
  199. .emoji-mart-bar {
  200. border-color: lighten($ui-base-color, 4%);
  201. &:first-child {
  202. background: darken($ui-base-color, 6%);
  203. }
  204. }
  205. .emoji-mart-search input {
  206. background: rgba($ui-base-color, 0.3);
  207. border-color: $ui-base-color;
  208. }
  209. .upload-progress__backdrop {
  210. background: $ui-base-color;
  211. }
  212. // Change the background colors of statuses
  213. .focusable:focus {
  214. background: lighten($white, 4%);
  215. }
  216. .detailed-status,
  217. .detailed-status__action-bar {
  218. background: $white;
  219. }
  220. // Change the background colors of status__content__spoiler-link
  221. .reply-indicator__content .status__content__spoiler-link,
  222. .status__content .status__content__spoiler-link {
  223. background: $ui-base-color;
  224. &:hover,
  225. &:focus {
  226. background: lighten($ui-base-color, 4%);
  227. }
  228. }
  229. // Change the background colors of media and video spoilers
  230. .media-spoiler,
  231. .video-player__spoiler {
  232. background: $ui-base-color;
  233. }
  234. .privacy-dropdown.active .privacy-dropdown__value.active .icon-button {
  235. color: $white;
  236. }
  237. .account-gallery__item a {
  238. background-color: $ui-base-color;
  239. }
  240. // Change the colors used in the dropdown menu
  241. .dropdown-menu {
  242. background: $white;
  243. &__arrow::before {
  244. background-color: $white;
  245. }
  246. &__item {
  247. a,
  248. button {
  249. background: $white;
  250. color: $darker-text-color;
  251. }
  252. }
  253. }
  254. // Change the text colors on inverted background
  255. .privacy-dropdown__option.active,
  256. .privacy-dropdown__option:hover,
  257. .privacy-dropdown__option.active .privacy-dropdown__option__content,
  258. .privacy-dropdown__option.active .privacy-dropdown__option__content strong,
  259. .privacy-dropdown__option:hover .privacy-dropdown__option__content,
  260. .privacy-dropdown__option:hover .privacy-dropdown__option__content strong,
  261. .dropdown-menu__item a:active,
  262. .dropdown-menu__item a:focus,
  263. .dropdown-menu__item a:hover,
  264. .actions-modal ul li:not(:empty) a.active,
  265. .actions-modal ul li:not(:empty) a.active button,
  266. .actions-modal ul li:not(:empty) a:active,
  267. .actions-modal ul li:not(:empty) a:active button,
  268. .actions-modal ul li:not(:empty) a:focus,
  269. .actions-modal ul li:not(:empty) a:focus button,
  270. .actions-modal ul li:not(:empty) a:hover,
  271. .actions-modal ul li:not(:empty) a:hover button,
  272. .language-dropdown__dropdown__results__item.active,
  273. .admin-wrapper .sidebar ul .simple-navigation-active-leaf a,
  274. .simple_form .block-button,
  275. .simple_form .button,
  276. .simple_form button {
  277. color: $white;
  278. }
  279. .language-dropdown__dropdown__results__item
  280. .language-dropdown__dropdown__results__item__common-name {
  281. color: lighten($ui-base-color, 8%);
  282. }
  283. .language-dropdown__dropdown__results__item.active
  284. .language-dropdown__dropdown__results__item__common-name {
  285. color: darken($ui-base-color, 12%);
  286. }
  287. .dropdown-menu__separator,
  288. .dropdown-menu__item.edited-timestamp__history__item,
  289. .dropdown-menu__container__header,
  290. .compare-history-modal .report-modal__target,
  291. .report-dialog-modal .poll__option.dialog-option {
  292. border-bottom-color: lighten($ui-base-color, 4%);
  293. }
  294. .report-dialog-modal__container {
  295. border-top-color: lighten($ui-base-color, 4%);
  296. }
  297. // Change the background colors of modals
  298. .actions-modal,
  299. .boost-modal,
  300. .confirmation-modal,
  301. .mute-modal,
  302. .block-modal,
  303. .report-modal,
  304. .report-dialog-modal,
  305. .embed-modal,
  306. .error-modal,
  307. .onboarding-modal,
  308. .compare-history-modal,
  309. .report-modal__comment .setting-text__wrapper,
  310. .report-modal__comment .setting-text,
  311. .announcements,
  312. .picture-in-picture__header,
  313. .picture-in-picture__footer,
  314. .reactions-bar__item {
  315. background: $white;
  316. border: 1px solid lighten($ui-base-color, 8%);
  317. }
  318. .reactions-bar__item:hover,
  319. .reactions-bar__item:focus,
  320. .reactions-bar__item:active,
  321. .language-dropdown__dropdown__results__item:hover,
  322. .language-dropdown__dropdown__results__item:focus,
  323. .language-dropdown__dropdown__results__item:active {
  324. background-color: $ui-base-color;
  325. }
  326. .reactions-bar__item.active {
  327. background-color: mix($white, $ui-highlight-color, 80%);
  328. border-color: mix(lighten($ui-base-color, 8%), $ui-highlight-color, 80%);
  329. }
  330. .media-modal__overlay .picture-in-picture__footer {
  331. border: 0;
  332. }
  333. .picture-in-picture__header {
  334. border-bottom: 0;
  335. }
  336. .announcements,
  337. .picture-in-picture__footer {
  338. border-top: 0;
  339. }
  340. .icon-with-badge__badge {
  341. border-color: $white;
  342. color: $white;
  343. }
  344. .report-modal__comment {
  345. border-right-color: lighten($ui-base-color, 8%);
  346. }
  347. .report-modal__container {
  348. border-top-color: lighten($ui-base-color, 8%);
  349. }
  350. .column-header__collapsible-inner {
  351. background: darken($ui-base-color, 4%);
  352. border: 1px solid lighten($ui-base-color, 8%);
  353. border-bottom: 0;
  354. }
  355. .column-settings__hashtags .column-select__option {
  356. color: $white;
  357. }
  358. .dashboard__quick-access,
  359. .focal-point__preview strong,
  360. .admin-wrapper .content__heading__tabs a.selected {
  361. color: $white;
  362. }
  363. .flash-message.warning {
  364. color: lighten($gold-star, 16%);
  365. }
  366. .boost-modal__action-bar,
  367. .confirmation-modal__action-bar,
  368. .mute-modal__action-bar,
  369. .block-modal__action-bar,
  370. .onboarding-modal__paginator,
  371. .error-modal__footer {
  372. background: darken($ui-base-color, 6%);
  373. .onboarding-modal__nav,
  374. .error-modal__nav {
  375. &:hover,
  376. &:focus,
  377. &:active {
  378. background-color: darken($ui-base-color, 12%);
  379. }
  380. }
  381. }
  382. .display-case__case {
  383. background: $white;
  384. }
  385. .embed-modal .embed-modal__container .embed-modal__html {
  386. background: $white;
  387. border: 1px solid lighten($ui-base-color, 8%);
  388. &:focus {
  389. border-color: lighten($ui-base-color, 12%);
  390. background: $white;
  391. }
  392. }
  393. .react-toggle-track {
  394. background: $ui-secondary-color;
  395. }
  396. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  397. background: darken($ui-secondary-color, 10%);
  398. }
  399. .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled)
  400. .react-toggle-track {
  401. background: lighten($ui-highlight-color, 10%);
  402. }
  403. // Change the default color used for the text in an empty column or on the error column
  404. .empty-column-indicator,
  405. .error-column {
  406. color: $primary-text-color;
  407. background: $white;
  408. }
  409. // Change the default colors used on some parts of the profile pages
  410. .activity-stream-tabs {
  411. background: $account-background-color;
  412. border-bottom-color: lighten($ui-base-color, 8%);
  413. }
  414. .nothing-here,
  415. .page-header,
  416. .directory__tag > a,
  417. .directory__tag > div {
  418. background: $white;
  419. border: 1px solid lighten($ui-base-color, 8%);
  420. @media screen and (max-width: $no-gap-breakpoint) {
  421. border-left: 0;
  422. border-right: 0;
  423. border-top: 0;
  424. }
  425. }
  426. .simple_form {
  427. input[type='text'],
  428. input[type='number'],
  429. input[type='email'],
  430. input[type='password'],
  431. textarea {
  432. &:hover {
  433. border-color: lighten($ui-base-color, 12%);
  434. }
  435. }
  436. }
  437. .picture-in-picture-placeholder {
  438. background: $white;
  439. border-color: lighten($ui-base-color, 8%);
  440. color: lighten($ui-base-color, 8%);
  441. }
  442. .directory__tag > a {
  443. &:hover,
  444. &:active,
  445. &:focus {
  446. background: $ui-base-color;
  447. }
  448. @media screen and (max-width: $no-gap-breakpoint) {
  449. border: 0;
  450. }
  451. }
  452. .batch-table {
  453. &__toolbar,
  454. &__row,
  455. .nothing-here {
  456. border-color: lighten($ui-base-color, 8%);
  457. }
  458. }
  459. .activity-stream {
  460. border: 1px solid lighten($ui-base-color, 8%);
  461. &--under-tabs {
  462. border-top: 0;
  463. }
  464. .entry {
  465. background: $account-background-color;
  466. .detailed-status.light,
  467. .more.light,
  468. .status.light {
  469. border-bottom-color: lighten($ui-base-color, 8%);
  470. }
  471. }
  472. .status.light {
  473. .status__content {
  474. color: $primary-text-color;
  475. }
  476. .display-name {
  477. strong {
  478. color: $primary-text-color;
  479. }
  480. }
  481. }
  482. }
  483. .accounts-grid {
  484. .account-grid-card {
  485. .controls {
  486. .icon-button {
  487. color: $darker-text-color;
  488. }
  489. }
  490. .name {
  491. a {
  492. color: $primary-text-color;
  493. }
  494. }
  495. .username {
  496. color: $darker-text-color;
  497. }
  498. .account__header__content {
  499. color: $primary-text-color;
  500. }
  501. }
  502. }
  503. .simple_form {
  504. .warning {
  505. box-shadow: none;
  506. background: rgba($error-red, 0.5);
  507. text-shadow: none;
  508. }
  509. .recommended {
  510. border-color: $ui-highlight-color;
  511. color: $ui-highlight-color;
  512. background-color: rgba($ui-highlight-color, 0.1);
  513. }
  514. }
  515. .compose-form .compose-form__warning {
  516. border-color: $ui-highlight-color;
  517. background-color: rgba($ui-highlight-color, 0.1);
  518. &,
  519. a {
  520. color: $ui-highlight-color;
  521. }
  522. }
  523. .reply-indicator {
  524. background: transparent;
  525. border: 1px solid lighten($ui-base-color, 8%);
  526. }
  527. .status__content,
  528. .reply-indicator__content {
  529. a {
  530. color: $highlight-text-color;
  531. }
  532. }
  533. .notification__filter-bar button.active::after,
  534. .account__section-headline a.active::after {
  535. border-color: transparent transparent $white;
  536. }
  537. .hero-widget,
  538. .moved-account-widget,
  539. .memoriam-widget,
  540. .activity-stream,
  541. .nothing-here,
  542. .directory__tag > a,
  543. .directory__tag > div,
  544. .card > a,
  545. .page-header,
  546. .compose-form .compose-form__warning {
  547. box-shadow: none;
  548. }
  549. .mute-modal select {
  550. border: 1px solid lighten($ui-base-color, 8%);
  551. background: $simple-background-color
  552. 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>")
  553. no-repeat right 8px center / auto 16px;
  554. }
  555. .status__wrapper-direct {
  556. background-color: rgba($ui-highlight-color, 0.1);
  557. &:focus {
  558. background-color: rgba($ui-highlight-color, 0.15);
  559. }
  560. }