diff.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  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. .directory__card__img {
  33. background: lighten($ui-base-color, 12%);
  34. }
  35. .filter-form,
  36. .directory__card__bar {
  37. background: $white;
  38. border-bottom: 1px solid lighten($ui-base-color, 8%);
  39. }
  40. .scrollable .directory__list {
  41. width: calc(100% + 2px);
  42. margin-left: -1px;
  43. margin-right: -1px;
  44. }
  45. .directory__card,
  46. .table-of-contents {
  47. border: 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__bar,
  65. .directory__card__extra {
  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__text input[type="text"],
  120. .compose-form .spoiler-input__input,
  121. .compose-form__poll-wrapper select,
  122. .search__input,
  123. .setting-text,
  124. .box-widget input[type="text"],
  125. .box-widget input[type="email"],
  126. .box-widget input[type="password"],
  127. .box-widget textarea,
  128. .statuses-grid .detailed-status,
  129. .audio-player {
  130. border: 1px solid lighten($ui-base-color, 8%);
  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. .status.status-direct {
  214. background: lighten($ui-base-color, 4%);
  215. }
  216. .focusable:focus .status.status-direct {
  217. background: lighten($ui-base-color, 8%);
  218. }
  219. .detailed-status,
  220. .detailed-status__action-bar {
  221. background: $white;
  222. }
  223. // Change the background colors of status__content__spoiler-link
  224. .reply-indicator__content .status__content__spoiler-link,
  225. .status__content .status__content__spoiler-link {
  226. background: $ui-base-color;
  227. &:hover {
  228. background: lighten($ui-base-color, 4%);
  229. }
  230. }
  231. // Change the background colors of media and video spoilers
  232. .media-spoiler,
  233. .video-player__spoiler {
  234. background: $ui-base-color;
  235. }
  236. .privacy-dropdown.active .privacy-dropdown__value.active .icon-button {
  237. color: $white;
  238. }
  239. .account-gallery__item a {
  240. background-color: $ui-base-color;
  241. }
  242. // Change the colors used in the dropdown menu
  243. .dropdown-menu {
  244. background: $white;
  245. &__arrow {
  246. &.left {
  247. border-left-color: $white;
  248. }
  249. &.top {
  250. border-top-color: $white;
  251. }
  252. &.bottom {
  253. border-bottom-color: $white;
  254. }
  255. &.right {
  256. border-right-color: $white;
  257. }
  258. }
  259. &__item {
  260. a {
  261. background: $white;
  262. color: $darker-text-color;
  263. }
  264. }
  265. }
  266. // Change the text colors on inverted background
  267. .privacy-dropdown__option.active,
  268. .privacy-dropdown__option:hover,
  269. .privacy-dropdown__option.active .privacy-dropdown__option__content,
  270. .privacy-dropdown__option.active .privacy-dropdown__option__content strong,
  271. .privacy-dropdown__option:hover .privacy-dropdown__option__content,
  272. .privacy-dropdown__option:hover .privacy-dropdown__option__content strong,
  273. .dropdown-menu__item a:active,
  274. .dropdown-menu__item a:focus,
  275. .dropdown-menu__item a:hover,
  276. .actions-modal ul li:not(:empty) a.active,
  277. .actions-modal ul li:not(:empty) a.active button,
  278. .actions-modal ul li:not(:empty) a:active,
  279. .actions-modal ul li:not(:empty) a:active button,
  280. .actions-modal ul li:not(:empty) a:focus,
  281. .actions-modal ul li:not(:empty) a:focus button,
  282. .actions-modal ul li:not(:empty) a:hover,
  283. .actions-modal ul li:not(:empty) a:hover button,
  284. .admin-wrapper .sidebar ul .simple-navigation-active-leaf a,
  285. .simple_form .block-button,
  286. .simple_form .button,
  287. .simple_form button {
  288. color: $white;
  289. }
  290. .dropdown-menu__separator {
  291. border-bottom-color: lighten($ui-base-color, 4%);
  292. }
  293. // Change the background colors of modals
  294. .actions-modal,
  295. .boost-modal,
  296. .confirmation-modal,
  297. .mute-modal,
  298. .block-modal,
  299. .report-modal,
  300. .embed-modal,
  301. .error-modal,
  302. .onboarding-modal,
  303. .report-modal__comment .setting-text__wrapper,
  304. .report-modal__comment .setting-text {
  305. background: $white;
  306. border: 1px solid lighten($ui-base-color, 8%);
  307. }
  308. .report-modal__comment {
  309. border-right-color: lighten($ui-base-color, 8%);
  310. }
  311. .report-modal__container {
  312. border-top-color: lighten($ui-base-color, 8%);
  313. }
  314. .column-header__collapsible-inner {
  315. background: darken($ui-base-color, 4%);
  316. border: 1px solid lighten($ui-base-color, 8%);
  317. border-top: 0;
  318. }
  319. .focal-point__preview strong {
  320. color: $white;
  321. }
  322. .boost-modal__action-bar,
  323. .confirmation-modal__action-bar,
  324. .mute-modal__action-bar,
  325. .block-modal__action-bar,
  326. .onboarding-modal__paginator,
  327. .error-modal__footer {
  328. background: darken($ui-base-color, 6%);
  329. .onboarding-modal__nav,
  330. .error-modal__nav {
  331. &:hover,
  332. &:focus,
  333. &:active {
  334. background-color: darken($ui-base-color, 12%);
  335. }
  336. }
  337. }
  338. .display-case__case {
  339. background: $white;
  340. }
  341. .embed-modal .embed-modal__container .embed-modal__html {
  342. background: $white;
  343. border: 1px solid lighten($ui-base-color, 8%);
  344. &:focus {
  345. border-color: lighten($ui-base-color, 12%);
  346. background: $white;
  347. }
  348. }
  349. .react-toggle-track {
  350. background: $ui-secondary-color;
  351. }
  352. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  353. background: darken($ui-secondary-color, 10%);
  354. }
  355. .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  356. background: lighten($ui-highlight-color, 10%);
  357. }
  358. // Change the default color used for the text in an empty column or on the error column
  359. .empty-column-indicator,
  360. .error-column {
  361. color: $primary-text-color;
  362. background: $white;
  363. }
  364. .tabs-bar {
  365. background: $white;
  366. border: 1px solid lighten($ui-base-color, 8%);
  367. border-bottom: 0;
  368. @media screen and (max-width: $no-gap-breakpoint) {
  369. border-top: 0;
  370. }
  371. &__link {
  372. padding-bottom: 14px;
  373. border-bottom-width: 1px;
  374. border-bottom-color: lighten($ui-base-color, 8%);
  375. &:hover,
  376. &:active,
  377. &:focus {
  378. background: $ui-base-color;
  379. }
  380. &.active {
  381. &:hover,
  382. &:active,
  383. &:focus {
  384. background: transparent;
  385. border-bottom-color: $ui-highlight-color;
  386. }
  387. }
  388. }
  389. }
  390. // Change the default colors used on some parts of the profile pages
  391. .activity-stream-tabs {
  392. background: $account-background-color;
  393. border-bottom-color: lighten($ui-base-color, 8%);
  394. }
  395. .box-widget,
  396. .nothing-here,
  397. .page-header,
  398. .directory__tag > a,
  399. .directory__tag > div,
  400. .landing-page__call-to-action,
  401. .contact-widget,
  402. .landing .hero-widget__text,
  403. .landing-page__information.contact-widget {
  404. background: $white;
  405. border: 1px solid lighten($ui-base-color, 8%);
  406. @media screen and (max-width: $no-gap-breakpoint) {
  407. border-left: 0;
  408. border-right: 0;
  409. border-top: 0;
  410. }
  411. }
  412. .landing .hero-widget__text {
  413. border-top: 0;
  414. border-bottom: 0;
  415. }
  416. .simple_form {
  417. input[type=text],
  418. input[type=number],
  419. input[type=email],
  420. input[type=password],
  421. textarea {
  422. &:hover {
  423. border-color: lighten($ui-base-color, 12%);
  424. }
  425. }
  426. }
  427. .landing .hero-widget__footer {
  428. background: $white;
  429. border: 1px solid lighten($ui-base-color, 8%);
  430. border-top: 0;
  431. @media screen and (max-width: $no-gap-breakpoint) {
  432. border: 0;
  433. }
  434. }
  435. .brand__tagline {
  436. color: $ui-secondary-color;
  437. }
  438. .directory__tag > a {
  439. &:hover,
  440. &:active,
  441. &:focus {
  442. background: $ui-base-color;
  443. }
  444. @media screen and (max-width: $no-gap-breakpoint) {
  445. border: 0;
  446. }
  447. }
  448. .directory__tag.active > a,
  449. .directory__tag.active > div {
  450. border-color: $ui-highlight-color;
  451. &,
  452. h4,
  453. h4 small,
  454. .fa,
  455. .trends__item__current {
  456. color: $white;
  457. }
  458. &:hover,
  459. &:active,
  460. &:focus {
  461. background: $ui-highlight-color;
  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. .table-form {
  517. .warning {
  518. box-shadow: none;
  519. background: rgba($error-red, 0.5);
  520. text-shadow: none;
  521. }
  522. .recommended {
  523. border-color: $ui-highlight-color;
  524. color: $ui-highlight-color;
  525. background-color: rgba($ui-highlight-color, 0.1);
  526. }
  527. }
  528. .compose-form .compose-form__warning {
  529. border-color: $ui-highlight-color;
  530. background-color: rgba($ui-highlight-color, 0.1);
  531. &,
  532. a {
  533. color: $ui-highlight-color;
  534. }
  535. }
  536. .status__content,
  537. .reply-indicator__content {
  538. a {
  539. color: $highlight-text-color;
  540. }
  541. }
  542. .button.logo-button {
  543. color: $white;
  544. svg {
  545. fill: $white;
  546. }
  547. }
  548. .public-layout {
  549. .account__section-headline {
  550. border: 1px solid lighten($ui-base-color, 8%);
  551. @media screen and (max-width: $no-gap-breakpoint) {
  552. border-top: 0;
  553. }
  554. }
  555. .header,
  556. .public-account-header,
  557. .public-account-bio {
  558. box-shadow: none;
  559. }
  560. .public-account-bio,
  561. .hero-widget__text {
  562. background: $account-background-color;
  563. border: 1px solid lighten($ui-base-color, 8%);
  564. }
  565. .header {
  566. background: $ui-base-color;
  567. border: 1px solid lighten($ui-base-color, 8%);
  568. @media screen and (max-width: $no-gap-breakpoint) {
  569. border: 0;
  570. }
  571. .brand {
  572. &:hover,
  573. &:focus,
  574. &:active {
  575. background: lighten($ui-base-color, 4%);
  576. }
  577. }
  578. }
  579. .public-account-header {
  580. &__image {
  581. background: lighten($ui-base-color, 12%);
  582. &::after {
  583. box-shadow: none;
  584. }
  585. }
  586. &__bar {
  587. &::before {
  588. background: $account-background-color;
  589. border: 1px solid lighten($ui-base-color, 8%);
  590. border-top: 0;
  591. }
  592. .avatar img {
  593. border-color: $account-background-color;
  594. }
  595. @media screen and (max-width: $no-columns-breakpoint) {
  596. background: $account-background-color;
  597. border: 1px solid lighten($ui-base-color, 8%);
  598. border-top: 0;
  599. }
  600. }
  601. &__tabs {
  602. &__name {
  603. h1,
  604. h1 small {
  605. color: $white;
  606. @media screen and (max-width: $no-columns-breakpoint) {
  607. color: $primary-text-color;
  608. }
  609. }
  610. }
  611. }
  612. &__extra {
  613. .public-account-bio {
  614. border: 0;
  615. }
  616. .public-account-bio .account__header__fields {
  617. border-color: lighten($ui-base-color, 8%);
  618. }
  619. }
  620. }
  621. }
  622. .notification__filter-bar button.active::after,
  623. .account__section-headline a.active::after {
  624. border-color: transparent transparent $white;
  625. }
  626. .hero-widget,
  627. .box-widget,
  628. .contact-widget,
  629. .landing-page__information.contact-widget,
  630. .moved-account-widget,
  631. .memoriam-widget,
  632. .activity-stream,
  633. .nothing-here,
  634. .directory__tag > a,
  635. .directory__tag > div,
  636. .card > a,
  637. .page-header,
  638. .compose-form .compose-form__warning {
  639. box-shadow: none;
  640. }
  641. .audio-player .video-player__controls button,
  642. .audio-player .video-player__time-sep,
  643. .audio-player .video-player__time-current,
  644. .audio-player .video-player__time-total {
  645. color: $primary-text-color;
  646. }