Style feedback buttons and pull style out of html

This commit is contained in:
rtm516 committed 2022-02-20 12:59:25 +00:00
1 parent 7e03698f69
commit 8278a1db3f
4 files changed
+47 -38

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# GeyserMC Wiki
This is the repository containing the wikis for GeyserMC other Geyser projects.
This is the repository that contains the wiki for all of GeyserMCs projects.
The wiki can be accessed using [this link](https://wiki.geysermc.org).
+1 -15
View File
@@ -1,18 +1,4 @@
{% if site.feedback %}<style>
.feedback--answer {
display: inline-block;
}
.feedback--answer-no {
margin-left: 1em;
}
.feedback--response {
display: none;
margin-top: 1em;
}
.feedback--response__visible {
display: block;
}
</style>
{% if site.feedback %}
<h5 class="feedback--title">Feedback</h5>
<p class="feedback--question">Was this page helpful?</p>
<button class="feedback--answer feedback--answer-yes">Yes</button>
-22
View File
@@ -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>
+45
View File
@@ -2385,3 +2385,48 @@ footer {
.h3, h3 {
font-size: 1.5rem;
}
.feedback--answer {
display: inline-block;
border: 0px;
border-radius: 5px;
cursor: pointer;
}
.feedback--answer:hover {
background-color: lightgray;
}
.feedback--answer-no {
margin-left: 1em;
}
.feedback--response {
display: none;
margin-top: 1em;
}
.feedback--response__visible {
display: block;
}
#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 */
}