_compare-revisions.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. $color-addition-dark: var(--color-addition-dark);
  2. $color-addition-light: var(--color-addition-light);
  3. $color-deletion-dark: var(--color-deletion-dark);
  4. $color-deletion-light: var(--color-deletion-light);
  5. .comparison {
  6. --color-addition-dark: #a6f3a6;
  7. --color-addition-light: #ebffeb;
  8. --color-deletion-dark: #f8cbcb;
  9. --color-deletion-light: #ffebeb;
  10. @include dark-theme() {
  11. --color-addition-dark: #033a16;
  12. --color-addition-light: #045720;
  13. --color-deletion-dark: #67060c;
  14. --color-deletion-light: #8e070f;
  15. }
  16. &__child-object {
  17. border-top: 1px dashed theme('colors.border-furniture');
  18. padding: 1em;
  19. dd {
  20. margin-inline-start: 40px;
  21. }
  22. &:first-child {
  23. border-top: 0;
  24. }
  25. &.addition {
  26. background-color: $color-addition-light;
  27. }
  28. &.deletion {
  29. background-color: $color-deletion-light;
  30. }
  31. }
  32. &__list {
  33. margin-top: 0;
  34. margin-bottom: -1em;
  35. }
  36. span.addition {
  37. background-color: $color-addition-dark;
  38. }
  39. span.deletion {
  40. background-color: $color-deletion-dark;
  41. }
  42. .preview-image {
  43. display: inline-block;
  44. &.addition,
  45. &.deletion {
  46. padding: 5px;
  47. margin-inline-end: 5px;
  48. border-style: solid;
  49. border-width: 1px;
  50. }
  51. &.addition {
  52. background-color: $color-addition-light;
  53. border-color: $color-addition-dark;
  54. }
  55. &.deletion {
  56. background-color: $color-deletion-light;
  57. border-color: $color-deletion-dark;
  58. }
  59. img {
  60. display: block;
  61. }
  62. }
  63. }