Skip to content

Commit 2ffac04

Browse files
committed
updates header styling a little
1 parent 0cdcde0 commit 2ffac04

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

public/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ violations.then(data => {
8383
`).join('')}
8484
</ul>
8585
86+
<h3>URLs with Violations</h3>
8687
<ul>
8788
${uniqueURLsWithViolations.map(url => `
8889
<li>

public/style.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,30 @@ h2 ~ h2 {
6262
color: #ffffff;
6363
}
6464

65+
header nav ul {
66+
display: flex;
67+
gap: 1rem;
68+
list-style-type: none;
69+
margin: 0;
70+
padding: 0;
71+
}
72+
73+
header.bg nav a {
74+
display: inline-block;
75+
padding: 0.5rem 1rem;
76+
background-color: var(--color-white);
77+
color: var(--color-primary);
78+
text-decoration: none;
79+
border: 1px solid var(--color-primary);
80+
}
81+
header.bg nav a:hover,
82+
header.bg nav a:focus-visible {
83+
background-color: var(--color-primary);
84+
color: var(--color-white);
85+
border-color: var(--color-white);
86+
transform: scale(1.01);
87+
}
88+
6589
.impact {
6690
padding: 0.15rem;
6791
border: var(--border);
@@ -140,7 +164,10 @@ button:hover {
140164
}
141165

142166
.violations {
167+
width: 100%;
168+
aspect-ratio: 1;
143169
padding: 1rem;
170+
overflow: auto;
144171
background-color: var(--color-grey-lightest);
145172
border: var(--border);
146173
}

0 commit comments

Comments
 (0)