merge.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. .CodeMirror-merge {
  2. position: relative;
  3. border: 1px solid #ddd;
  4. white-space: pre;
  5. }
  6. .CodeMirror-merge, .CodeMirror-merge .CodeMirror {
  7. height: 350px;
  8. }
  9. .CodeMirror-merge-2pane .CodeMirror-merge-pane { width: 47%; }
  10. .CodeMirror-merge-2pane .CodeMirror-merge-gap { width: 6%; }
  11. .CodeMirror-merge-3pane .CodeMirror-merge-pane { width: 31%; }
  12. .CodeMirror-merge-3pane .CodeMirror-merge-gap { width: 3.5%; }
  13. .CodeMirror-merge-pane {
  14. display: inline-block;
  15. white-space: normal;
  16. vertical-align: top;
  17. }
  18. .CodeMirror-merge-pane-rightmost {
  19. position: absolute;
  20. right: 0px;
  21. z-index: 1;
  22. }
  23. .CodeMirror-merge-gap {
  24. z-index: 2;
  25. display: inline-block;
  26. height: 100%;
  27. -moz-box-sizing: border-box;
  28. box-sizing: border-box;
  29. overflow: hidden;
  30. border-left: 1px solid #ddd;
  31. border-right: 1px solid #ddd;
  32. position: relative;
  33. background: #f8f8f8;
  34. }
  35. .CodeMirror-merge-scrolllock-wrap {
  36. position: absolute;
  37. bottom: 0; left: 50%;
  38. }
  39. .CodeMirror-merge-scrolllock {
  40. position: relative;
  41. left: -50%;
  42. cursor: pointer;
  43. color: #555;
  44. line-height: 1;
  45. }
  46. .CodeMirror-merge-copybuttons-left, .CodeMirror-merge-copybuttons-right {
  47. position: absolute;
  48. left: 0; top: 0;
  49. right: 0; bottom: 0;
  50. line-height: 1;
  51. }
  52. .CodeMirror-merge-copy {
  53. position: absolute;
  54. cursor: pointer;
  55. color: #44c;
  56. }
  57. .CodeMirror-merge-copy-reverse {
  58. position: absolute;
  59. cursor: pointer;
  60. color: #44c;
  61. }
  62. .CodeMirror-merge-copybuttons-left .CodeMirror-merge-copy { left: 2px; }
  63. .CodeMirror-merge-copybuttons-right .CodeMirror-merge-copy { right: 2px; }
  64. .CodeMirror-merge-r-inserted, .CodeMirror-merge-l-inserted {
  65. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAYAAACddGYaAAAAGUlEQVQI12MwuCXy3+CWyH8GBgYGJgYkAABZbAQ9ELXurwAAAABJRU5ErkJggg==);
  66. background-position: bottom left;
  67. background-repeat: repeat-x;
  68. }
  69. .CodeMirror-merge-r-deleted, .CodeMirror-merge-l-deleted {
  70. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAYAAACddGYaAAAAGUlEQVQI12M4Kyb2/6yY2H8GBgYGJgYkAABURgPz6Ks7wQAAAABJRU5ErkJggg==);
  71. background-position: bottom left;
  72. background-repeat: repeat-x;
  73. }
  74. .CodeMirror-merge-r-chunk { background: #ffffe0; }
  75. .CodeMirror-merge-r-chunk-start { border-top: 1px solid #ee8; }
  76. .CodeMirror-merge-r-chunk-end { border-bottom: 1px solid #ee8; }
  77. .CodeMirror-merge-r-connect { fill: #ffffe0; stroke: #ee8; stroke-width: 1px; }
  78. .CodeMirror-merge-l-chunk { background: #eef; }
  79. .CodeMirror-merge-l-chunk-start { border-top: 1px solid #88e; }
  80. .CodeMirror-merge-l-chunk-end { border-bottom: 1px solid #88e; }
  81. .CodeMirror-merge-l-connect { fill: #eef; stroke: #88e; stroke-width: 1px; }
  82. .CodeMirror-merge-l-chunk.CodeMirror-merge-r-chunk { background: #dfd; }
  83. .CodeMirror-merge-l-chunk-start.CodeMirror-merge-r-chunk-start { border-top: 1px solid #4e4; }
  84. .CodeMirror-merge-l-chunk-end.CodeMirror-merge-r-chunk-end { border-bottom: 1px solid #4e4; }
  85. .CodeMirror-merge-collapsed-widget:before {
  86. content: "(...)";
  87. }
  88. .CodeMirror-merge-collapsed-widget {
  89. cursor: pointer;
  90. color: #88b;
  91. background: #eef;
  92. border: 1px solid #ddf;
  93. font-size: 90%;
  94. padding: 0 3px;
  95. border-radius: 4px;
  96. }
  97. .CodeMirror-merge-collapsed-line .CodeMirror-gutter-elt { display: none; }