@konfuzio/document-validation-ui 0.1.2-pre-release-4 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/css/app.7dd6bb8c.css +1 -0
  2. package/dist/index.html +1 -1
  3. package/dist/js/app.cc0b0c26.js +2 -0
  4. package/dist/js/app.cc0b0c26.js.map +1 -0
  5. package/dist/js/{chunk-vendors.dbed2bf7.js → chunk-vendors.a48fca3f.js} +2 -2
  6. package/dist/js/chunk-vendors.a48fca3f.js.map +1 -0
  7. package/package.json +1 -1
  8. package/src/assets/images/CategoryIconImg.vue +1 -1
  9. package/src/assets/images/CheckMark.vue +1 -1
  10. package/src/assets/images/KeyboardIcon.vue +1 -1
  11. package/src/assets/images/QuestionMark.vue +1 -1
  12. package/src/assets/images/SplitZigZag.vue +1 -1
  13. package/src/assets/images/StatusImg.vue +1 -1
  14. package/src/assets/images/UserIcon.vue +1 -1
  15. package/src/assets/scss/choose_label_set_modal.scss +1 -1
  16. package/src/assets/scss/document_action_bar.scss +1 -1
  17. package/src/assets/scss/document_annotations.scss +17 -22
  18. package/src/assets/scss/document_edit.scss +5 -5
  19. package/src/assets/scss/document_error.scss +1 -1
  20. package/src/assets/scss/document_top_bar.scss +1 -1
  21. package/src/assets/scss/document_viewport_modal.scss +2 -2
  22. package/src/assets/scss/documents_list.scss +12 -1
  23. package/src/assets/scss/extracting_data.scss +1 -1
  24. package/src/assets/scss/new_annotation.scss +3 -3
  25. package/src/assets/scss/variables.scss +40 -35
  26. package/src/components/DocumentAnnotations/ActionButtons.vue +3 -2
  27. package/src/components/DocumentAnnotations/CategorizeModal.vue +1 -1
  28. package/src/components/DocumentAnnotations/ChooseLabelSetModal.vue +1 -1
  29. package/src/components/DocumentEdit/EditSidebar.vue +13 -31
  30. package/src/components/DocumentError.vue +5 -1
  31. package/src/components/DocumentPage/DocumentPage.vue +1 -1
  32. package/src/components/DocumentPage/NewAnnotation.vue +2 -2
  33. package/src/components/DocumentTopBar/DocumentTopBarButtons.vue +2 -2
  34. package/src/components/DocumentsList/DocumentsList.vue +13 -22
  35. package/src/components/NotOptimizedViewportModal.vue +6 -9
  36. package/dist/css/app.27e4fab5.css +0 -1
  37. package/dist/js/app.6832ed01.js +0 -2
  38. package/dist/js/app.6832ed01.js.map +0 -1
  39. package/dist/js/chunk-vendors.dbed2bf7.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.2-pre-release-4",
