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.

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