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.

597 lines
12 KiB

  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. // Change default background colors of columns
  14. .column > .scrollable,
  15. .getting-started,
  16. .column-inline-form {
  17. background: $white;
  18. border: 1px solid lighten($ui-base-color, 8%);
  19. border-top: 0;
  20. }
  21. .column-back-button,
  22. .column-header {
  23. background: $white;
  24. border: 1px solid lighten($ui-base-color, 8%);
  25. &--slim-button {
  26. border: 0;
  27. top: -49px;
  28. right: 1px;
  29. }
  30. }
  31. .column-header__back-button,
  32. .column-header__button,
  33. .column-header__button.active,
  34. .account__header__bar {
  35. background: $white;
  36. }
  37. .column-header__button.active {
  38. color: $ui-highlight-color;
  39. &:hover,
  40. &:active,
  41. &:focus {
  42. color: $ui-highlight-color;
  43. background: $white;
  44. }
  45. }
  46. .account__header__bar .avatar .account__avatar {
  47. border-color: $white;
  48. }
  49. .getting-started__footer a {
  50. color: $ui-secondary-color;
  51. text-decoration: underline;
  52. }
  53. .column-subheading {
  54. background: darken($ui-base-color, 4%);
  55. border-bottom: 1px solid lighten($ui-base-color, 8%);
  56. }
  57. .getting-started,
  58. .scrollable {
  59. .column-link {
  60. background: $white;
  61. border-bottom: 1px solid lighten($ui-base-color, 8%);
  62. &:hover,
  63. &:active,
  64. &:focus {
  65. background: $ui-base-color;
  66. }
  67. }
  68. }
  69. .compose-form__autosuggest-wrapper,
  70. .poll__text input[type="text"],
  71. .compose-form .spoiler-input__input,
  72. .compose-form__poll-wrapper select,
  73. .search__input,
  74. .setting-text,
  75. .box-widget input[type="text"],
  76. .box-widget input[type="email"],
  77. .box-widget input[type="password"],
  78. .box-widget textarea,
  79. .statuses-grid .detailed-status {
  80. border: 1px solid lighten($ui-base-color, 8%);
  81. }
  82. .list-editor .search .search__input {
  83. border-top: 0;
  84. border-bottom: 0;
  85. }
  86. .compose-form__poll-wrapper select {
  87. 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;
  88. }
  89. .compose-form__poll-wrapper,
  90. .compose-form__poll-wrapper .poll__footer {
  91. border-top-color: lighten($ui-base-color, 8%);
  92. }
  93. .notification__filter-bar {
  94. border: 1px solid lighten($ui-base-color, 8%);
  95. border-top: 0;
  96. }
  97. .compose-form .compose-form__buttons-wrapper {
  98. background: $ui-base-color;
  99. border: 1px solid lighten($ui-base-color, 8%);
  100. border-top: 0;
  101. }
  102. .drawer__header,
  103. .drawer__inner {
  104. background: $white;
  105. border: 1px solid lighten($ui-base-color, 8%);
  106. }
  107. .drawer__inner__mastodon {
  108. 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;
  109. }
  110. // Change the colors used in compose-form
  111. .compose-form {
  112. .compose-form__modifiers {
  113. .compose-form__upload__actions .icon-button {
  114. color: lighten($white, 7%);
  115. &:active,
  116. &:focus,
  117. &:hover {
  118. color: $white;
  119. }
  120. }
  121. .compose-form__upload-description input {
  122. color: lighten($white, 7%);
  123. &::placeholder {
  124. color: lighten($white, 7%);
  125. }
  126. }
  127. }
  128. .compose-form__buttons-wrapper {
  129. background: darken($ui-base-color, 6%);
  130. }
  131. .autosuggest-textarea__suggestions {
  132. background: darken($ui-base-color, 6%);
  133. }
  134. .autosuggest-textarea__suggestions__item {
  135. &:hover,
  136. &:focus,
  137. &:active,
  138. &.selected {
  139. background: lighten($ui-base-color, 4%);
  140. }
  141. }
  142. }
  143. .emoji-mart-bar {
  144. border-color: lighten($ui-base-color, 4%);
  145. &:first-child {
  146. background: darken($ui-base-color, 6%);
  147. }
  148. }
  149. .emoji-mart-search input {
  150. background: rgba($ui-base-color, 0.3);
  151. border-color: $ui-base-color;
  152. }
  153. // Change the background colors of statuses
  154. .focusable:focus {
  155. background: $ui-base-color;
  156. }
  157. .status.status-direct {
  158. background: lighten($ui-base-color, 4%);
  159. }
  160. .focusable:focus .status.status-direct {
  161. background: lighten($ui-base-color, 8%);
  162. }
  163. .detailed-status,
  164. .detailed-status__action-bar {
  165. background: $white;
  166. }
  167. // Change the background colors of status__content__spoiler-link
  168. .reply-indicator__content .status__content__spoiler-link,
  169. .status__content .status__content__spoiler-link {
  170. background: $ui-base-color;
  171. &:hover {
  172. background: lighten($ui-base-color, 4%);
  173. }
  174. }
  175. // Change the background colors of media and video spoilers
  176. .media-spoiler,
  177. .video-player__spoiler {
  178. background: $ui-base-color;
  179. }
  180. .privacy-dropdown.active .privacy-dropdown__value.active .icon-button {
  181. color: $white;
  182. }
  183. .account-gallery__item a {
  184. background-color: $ui-base-color;
  185. }
  186. // Change the colors used in the dropdown menu
  187. .dropdown-menu {
  188. background: $white;
  189. &__arrow {
  190. &.left {
  191. border-left-color: $white;
  192. }
  193. &.top {
  194. border-top-color: $white;
  195. }
  196. &.bottom {
  197. border-bottom-color: $white;
  198. }
  199. &.right {
  200. border-right-color: $white;
  201. }
  202. }
  203. &__item {
  204. a {
  205. background: $white;
  206. color: $darker-text-color;
  207. }
  208. }
  209. }
  210. // Change the text colors on inverted background
  211. .privacy-dropdown__option.active,
  212. .privacy-dropdown__option:hover,
  213. .privacy-dropdown__option.active .privacy-dropdown__option__content,
  214. .privacy-dropdown__option.active .privacy-dropdown__option__content strong,
  215. .privacy-dropdown__option:hover .privacy-dropdown__option__content,
  216. .privacy-dropdown__option:hover .privacy-dropdown__option__content strong,
  217. .dropdown-menu__item a:active,
  218. .dropdown-menu__item a:focus,
  219. .dropdown-menu__item a:hover,
  220. .actions-modal ul li:not(:empty) a.active,
  221. .actions-modal ul li:not(:empty) a.active button,
  222. .actions-modal ul li:not(:empty) a:active,
  223. .actions-modal ul li:not(:empty) a:active button,
  224. .actions-modal ul li:not(:empty) a:focus,
  225. .actions-modal ul li:not(:empty) a:focus button,
  226. .actions-modal ul li:not(:empty) a:hover,
  227. .actions-modal ul li:not(:empty) a:hover button,
  228. .admin-wrapper .sidebar ul .simple-navigation-active-leaf a,
  229. .simple_form .block-button,
  230. .simple_form .button,
  231. .simple_form button {
  232. color: $white;
  233. }
  234. .dropdown-menu__separator {
  235. border-bottom-color: lighten($ui-base-color, 4%);
  236. }
  237. // Change the background colors of modals
  238. .actions-modal,
  239. .boost-modal,
  240. .confirmation-modal,
  241. .mute-modal,
  242. .report-modal,
  243. .embed-modal,
  244. .error-modal,
  245. .onboarding-modal {
  246. background: $ui-base-color;
  247. }
  248. .column-header__collapsible-inner {
  249. background: darken($ui-base-color, 4%);
  250. border: 1px solid lighten($ui-base-color, 8%);
  251. border-top: 0;
  252. }
  253. .boost-modal__action-bar,
  254. .confirmation-modal__action-bar,
  255. .mute-modal__action-bar,
  256. .onboarding-modal__paginator,
  257. .error-modal__footer {
  258. background: darken($ui-base-color, 6%);
  259. .onboarding-modal__nav,
  260. .error-modal__nav {
  261. &:hover,
  262. &:focus,
  263. &:active {
  264. background-color: darken($ui-base-color, 12%);
  265. }
  266. }
  267. }
  268. .display-case__case {
  269. background: $white;
  270. }
  271. .embed-modal .embed-modal__container .embed-modal__html {
  272. background: $white;
  273. &:focus {
  274. background: darken($ui-base-color, 6%);
  275. }
  276. }
  277. .react-toggle-track {
  278. background: $ui-secondary-color;
  279. }
  280. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  281. background: darken($ui-secondary-color, 10%);
  282. }
  283. .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  284. background: lighten($ui-highlight-color, 10%);
  285. }
  286. // Change the default color used for the text in an empty column or on the error column
  287. .empty-column-indicator,
  288. .error-column {
  289. color: $primary-text-color;
  290. background: $white;
  291. }
  292. // Change the default colors used on some parts of the profile pages
  293. .activity-stream-tabs {
  294. background: $account-background-color;
  295. border-bottom-color: lighten($ui-base-color, 8%);
  296. }
  297. .box-widget,
  298. .nothing-here,
  299. .page-header,
  300. .directory__tag > a,
  301. .directory__tag > div,
  302. .landing-page__call-to-action,
  303. .contact-widget,
  304. .landing .hero-widget__text,
  305. .landing-page__information.contact-widget {
  306. background: $white;
  307. border: 1px solid lighten($ui-base-color, 8%);
  308. }
  309. .landing .hero-widget__text {
  310. border-top: 0;
  311. border-bottom: 0;
  312. }
  313. .landing .hero-widget__footer {
  314. background: $white;
  315. border: 1px solid lighten($ui-base-color, 8%);
  316. border-top: 0;
  317. }
  318. .brand__tagline {
  319. color: $ui-secondary-color;
  320. }
  321. .directory__tag > a {
  322. &:hover,
  323. &:active,
  324. &:focus {
  325. background: $ui-base-color;
  326. }
  327. }
  328. .directory__tag.active > a,
  329. .directory__tag.active > div {
  330. border-color: $ui-highlight-color;
  331. &,
  332. h4,
  333. h4 small,
  334. .fa,
  335. .trends__item__current {
  336. color: $white;
  337. }
  338. &:hover,
  339. &:active,
  340. &:focus {
  341. background: $ui-highlight-color;
  342. }
  343. }
  344. .batch-table {
  345. &__toolbar,
  346. &__row,
  347. .nothing-here {
  348. border-color: lighten($ui-base-color, 8%);
  349. }
  350. }
  351. .activity-stream {
  352. border: 1px solid lighten($ui-base-color, 8%);
  353. &--under-tabs {
  354. border-top: 0;
  355. }
  356. .entry {
  357. background: $account-background-color;
  358. .detailed-status.light,
  359. .more.light,
  360. .status.light {
  361. border-bottom-color: lighten($ui-base-color, 8%);
  362. }
  363. }
  364. .status.light {
  365. .status__content {
  366. color: $primary-text-color;
  367. }
  368. .display-name {
  369. strong {
  370. color: $primary-text-color;
  371. }
  372. }
  373. }
  374. }
  375. .accounts-grid {
  376. .account-grid-card {
  377. .controls {
  378. .icon-button {
  379. color: $darker-text-color;
  380. }
  381. }
  382. .name {
  383. a {
  384. color: $primary-text-color;
  385. }
  386. }
  387. .username {
  388. color: $darker-text-color;
  389. }
  390. .account__header__content {
  391. color: $primary-text-color;
  392. }
  393. }
  394. }
  395. .simple_form,
  396. .table-form {
  397. .warning {
  398. box-shadow: none;
  399. background: rgba($error-red, 0.5);
  400. text-shadow: none;
  401. }
  402. .recommended {
  403. border-color: $ui-highlight-color;
  404. color: $ui-highlight-color;
  405. background-color: rgba($ui-highlight-color, 0.1);
  406. }
  407. }
  408. .compose-form .compose-form__warning {
  409. border-color: $ui-highlight-color;
  410. background-color: rgba($ui-highlight-color, 0.1);
  411. &,
  412. a {
  413. color: $ui-highlight-color;
  414. }
  415. }
  416. .status__content,
  417. .reply-indicator__content {
  418. a {
  419. color: $highlight-text-color;
  420. }
  421. }
  422. .button.logo-button {
  423. color: $white;
  424. svg {
  425. fill: $white;
  426. }
  427. }
  428. .public-layout {
  429. .account__section-headline {
  430. border: 1px solid lighten($ui-base-color, 8%);
  431. }
  432. .header,
  433. .public-account-header,
  434. .public-account-bio {
  435. box-shadow: none;
  436. }
  437. .public-account-bio,
  438. .hero-widget__text {
  439. background: $account-background-color;
  440. border: 1px solid lighten($ui-base-color, 8%);
  441. }
  442. .header {
  443. background: $ui-base-color;
  444. border: 1px solid lighten($ui-base-color, 8%);
  445. .brand {
  446. &:hover,
  447. &:focus,
  448. &:active {
  449. background: lighten($ui-base-color, 4%);
  450. }
  451. }
  452. }
  453. .public-account-header {
  454. &__image {
  455. background: lighten($ui-base-color, 12%);
  456. &::after {
  457. box-shadow: none;
  458. }
  459. }
  460. &__bar {
  461. &::before {
  462. background: $account-background-color;
  463. border: 1px solid lighten($ui-base-color, 8%);
  464. border-top: 0;
  465. }
  466. .avatar img {
  467. border-color: $account-background-color;
  468. }
  469. }
  470. &__tabs {
  471. &__name {
  472. h1,
  473. h1 small {
  474. color: $white;
  475. }
  476. }
  477. }
  478. }
  479. }
  480. .notification__filter-bar button.active::after,
  481. .account__section-headline a.active::after {
  482. border-color: transparent transparent $white;
  483. }
  484. .hero-widget,
  485. .box-widget,
  486. .contact-widget,
  487. .landing-page__information.contact-widget,
  488. .moved-account-widget,
  489. .memoriam-widget,
  490. .activity-stream,
  491. .nothing-here,
  492. .directory__tag > a,
  493. .directory__tag > div,
  494. .card > a,
  495. .page-header,
  496. .compose-form .compose-form__warning {
  497. box-shadow: none;
  498. }