Skip to content

Commit

Permalink
Make feedback widget more prominent (#2682)
Browse files Browse the repository at this point in the history
  • Loading branch information
imchairmanm authored Dec 5, 2024
1 parent b558951 commit 24c600c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/_extra/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:root {
--color-primary: hsl(170, 69%, 35%);
--color-primary-shade-1: hsl(170, 69%, 30%);
--color-primary-tint-1: hsl(170, 69%, 97%);
--color-text-base: #58585F;
--color-text-dark: #555555;
--color-background-base: #f2f4f8;
Expand Down
35 changes: 35 additions & 0 deletions docs/_extra/css/feedback.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* form itself */
.md-feedback {
background-color: var(--color-primary-tint-1);
padding: 10px;
}

.md-feedback fieldset {
}

/* form title */
.md-feedback__title {
color: var(--color-primary);
font-size: 1.3rem;
}

/* container for vote buttons and note */
.md-feedback__inner {
}

/* list of rating buttons */
.md-feedback__list {
}

/* rating button icons */
.md-feedback__icon {
}

.md-feedback__icon svg {
width: 1.5rem;
height: 1.5rem;
}

/* post-submission note */
.md-feedback__note {
}
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ extra:
note: >-
Thanks for your feedback!
- icon: material/emoticon-sad-outline
name: This page could be improved
name: This page wasn't helpful
data: 0
note: >-
Thanks for your feedback! Help us improve this page by
Expand All @@ -84,6 +84,7 @@ extra_css:
- _extra/css/macro-styles.css
- _extra/css/templates-widget.css
- _extra/css/workflow-demo.css
- _extra/css/feedback.css
# https://squidfunk.github.io/mkdocs-material/customization/?h=#additional-javascript
extra_javascript:
- _extra/javascript/extra.js
Expand Down

0 comments on commit 24c600c

Please sign in to comment.