Skip to content

Commit c18b91e

Browse files
PS-10073 [DOCs] Implement new colors for Edit this page and View page buttons
deleted: _resource/.icons/edit_page.png deleted: _resource/.icons/file-document-edit-outline.svg deleted: _resource/.icons/file-eye-outline.svg modified: docs/css/extra.css modified: mkdocs-base.yml
1 parent 489096f commit c18b91e

File tree

6 files changed

+39
-8
lines changed

6 files changed

+39
-8
lines changed

_resource/.icons/edit_page.png

-4.24 KB
Binary file not shown.

_resource/.icons/file-document-edit-outline.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

_resource/.icons/file-eye-outline.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/css/extra.css

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,40 @@
99
.md-sidebar__inner {
1010
font-size: 0.65rem; /* Font size */
1111
line-height: 1.6;
12-
}
12+
}
13+
14+
.md-content__button.md-icon {
15+
color: #ff7e1a !important; /* Example: deep orange */
16+
}
17+
18+
/* Optional: hover effect */
19+
.md-content__button.md-icon:hover {
20+
color: #ffa966 !important;
21+
}
22+
23+
.md-content__button.md-icon svg {
24+
width: 34px;
25+
height: 34px;
26+
}
27+
28+
.md-content__button.md-icon[href*="/edit/"] {
29+
display: inline-flex; /* make the button a flex container */
30+
flex-direction: column; /* stack children vertically */
31+
align-items: center; /* center them horizontally */
32+
}
33+
34+
.md-content__button.md-icon[href*="/edit/"] svg {
35+
width: 34px;
36+
height: 34px;
37+
}
38+
39+
.md-content__button.md-icon[href*="/edit/"]::after {
40+
content: "Edit this page";
41+
margin-top: 4px;
42+
font-size: 0.7rem;
43+
color: #2C323E;
44+
text-align: center;
45+
display: block;
46+
width: 100%;
47+
}
48+

mkdocs-base.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ theme:
1717
font:
1818
text: Roboto
1919
code: Roboto Mono
20-
icon:
21-
edit: material/file-edit-outline
22-
view: material/file-eye-outline
2320

2421
palette:
2522
- media: "(prefers-color-scheme)"
@@ -55,7 +52,7 @@ theme:
5552
- content.tooltips
5653
- content.tabs.link
5754
- content.action.edit
58-
- content.action.view
55+
# - content.action.view
5956
- content.code.copy
6057
- content.code.annotate
6158
- toc.follow

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ extra:
2626
name: This page could be improved
2727
data: 0
2828
note: >-
29-
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>.
29+
Thanks for your feedback! Want to improve this page? Click the <strong>Edit this page</strong> button above to submit a pull request!
3030

0 commit comments

Comments
 (0)