diff.scss 16 KB

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