diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index d8d3e148..744cbbd7 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -689,6 +689,8 @@ removeAnnotations.submit=Remove #compare compare.title=Compare compare.header=Compare PDFs +compare.highlightColor.1=Highlight Color 1: +compare.highlightColor.2=Highlight Color 2: compare.document.1=Document 1 compare.document.2=Document 2 compare.submit=Compare diff --git a/src/main/resources/messages_en_US.properties b/src/main/resources/messages_en_US.properties index 45d6352a..6717272b 100644 --- a/src/main/resources/messages_en_US.properties +++ b/src/main/resources/messages_en_US.properties @@ -689,6 +689,8 @@ removeAnnotations.submit=Remove #compare compare.title=Compare compare.header=Compare PDFs +compare.highlightColor.1=Highlight Color 1: +compare.highlightColor.2=Highlight Color 2: compare.document.1=Document 1 compare.document.2=Document 2 compare.submit=Compare diff --git a/src/main/resources/templates/misc/compare.html b/src/main/resources/templates/misc/compare.html index aef854fe..48ab3942 100644 --- a/src/main/resources/templates/misc/compare.html +++ b/src/main/resources/templates/misc/compare.html @@ -6,10 +6,36 @@ .result-column { border: 1px solid #ccc; padding: 15px; + margin-bottom: 15px; overflow-y: auto; height: calc(100vh - 400px); white-space: pre-wrap; } + .flex-container { + display: flex; + flex-direction: row; + } + .color-selector { + display: flex; + flex-direction: row; + align-items: center; + width: 50%; + max-height: 100px; + margin-bottom: 2rem; + } + #color-box1, #color-box2 { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border: none; + background-color: transparent; + } + .spacer1 { + padding-right: calc(var(--bs-gutter-x) * .5); + } + .spacer2 { + padding-left: calc(var(--bs-gutter-x) * .5); + } @@ -27,7 +53,22 @@
+ +