diff.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. // Notes!
  2. // Sass color functions, "darken" and "lighten" are automatically replaced.
  3. .simple_form .button.button-tertiary {
  4. color: $highlight-text-color;
  5. }
  6. .status-card__actions button,
  7. .status-card__actions a {
  8. color: rgba($white, 0.8);
  9. &:hover,
  10. &:active,
  11. &:focus {
  12. color: $white;
  13. }
  14. }
  15. // Change default background colors of columns
  16. .interaction-modal {
  17. background: $white;
  18. border: 1px solid var(--background-border-color);
  19. }
  20. .rules-list li::before {
  21. background: $ui-highlight-color;
  22. }
  23. .directory__card__img {
  24. background: lighten($ui-base-color, 12%);
  25. }
  26. .account__header {
  27. background: $white;
  28. }
  29. .column-header__button.active {
  30. color: $ui-highlight-color;
  31. &:hover,
  32. &:active,
  33. &:focus {
  34. color: $ui-highlight-color;
  35. }
  36. }
  37. .icon-button:disabled {
  38. color: darken($action-button-color, 25%);
  39. }
  40. .getting-started__footer a {
  41. color: $ui-secondary-color;
  42. text-decoration: underline;
  43. }
  44. .confirmation-modal__secondary-button,
  45. .confirmation-modal__cancel-button,
  46. .mute-modal__cancel-button,
  47. .block-modal__cancel-button {
  48. color: lighten($ui-base-color, 26%);
  49. &:hover,
  50. &:focus,
  51. &:active {
  52. color: $primary-text-color;
  53. }
  54. }
  55. .getting-started .navigation-bar {
  56. border-top: 1px solid var(--background-border-color);
  57. border-bottom: 1px solid var(--background-border-color);
  58. @media screen and (max-width: $no-gap-breakpoint) {
  59. border-top: 0;
  60. }
  61. }
  62. .search__input,
  63. .search__popout,
  64. .setting-text,
  65. .report-dialog-modal__textarea,
  66. .audio-player {
  67. border: 1px solid var(--background-border-color);
  68. }
  69. .report-dialog-modal .dialog-option .poll__input {
  70. color: $white;
  71. }
  72. .search__input {
  73. @media screen and (max-width: $no-gap-breakpoint) {
  74. border-top: 0;
  75. border-bottom: 0;
  76. }
  77. }
  78. .list-editor .search .search__input {
  79. border-top: 0;
  80. border-bottom: 0;
  81. }
  82. .upload-progress__backdrop {
  83. background: $ui-base-color;
  84. }
  85. // Change the background colors of statuses
  86. .focusable:focus {
  87. background: lighten($white, 4%);
  88. }
  89. // Change the background colors of status__content__spoiler-link
  90. .reply-indicator__content .status__content__spoiler-link,
  91. .status__content .status__content__spoiler-link {
  92. background: $ui-base-color;
  93. &:hover,
  94. &:focus {
  95. background: lighten($ui-base-color, 4%);
  96. }
  97. }
  98. .account-gallery__item a {
  99. background-color: $ui-base-color;
  100. }
  101. // Change the text colors on inverted background
  102. .actions-modal ul li:not(:empty) a.active,
  103. .actions-modal ul li:not(:empty) a.active button,
  104. .actions-modal ul li:not(:empty) a:active,
  105. .actions-modal ul li:not(:empty) a:active button,
  106. .actions-modal ul li:not(:empty) a:focus,
  107. .actions-modal ul li:not(:empty) a:focus button,
  108. .actions-modal ul li:not(:empty) a:hover,
  109. .actions-modal ul li:not(:empty) a:hover button,
  110. .simple_form .block-button,
  111. .simple_form .button,
  112. .simple_form button {
  113. color: $white;
  114. }
  115. .compare-history-modal .report-modal__target,
  116. .report-dialog-modal .poll__option.dialog-option {
  117. border-bottom-color: lighten($ui-base-color, 4%);
  118. }
  119. .report-dialog-modal__container {
  120. border-top-color: lighten($ui-base-color, 4%);
  121. }
  122. .reactions-bar__item:hover,
  123. .reactions-bar__item:focus,
  124. .reactions-bar__item:active {
  125. background-color: $ui-base-color;
  126. }
  127. .reactions-bar__item.active {
  128. background-color: mix($white, $ui-highlight-color, 80%);
  129. border-color: mix(lighten($ui-base-color, 8%), $ui-highlight-color, 80%);
  130. }
  131. .media-modal__overlay .picture-in-picture__footer {
  132. border: 0;
  133. }
  134. .picture-in-picture__header {
  135. border-bottom: 0;
  136. }
  137. .announcements,
  138. .picture-in-picture__footer {
  139. border-top: 0;
  140. }
  141. .icon-with-badge__badge {
  142. border-color: $white;
  143. color: $white;
  144. }
  145. .column-settings__hashtags .column-select__option {
  146. color: $white;
  147. }
  148. .dashboard__quick-access,
  149. .focal-point__preview strong,
  150. .admin-wrapper .content__heading__tabs a.selected {
  151. color: $white;
  152. }
  153. .flash-message.warning {
  154. color: lighten($gold-star, 16%);
  155. }
  156. .boost-modal__action-bar,
  157. .confirmation-modal__action-bar,
  158. .mute-modal__action-bar,
  159. .block-modal__action-bar,
  160. .onboarding-modal__paginator,
  161. .error-modal__footer {
  162. background: darken($ui-base-color, 6%);
  163. .onboarding-modal__nav,
  164. .error-modal__nav {
  165. &:hover,
  166. &:focus,
  167. &:active {
  168. background-color: darken($ui-base-color, 12%);
  169. }
  170. }
  171. }
  172. .display-case__case {
  173. background: $white;
  174. }
  175. .embed-modal .embed-modal__container .embed-modal__html {
  176. background: $white;
  177. border: 1px solid var(--background-border-color);
  178. &:focus {
  179. border-color: lighten($ui-base-color, 12%);
  180. background: $white;
  181. }
  182. }
  183. .react-toggle-track {
  184. background: $ui-primary-color;
  185. }
  186. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  187. background: lighten($ui-primary-color, 10%);
  188. }
  189. .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled)
  190. .react-toggle-track {
  191. background: lighten($ui-highlight-color, 10%);
  192. }
  193. // Change the default color used for the text in an empty column or on the error column
  194. .empty-column-indicator,
  195. .error-column {
  196. color: $primary-text-color;
  197. background: $white;
  198. }
  199. // Change the default colors used on some parts of the profile pages
  200. .activity-stream-tabs {
  201. background: $account-background-color;
  202. border-bottom-color: lighten($ui-base-color, 8%);
  203. }
  204. .nothing-here,
  205. .page-header,
  206. .directory__tag > a,
  207. .directory__tag > div {
  208. background: $white;
  209. border: 1px solid var(--background-border-color);
  210. }
  211. .picture-in-picture-placeholder {
  212. background: $white;
  213. border-color: lighten($ui-base-color, 8%);
  214. color: lighten($ui-base-color, 8%);
  215. }
  216. .directory__tag > a {
  217. &:hover,
  218. &:active,
  219. &:focus {
  220. background: $ui-base-color;
  221. }
  222. }
  223. .batch-table {
  224. &__toolbar,
  225. &__row,
  226. .nothing-here {
  227. border-color: lighten($ui-base-color, 8%);
  228. }
  229. }
  230. .activity-stream {
  231. border: 1px solid var(--background-border-color);
  232. &--under-tabs {
  233. border-top: 0;
  234. }
  235. .entry {
  236. background: $account-background-color;
  237. .detailed-status.light,
  238. .more.light,
  239. .status.light {
  240. border-bottom-color: lighten($ui-base-color, 8%);
  241. }
  242. }
  243. .status.light {
  244. .status__content {
  245. color: $primary-text-color;
  246. }
  247. .display-name {
  248. strong {
  249. color: $primary-text-color;
  250. }
  251. }
  252. }
  253. }
  254. .accounts-grid {
  255. .account-grid-card {
  256. .controls {
  257. .icon-button {
  258. color: $darker-text-color;
  259. }
  260. }
  261. .name {
  262. a {
  263. color: $primary-text-color;
  264. }
  265. }
  266. .username {
  267. color: $darker-text-color;
  268. }
  269. .account__header__content {
  270. color: $primary-text-color;
  271. }
  272. }
  273. }
  274. .simple_form {
  275. .warning {
  276. box-shadow: none;
  277. background: rgba($error-red, 0.5);
  278. text-shadow: none;
  279. }
  280. .recommended {
  281. border-color: $ui-highlight-color;
  282. color: $ui-highlight-color;
  283. background-color: rgba($ui-highlight-color, 0.1);
  284. }
  285. input[type='text'],
  286. input[type='number'],
  287. input[type='email'],
  288. input[type='password'],
  289. input[type='url'],
  290. input[type='datetime-local'],
  291. textarea {
  292. background: darken($ui-base-color, 10%);
  293. }
  294. select {
  295. background: darken($ui-base-color, 10%)
  296. 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, 12%))}'/></svg>")
  297. no-repeat right 8px center / auto 14px;
  298. }
  299. }
  300. .compose-form .compose-form__warning {
  301. border-color: $ui-highlight-color;
  302. background-color: rgba($ui-highlight-color, 0.1);
  303. &,
  304. a {
  305. color: $ui-highlight-color;
  306. }
  307. }
  308. .status__content,
  309. .reply-indicator__content {
  310. a {
  311. color: $highlight-text-color;
  312. }
  313. }
  314. .notification__filter-bar button.active::after,
  315. .account__section-headline a.active::after {
  316. border-color: transparent transparent $white;
  317. }
  318. .activity-stream,
  319. .nothing-here,
  320. .directory__tag > a,
  321. .directory__tag > div,
  322. .card > a,
  323. .page-header,
  324. .compose-form,
  325. .compose-form__warning {
  326. box-shadow: none;
  327. }
  328. .card {
  329. &__img {
  330. background: darken($ui-base-color, 10%);
  331. }
  332. & > a {
  333. &:hover,
  334. &:active,
  335. &:focus {
  336. .card__bar {
  337. background: darken($ui-base-color, 10%);
  338. }
  339. }
  340. }
  341. }
  342. .mute-modal select {
  343. border: 1px solid var(--background-border-color);
  344. background: $simple-background-color
  345. 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>")
  346. no-repeat right 8px center / auto 16px;
  347. }
  348. .status__wrapper-direct {
  349. background-color: rgba($ui-highlight-color, 0.1);
  350. &:focus {
  351. background-color: rgba($ui-highlight-color, 0.15);
  352. }
  353. }
  354. .compose-form__actions .icon-button.active,
  355. .dropdown-button.active,
  356. .privacy-dropdown__option.active,
  357. .privacy-dropdown__option:focus,
  358. .language-dropdown__dropdown__results__item:focus,
  359. .language-dropdown__dropdown__results__item.active,
  360. .privacy-dropdown__option:focus .privacy-dropdown__option__content,
  361. .privacy-dropdown__option:focus .privacy-dropdown__option__content strong,
  362. .privacy-dropdown__option.active .privacy-dropdown__option__content,
  363. .privacy-dropdown__option.active .privacy-dropdown__option__content strong,
  364. .language-dropdown__dropdown__results__item:focus
  365. .language-dropdown__dropdown__results__item__common-name,
  366. .language-dropdown__dropdown__results__item.active
  367. .language-dropdown__dropdown__results__item__common-name {
  368. color: $white;
  369. }
  370. .compose-form .spoiler-input__input {
  371. color: lighten($ui-highlight-color, 8%);
  372. }
  373. .compose-form .autosuggest-textarea__textarea,
  374. .compose-form__highlightable,
  375. .autosuggest-textarea__suggestions,
  376. .search__input,
  377. .search__popout,
  378. .emoji-mart-search input,
  379. .language-dropdown__dropdown .emoji-mart-search input,
  380. .poll__option input[type='text'] {
  381. background: darken($ui-base-color, 10%);
  382. }
  383. .inline-follow-suggestions {
  384. background-color: rgba($ui-highlight-color, 0.1);
  385. border-bottom-color: rgba($ui-highlight-color, 0.3);
  386. }
  387. .inline-follow-suggestions__body__scrollable__card {
  388. background: $white;
  389. }
  390. .inline-follow-suggestions__body__scroll-button__icon {
  391. color: $white;
  392. }
  393. a.sparkline {
  394. &:hover,
  395. &:focus,
  396. &:active {
  397. background: darken($ui-base-color, 10%);
  398. }
  399. }
  400. .dashboard__counters {
  401. & > div {
  402. & > a {
  403. &:hover,
  404. &:focus,
  405. &:active {
  406. background: darken($ui-base-color, 10%);
  407. }
  408. }
  409. }
  410. }
  411. .directory {
  412. &__tag {
  413. & > a {
  414. &:hover,
  415. &:focus,
  416. &:active {
  417. background: darken($ui-base-color, 10%);
  418. }
  419. }
  420. }
  421. }
  422. .strike-entry {
  423. &:hover,
  424. &:focus,
  425. &:active {
  426. background: darken($ui-base-color, 10%);
  427. }
  428. }
  429. .setting-text {
  430. background: darken($ui-base-color, 10%);
  431. }
  432. .report-dialog-modal__textarea {
  433. background: darken($ui-base-color, 10%);
  434. }
  435. .autosuggest-account {
  436. .display-name__account {
  437. color: $dark-text-color;
  438. }
  439. }
  440. @supports not selector(::-webkit-scrollbar) {
  441. html {
  442. scrollbar-color: rgba($action-button-color, 0.25)
  443. var(--background-border-color);
  444. }
  445. }
  446. ::-webkit-scrollbar-thumb {
  447. opacity: 0.25;
  448. }
  449. .notification-group--annual-report {
  450. .notification-group__icon,
  451. .notification-group__main .link-button {
  452. color: var(--indigo-3);
  453. }
  454. }