Skip to content

Commit 97ec2ca

Browse files
committed
add hover classes to links and buttons
Signed-off-by: Jess Chitas <[email protected]>
1 parent 07e415f commit 97ec2ca

File tree

2 files changed

+55
-43
lines changed

2 files changed

+55
-43
lines changed

src/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ function App() {
188188
<div className="footer orange-background">
189189
<footer>
190190
<p>
191-
<a href="https://github.com/containers/ramalama">Github</a> |{" "}
192-
<a href="https://matrix.to/#/#ramalama:fedoraproject.org">Matrix</a>{" "}
191+
<a className="footer-link" href="https://github.com/containers/ramalama">Github</a> |{" "}
192+
<a className="footer-link" href="https://matrix.to/#/#ramalama:fedoraproject.org">Matrix</a>{" "}
193193
|{" "}
194-
<a href="https://github.com/containers/ramalama/blob/main/README.md">
194+
<a className="footer-link" href="https://github.com/containers/ramalama/blob/main/README.md">
195195
Docs
196196
</a>
197197
</p>

src/css/index.css

Lines changed: 52 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ h1 {
5151
/* ----------------------------- Navbar Section ---------------------------- */
5252

5353
.logo-text {
54-
width: 20%;
54+
width: 15%;
5555
margin: 1.25rem 2rem;
5656

5757
@media screen and (max-width: 1024px) {
@@ -109,6 +109,10 @@ h1 {
109109
align-items: center;
110110
}
111111

112+
.nav-links a:hover {
113+
color:#cf3c23
114+
}
115+
112116
.github-stars-badge {
113117
height: 28px;
114118
@media screen and (max-width: 768px) {
@@ -204,6 +208,49 @@ h1 {
204208
}
205209
}
206210

211+
button:hover {
212+
background-color: #f7f7f7;
213+
}
214+
215+
button {
216+
align-items: center;
217+
border-radius: 15px;
218+
border: 1px solid transparent;
219+
margin: 12.5px 0;
220+
padding: 0.5rem 1rem;
221+
font-size: 1rem;
222+
font-weight: 500;
223+
font-family: inherit;
224+
background-color: white;
225+
color: black;
226+
cursor: pointer;
227+
transition: border-color 0.25s;
228+
}
229+
230+
button:not(.install-button, .copy-button) {
231+
display: flex;
232+
align-items: center;
233+
width: 70%;
234+
@media screen and (max-width: 500px) {
235+
padding: 0.3rem 0.75rem;
236+
font-size: 0.7rem;
237+
width: 100%;
238+
}
239+
}
240+
241+
button img {
242+
padding-left: 5%;
243+
}
244+
245+
button p {
246+
padding-left: 10%;
247+
}
248+
249+
ul {
250+
list-style: none;
251+
padding: 0;
252+
}
253+
207254
/* ----------------------------- Install Section ---------------------------- */
208255
.copy-button {
209256
align-content: center;
@@ -401,46 +448,11 @@ h1 {
401448

402449
/* ------------------------------ Other Styles ------------------------------ */
403450

404-
button {
405-
align-items: center;
406-
border-radius: 15px;
407-
border: 1px solid transparent;
408-
margin: 12.5px 0;
409-
padding: 0.5rem 1rem;
410-
font-size: 1rem;
411-
font-weight: 500;
412-
font-family: inherit;
413-
background-color: white;
414-
color: black;
415-
cursor: pointer;
416-
transition: border-color 0.25s;
417-
}
418-
419-
button:not(.install-button, .copy-button) {
420-
display: flex;
421-
align-items: center;
422-
width: 70%;
423-
@media screen and (max-width: 500px) {
424-
padding: 0.3rem 0.75rem;
425-
font-size: 0.7rem;
426-
width: 100%;
427-
}
428-
}
429-
430-
button img {
431-
padding-left: 5%;
432-
}
433-
434-
button p {
435-
padding-left: 10%;
436-
}
437-
438-
ul {
439-
list-style: none;
440-
padding: 0;
441-
}
442-
443451
footer {
444452
padding: 25px;
445453
text-align: center;
446454
}
455+
456+
.footer-link:hover {
457+
text-decoration: underline;
458+
}

0 commit comments

Comments
 (0)