Diff.styled.ts 1.9 KB

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