You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

371 lines
7.8 KiB

  1. // Notes!
  2. // Sass color functions, "darken" and "lighten" are automatically replaced.
  3. // Change the colors of button texts
  4. .button {
  5. color: $white;
  6. &.button-alternative-2 {
  7. color: $white;
  8. }
  9. }
  10. // Change default background colors of columns
  11. .column {
  12. > .scrollable {
  13. background: $white;
  14. }
  15. }
  16. .drawer__inner {
  17. background: $ui-base-color;
  18. }
  19. .drawer__inner__mastodon {
  20. background: $ui-base-color 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($white)}"/></svg>') no-repeat bottom / 100% auto;
  21. }
  22. // Change the colors used in compose-form
  23. .compose-form {
  24. .compose-form__modifiers {
  25. .compose-form__upload__actions .icon-button {
  26. color: lighten($white, 7%);
  27. &:active,
  28. &:focus,
  29. &:hover {
  30. color: $white;
  31. }
  32. }
  33. .compose-form__upload-description input {
  34. color: lighten($white, 7%);
  35. &::placeholder {
  36. color: lighten($white, 7%);
  37. }
  38. }
  39. }
  40. .compose-form__buttons-wrapper {
  41. background: darken($ui-base-color, 6%);
  42. }
  43. .autosuggest-textarea__suggestions {
  44. background: darken($ui-base-color, 6%);
  45. }
  46. .autosuggest-textarea__suggestions__item {
  47. &:hover,
  48. &:focus,
  49. &:active,
  50. &.selected {
  51. background: lighten($ui-base-color, 4%);
  52. }
  53. }
  54. }
  55. .emoji-mart-bar {
  56. border-color: lighten($ui-base-color, 4%);
  57. &:first-child {
  58. background: darken($ui-base-color, 6%);
  59. }
  60. }
  61. .emoji-mart-search input {
  62. background: rgba($ui-base-color, 0.3);
  63. border-color: $ui-base-color;
  64. }
  65. // Change the background colors of statuses
  66. .focusable:focus {
  67. background: $ui-base-color;
  68. }
  69. .status.status-direct {
  70. background: lighten($ui-base-color, 4%);
  71. }
  72. .focusable:focus .status.status-direct {
  73. background: lighten($ui-base-color, 8%);
  74. }
  75. .detailed-status,
  76. .detailed-status__action-bar {
  77. background: darken($ui-base-color, 6%);
  78. }
  79. // Change the background colors of status__content__spoiler-link
  80. .reply-indicator__content .status__content__spoiler-link,
  81. .status__content .status__content__spoiler-link {
  82. background: $ui-base-lighter-color;
  83. &:hover {
  84. background: lighten($ui-base-lighter-color, 6%);
  85. }
  86. }
  87. // Change the background colors of media and video spoilers
  88. .media-spoiler,
  89. .video-player__spoiler {
  90. background: $ui-base-color;
  91. }
  92. .account-gallery__item a {
  93. background-color: $ui-base-color;
  94. }
  95. // Change the colors used in the dropdown menu
  96. .dropdown-menu {
  97. background: $ui-base-color;
  98. &__arrow {
  99. &.left {
  100. border-left-color: $ui-base-color;
  101. }
  102. &.top {
  103. border-top-color: $ui-base-color;
  104. }
  105. &.bottom {
  106. border-bottom-color: $ui-base-color;
  107. }
  108. &.right {
  109. border-right-color: $ui-base-color;
  110. }
  111. }
  112. &__item {
  113. a {
  114. background: $ui-base-color;
  115. color: $darker-text-color;
  116. }
  117. }
  118. }
  119. // Change the text colors on inverted background
  120. .privacy-dropdown__option.active .privacy-dropdown__option__content,
  121. .privacy-dropdown__option.active .privacy-dropdown__option__content strong,
  122. .privacy-dropdown__option:hover .privacy-dropdown__option__content,
  123. .privacy-dropdown__option:hover .privacy-dropdown__option__content strong,
  124. .dropdown-menu__item a:active,
  125. .dropdown-menu__item a:focus,
  126. .dropdown-menu__item a:hover,
  127. .actions-modal ul li:not(:empty) a.active,
  128. .actions-modal ul li:not(:empty) a.active button,
  129. .actions-modal ul li:not(:empty) a:active,
  130. .actions-modal ul li:not(:empty) a:active button,
  131. .actions-modal ul li:not(:empty) a:focus,
  132. .actions-modal ul li:not(:empty) a:focus button,
  133. .actions-modal ul li:not(:empty) a:hover,
  134. .actions-modal ul li:not(:empty) a:hover button,
  135. .admin-wrapper .sidebar ul ul a.selected,
  136. .simple_form .block-button,
  137. .simple_form .button,
  138. .simple_form button {
  139. color: $white;
  140. }
  141. .dropdown-menu__separator {
  142. border-bottom-color: lighten($ui-base-color, 12%);
  143. }
  144. // Change the background colors of modals
  145. .actions-modal,
  146. .boost-modal,
  147. .confirmation-modal,
  148. .mute-modal,
  149. .report-modal,
  150. .embed-modal,
  151. .error-modal,
  152. .onboarding-modal {
  153. background: $ui-base-color;
  154. }
  155. .boost-modal__action-bar,
  156. .confirmation-modal__action-bar,
  157. .mute-modal__action-bar,
  158. .onboarding-modal__paginator,
  159. .error-modal__footer {
  160. background: darken($ui-base-color, 6%);
  161. .onboarding-modal__nav,
  162. .error-modal__nav {
  163. &:hover,
  164. &:focus,
  165. &:active {
  166. background-color: darken($ui-base-color, 12%);
  167. }
  168. }
  169. }
  170. .display-case__case {
  171. background: $white;
  172. }
  173. .embed-modal .embed-modal__container .embed-modal__html {
  174. background: $white;
  175. &:focus {
  176. background: darken($ui-base-color, 6%);
  177. }
  178. }
  179. .react-toggle-track {
  180. background: $ui-secondary-color;
  181. }
  182. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  183. background: darken($ui-secondary-color, 10%);
  184. }
  185. .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  186. background: lighten($ui-highlight-color, 10%);
  187. }
  188. // Change the default color used for the text in an empty column or on the error column
  189. .empty-column-indicator,
  190. .error-column {
  191. color: $primary-text-color;
  192. }
  193. // Change the default colors used on some parts of the profile pages
  194. .activity-stream-tabs {
  195. background: $account-background-color;
  196. border-bottom-color: lighten($ui-base-color, 8%);
  197. }
  198. .activity-stream {
  199. .entry {
  200. background: $account-background-color;
  201. .detailed-status.light,
  202. .more.light,
  203. .status.light {
  204. border-bottom-color: lighten($ui-base-color, 8%);
  205. }
  206. }
  207. .status.light {
  208. .status__content {
  209. color: $primary-text-color;
  210. }
  211. .display-name {
  212. strong {
  213. color: $primary-text-color;
  214. }
  215. }
  216. }
  217. }
  218. .accounts-grid {
  219. .account-grid-card {
  220. .controls {
  221. .icon-button {
  222. color: $darker-text-color;
  223. }
  224. }
  225. .name {
  226. a {
  227. color: $primary-text-color;
  228. }
  229. }
  230. .username {
  231. color: $darker-text-color;
  232. }
  233. .account__header__content {
  234. color: $primary-text-color;
  235. }
  236. }
  237. }
  238. .flash-message {
  239. box-shadow: none;
  240. &.notice {
  241. background: rgba($success-green, 0.5);
  242. color: lighten($success-green, 12%);
  243. }
  244. &.alert {
  245. background: rgba($error-red, 0.5);
  246. color: lighten($error-red, 12%);
  247. }
  248. }
  249. .simple_form,
  250. .table-form {
  251. .warning {
  252. box-shadow: none;
  253. background: rgba($error-red, 0.5);
  254. text-shadow: none;
  255. }
  256. }
  257. .status__content,
  258. .reply-indicator__content {
  259. a {
  260. color: $highlight-text-color;
  261. }
  262. }
  263. .button.logo-button {
  264. color: $white;
  265. svg path:first-child {
  266. fill: $white;
  267. }
  268. }
  269. .public-layout {
  270. .header,
  271. .public-account-header,
  272. .public-account-bio {
  273. box-shadow: none;
  274. }
  275. .header {
  276. background: lighten($ui-base-color, 12%);
  277. }
  278. .public-account-header {
  279. &__image {
  280. background: lighten($ui-base-color, 12%);
  281. &::after {
  282. box-shadow: none;
  283. }
  284. }
  285. &__tabs {
  286. &__name {
  287. h1,
  288. h1 small {
  289. color: $white;
  290. }
  291. }
  292. }
  293. }
  294. }
  295. .account__section-headline a.active::after {
  296. border-color: transparent transparent $white;
  297. }
  298. .hero-widget,
  299. .box-widget,
  300. .contact-widget,
  301. .landing-page__information.contact-widget,
  302. .moved-account-widget,
  303. .memoriam-widget,
  304. .activity-stream,
  305. .nothing-here {
  306. box-shadow: none;
  307. }