-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into simplify-call-to-actions
- Loading branch information
Showing
4 changed files
with
27 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
footer .helpful-container { | ||
.qiskit-analytics-container { | ||
display: inline-flex; | ||
border-top: 1px solid var(--color-background-border); | ||
border-bottom: 1px solid var(--color-background-border); | ||
color: var(--color-foreground-secondary); | ||
} | ||
|
||
footer .helpful-container .helpful-question, | ||
footer .helpful-container .was-helpful-thank-you { | ||
padding: 0.625rem 1.25rem 0.625rem 1.25rem; | ||
} | ||
margin-bottom: 1rem; | ||
|
||
#was-helpful-thank-you { | ||
visibility: hidden; | ||
} | ||
div, | ||
a { | ||
padding: 0.625rem 1.25rem 0.625rem 1.25rem; | ||
} | ||
|
||
a { | ||
color: var(--qiskit-color-purple); | ||
cursor: pointer; | ||
text-decoration: none; | ||
|
||
&:hover { | ||
background-color: var(--qiskit-color-purple); | ||
color: #ffffff; | ||
} | ||
} | ||
|
||
.helpful-container .helpful-question.yes-link, | ||
.helpful-container .helpful-question.no-link { | ||
color: var(--qiskit-color-purple); | ||
cursor: pointer; | ||
text-decoration: none; | ||
} | ||
|
||
.helpful-container .helpful-question.yes-link:hover, | ||
.helpful-container .helpful-question.no-link:hover { | ||
background-color: var(--qiskit-color-purple); | ||
color: #ffffff; | ||
#qiskit-analytics-thank-you { | ||
visibility: hidden; | ||
} |
14 changes: 6 additions & 8 deletions
14
src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/custom_templates/footer_analytics.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{% if analytics_enabled %} | ||
<script> | ||
function userFeedbackClicked(ctaType) { | ||
document.getElementById('was-helpful-thank-you').style.visibility = 'visible'; | ||
document.getElementById('qiskit-analytics-thank-you').style.visibility = 'visible'; | ||
window.trackCta(`Helpful - ${ctaType}`); | ||
} | ||
</script> | ||
<hr class="helpful-hr hr-top" /> | ||
<div class="helpful-container"> | ||
<div class="helpful-question">Was this page helpful?</div> | ||
<a class="helpful-question yes-link" onclick="userFeedbackClicked('yes')">Yes</a> | ||
<a class="helpful-question no-link" onclick="userFeedbackClicked('no')">No</a> | ||
<div class="was-helpful-thank-you" id="was-helpful-thank-you">Thank you!</div> | ||
<div class="qiskit-analytics-container"> | ||
<div>Was this page helpful?</div> | ||
<a onclick="userFeedbackClicked('yes')">Yes</a> | ||
<a onclick="userFeedbackClicked('no')">No</a> | ||
<div id="qiskit-analytics-thank-you">Thank you!</div> | ||
</div> | ||
<hr class="helpful-hr hr-bottom"/> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-194 Bytes
(99%)
tests/js/snapshots.test.js-snapshots/footer-includes-page-analytics-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.