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.

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