Style feedback buttons and pull style out of html
This commit is contained in:
4 files changed
+47
-38
No files matched your search
@@ -1,25 +1,3 @@
|
||||
<style>
|
||||
#scrolltop {
|
||||
display: none; /* Hidden by default */
|
||||
position: fixed; /* Fixed/sticky position */
|
||||
bottom: 20px; /* Place the button at the bottom of the page */
|
||||
right: 30px; /* Place the button 30px from the right */
|
||||
z-index: 99; /* Make sure it does not overlap */
|
||||
border: none; /* Remove borders */
|
||||
outline: none; /* Remove outline */
|
||||
background-color: {{ site.color }}; /* Set a background color */
|
||||
color: white; /* Text color */
|
||||
cursor: pointer; /* Add a mouse pointer on hover */
|
||||
padding: 10px 15px; /* Some padding */
|
||||
border-radius: 100px; /* Rounded corners */
|
||||
font-size: 18px; /* Increase font size */
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#scrolltop:hover {
|
||||
background-color: #555; /* Add a dark-grey background on hover */
|
||||
}
|
||||
</style>
|
||||
<button onclick="topFunction()" id="scrolltop" title="Go to top">🔝</button>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in new issue
Block a user