@govtechsg/oobee 0.10.76 → 0.10.78-alpha1

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 (137) hide show
  1. package/.github/workflows/publish.yml +8 -1
  2. package/INTEGRATION.md +50 -3
  3. package/dist/cli.js +252 -0
  4. package/dist/combine.js +221 -0
  5. package/dist/constants/cliFunctions.js +306 -0
  6. package/dist/constants/common.js +1669 -0
  7. package/dist/constants/constants.js +913 -0
  8. package/dist/constants/errorMeta.json +319 -0
  9. package/dist/constants/itemTypeDescription.js +7 -0
  10. package/dist/constants/oobeeAi.js +121 -0
  11. package/dist/constants/questions.js +151 -0
  12. package/dist/constants/sampleData.js +176 -0
  13. package/dist/crawlers/commonCrawlerFunc.js +428 -0
  14. package/dist/crawlers/crawlDomain.js +613 -0
  15. package/dist/crawlers/crawlIntelligentSitemap.js +135 -0
  16. package/dist/crawlers/crawlLocalFile.js +151 -0
  17. package/dist/crawlers/crawlSitemap.js +303 -0
  18. package/dist/crawlers/custom/escapeCssSelector.js +10 -0
  19. package/dist/crawlers/custom/evaluateAltText.js +11 -0
  20. package/dist/crawlers/custom/extractAndGradeText.js +44 -0
  21. package/dist/crawlers/custom/extractText.js +27 -0
  22. package/dist/crawlers/custom/findElementByCssSelector.js +36 -0
  23. package/dist/crawlers/custom/flagUnlabelledClickableElements.js +963 -0
  24. package/dist/crawlers/custom/framesCheck.js +37 -0
  25. package/dist/crawlers/custom/getAxeConfiguration.js +111 -0
  26. package/dist/crawlers/custom/gradeReadability.js +23 -0
  27. package/dist/crawlers/custom/utils.js +1024 -0
  28. package/dist/crawlers/custom/xPathToCss.js +147 -0
  29. package/dist/crawlers/guards/urlGuard.js +71 -0
  30. package/dist/crawlers/pdfScanFunc.js +276 -0
  31. package/dist/crawlers/runCustom.js +89 -0
  32. package/dist/exclusions.txt +7 -0
  33. package/dist/generateHtmlReport.js +144 -0
  34. package/dist/index.js +62 -0
  35. package/dist/logs.js +84 -0
  36. package/dist/mergeAxeResults.js +1588 -0
  37. package/dist/npmIndex.js +640 -0
  38. package/dist/proxyService.js +360 -0
  39. package/dist/runGenerateJustHtmlReport.js +16 -0
  40. package/dist/screenshotFunc/htmlScreenshotFunc.js +355 -0
  41. package/dist/screenshotFunc/pdfScreenshotFunc.js +645 -0
  42. package/dist/services/s3Uploader.js +127 -0
  43. package/dist/static/ejs/partials/components/allIssues/AllIssues.ejs +9 -0
  44. package/dist/static/ejs/partials/components/allIssues/CategoryBadges.ejs +82 -0
  45. package/dist/static/ejs/partials/components/allIssues/FilterBar.ejs +33 -0
  46. package/dist/static/ejs/partials/components/allIssues/IssuesTable.ejs +41 -0
  47. package/dist/static/ejs/partials/components/header/SiteInfo.ejs +119 -0
  48. package/dist/static/ejs/partials/components/header/aboutScanModal/AboutScanModal.ejs +15 -0
  49. package/dist/static/ejs/partials/components/header/aboutScanModal/ScanConfiguration.ejs +44 -0
  50. package/dist/static/ejs/partials/components/header/aboutScanModal/ScanDetails.ejs +142 -0
  51. package/dist/static/ejs/partials/components/prioritiseIssues/IssueDetailCard.ejs +36 -0
  52. package/dist/static/ejs/partials/components/prioritiseIssues/PrioritiseIssues.ejs +47 -0
  53. package/dist/static/ejs/partials/components/ruleModal/ruleOffcanvas.ejs +196 -0
  54. package/dist/static/ejs/partials/components/scannedPagesSegmentedTabs.ejs +48 -0
  55. package/dist/static/ejs/partials/components/screenshotLightbox.ejs +13 -0
  56. package/dist/static/ejs/partials/components/shared/InfoAlert.ejs +3 -0
  57. package/dist/static/ejs/partials/components/summaryScanAbout.ejs +141 -0
  58. package/dist/static/ejs/partials/components/summaryScanResults.ejs +16 -0
  59. package/dist/static/ejs/partials/components/summaryTable.ejs +20 -0
  60. package/dist/static/ejs/partials/components/summaryWcagCompliance.ejs +94 -0
  61. package/dist/static/ejs/partials/components/topTen.ejs +6 -0
  62. package/dist/static/ejs/partials/components/wcagCompliance/FailedCriteria.ejs +47 -0
  63. package/dist/static/ejs/partials/components/wcagCompliance/WcagCompliance.ejs +16 -0
  64. package/dist/static/ejs/partials/components/wcagCompliance/WcagGaugeBar.ejs +16 -0
  65. package/dist/static/ejs/partials/components/wcagCoverageDetails.ejs +18 -0
  66. package/dist/static/ejs/partials/footer.ejs +24 -0
  67. package/dist/static/ejs/partials/header.ejs +14 -0
  68. package/dist/static/ejs/partials/main.ejs +29 -0
  69. package/dist/static/ejs/partials/scripts/allIssues/AllIssues.ejs +376 -0
  70. package/dist/static/ejs/partials/scripts/bootstrap.ejs +8 -0
  71. package/dist/static/ejs/partials/scripts/categorySummary.ejs +141 -0
  72. package/dist/static/ejs/partials/scripts/decodeUnzipParse.ejs +3 -0
  73. package/dist/static/ejs/partials/scripts/header/SiteInfo.ejs +44 -0
  74. package/dist/static/ejs/partials/scripts/header/aboutScanModal/AboutScanModal.ejs +51 -0
  75. package/dist/static/ejs/partials/scripts/header/aboutScanModal/ScanConfiguration.ejs +127 -0
  76. package/dist/static/ejs/partials/scripts/header/aboutScanModal/ScanDetails.ejs +60 -0
  77. package/dist/static/ejs/partials/scripts/highlightjs.ejs +335 -0
  78. package/dist/static/ejs/partials/scripts/popper.ejs +7 -0
  79. package/dist/static/ejs/partials/scripts/prioritiseIssues/IssueDetailCard.ejs +137 -0
  80. package/dist/static/ejs/partials/scripts/prioritiseIssues/PrioritiseIssues.ejs +214 -0
  81. package/dist/static/ejs/partials/scripts/prioritiseIssues/wcagSvgMap.ejs +861 -0
  82. package/dist/static/ejs/partials/scripts/ruleModal/constants.ejs +957 -0
  83. package/dist/static/ejs/partials/scripts/ruleModal/itemCardRenderer.ejs +353 -0
  84. package/dist/static/ejs/partials/scripts/ruleModal/pageAccordionBuilder.ejs +468 -0
  85. package/dist/static/ejs/partials/scripts/ruleModal/ruleOffcanvas.ejs +306 -0
  86. package/dist/static/ejs/partials/scripts/ruleModal/utilities.ejs +483 -0
  87. package/dist/static/ejs/partials/scripts/scannedPagesSegmentedTabs.ejs +35 -0
  88. package/dist/static/ejs/partials/scripts/screenshotLightbox.ejs +75 -0
  89. package/dist/static/ejs/partials/scripts/summaryScanResults.ejs +14 -0
  90. package/dist/static/ejs/partials/scripts/summaryTable.ejs +78 -0
  91. package/dist/static/ejs/partials/scripts/topTen.ejs +61 -0
  92. package/dist/static/ejs/partials/scripts/utils.ejs +453 -0
  93. package/dist/static/ejs/partials/scripts/wcagCompliance/FailedCriteria.ejs +103 -0
  94. package/dist/static/ejs/partials/scripts/wcagCompliance/WcagGaugeBar.ejs +47 -0
  95. package/dist/static/ejs/partials/scripts/wcagCompliance.ejs +15 -0
  96. package/dist/static/ejs/partials/scripts/wcagCoverageDetails.ejs +75 -0
  97. package/dist/static/ejs/partials/styles/allIssues/AllIssues.ejs +384 -0
  98. package/dist/static/ejs/partials/styles/bootstrap.ejs +12391 -0
  99. package/dist/static/ejs/partials/styles/header/SiteInfo.ejs +121 -0
  100. package/dist/static/ejs/partials/styles/header/aboutScanModal/AboutScanModal.ejs +82 -0
  101. package/dist/static/ejs/partials/styles/header/aboutScanModal/ScanConfiguration.ejs +50 -0
  102. package/dist/static/ejs/partials/styles/header/aboutScanModal/ScanDetails.ejs +149 -0
  103. package/dist/static/ejs/partials/styles/header.ejs +7 -0
  104. package/dist/static/ejs/partials/styles/highlightjs.ejs +54 -0
  105. package/dist/static/ejs/partials/styles/prioritiseIssues/IssueDetailCard.ejs +141 -0
  106. package/dist/static/ejs/partials/styles/prioritiseIssues/PrioritiseIssues.ejs +204 -0
  107. package/dist/static/ejs/partials/styles/ruleModal/ruleOffcanvas.ejs +456 -0
  108. package/dist/static/ejs/partials/styles/scannedPagesSegmentedTabs.ejs +46 -0
  109. package/dist/static/ejs/partials/styles/shared/InfoAlert.ejs +12 -0
  110. package/dist/static/ejs/partials/styles/styles.ejs +1607 -0
  111. package/dist/static/ejs/partials/styles/summaryBootstrap.ejs +12458 -0
  112. package/dist/static/ejs/partials/styles/topTenCard.ejs +44 -0
  113. package/dist/static/ejs/partials/styles/wcagCompliance/FailedCriteria.ejs +59 -0
  114. package/dist/static/ejs/partials/styles/wcagCompliance/WcagGaugeBar.ejs +62 -0
  115. package/dist/static/ejs/partials/styles/wcagCompliance.ejs +36 -0
  116. package/dist/static/ejs/partials/styles/wcagCoverageDetails.ejs +33 -0
  117. package/dist/static/ejs/partials/summaryHeader.ejs +70 -0
  118. package/dist/static/ejs/partials/summaryMain.ejs +49 -0
  119. package/dist/static/ejs/report.ejs +226 -0
  120. package/dist/static/ejs/summary.ejs +47 -0
  121. package/dist/types/types.js +1 -0
  122. package/dist/utils.js +1070 -0
  123. package/examples/oobee-cypress-integration-js/cypress/support/e2e.js +36 -6
  124. package/examples/oobee-cypress-integration-js/cypress.config.js +45 -1
  125. package/examples/oobee-cypress-integration-ts/cypress.config.ts +47 -1
  126. package/examples/oobee-cypress-integration-ts/src/cypress/support/e2e.ts +36 -6
  127. package/examples/oobee-playwright-integration-js/oobee-playwright-demo.js +2 -1
  128. package/examples/oobee-playwright-integration-ts/src/oobee-playwright-demo.ts +2 -1
  129. package/examples/oobee-scan-html-demo.js +51 -0
  130. package/examples/oobee-scan-page-demo.js +40 -0
  131. package/package.json +9 -3
  132. package/src/constants/common.ts +2 -2
  133. package/src/constants/constants.ts +3 -1
  134. package/src/crawlers/crawlDomain.ts +1 -0
  135. package/src/crawlers/runCustom.ts +0 -1
  136. package/src/mergeAxeResults.ts +43 -22
  137. package/src/npmIndex.ts +500 -131
