Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion submit-challenge/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<main class="container">
<h2>Submit New Coding Challenge</h2>
<h2 id="top">Submit New Coding Challenge</h2>
<form id="challengeForm">
<div class="form-group">
<label for="title">Challenge Title</label>
Expand Down Expand Up @@ -50,6 +50,7 @@ <h2>Submit New Coding Challenge</h2>
</form>
<section id="preview"></section>
</main>
<a href="#top" class="to-top">⬆ Top</a>
<script src="script.js" defer></script>


Expand Down
19 changes: 18 additions & 1 deletion submit-challenge/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ input:focus, textarea:focus, select:focus, button:focus {
width: 400px;
/* margin: 50px auto; */
position: fixed;
bottom: 20px;
bottom: 100px;
right: 20px;
background: white;
border-radius: 10px;
Expand Down Expand Up @@ -412,3 +412,20 @@ input:focus, textarea:focus, select:focus, button:focus {
border: none;
cursor: pointer;
}
.to-top {
position: fixed;
bottom: 20px;
right: 150px;
background-color: #059669;
color: white;
z-index: 10;
padding: 10px 15px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;

}

.to-top:hover {
background-color: #059669;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: The hover state uses the same color as the default state, providing no visual feedback on hover

Suggested change
.to-top:hover {
background-color: #059669;
}
.to-top:hover {
background-color: #047857;
}

Loading