diff.scss 15 KB

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