Diff.styled.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import styled from 'styled-components';
  2. import { Button } from 'components/common/Button/Button';
  3. export const DiffWrapper = styled.div`
  4. align-items: stretch;
  5. display: block;
  6. flex-basis: 0;
  7. flex-grow: 1;
  8. flex-shrink: 1;
  9. min-height: min-content;
  10. padding-top: 1.5rem !important;
  11. .ace_content {
  12. background-color: ${({ theme }) => theme.default.backgroundColor};
  13. color: ${({ theme }) => theme.default.color.normal};
  14. }
  15. .ace_gutter-cell {
  16. background-color: ${({ theme }) =>
  17. theme.ksqlDb.query.editor.cell.backgroundColor};
  18. }
  19. .ace_gutter-layer {
  20. background-color: ${({ theme }) =>
  21. theme.ksqlDb.query.editor.layer.backgroundColor};
  22. color: ${({ theme }) => theme.default.color.normal};
  23. }
  24. .ace_cursor {
  25. color: ${({ theme }) => theme.ksqlDb.query.editor.cursor};
  26. }
  27. .ace_print-margin {
  28. display: none;
  29. }
  30. .ace_variable {
  31. color: ${({ theme }) => theme.ksqlDb.query.editor.variable};
  32. }
  33. .ace_string {
  34. color: ${({ theme }) => theme.ksqlDb.query.editor.aceString};
  35. }
  36. .codeMarker {
  37. background-color: ${({ theme }) => theme.ksqlDb.query.editor.codeMarker};
  38. position: absolute;
  39. z-index: 2000;
  40. }
  41. `;
  42. export const Section = styled.div`
  43. animation: fadein 0.5s;
  44. `;
  45. export const DiffBox = styled.div`
  46. flex-direction: column;
  47. margin-left: -0.75rem;
  48. margin-right: -0.75rem;
  49. margin-top: -0.75rem;
  50. box-shadow: none;
  51. padding: 1.25rem;
  52. &:last-child {
  53. margin-bottom: -0.75rem;
  54. }
  55. `;
  56. export const DiffTilesWrapper = styled.div`
  57. align-items: stretch;
  58. display: block;
  59. flex-basis: 0;
  60. flex-grow: 1;
  61. flex-shrink: 1;
  62. min-height: min-content;
  63. &:not(.is-child) {
  64. display: flex;
  65. }
  66. `;
  67. export const DiffTile = styled.div`
  68. flex: none;
  69. width: 50%;
  70. `;
  71. export const DiffVersionsSelect = styled.div`
  72. width: 0.625em;
  73. `;
  74. export const BackButton = styled(Button)`
  75. margin: 10px 9px;
  76. `;