3
+ "version": "0.1.2",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "src/main.js",
6
6
  "scripts": {
@@ -6,7 +6,7 @@
6
6
  viewBox="0 0 22 22"
7
7
  >
8
8
  <path
9
- fill="#2B3545"
9
+ fill="#1A1A1A"
10
10
  d="M20.47,7.37s0,0,0-.08l-.06-.15a.71.71,0,0,0-.07-.09.94.94,0,0,0-.09-.12l-.09-.07L20,6.78l-7.5-4.63a1,1,0,0,0-1.06,0L4,6.78l-.09.08-.09.07a.94.94,0,0,0-.09.12.71.71,0,0,0-.07.09l-.06.15s0,0,0,.08a1.15,1.15,0,0,0,0,.26v8.74a1,1,0,0,0,.47.85l7.5,4.63h0a.47.47,0,0,0,.15.06s.05,0,.08,0a.86.86,0,0,0,.52,0s.05,0,.08,0a.47.47,0,0,0,.15-.06h0L20,17.22a1,1,0,0,0,.47-.85V7.63A1.15,1.15,0,0,0,20.47,7.37ZM11,19.21l-5.5-3.4V9.43L11,12.82Zm1-8.12L6.4,7.63,12,4.18l5.6,3.45Zm6.5,4.72L13,19.21V12.82l5.5-3.39Z"
11
11
  />
12
12
  </svg>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
3
3
  <path
4
- fill="#dfe0e4"
4
+ fill="#E1E1E1"
5
5
  d="M18.71,7.21a1,1,0,0,0-1.42,0L9.84,14.67,6.71,11.53A1,1,0,1,0,5.29,13l3.84,3.84a1,1,0,0,0,1.42,0l8.16-8.16A1,1,0,0,0,18.71,7.21Z"
6
6
  />
7
7
  </svg>
@@ -10,7 +10,7 @@
10
10
  fill-rule="evenodd"
11
11
  clip-rule="evenodd"
12
12
  d="M4.30187 0.167969H15.6994C16.1387 0.167955 16.5177 0.167942 16.8298 0.193445C17.1593 0.220362 17.487 0.279792 17.8023 0.440454C18.2727 0.680138 18.6552 1.06259 18.8948 1.53299C19.0555 1.84831 19.1149 2.17599 19.1418 2.50545C19.1673 2.81759 19.1673 3.19655 19.1673 3.63583V8.36678C19.1673 8.80606 19.1673 9.18502 19.1418 9.49716C19.1149 9.82661 19.0555 10.1543 18.8948 10.4696C18.6552 10.94 18.2727 11.3225 17.8023 11.5622C17.487 11.7228 17.1593 11.7822 16.8298 11.8092C16.5177 11.8347 16.1387 11.8347 15.6994 11.8346H4.30188C3.86259 11.8347 3.48361 11.8347 3.17146 11.8092C2.84201 11.7822 2.51433 11.7228 2.19901 11.5622C1.7286 11.3225 1.34615 10.94 1.10647 10.4696C0.945808 10.1543 0.886378 9.82661 0.85946 9.49716C0.833957 9.18502 0.83397 8.80605 0.833985 8.36676V3.63585C0.83397 3.19656 0.833957 2.81759 0.85946 2.50545C0.886378 2.17599 0.945808 1.84831 1.10647 1.53299C1.34615 1.06259 1.7286 0.680137 2.19901 0.440454C2.51433 0.279792 2.84201 0.220362 3.17146 0.193445C3.48361 0.167942 3.86258 0.167955 4.30187 0.167969ZM3.30718 1.85458C3.0808 1.87307 2.99686 1.90447 2.95566 1.92546C2.79886 2.00536 2.67138 2.13284 2.59148 2.28964C2.57049 2.33085 2.53909 2.41478 2.52059 2.64117C2.5013 2.87728 2.50065 3.18751 2.50065 3.66797V8.33464C2.50065 8.8151 2.5013 9.12533 2.52059 9.36144C2.53909 9.58783 2.57049 9.67176 2.59148 9.71296C2.67138 9.86976 2.79886 9.99725 2.95566 10.0771C2.99686 10.0981 3.0808 10.1295 3.30718 10.148C3.5433 10.1673 3.85352 10.168 4.33399 10.168H15.6673C16.1478 10.168 16.458 10.1673 16.6941 10.148C16.9205 10.1295 17.0044 10.0981 17.0456 10.0771C17.2024 9.99725 17.3299 9.86977 17.4098 9.71296C17.4308 9.67176 17.4622 9.58783 17.4807 9.36144C17.5 9.12533 17.5007 8.8151 17.5007 8.33464V3.66797C17.5007 3.18751 17.5 2.87728 17.4807 2.64117C17.4622 2.41478 17.4308 2.33085 17.4098 2.28964C17.3299 2.13284 17.2024 2.00536 17.0456 1.92546C17.0044 1.90447 16.9205 1.87307 16.6941 1.85458C16.458 1.83528 16.1478 1.83464 15.6673 1.83464H4.33399C3.85352 1.83464 3.5433 1.83528 3.30718 1.85458ZM4.16732 4.33464C4.16732 3.8744 4.54042 3.5013 5.00065 3.5013H5.00899C5.46922 3.5013 5.84232 3.8744 5.84232 4.33464C5.84232 4.79487 5.46922 5.16797 5.00899 5.16797H5.00065C4.54042 5.16797 4.16732 4.79487 4.16732 4.33464ZM7.50065 4.33464C7.50065 3.8744 7.87375 3.5013 8.33399 3.5013H8.34232C8.80256 3.5013 9.17565 3.8744 9.17565 4.33464C9.17565 4.79487 8.80256 5.16797 8.34232 5.16797H8.33399C7.87375 5.16797 7.50065 4.79487 7.50065 4.33464ZM10.834 4.33464C10.834 3.8744 11.2071 3.5013 11.6673 3.5013H11.6757C12.1359 3.5013 12.509 3.8744 12.509 4.33464C12.509 4.79487 12.1359 5.16797 11.6757 5.16797H11.6673C11.2071 5.16797 10.834 4.79487 10.834 4.33464ZM14.1673 4.33464C14.1673 3.8744 14.5404 3.5013 15.0007 3.5013H15.009C15.4692 3.5013 15.8423 3.8744 15.8423 4.33464C15.8423 4.79487 15.4692 5.16797 15.009 5.16797H15.0007C14.5404 5.16797 14.1673 4.79487 14.1673 4.33464ZM5.00065 8.08464C5.00065 7.6244 5.37375 7.2513 5.83399 7.2513H14.1673C14.6276 7.2513 15.0007 7.6244 15.0007 8.08464C15.0007 8.54487 14.6276 8.91797 14.1673 8.91797H5.83399C5.37375 8.91797 5.00065 8.54487 5.00065 8.08464Z"
13
- fill="#2B3545"
13
+ fill="#1A1A1A"
14
14
  />
15
15
  </svg>
16
16
  </template>
@@ -5,7 +5,7 @@
5
5
  viewBox="0 0 24 24"
6
6
  >
7
7
  <path
8
- fill="#dfe0e4"
8
+ fill="#E1E1E1"
9
9
  d="M15.33252,9.5A3.5001,3.5001,0,0,0,8.80127,7.75a1.00016,1.00016,0,0,0,1.73242,1A1.50266,1.50266,0,0,1,11.83252,8a1.5,1.5,0,1,1,0,3h-.00244a.94984.94984,0,0,0-.18927.0387,1.03181,1.03181,0,0,0-.19861.04065.98275.98275,0,0,0-.15552.10485,1.00813,1.00813,0,0,0-.162.10975,1.00464,1.00464,0,0,0-.11706.1737.97789.97789,0,0,0-.09668.14417,1.02252,1.02252,0,0,0-.04285.21191A.94847.94847,0,0,0,10.83252,12v1l.00232.01135.0011.49109a1.00016,1.00016,0,0,0,1,.99756h.00244a1.00006,1.00006,0,0,0,.99756-1.00244l-.00153-.66138A3.49363,3.49363,0,0,0,15.33252,9.5Zm-4.20264,6.79A1,1,0,0,0,11.82959,18a1.036,1.036,0,0,0,.71045-.29,1.01517,1.01517,0,0,0,0-1.41992A1.03425,1.03425,0,0,0,11.12988,16.29Z"
10
10
  />
11
11
  </svg>
@@ -8,7 +8,7 @@
8
8
  >
9
9
  <path
10
10
  d="M1 1L5 7.875L1 14.75L5 21.625L1 28.5L5 35.375L1 42.25L5 49.125L1 56"
11
- stroke="#2B3545"
11
+ stroke="#1A1A1A"
12
12
  stroke-linecap="round"
13
13
  stroke-linejoin="round"
14
14
  />
@@ -8,7 +8,7 @@
8
8
  >
9
9
  <path
10
10
  d="M17.0917 1.07462C17.0142 0.996517 16.9221 0.934522 16.8205 0.892214C16.719 0.849907 16.61 0.828125 16.5 0.828125C16.39 0.828125 16.2811 0.849907 16.1795 0.892214C16.078 0.934522 15.9858 0.996517 15.9084 1.07462L10.6667 6.32462L7.0917 2.74129C7.01423 2.66318 6.92206 2.60119 6.82051 2.55888C6.71896 2.51657 6.61004 2.49479 6.50003 2.49479C6.39002 2.49479 6.2811 2.51657 6.17955 2.55888C6.078 2.60119 5.98583 2.66318 5.90836 2.74129L0.908364 7.74129C0.830257 7.81876 0.768262 7.91093 0.725954 8.01248C0.683647 8.11403 0.661865 8.22295 0.661865 8.33296C0.661865 8.44297 0.683647 8.55189 0.725954 8.65344C0.768262 8.75499 0.830257 8.84715 0.908364 8.92462C0.985833 9.00273 1.078 9.06473 1.17955 9.10703C1.2811 9.14934 1.39002 9.17112 1.50003 9.17112C1.61004 9.17112 1.71896 9.14934 1.82051 9.10703C1.92206 9.06473 2.01423 9.00273 2.0917 8.92462L6.50003 4.50796L10.075 8.09129C10.1525 8.1694 10.2447 8.23139 10.3462 8.2737C10.4478 8.31601 10.5567 8.33779 10.6667 8.33779C10.7767 8.33779 10.8856 8.31601 10.9872 8.2737C11.0887 8.23139 11.1809 8.1694 11.2584 8.09129L17.0917 2.25796C17.1698 2.18049 17.2318 2.08832 17.2741 1.98677C17.3164 1.88522 17.3382 1.7763 17.3382 1.66629C17.3382 1.55628 17.3164 1.44736 17.2741 1.34581C17.2318 1.24426 17.1698 1.15209 17.0917 1.07462Z"
11
- fill="#2B3545"
11
+ fill="#1A1A1A"
12
12
  />
13
13
  </svg>
14
14
  </template>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
3
3
  <path
4
- fill="#dfe0e4"
4
+ fill="#E1E1E1"
5
5
  d="M15.71,12.71a6,6,0,1,0-7.42,0,10,10,0,0,0-6.22,8.18,1,1,0,0,0,2,.22,8,8,0,0,1,15.9,0,1,1,0,0,0,1,.89h.11a1,1,0,0,0,.88-1.1A10,10,0,0,0,15.71,12.71ZM12,12a4,4,0,1,1,4-4A4,4,0,0,1,12,12Z"
6
6
  />
7
7
  </svg>
@@ -53,7 +53,7 @@
53
53
  font-size: 12px;
54
54
  line-height: 18px;
55
55
  text-align: center;
56
- color: $dark-blue;
56
+ color: $text-color;
57
57
  margin-top: 8px;
58
58
  }