@@ -0,0 +1,121 @@
1
+ <style>
2
+ #site-header {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ }
6
+
7
+ #site-container {
8
+ display: flex;
9
+ gap: 2rem;
10
+ align-items: center;
11
+ width: 100%;
12
+ }
13
+
14
+ #site-container > div {
15
+ min-width: 0;
16
+ flex-shrink: 1;
17
+ }
18
+
19
+ #site-container > div:nth-child(1),
20
+ #site-container > div:nth-child(2) {
21
+ overflow: hidden;
22
+ }
23
+
24
+ #site-container > div:nth-child(1) {
25
+ max-width: 48ch;
26
+ }
27
+
28
+ #site-container > div:nth-child(2) {
29
+ max-width: 56ch;
30
+ }
31
+
32
+ #site-container > div:nth-child(3) {
33
+ flex-shrink: 0;
34
+ width: auto;
35
+ }
36
+
37
+ #site-container > div:nth-child(1) > div,
38
+ #site-container > div:nth-child(2) {
39
+ overflow: hidden;
40
+ }
41
+
42
+ #siteName {
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ white-space: nowrap;
46
+ width: 100%;
47
+ }
48
+
49
+ #siteUrl {
50
+ display: inline-flex !important;
51
+ align-items: center;
52
+ gap: 0.25rem;
53
+ min-width: 0;
54
+ vertical-align: middle;
55
+ }
56
+
57
+ #siteUrl .url-text {
58
+ overflow: hidden;
59
+ text-overflow: ellipsis;
60
+ white-space: nowrap;
61
+ min-width: 0;
62
+ }
63
+
64
+ #siteUrl svg {
65
+ flex-shrink: 0;
66
+ }
67
+
68
+ @media (max-width: 1300px) {
69
+ #site-container {
70
+ flex-direction: column;
71
+ align-items: flex-start;
72
+ gap: 0.5rem;
73
+ }
74
+
75
+ #site-container > div:nth-child(1),
76
+ #site-container > div:nth-child(2) {
77
+ overflow: visible;
78
+ }
79
+
80
+ #site-container > div:nth-child(1) > div {
81
+ overflow: visible;
82
+ }
83
+
84
+ #siteName {
85
+ white-space: normal;
86
+ word-wrap: break-word;
87
+ word-break: break-word;
88
+ overflow: visible;
89
+ }
90
+
91
+ #siteUrl {
92
+ display: inline-flex !important;
93
+ }
94
+
95
+ #siteUrl .url-text {
96
+ white-space: normal;
97
+ word-wrap: break-word;
98
+ word-break: break-word;
99
+ overflow: visible;
100
+ }
101
+ }
102
+
103
+ #site-container svg {
104
+ flex-shrink: 0;
105
+ min-width: 24px;
106
+ min-height: 24px;
107
+ }
108
+
109
+ .label {
110
+ margin-bottom: 0 !important;
111
+ }
112
+
113
+ .link {
114
+ color: var(--a11y-majorelle-blue);
115
+ text-decoration: none;
116
+ }
117
+
118
+ .link:hover {
119
+ text-decoration: underline;
120
+ }
121
+ </style>
@@ -0,0 +1,82 @@
1
+ <style>
2
+ #aboutScanModal {
3
+ --left-col: 320px;
4
+ --gap: 24px;
5
+ --divider: var(--bright-gray);
6
+ --xpad: 1rem;
7
+ }
8
+
9
+ #aboutScanModal .modal-dialog .modal-dialog-centered {
10
+ display: flex;
11
+ align-items: center;
12
+ min-height: calc(90svh - 2rem);
13
+ margin-left: auto;
14
+ margin-right: auto;
15
+ }
16
+
17
+ #aboutScanModal .modal-dialog {
18
+ --bs-modal-width: min(1080px, calc(100vw - 2rem));
19
+ }
20
+
21
+ #aboutScanModal .modal-header {
22
+ border-bottom: 0;
23
+ }
24
+
25
+ #aboutScanModal .modal-header::after {
26
+ content: "";
27
+ position: absolute;
28
+ inset-block: 0;
29
+ left: calc(var(--xpad) + var(--left-col));
30
+ width: 1px;
31
+ background: var(--divider);
32
+ pointer-events: none;
33
+ }
34
+
35
+ #aboutScanModal .modal-body {
36
+ max-height: calc(100vh - 7.5rem);
37
+ overflow-y: auto;
38
+ padding-top: 0;
39
+ }
40
+
41
+ #aboutScanModal .about-scan-divider {
42
+ margin-bottom: 2rem;
43
+ }
44
+
45
+ #aboutScanModal .about-scan-modal-grid {
46
+ position: relative;
47
+ min-height: 0;
48
+ }
49
+
50
+ #aboutScanModal .about-scan-modal-grid::before {
51
+ content: "";
52
+ position: absolute;
53
+ top: 0;
54
+ bottom: 0;
55
+ left: var(--left-col);
56
+ width: 1px;
57
+ background: var(--divider);
58
+ }
59
+
60
+ #view-crawl > h2 {
61
+ line-height: 2rem;
62
+ }
63
+
64
+ #view-wcag > h2 {
65
+ line-height: 2rem;
66
+ }
67
+
68
+ #view-wcag > p {
69
+ margin-top: 1rem;
70
+ margin-bottom: 0;
71
+ }
72
+
73
+ .link-external-icon {
74
+ position: relative; top: -1px;
75
+ }
76
+
77
+ @media (max-width: 991.98px) {
78
+ #aboutScanModal .about-scan-modal-grid::before {
79
+ display: none;
80
+ }
81
+ }
82
+ </style>
@@ -0,0 +1,50 @@
1
+ <style>
2
+ .about-scan-details-right {
3
+ position: absolute;
4
+ top: 0;
5
+ bottom: 0;
6
+ left: calc(var(--left-col) + var(--gap));
7
+ right: 0;
8
+ overflow-y: auto;
9
+ min-height: 0;
10
+ }
11
+
12
+ .about-scan-details-right .unbulleted-list {
13
+ margin: 0;
14
+ padding: 0;
15
+ list-style: none;
16
+ }
17
+
18
+ .about-scan-details-right .unbulleted-list > li {
19
+ padding: 0.4rem 0;
20
+ }
21
+
22
+ .about-scan-details-right .unbulleted-list > li + li {
23
+ border-top: 1px solid var(--divider, --bright-gray);
24
+ }
25
+
26
+ #pagesScannedList > li:first-child {
27
+ padding-top: 0;
28
+ }
29
+
30
+ #pagesScannedList > li:last-child {
31
+ padding-bottom: 0;
32
+ }
33
+
34
+ #pagesScannedList > li > p {
35
+ margin-bottom: 0;
36
+ }
37
+
38
+ .display-url-container {
39
+ flex: 1;
40
+ min-width: 0;
41
+ }
42
+
43
+ @media (max-width: 991.98px) {
44
+ .about-scan-details-right {
45
+ position: static;
46
+ overflow: visible;
47
+ padding: 0;
48
+ }
49
+ }
50
+ </style>
@@ -0,0 +1,149 @@
1
+ <style>
2
+ .website-title {
3
+ word-break: break-word;
4
+ }
5
+
6
+ #scan-about > ul > li:first-child {
7
+ padding-top: 0.5rem;
8
+ }
9
+
10
+ #scan-about ul {
11
+ padding-left: 0;
12
+ }
13
+
14
+ #scan-about li {
15
+ display: flex;
16
+ line-height: 1.1rem;
17
+ margin-bottom: 2rem;
18
+ }
19
+
20
+ #scan-about li > svg {
21
+ flex-shrink: 0;
22
+ margin-left: 0.3rem;
23
+ margin-right: 0.6rem;
24
+ }
25
+
26
+ .about-scan-details-left {
27
+ width: var(--left-col);
28
+ padding-right: var(--gap);
29
+ }
30
+
31
+ .url-scanned-text {
32
+ color: var(--a11y-majorelle-blue);
33
+ word-break: break-word;
34
+ }
35
+
36
+ .wcag-criteria-label {
37
+ text-decoration: none;
38
+ margin-bottom: 0.3rem;
39
+ }
40
+
41
+ .advanced-group {
42
+ display: flex;
43
+ align-items: center;
44
+ margin-bottom: 0 !important;
45
+ }
46
+
47
+ .advanced-group + .advanced-sublist,
48
+ .advanced-group + ul {
49
+ list-style: disc !important;
50
+ margin-left: 3.125rem;
51
+ }
52
+
53
+ .advanced-group + .advanced-sublist li,
54
+ .advanced-group + ul li {
55
+ margin: 0;
56
+ }
57
+
58
+ .advanced-sublist-li {
59
+ display: list-item !important;
60
+ margin-bottom: 0.3rem !important;
61
+ }
62
+
63
+ .advanced-sublist-li:first-child {
64
+ margin-top: 0.5rem !important;
65
+ }
66
+
67
+ .advanced-sublist-li:last-child {
68
+ margin-bottom: 2rem !important;
69
+ }
70
+
71
+ .about-scan-toggle {
72
+ border: none;
73
+ background-color: var(--true-white);
74
+ text-align: left;
75
+ padding: 0;
76
+ text-decoration: none;
77
+ cursor: default;
78
+ display: flex;
79
+ flex-direction: column;
80
+ }
81
+
82
+ .about-scan-toggle:hover {
83
+ text-decoration: none;
84
+ }
85
+
86
+ .about-scan-toggle .about-us-type-of-scan-text {
87
+ color: var(--a11y-majorelle-blue) !important;
88
+ display: inline !important;
89
+ text-decoration: none;
90
+ cursor: pointer;
91
+ }
92
+ .about-scan-toggle:hover .about-us-type-of-scan-text,
93
+ .about-scan-toggle .about-us-type-of-scan-text:focus-visible {
94
+ text-decoration: underline;
95
+ }
96
+
97
+ .about-scan-link{
98
+ color: var(--a11y-majorelle-blue);
99
+ text-decoration: none;
100
+ cursor: pointer;
101
+ }
102
+ .about-scan-link:hover,
103
+ .about-scan-link:focus-visible,
104
+ .about-scan-toggle:hover .about-scan-link {
105
+ text-decoration: underline;
106
+ }
107
+
108
+ .about-scan-link-row {
109
+ display: inline-flex;
110
+ align-items: center;
111
+ gap: 6px;
112
+ line-height: 1.2;
113
+ }
114
+
115
+ .about-scan-link-text {
116
+ color: var(--a11y-majorelle-blue);
117
+ text-decoration: none;
118
+ cursor: pointer;
119
+ }
120
+
121
+ .about-scan-link-text:hover,
122
+ .about-scan-toggle:hover .about-scan-link-text,
123
+ .about-scan-link-text:focus-visible {
124
+ text-decoration: underline;
125
+ }
126
+
127
+ .about-scan-link-chev {
128
+ position: relative;
129
+ top: 0.1rem;
130
+ }
131
+
132
+ .oobee-version-text {
133
+ font-size: 1.125rem;
134
+ font-weight: 600;
135
+ }
136
+
137
+ @media (max-width: 991.98px) {
138
+ #aboutScanModal .modal-dialog{ --bs-modal-width: calc(100vw - 1rem); }
139
+ #aboutScanModal .modal-header::after,
140
+
141
+ .about-scan-details-left{ width:auto; padding-right:0; }
142
+
143
+ #aboutScanModal .modal-dialog.modal-dialog-centered{
144
+ align-items: flex-start;
145
+ min-height: auto;
146
+ }
147
+ }
148
+
149
+ </style>
@@ -0,0 +1,7 @@
1
+ <style>
2
+ .header-title {
3
+ padding-bottom: 0 !important;
4
+ margin-bottom: 0;
5
+ color: var(--true-white) !important;
6
+ }
7
+ </style>
@@ -0,0 +1,54 @@
1
+ <style>
2
+ pre code.hljs {
3
+ display: block;
4
+ overflow-x: auto;
5
+ }
6
+ .hljs {
7
+ color: #26241b;
8
+ }
9
+ .hljs ::selection,
10
+ .hljs::selection {
11
+ background-color: #c5c8c6;
12
+ color: #26241b;
13
+ }
14
+ .hljs-comment {
15
+ color: #707070;
16
+ }
17
+ .hljs-tag {
18
+ color: #002a94;
19
+ }
20
+ .hljs-operator,
21
+ .hljs-punctuation,
22
+ .hljs-subst {
23
+ color: #007373;
24
+ }
25
+ .hljs-operator {
26
+ opacity: 0.7;
27
+ }
28
+ .hljs-bullet,
29
+ .hljs-deletion,
30
+ .hljs-name,
31
+ .hljs-selector-tag,
32
+ .hljs-template-variable,
33
+ .hljs-variable {
34
+ color: #002a94;
35
+ }
36
+ .hljs-attr,
37
+ .hljs-link,
38
+ .hljs-literal,
39
+ .hljs-number,
40
+ .hljs-symbol,
41
+ .hljs-variable.constant_ {
42
+ color: #007373;
43
+ }
44
+ .hljs-addition,
45
+ .hljs-code,
46
+ .hljs-string,
47
+ .hljs-title.class_.inherited__ {
48
+ color: #dd1144;
49
+ }
50
+ .hljs-meta .hljs-keyword,
51
+ .hljs-meta-keyword {
52
+ font-weight: 700;
53
+ }
54
+ </style>
@@ -0,0 +1,141 @@
1
+ <style>
2
+ .issue-detail-card {
3
+ width: 40%;
4
+ max-width: 500px;
5
+ background: var(--true-white);
6
+ border-radius: 5px;
7
+ padding: 24px;
8
+ align-self: flex-start;
9
+ border: 1px solid var(--soft-blue);
10
+ box-shadow: 0 2px 4px 0 rgb(77, 52, 191, 10%);
11
+ }
12
+
13
+ .issue-detail-content {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 0.75rem;
17
+ }
18
+
19
+ .issue-detail-image-container {
20
+ width: 100%;
21
+ height: 200px;
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ overflow: hidden;
26
+ margin-bottom: 0.75rem;
27
+ }
28
+
29
+ .issue-detail-image {
30
+ max-width: 100%;
31
+ max-height: 100%;
32
+ object-fit: contain;
33
+ }
34
+
35
+ .issue-detail-title {
36
+ font-size: 1.125rem !important;
37
+ font-weight: 700 !important;
38
+ line-height: 1.3 !important;
39
+ margin: 0;
40
+ }
41
+
42
+ .issue-detail-section-label {
43
+ font-size: 14px;
44
+ font-weight: 600;
45
+ margin: 0 0 8px 0;
46
+ }
47
+
48
+ .issue-detail-conformance {
49
+ display: flex;
50
+ flex-direction: row;
51
+ gap: 8px;
52
+ }
53
+
54
+ .issue-detail-conformance-badges {
55
+ display: flex;
56
+ gap: 8px;
57
+ flex-wrap: wrap;
58
+ }
59
+
60
+ .issue-detail-conformance-badge {
61
+ display: inline-flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+ border-radius: 5px;
65
+ border: 1px solid var(--a11y-black-100);
66
+ font-size: 12px;
67
+ padding: 0 4px;
68
+ width: fit-content;
69
+ height: 20px;
70
+ font-weight: 700;
71
+ }
72
+
73
+ .mustfix-badge-label {
74
+ display: inline-flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ background: var(--light-carmine-pink);
78
+ color: var(--true-white);
79
+ border-radius: 5px;
80
+ border: 1px solid var(--light-carmine-pink);
81
+ font-size: 12px;
82
+ font-weight: 600;
83
+ padding: 0 4px;
84
+ width: fit-content;
85
+ height: 20px;
86
+ }
87
+
88
+ .info-alert {
89
+ font-size: 1rem !important;
90
+ line-height: 1.5 !important;
91
+ }
92
+
93
+ .disability-text {
94
+ font-weight: 600;
95
+ color: var(--dark-orange) !important;
96
+ }
97
+
98
+ .btn-view-issue-details {
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ background: transparent;
103
+ border: none;
104
+ font-size: 16px;
105
+ width: fit-content;
106
+ gap: 8px;
107
+ margin: 0 auto;
108
+ }
109
+
110
+ .btn-view-issue-details:hover {
111
+ text-decoration: underline;
112
+ }
113
+
114
+ .prioritise-issues-container {
115
+ display: flex;
116
+ gap: 24px;
117
+ align-items: flex-start;
118
+ margin-top: 20px;
119
+ }
120
+
121
+ .prioritise-issues-main {
122
+ flex: 1;
123
+ min-width: 0;
124
+ align-self: stretch;
125
+ }
126
+
127
+ @media (max-width: 1024px) {
128
+ .prioritise-issues-container {
129
+ flex-direction: column;
130
+ }
131
+
132
+ .issue-detail-card {
133
+ width: 100%;
134
+ max-width: 100%;
135
+ }
136
+
137
+ .prioritise-issues-main {
138
+ width: 100%;
139
+ }
140
+ }
141
+ </style>