Skip to content

PS-10073 [DOCs] Implement new colors for Edit this page button and change the feedback form (8.0) #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 8.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
Binary file removed _resource/.icons/edit_page.png
Binary file not shown.
1 change: 0 additions & 1 deletion _resource/.icons/file-document-edit-outline.svg

This file was deleted.

1 change: 0 additions & 1 deletion _resource/.icons/file-eye-outline.svg

This file was deleted.

38 changes: 37 additions & 1 deletion docs/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,40 @@
.md-sidebar__inner {
font-size: 0.65rem; /* Font size */
line-height: 1.6;
}
}

.md-content__button.md-icon {
color: #ff7e1a !important; /* Example: deep orange */
}

/* Optional: hover effect */
.md-content__button.md-icon:hover {
color: #ffa966 !important;
}

.md-content__button.md-icon svg {
width: 34px;
height: 34px;
}

.md-content__button.md-icon[href*="/edit/"] {
display: inline-flex; /* make the button a flex container */
flex-direction: column; /* stack children vertically */
align-items: center; /* center them horizontally */
}

.md-content__button.md-icon[href*="/edit/"] svg {
width: 34px;
height: 34px;
}

.md-content__button.md-icon[href*="/edit/"]::after {
content: "Edit this page";
margin-top: 4px;
font-size: 0.7rem;
color: #2C323E;
text-align: center;
display: block;
width: 100%;
}

5 changes: 1 addition & 4 deletions mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ theme:
font:
text: Roboto
code: Roboto Mono
icon:
edit: material/file-edit-outline
view: material/file-eye-outline

palette:
- media: "(prefers-color-scheme)"
Expand Down Expand Up @@ -55,7 +52,7 @@ theme:
- content.tooltips
- content.tabs.link
- content.action.edit
- content.action.view
# - content.action.view
- content.code.copy
- content.code.annotate
- toc.follow
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ extra:
name: This page could be improved
data: 0
note: >-
Thanks for your feedback! Help us improve by following this <a href="https://docs.google.com/forms/d/1bkWACehjqlwA0AKf-qTJcXvYbOSYgze8iTPXjntqmNo/edit" target="_blank" rel="noopener">feedback form</a>.
Thanks for your feedback! Want to improve this page? Click the <strong>Edit this page</strong> button above to submit a pull request!

Loading