59
59
 
@@ -9,7 +9,7 @@
9
9
  z-index: 100;
10
10
 
11
11
  .action-bar-elements {
12
- background-color: $dark-blue;
12
+ background-color: $text-color;
13
13
  height: 40px;
14
14
  width: fit-content;
15
15
  padding: 4px 4px 4px 12px;
@@ -243,29 +243,23 @@
243
243
 
244
244
  &.hovered-empty-labels {
245
245
  background-color: $grey-lightest;
246
- outline: 1px solid $grey-detail;
247
- margin-bottom: 1px;
246
+ border-bottom-color: $grey-detail;
248
247
  }
249
248
 
250
249
  &.hovered-pending-annotations {
251
- background-color: $green-hover-background;
252
- outline: 1px solid $green-border;
253
- margin-bottom: 1px;
254
-
255
- .annotation-row-right {
256
- .annotation-content {
257
- .annotation {
258
- min-height: 43px;
259
- padding-top: 1px;
260
- }
261
- }
262
- }
250
+ position: relative;
251
+ border-bottom-color: $primary;
263
252
 
264
- .annotation-row-left {
265
- .annotation-details,
266
- .label-name {
267
- margin-bottom: -1px;
268
- }
253
+ &:before {
254
+ display: block;
255
+ content: "";
256
+ width: 100%;
257
+ height: 100%;
258
+ background: $primary;
259
+ opacity: 0.1;
260
+ position: absolute;
261
+ top: 0;
262
+ left: 0;
269
263
  }
270
264
  }
271
265
 
@@ -344,7 +338,8 @@
344
338
 
345
339
  &:hover {
346
340
  text-decoration: none !important;
347
- color: $primary-dark !important;
341
+ color: $primary !important;
342
+ filter: $hover-style;
348
343
  }
349
344
 
350
345
  &:focus {
@@ -390,7 +385,7 @@
390
385
 
391
386
  &:hover {
392
387
  text-decoration: none !important;
393
- color: $dark-blue !important;
388
+ color: $text-color !important;
394
389
  }
395
390
 
396
391
  &:focus {
@@ -416,7 +411,7 @@
416
411
  font-weight: 400;
417
412
  font-size: 14px;
418
413
  line-height: 20px;
419
- color: $dark-blue;
414
+ color: $text-color;
420
415
  padding-bottom: 15px;
421
416
  margin: 0;
422
417
  padding-left: 15px;
@@ -41,7 +41,7 @@
41
41
 
42
42
  &.selected {
43
43
  .img-thumbnail {
44
- border-color: $dark-blue;
44
+ border-color: $text-color;
45
45
  filter: contrast(0.7);
46
46
  }
47
47
  }
@@ -131,7 +131,7 @@
131
131
 
132
132
  .action-icon {
133
133
  border-radius: 60px;
134
- background-color: $dark-blue;
134
+ background-color: $text-color;
135
135
  width: 32px;
136
136
  height: 32px;
137
137
  color: $white;
@@ -185,7 +185,7 @@
185
185
  height: 50%;
186
186
 
187
187
  h3 {
188
- color: $dark-blue;
188
+ color: $text-color;
189
189
  font-weight: 600;
190
190
  font-size: 16px;
191
191
  line-height: 24px;
@@ -296,7 +296,7 @@
296
296
  }
297
297
 
298
298
  .overview-title {
299
- color: $dark-blue;
299
+ color: $text-color;
300
300
  font-size: 16px;
301
301
  font-weight: 600;
302
302
  }
@@ -348,7 +348,7 @@
348
348
 
349
349
  .action-icon {
350
350
  border-radius: 60px;
351
- background-color: $dark-blue;
351
+ background-color: $text-color;
352
352
  width: 28px;
353
353
  height: 28px;
354
354
  color: $white;
@@ -42,7 +42,7 @@
42
42
 
43
43
  .content {
44
44
  padding-top: 15px;
45
- color: $dark-blue !important;
45
+ color: $text-color !important;
46
46
 
47
47
  h3 {
48
48
  font-weight: 500 !important;
@@ -23,7 +23,7 @@
23
23
  flex: 1;
24
24
  top: 0;
25
25
  font-size: 14px;
26
- color: $dark-blue;
26
+ color: $text-color;
27
27
  font-weight: 400px;
28
28
 
29
29
  .left-bar-components {
@@ -8,7 +8,7 @@
8
8
  font-weight: 600 !important;
9
9
  font-size: 20px !important;
10
10
  line-height: 26px !important;
11
- color: $dark-blue !important;
11
+ color: $text-color !important;
12
12
  padding-bottom: 5px;
13
13
  }
14
14
 
@@ -22,4 +22,4 @@
22
22
  font-size: 14px;
23
23
  }
24
24
  }
25
- }
25
+ }
@@ -43,12 +43,23 @@ $documents-list-height: 52px;
43
43
  align-self: center;
44
44
  width: 75%;
45
45
  height: 100%;
46
- background-color: $primary-low-opacity;
47
46
  display: flex;
48
47
  justify-content: center;
49
48
  align-items: flex-start;
50
49
  position: relative;
51
50
 
51
+ &:before {
52
+ display: block;
53
+ content: "";
54
+ width: 100%;
55
+ height: 100%;
56
+ background: $primary;
57
+ opacity: 0.1;
58
+ position: absolute;
59
+ top: 0;
60
+ left: 0;
61
+ }
62
+
52
63
  span {
53
64
  margin-top: 20px;
54
65
  font-weight: 600;
@@ -22,7 +22,7 @@
22
22
  font-size: 16px;
23
23
  font-weight: 500;
24
24
  line-height: 24px;
25
- color: $dark-blue;
25
+ color: $text-color;
26
26
  margin-bottom: 3px;
27
27
  }
28
28
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  .annotation-popup {
4
4
  border-radius: 12px;
5
- background-color: $dark-blue;
5
+ background-color: $text-color;
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  gap: 8px;
@@ -14,7 +14,7 @@
14
14
  padding: 8px;
15
15
 
16
16
  .popup-input {
17
- background-color: $dark-blue;
17
+ background-color: $text-color;
18
18
  color: $white;
19
19
  font-size: 14px;
20
20
  font-weight: 400;
@@ -83,4 +83,4 @@
83
83
  border-radius: 8px;
84
84
  }
85
85
  }
86
- }
86
+ }
@@ -6,7 +6,6 @@ $green-low-opacity: rgba(75, 181, 67, 0.11);
6
6
  $green-border: #67d19f;
7
7
  $green-hover-background: rgba(18, 183, 106, 0.05);
8
8
  $darker-green: #3a9c76;
9
- $dark-green-hover: #0c4b33;
10
9
  $primary-low-opacity: rgba(52, 171, 125, 0.16);
11
10
 
12
11
  $red: #e7423a;
@@ -15,12 +14,12 @@ $lightest-red: #fdf4f6;
15
14
  $error-background: #d4453d;
16
15
 
17
16
  $grey-dark: #344054;
18
- $grey: #798190;
17
+ $grey: #858585;
19
18
  $grey-low-opacity: rgba(133, 140, 154, 0.4);
20
19
  $grey-lighter-low-opacity: rgba(223, 224, 228, 0.5);
21
20
  $grey-lightest: #f0f0f0;
22
21
  $grey-outline: #d0d5dd;
23
- $grey-detail: #dfe0e4;
22
+ $grey-detail: #e1e1e1;
24
23
  $subtle-grey: #f2f4f7;
25
24
  $subtlest-grey: #e3e4e5;
26
25
  $grey-darker: #101828;
@@ -38,27 +37,23 @@ $yellow: #ffd600;
38
37
  $warning-yellow: #fec84b;
39
38
 
40
39
  $blue: #2f80ed;
41
- $dark-blue: #2b3545;
40
+ $text-color: #1a1a1a;
42
41
 
43
42
  :root {
44
- --font-family: #{"Inter", sans-serif};
45
- --background-color: #{$white};
46
43
  --primary-color: #{$konfuzio-green};
47
- --primary-hover: #{$dark-green-hover};
48
- --toolbar-color: #{$dark-blue};
49
- --toolbar-elements: #{$white};
50
- --tooltip-color: #{$dark};
51
- --error-background: #{$error-background};
52
- --error-text: #{$white};
44
+
45
+ --primary-button: 4px;
46
+ --secondary-button: 8px;
47
+ --tertiary-button: 20px;
53
48
  }
54
49
 
55
- $font-family: var(--font-family);
56
- $background: var(--background-color);
57
- $toolbar: var(--toolbar-color);
58
50
  $primary: var(--primary-color);
59
- $primary-dark: var(--primary-hover);
60
- $tooltip: var(--tooltip-color);
61
- $toolbar-elements: var(--toolbar-elements);
51
+ $hover-style: brightness(0.8) contrast(160%) grayscale(0.4);
52
+ $font-family: "Inter", sans-serif;
53
+ $background: $white;
54
+ $toolbar: $text-color;
55
+ $tooltip: $dark;
56
+ $toolbar-elements: $white;
62
57
 
63
58
  $link: $primary;
64
59
  $info: $blue;
@@ -80,7 +75,7 @@ button {
80
75
  color: $white !important;
81
76
 
82
77
  &:hover:enabled {
83
- background-color: $primary-dark !important;
78
+ filter: $hover-style;
84
79
  }
85
80
 
86
81
  &:disabled {
@@ -98,7 +93,7 @@ button {
98
93
  &:not([disabled]) {
99
94
  &:hover {
100
95
  text-decoration: none;
101
- color: $dark-blue !important;
96
+ color: $text-color !important;
102
97
  }
103
98
  }
104
99
 
@@ -109,7 +104,7 @@ button {
109
104
 
110
105
  &:not(.is-text, .is-primary, .reject-btn) {
111
106
  background-color: $white;
112
- color: $dark-blue;
107
+ color: $text-color;
113
108
  }
114
109
 
115
110
  &.is-text {
@@ -139,7 +134,6 @@ button {
139
134
  }
140
135
 
141
136
  &.action-bar-save-btn {
142
- border-radius: 20px;
143
137
  height: 32px;
144
138
  padding: 6px 12px 6px 12px !important;
145
139
  font-size: 14px;
@@ -147,7 +141,6 @@ button {
147
141
  }
148
142
 
149
143
  &.finish-review-btn {
150
- border-radius: 4px;
151
144
  margin-right: 2px;
152
145
 
153
146
  &:focus {
@@ -173,6 +166,18 @@ button {
173
166
  text-decoration: none;
174
167
  }
175
168
  }
169
+
170
+ &.primary-button {
171
+ border-radius: var(--primary-button) !important;
172
+ }
173
+
174
+ &.secondary-button {
175
+ border-radius: var(--secondary-button) !important;
176
+ }
177
+
178
+ &.tertiary-button {
179
+ border-radius: var(--tertiary-button) !important;
180
+ }
176
181
  }
177
182
 
178
183
  .carousel-list {
@@ -208,8 +213,8 @@ button {
208
213
  }
209
214
 
210
215
  .message-body {
211
- background-color: var(--error-background);
212
- color: var(--error-text);
216
+ background-color: $error-background;
217
+ color: $white;
213
218
  font-size: 14px;
214
219
  border: 0;
215
220
  border-radius: 0%;
@@ -298,7 +303,7 @@ button {
298
303
 
299
304
  &.dropdown-menu-animation {
300
305
  a.navbar-item {
301
- color: $dark-blue;
306
+ color: $text-color;
302
307
  font-size: 16px;
303
308
  line-height: 24px;
304
309
 
@@ -427,7 +432,7 @@ button {
427
432
 
428
433
  .notices {
429
434
  .snackbar {
430
- background-color: $dark-blue;
435
+ background-color: $text-color;
431
436
  min-height: 40px;
432
437
 
433
438
  .text {
@@ -461,7 +466,7 @@ button {
461
466
 
462
467
  .b-tooltip {
463
468
  .tooltip-content {
464
- background-color: $dark-blue !important;
469
+ background-color: $text-color !important;
465
470
 
466
471
  a {
467
472
  color: $white;
@@ -479,8 +484,8 @@ button {
479
484
  &::before {
480
485
  left: 16px !important;
481
486
  right: auto !important;
482
- border-top-color: $dark-blue !important;
483
- border-bottom-color: $dark-blue !important;
487
+ border-top-color: $text-color !important;
488
+ border-bottom-color: $text-color !important;
484
489
  }
485
490
  }
486
491
  }
@@ -495,7 +500,7 @@ button {
495
500
  &::before {
496
501
  right: 16px !important;
497
502
  left: auto !important;
498
- border-bottom-color: $dark-blue !important;
503
+ border-bottom-color: $text-color !important;
499
504
  }
500
505
  }
501
506
 
@@ -525,12 +530,12 @@ button {
525
530
  font-size: 14px;
526
531
  padding: 12px 12px;
527
532
  top: 45px;
528
- background-color: $dark-blue;
533
+ background-color: $text-color;
529
534
  border-radius: 4px !important;
530
535
 
531
536
  &::before {
532
537
  top: 17px;
533
- border-left-color: $dark-blue !important;
538
+ border-left-color: $text-color !important;
534
539
  }
535
540
  }
536
541
  }
@@ -540,7 +545,7 @@ button {
540
545
 
541
546
  .tooltip-content {
542
547
  &::before {
543
- border-bottom-color: $dark-blue !important;
548
+ border-bottom-color: $text-color !important;
544
549
  }
545
550
  }
546
551
  }
@@ -548,7 +553,7 @@ button {
548
553
  &.top-aligned {
549
554
  .tooltip-content {
550
555
  &::before {
551
- border-top-color: $dark-blue !important;
556
+ border-top-color: $text-color !important;
552
557
  }
553
558
  }
554
559
  }
@@ -15,6 +15,7 @@
15
15
  :class="[
16
16
  'annotation-save-btn text-btn',
17
17
  actionBar && 'action-bar-save-btn',
18
+ actionBar ? 'tertiary-button' : 'secondary-button',
18
19
  ]"
19
20
  type="is-primary"
20
21
  @click.stop="save"
@@ -47,7 +48,7 @@
47
48
  <!-- accept button -->
48
49
  <b-button
49
50
  v-if="acceptBtn && !isLoading && !saveBtn && !cancelBtn && !publicView"
50
- class="annotation-accept-btn"
51
+ class="annotation-accept-btn secondary-button"
51
52
  type="is-primary"
52
53
  @click.stop="accept"
53
54
  >
@@ -115,7 +116,7 @@
115
116
  >
116
117
  <b-button
117
118
  v-if="finishReviewBtn && !publicView"
118
- :class="['finish-review-btn', 'text-btn']"
119
+ :class="['finish-review-btn', 'text-btn', 'primary-button']"
119
120
  type="is-primary"
120
121
  :disabled="finishDisabled"
121
122
  @click.stop="finishReview"
@@ -73,7 +73,7 @@
73
73
  {{ $t("select_category") }}
74
74
  </div>
75
75
  <b-button
76
- class="submit-category"
76
+ class="submit-category primary-button"
77
77
  type="is-primary"
78
78
  :disabled="!selectedCategory"
79
79
  @click="submit"
@@ -77,7 +77,7 @@
77
77
  }}</span>
78
78
  </div>
79
79
  <b-button
80
- class="submit-ann-set"
80
+ class="submit-ann-set primary-button"
81
81
  type="is-primary"
82
82
  :disabled="!selectedLabelSet"
83
83
  @click="submit"
@@ -18,52 +18,34 @@
18
18
  {{ selectedPages.length }} {{ $t("selected") }}
19
19
  </p>
20
20
  <b-button
21
- class="rotate-button"
21
+ class="rotate-button primary-button"
22
22
  :disabled="buttonDisabled"
23
23
  @click="rotateLeft"
24
24
  >
25
25
  <div class="button-content">
26
- <b-icon
27
- icon="arrow-rotate-left"
28
- class="is-small"
29
- />
26
+ <b-icon icon="arrow-rotate-left" class="is-small" />
30
27
  <span class="button-text">{{ $t("rotate_selected") }}</span>
31
28
  </div>
32
29
  </b-button>
33
30
  <b-button
34
- class="rotate-button"
31
+ class="rotate-button primary-button"
35
32
  :disabled="buttonDisabled"
36
33
  @click="rotateRight"
37
34
  >
38
35
  <div class="button-content">
39
- <b-icon
40
- icon="arrow-rotate-right"
41
- class="is-small"
42
- />
36
+ <b-icon icon="arrow-rotate-right" class="is-small" />
43
37
  <span class="button-text">{{ $t("rotate_selected") }}</span>
44
38
  </div>
45
39
  </b-button>
46
40
  </div>
47
41
 
48
42
  <div class="rotate-all rotate">
49
- <b-button
50
- class="rotate-button"
51
- @click="rotateAllLeft"
52
- >
53
- <b-icon
54
- icon="arrow-rotate-left"
55
- class="is-small"
56
- />
43
+ <b-button class="rotate-button primary-button" @click="rotateAllLeft">
44
+ <b-icon icon="arrow-rotate-left" class="is-small" />
57
45
  <span class="button-text">{{ $t("rotate_all") }}</span>
58
46
  </b-button>
59
- <b-button
60
- class="rotate-button"
61
- @click="rotateAllRight"
62
- >
63
- <b-icon
64
- icon="arrow-rotate-right"
65
- class="is-small"
66
- />
47
+ <b-button class="rotate-button primary-button" @click="rotateAllRight">
48
+ <b-icon icon="arrow-rotate-right" class="is-small" />
67
49
  <span class="button-text">{{ $t("rotate_all") }}</span>
68
50
  </b-button>
69
51
  </div>
@@ -83,11 +65,11 @@ export default {
83
65
  name: "EditSidebar",
84
66
  data() {
85
67
  return {
86
- buttonDisabled: true
68
+ buttonDisabled: true,
87
69
  };
88
70
  },
89
71
  computed: {
90
- ...mapState("edit", ["selectedPages"])
72
+ ...mapState("edit", ["selectedPages"]),
91
73
  },
92
74
  watch: {
93
75
  selectedPages(newValue) {
@@ -96,7 +78,7 @@ export default {
96
78
  } else {
97
79
  this.buttonDisabled = true;
98
80
  }
99
- }
81
+ },
100
82
  },
101
83
  methods: {
102
84
  rotateLeft() {
@@ -110,8 +92,8 @@ export default {
110
92
  },
111
93
  rotateAllRight() {
112
94
  this.$emit("rotate-all-right");
113
- }
114
- }
95
+ },
96
+ },
115
97
  };
116
98
  </script>
117
99