diff.scss 15 KB

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