diff.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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. .search__input,
  121. .setting-text,
  122. .report-dialog-modal__textarea,
  123. .audio-player {
  124. border: 1px solid lighten($ui-base-color, 8%);
  125. }
  126. .report-dialog-modal .dialog-option .poll__input {
  127. color: $white;
  128. }
  129. .search__input {
  130. @media screen and (max-width: $no-gap-breakpoint) {
  131. border-top: 0;
  132. border-bottom: 0;
  133. }
  134. }
  135. .list-editor .search .search__input {
  136. border-top: 0;
  137. border-bottom: 0;
  138. }
  139. .notification__filter-bar {
  140. border: 1px solid lighten($ui-base-color, 8%);
  141. border-top: 0;
  142. }
  143. .drawer__header,
  144. .drawer__inner {
  145. background: $white;
  146. border: 1px solid lighten($ui-base-color, 8%);
  147. }
  148. .drawer__inner__mastodon {
  149. background: $white
  150. 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>')
  151. no-repeat bottom / 100% auto;
  152. }
  153. .upload-progress__backdrop {
  154. background: $ui-base-color;
  155. }
  156. // Change the background colors of statuses
  157. .focusable:focus {
  158. background: lighten($white, 4%);
  159. }
  160. .detailed-status,
  161. .detailed-status__action-bar {
  162. background: $white;
  163. }
  164. // Change the background colors of status__content__spoiler-link
  165. .reply-indicator__content .status__content__spoiler-link,
  166. .status__content .status__content__spoiler-link {
  167. background: $ui-base-color;
  168. &:hover,
  169. &:focus {
  170. background: lighten($ui-base-color, 4%);
  171. }
  172. }
  173. // Change the background colors of media and video spoilers
  174. .media-spoiler,
  175. .video-player__spoiler {
  176. background: $ui-base-color;
  177. }
  178. .account-gallery__item a {
  179. background-color: $ui-base-color;
  180. }
  181. // Change the text colors on inverted background
  182. .actions-modal ul li:not(:empty) a.active,
  183. .actions-modal ul li:not(:empty) a.active button,
  184. .actions-modal ul li:not(:empty) a:active,
  185. .actions-modal ul li:not(:empty) a:active button,
  186. .actions-modal ul li:not(:empty) a:focus,
  187. .actions-modal ul li:not(:empty) a:focus button,
  188. .actions-modal ul li:not(:empty) a:hover,
  189. .actions-modal ul li:not(:empty) a:hover button,
  190. .admin-wrapper .sidebar ul .simple-navigation-active-leaf a,
  191. .simple_form .block-button,
  192. .simple_form .button,
  193. .simple_form button {
  194. color: $white;
  195. }
  196. .compare-history-modal .report-modal__target,
  197. .report-dialog-modal .poll__option.dialog-option {
  198. border-bottom-color: lighten($ui-base-color, 4%);
  199. }
  200. .report-dialog-modal__container {
  201. border-top-color: lighten($ui-base-color, 4%);
  202. }
  203. // Change the background colors of modals
  204. .actions-modal,
  205. .boost-modal,
  206. .confirmation-modal,
  207. .mute-modal,
  208. .block-modal,
  209. .report-modal,
  210. .report-dialog-modal,
  211. .embed-modal,
  212. .error-modal,
  213. .onboarding-modal,
  214. .compare-history-modal,
  215. .report-modal__comment .setting-text__wrapper,
  216. .report-modal__comment .setting-text,
  217. .announcements,
  218. .picture-in-picture__header,
  219. .picture-in-picture__footer,
  220. .reactions-bar__item {
  221. background: $white;
  222. border: 1px solid lighten($ui-base-color, 8%);
  223. }
  224. .reactions-bar__item:hover,
  225. .reactions-bar__item:focus,
  226. .reactions-bar__item:active {
  227. background-color: $ui-base-color;
  228. }
  229. .reactions-bar__item.active {
  230. background-color: mix($white, $ui-highlight-color, 80%);
  231. border-color: mix(lighten($ui-base-color, 8%), $ui-highlight-color, 80%);
  232. }
  233. .media-modal__overlay .picture-in-picture__footer {
  234. border: 0;
  235. }
  236. .picture-in-picture__header {
  237. border-bottom: 0;
  238. }
  239. .announcements,
  240. .picture-in-picture__footer {
  241. border-top: 0;
  242. }
  243. .icon-with-badge__badge {
  244. border-color: $white;
  245. color: $white;
  246. }
  247. .report-modal__comment {
  248. border-right-color: lighten($ui-base-color, 8%);
  249. }
  250. .report-modal__container {
  251. border-top-color: lighten($ui-base-color, 8%);
  252. }
  253. .column-header__collapsible-inner {
  254. background: darken($ui-base-color, 4%);
  255. border: 1px solid lighten($ui-base-color, 8%);
  256. border-bottom: 0;
  257. }
  258. .column-settings__hashtags .column-select__option {
  259. color: $white;
  260. }
  261. .dashboard__quick-access,
  262. .focal-point__preview strong,
  263. .admin-wrapper .content__heading__tabs a.selected {
  264. color: $white;
  265. }
  266. .flash-message.warning {
  267. color: lighten($gold-star, 16%);
  268. }
  269. .boost-modal__action-bar,
  270. .confirmation-modal__action-bar,
  271. .mute-modal__action-bar,
  272. .block-modal__action-bar,
  273. .onboarding-modal__paginator,
  274. .error-modal__footer {
  275. background: darken($ui-base-color, 6%);
  276. .onboarding-modal__nav,
  277. .error-modal__nav {
  278. &:hover,
  279. &:focus,
  280. &:active {
  281. background-color: darken($ui-base-color, 12%);
  282. }
  283. }
  284. }
  285. .display-case__case {
  286. background: $white;
  287. }
  288. .embed-modal .embed-modal__container .embed-modal__html {
  289. background: $white;
  290. border: 1px solid lighten($ui-base-color, 8%);
  291. &:focus {
  292. border-color: lighten($ui-base-color, 12%);
  293. background: $white;
  294. }
  295. }
  296. .react-toggle-track {
  297. background: $ui-secondary-color;
  298. }
  299. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  300. background: darken($ui-secondary-color, 10%);
  301. }
  302. .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled)
  303. .react-toggle-track {
  304. background: lighten($ui-highlight-color, 10%);
  305. }
  306. // Change the default color used for the text in an empty column or on the error column
  307. .empty-column-indicator,
  308. .error-column {
  309. color: $primary-text-color;
  310. background: $white;
  311. }
  312. // Change the default colors used on some parts of the profile pages
  313. .activity-stream-tabs {
  314. background: $account-background-color;
  315. border-bottom-color: lighten($ui-base-color, 8%);
  316. }
  317. .nothing-here,
  318. .page-header,
  319. .directory__tag > a,
  320. .directory__tag > div {
  321. background: $white;
  322. border: 1px solid lighten($ui-base-color, 8%);
  323. @media screen and (max-width: $no-gap-breakpoint) {
  324. border-left: 0;
  325. border-right: 0;
  326. border-top: 0;
  327. }
  328. }
  329. .simple_form {
  330. input[type='text'],
  331. input[type='number'],
  332. input[type='email'],
  333. input[type='password'],
  334. textarea {
  335. &:hover {
  336. border-color: lighten($ui-base-color, 12%);
  337. }
  338. }
  339. }
  340. .picture-in-picture-placeholder {
  341. background: $white;
  342. border-color: lighten($ui-base-color, 8%);
  343. color: lighten($ui-base-color, 8%);
  344. }
  345. .directory__tag > a {
  346. &:hover,
  347. &:active,
  348. &:focus {
  349. background: $ui-base-color;
  350. }
  351. @media screen and (max-width: $no-gap-breakpoint) {
  352. border: 0;
  353. }
  354. }
  355. .batch-table {
  356. &__toolbar,
  357. &__row,
  358. .nothing-here {
  359. border-color: lighten($ui-base-color, 8%);
  360. }
  361. }
  362. .activity-stream {
  363. border: 1px solid lighten($ui-base-color, 8%);
  364. &--under-tabs {
  365. border-top: 0;
  366. }
  367. .entry {
  368. background: $account-background-color;
  369. .detailed-status.light,
  370. .more.light,
  371. .status.light {
  372. border-bottom-color: lighten($ui-base-color, 8%);
  373. }
  374. }
  375. .status.light {
  376. .status__content {
  377. color: $primary-text-color;
  378. }
  379. .display-name {
  380. strong {
  381. color: $primary-text-color;
  382. }
  383. }
  384. }
  385. }
  386. .accounts-grid {
  387. .account-grid-card {
  388. .controls {
  389. .icon-button {
  390. color: $darker-text-color;
  391. }
  392. }
  393. .name {
  394. a {
  395. color: $primary-text-color;
  396. }
  397. }
  398. .username {
  399. color: $darker-text-color;
  400. }
  401. .account__header__content {
  402. color: $primary-text-color;
  403. }
  404. }
  405. }
  406. .simple_form {
  407. .warning {
  408. box-shadow: none;
  409. background: rgba($error-red, 0.5);
  410. text-shadow: none;
  411. }
  412. .recommended {
  413. border-color: $ui-highlight-color;
  414. color: $ui-highlight-color;
  415. background-color: rgba($ui-highlight-color, 0.1);
  416. }
  417. }
  418. .compose-form .compose-form__warning {
  419. border-color: $ui-highlight-color;
  420. background-color: rgba($ui-highlight-color, 0.1);
  421. &,
  422. a {
  423. color: $ui-highlight-color;
  424. }
  425. }
  426. .status__content,
  427. .reply-indicator__content {
  428. a {
  429. color: $highlight-text-color;
  430. }
  431. }
  432. .notification__filter-bar button.active::after,
  433. .account__section-headline a.active::after {
  434. border-color: transparent transparent $white;
  435. }
  436. .hero-widget,
  437. .moved-account-widget,
  438. .memoriam-widget,
  439. .activity-stream,
  440. .nothing-here,
  441. .directory__tag > a,
  442. .directory__tag > div,
  443. .card > a,
  444. .page-header,
  445. .compose-form .compose-form__warning {
  446. box-shadow: none;
  447. }
  448. .mute-modal select {
  449. border: 1px solid lighten($ui-base-color, 8%);
  450. background: $simple-background-color
  451. 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>")
  452. no-repeat right 8px center / auto 16px;
  453. }
  454. .status__wrapper-direct {
  455. background-color: rgba($ui-highlight-color, 0.1);
  456. &:focus {
  457. background-color: rgba($ui-highlight-color, 0.15);
  458. }
  459. }
  460. .compose-form__actions .icon-button.active,
  461. .dropdown-button.active,
  462. .privacy-dropdown__option.active,
  463. .privacy-dropdown__option:focus,
  464. .language-dropdown__dropdown__results__item:focus,
  465. .language-dropdown__dropdown__results__item.active,
  466. .privacy-dropdown__option:focus .privacy-dropdown__option__content,
  467. .privacy-dropdown__option:focus .privacy-dropdown__option__content strong,
  468. .privacy-dropdown__option.active .privacy-dropdown__option__content,
  469. .privacy-dropdown__option.active .privacy-dropdown__option__content strong,
  470. .language-dropdown__dropdown__results__item:focus
  471. .language-dropdown__dropdown__results__item__common-name,
  472. .language-dropdown__dropdown__results__item.active
  473. .language-dropdown__dropdown__results__item__common-name {
  474. color: $white;
  475. }
  476. .compose-form .spoiler-input__input {
  477. color: lighten($ui-highlight-color, 8%);
  478. }
  479. .compose-form .autosuggest-textarea__textarea,
  480. .compose-form__highlightable,
  481. .poll__option input[type='text'] {
  482. background: darken($ui-base-color, 10%);
  483. }