1
0

diff.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  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. color: $darker-text-color;
  248. &--dangerous {
  249. color: $error-value-color;
  250. }
  251. a,
  252. button {
  253. background: $white;
  254. }
  255. }
  256. }
  257. // Change the text colors on inverted background
  258. .privacy-dropdown__option.active,
  259. .privacy-dropdown__option:hover,
  260. .privacy-dropdown__option.active .privacy-dropdown__option__content,
  261. .privacy-dropdown__option.active .privacy-dropdown__option__content strong,
  262. .privacy-dropdown__option:hover .privacy-dropdown__option__content,
  263. .privacy-dropdown__option:hover .privacy-dropdown__option__content strong,
  264. .dropdown-menu__item:not(.dropdown-menu__item--dangerous) a:active,
  265. .dropdown-menu__item:not(.dropdown-menu__item--dangerous) a:focus,
  266. .dropdown-menu__item:not(.dropdown-menu__item--dangerous) a:hover,
  267. .actions-modal ul li:not(:empty) a.active,
  268. .actions-modal ul li:not(:empty) a.active button,
  269. .actions-modal ul li:not(:empty) a:active,
  270. .actions-modal ul li:not(:empty) a:active button,
  271. .actions-modal ul li:not(:empty) a:focus,
  272. .actions-modal ul li:not(:empty) a:focus button,
  273. .actions-modal ul li:not(:empty) a:hover,
  274. .actions-modal ul li:not(:empty) a:hover button,
  275. .language-dropdown__dropdown__results__item.active,
  276. .admin-wrapper .sidebar ul .simple-navigation-active-leaf a,
  277. .simple_form .block-button,
  278. .simple_form .button,
  279. .simple_form button {
  280. color: $white;
  281. }
  282. .language-dropdown__dropdown__results__item
  283. .language-dropdown__dropdown__results__item__common-name {
  284. color: lighten($ui-base-color, 8%);
  285. }
  286. .language-dropdown__dropdown__results__item.active
  287. .language-dropdown__dropdown__results__item__common-name {
  288. color: darken($ui-base-color, 12%);
  289. }
  290. .dropdown-menu__separator,
  291. .dropdown-menu__item.edited-timestamp__history__item,
  292. .dropdown-menu__container__header,
  293. .compare-history-modal .report-modal__target,
  294. .report-dialog-modal .poll__option.dialog-option {
  295. border-bottom-color: lighten($ui-base-color, 4%);
  296. }
  297. .report-dialog-modal__container {
  298. border-top-color: lighten($ui-base-color, 4%);
  299. }
  300. // Change the background colors of modals
  301. .actions-modal,
  302. .boost-modal,
  303. .confirmation-modal,
  304. .mute-modal,
  305. .block-modal,
  306. .report-modal,
  307. .report-dialog-modal,
  308. .embed-modal,
  309. .error-modal,
  310. .onboarding-modal,
  311. .compare-history-modal,
  312. .report-modal__comment .setting-text__wrapper,
  313. .report-modal__comment .setting-text,
  314. .announcements,
  315. .picture-in-picture__header,
  316. .picture-in-picture__footer,
  317. .reactions-bar__item {
  318. background: $white;
  319. border: 1px solid lighten($ui-base-color, 8%);
  320. }
  321. .reactions-bar__item:hover,
  322. .reactions-bar__item:focus,
  323. .reactions-bar__item:active,
  324. .language-dropdown__dropdown__results__item:hover,
  325. .language-dropdown__dropdown__results__item:focus,
  326. .language-dropdown__dropdown__results__item:active {
  327. background-color: $ui-base-color;
  328. }
  329. .reactions-bar__item.active {
  330. background-color: mix($white, $ui-highlight-color, 80%);
  331. border-color: mix(lighten($ui-base-color, 8%), $ui-highlight-color, 80%);
  332. }
  333. .media-modal__overlay .picture-in-picture__footer {
  334. border: 0;
  335. }
  336. .picture-in-picture__header {
  337. border-bottom: 0;
  338. }
  339. .announcements,
  340. .picture-in-picture__footer {
  341. border-top: 0;
  342. }
  343. .icon-with-badge__badge {
  344. border-color: $white;
  345. color: $white;
  346. }
  347. .report-modal__comment {
  348. border-right-color: lighten($ui-base-color, 8%);
  349. }
  350. .report-modal__container {
  351. border-top-color: lighten($ui-base-color, 8%);
  352. }
  353. .column-header__collapsible-inner {
  354. background: darken($ui-base-color, 4%);
  355. border: 1px solid lighten($ui-base-color, 8%);
  356. border-bottom: 0;
  357. }
  358. .column-settings__hashtags .column-select__option {
  359. color: $white;
  360. }
  361. .dashboard__quick-access,
  362. .focal-point__preview strong,
  363. .admin-wrapper .content__heading__tabs a.selected {
  364. color: $white;
  365. }
  366. .flash-message.warning {
  367. color: lighten($gold-star, 16%);
  368. }
  369. .boost-modal__action-bar,
  370. .confirmation-modal__action-bar,
  371. .mute-modal__action-bar,
  372. .block-modal__action-bar,
  373. .onboarding-modal__paginator,
  374. .error-modal__footer {
  375. background: darken($ui-base-color, 6%);
  376. .onboarding-modal__nav,
  377. .error-modal__nav {
  378. &:hover,
  379. &:focus,
  380. &:active {
  381. background-color: darken($ui-base-color, 12%);
  382. }
  383. }
  384. }
  385. .display-case__case {
  386. background: $white;
  387. }
  388. .embed-modal .embed-modal__container .embed-modal__html {
  389. background: $white;
  390. border: 1px solid lighten($ui-base-color, 8%);
  391. &:focus {
  392. border-color: lighten($ui-base-color, 12%);
  393. background: $white;
  394. }
  395. }
  396. .react-toggle-track {
  397. background: $ui-secondary-color;
  398. }
  399. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  400. background: darken($ui-secondary-color, 10%);
  401. }
  402. .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled)
  403. .react-toggle-track {
  404. background: lighten($ui-highlight-color, 10%);
  405. }
  406. // Change the default color used for the text in an empty column or on the error column
  407. .empty-column-indicator,
  408. .error-column {
  409. color: $primary-text-color;
  410. background: $white;
  411. }
  412. // Change the default colors used on some parts of the profile pages
  413. .activity-stream-tabs {
  414. background: $account-background-color;
  415. border-bottom-color: lighten($ui-base-color, 8%);
  416. }
  417. .nothing-here,
  418. .page-header,
  419. .directory__tag > a,
  420. .directory__tag > div {
  421. background: $white;
  422. border: 1px solid lighten($ui-base-color, 8%);
  423. @media screen and (max-width: $no-gap-breakpoint) {
  424. border-left: 0;
  425. border-right: 0;
  426. border-top: 0;
  427. }
  428. }
  429. .simple_form {
  430. input[type='text'],
  431. input[type='number'],
  432. input[type='email'],
  433. input[type='password'],
  434. textarea {
  435. &:hover {
  436. border-color: lighten($ui-base-color, 12%);
  437. }
  438. }
  439. }
  440. .picture-in-picture-placeholder {
  441. background: $white;
  442. border-color: lighten($ui-base-color, 8%);
  443. color: lighten($ui-base-color, 8%);
  444. }
  445. .directory__tag > a {
  446. &:hover,
  447. &:active,
  448. &:focus {
  449. background: $ui-base-color;
  450. }
  451. @media screen and (max-width: $no-gap-breakpoint) {
  452. border: 0;
  453. }
  454. }
  455. .batch-table {
  456. &__toolbar,
  457. &__row,
  458. .nothing-here {
  459. border-color: lighten($ui-base-color, 8%);
  460. }
  461. }
  462. .activity-stream {
  463. border: 1px solid lighten($ui-base-color, 8%);
  464. &--under-tabs {
  465. border-top: 0;
  466. }
  467. .entry {
  468. background: $account-background-color;
  469. .detailed-status.light,
  470. .more.light,
  471. .status.light {
  472. border-bottom-color: lighten($ui-base-color, 8%);
  473. }
  474. }
  475. .status.light {
  476. .status__content {
  477. color: $primary-text-color;
  478. }
  479. .display-name {
  480. strong {
  481. color: $primary-text-color;
  482. }
  483. }
  484. }
  485. }
  486. .accounts-grid {
  487. .account-grid-card {
  488. .controls {
  489. .icon-button {
  490. color: $darker-text-color;
  491. }
  492. }
  493. .name {
  494. a {
  495. color: $primary-text-color;
  496. }
  497. }
  498. .username {
  499. color: $darker-text-color;
  500. }
  501. .account__header__content {
  502. color: $primary-text-color;
  503. }
  504. }
  505. }
  506. .simple_form {
  507. .warning {
  508. box-shadow: none;
  509. background: rgba($error-red, 0.5);
  510. text-shadow: none;
  511. }
  512. .recommended {
  513. border-color: $ui-highlight-color;
  514. color: $ui-highlight-color;
  515. background-color: rgba($ui-highlight-color, 0.1);
  516. }
  517. }
  518. .compose-form .compose-form__warning {
  519. border-color: $ui-highlight-color;
  520. background-color: rgba($ui-highlight-color, 0.1);
  521. &,
  522. a {
  523. color: $ui-highlight-color;
  524. }
  525. }
  526. .reply-indicator {
  527. background: transparent;
  528. border: 1px solid lighten($ui-base-color, 8%);
  529. }
  530. .status__content,
  531. .reply-indicator__content {
  532. a {
  533. color: $highlight-text-color;
  534. }
  535. }
  536. .notification__filter-bar button.active::after,
  537. .account__section-headline a.active::after {
  538. border-color: transparent transparent $white;
  539. }
  540. .hero-widget,
  541. .moved-account-widget,
  542. .memoriam-widget,
  543. .activity-stream,
  544. .nothing-here,
  545. .directory__tag > a,
  546. .directory__tag > div,
  547. .card > a,
  548. .page-header,
  549. .compose-form .compose-form__warning {
  550. box-shadow: none;
  551. }
  552. .mute-modal select {
  553. border: 1px solid lighten($ui-base-color, 8%);
  554. background: $simple-background-color
  555. 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>")
  556. no-repeat right 8px center / auto 16px;
  557. }
  558. .status__wrapper-direct {
  559. background-color: rgba($ui-highlight-color, 0.1);
  560. &:focus {
  561. background-color: rgba($ui-highlight-color, 0.15);
  562. }
  563. }