From c18b91ee58c925b4c5dd5c2979bffb8a84e6feb2 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Tue, 1 Jul 2025 17:52:30 +0200 Subject: [PATCH 01/11] 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 --- _resource/.icons/edit_page.png | Bin 4344 -> 0 bytes .../.icons/file-document-edit-outline.svg | 1 - _resource/.icons/file-eye-outline.svg | 1 - docs/css/extra.css | 38 +++++++++++++++++- mkdocs-base.yml | 5 +-- mkdocs.yml | 2 +- 6 files changed, 39 insertions(+), 8 deletions(-) delete mode 100644 _resource/.icons/edit_page.png delete mode 100644 _resource/.icons/file-document-edit-outline.svg delete mode 100644 _resource/.icons/file-eye-outline.svg diff --git a/_resource/.icons/edit_page.png b/_resource/.icons/edit_page.png deleted file mode 100644 index 96244be3db91b90ef7b1df79b6ea932a1bf813fd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4344 zcmZ`+cQl+^*MG$5ZA9;bh(2RBixLq%i5ew(iKtO7L68u2ghUsF zh#-tk-jRF1d+++*_3pLy*}t>vv-dv#Jn=er)G0`rNdW+$Kx(M!;iTv#6BFW2c7?b) z03b&=tElK8Ra784KAsNFZuS765uag9gwlUUpJ%4W*)aMddLD$wk5?Q$dPM^kSr&aw zkq=H7nZRaZ;I(Cg$I>cLIPL7;J6t$@YNK@1gn`U|Rf}}JwKl}_=ZB&Eu;H_>L$7@Y zf#;z)g7jYtn1Pjtq&(gQ5s7gAa`JH+MZBPJ@-V2mWyDiD8X6KSrtiNj=PiihsydhX zCQiN{g$ZYcDB)27*9e!%L-Al7%lN?JB%-bu3=}3dKQ-sev_?fVfe49rLzss37G0Qz zbr$7(vZJLXd)&?ObMFNY z?muHvShqXZ60_Av8~niBozOTyCZmCZ41c+Et}wCNc{?-@JsK-fRq-kH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c!#~qM<)AWkuHJ{1FLZvTK&a9@dpRx35jZPiqc?xNC#c}jr{XcKdHL; g7NYSso7ugEh}B;~^jU^;xP1c1n|D-el&vEF1JL=YuK)l5 diff --git a/_resource/.icons/file-document-edit-outline.svg b/_resource/.icons/file-document-edit-outline.svg deleted file mode 100644 index e4003610d7b..00000000000 --- a/_resource/.icons/file-document-edit-outline.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/_resource/.icons/file-eye-outline.svg b/_resource/.icons/file-eye-outline.svg deleted file mode 100644 index b36dbf8d12e..00000000000 --- a/_resource/.icons/file-eye-outline.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/css/extra.css b/docs/css/extra.css index 82fd839c8b4..d4b23444414 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -9,4 +9,40 @@ .md-sidebar__inner { font-size: 0.65rem; /* Font size */ line-height: 1.6; -} \ No newline at end of file +} + +.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%; +} + diff --git a/mkdocs-base.yml b/mkdocs-base.yml index a52cc40be90..dec4e0491e6 100644 --- a/mkdocs-base.yml +++ b/mkdocs-base.yml @@ -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)" @@ -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 diff --git a/mkdocs.yml b/mkdocs.yml index 03562f09652..9a28098be26 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -26,5 +26,5 @@ extra: name: This page could be improved data: 0 note: >- - Thanks for your feedback! Help us improve by following this feedback form. + Thanks for your feedback! Want to improve this page? Click the Edit this page button above to submit a pull request! From 8659a0d657b6749da71951d94646cd1a46039b1d Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Tue, 12 Aug 2025 15:39:49 +0200 Subject: [PATCH 02/11] Update extra.css --- docs/css/extra.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/css/extra.css b/docs/css/extra.css index d4b23444414..535b55cc89a 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -12,12 +12,12 @@ } .md-content__button.md-icon { - color: #ff7e1a !important; /* Example: deep orange */ + color: #127ae8 !important; /* Example: deep orange */ } /* Optional: hover effect */ .md-content__button.md-icon:hover { - color: #ffa966 !important; + color: #439eff !important; } .md-content__button.md-icon svg { @@ -29,6 +29,7 @@ display: inline-flex; /* make the button a flex container */ flex-direction: column; /* stack children vertically */ align-items: center; /* center them horizontally */ + margin-top: -4px; } .md-content__button.md-icon[href*="/edit/"] svg { @@ -38,7 +39,7 @@ .md-content__button.md-icon[href*="/edit/"]::after { content: "Edit this page"; - margin-top: 4px; + margin-top: 2px; font-size: 0.7rem; color: #2C323E; text-align: center; From 1d1cfc0d3c2f416ded7ee4003d366337d30a702f Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Tue, 12 Aug 2025 15:40:23 +0200 Subject: [PATCH 03/11] Update mkdocs.yml --- mkdocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index 9a28098be26..deabb34002f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -26,5 +26,5 @@ extra: name: This page could be improved data: 0 note: >- - Thanks for your feedback! Want to improve this page? Click the Edit this page button above to submit a pull request! + Thanks for your feedback! Want to improve this page? Click the Improve this page button above to submit a pull request! From c9d6aaad1fcc7ffe4cf342af70b4707891461d80 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Tue, 12 Aug 2025 15:41:04 +0200 Subject: [PATCH 04/11] Update extra.css --- docs/css/extra.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/css/extra.css b/docs/css/extra.css index 535b55cc89a..ddadfc032dd 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -38,12 +38,13 @@ } .md-content__button.md-icon[href*="/edit/"]::after { - content: "Edit this page"; + content: "Improve this page"; margin-top: 2px; font-size: 0.7rem; color: #2C323E; text-align: center; display: block; width: 100%; + font-weight: bold; } From 0d2196ce021c794e8982e7817f5e1ec7aca3f3c9 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Mon, 15 Sep 2025 18:23:46 +0200 Subject: [PATCH 05/11] Change the button location new file: _resourcepdf/overrides/partials/toc.html modified: docs/css/extra.css modified: mkdocs-base.yml --- _resourcepdf/overrides/partials/toc.html | 23 +++++++++ docs/css/extra.css | 64 ++++++++++++------------ mkdocs-base.yml | 4 +- 3 files changed, 57 insertions(+), 34 deletions(-) create mode 100644 _resourcepdf/overrides/partials/toc.html diff --git a/_resourcepdf/overrides/partials/toc.html b/_resourcepdf/overrides/partials/toc.html new file mode 100644 index 00000000000..8ca585535c5 --- /dev/null +++ b/_resourcepdf/overrides/partials/toc.html @@ -0,0 +1,23 @@ +{% if page.toc %} + +{% endif %} diff --git a/docs/css/extra.css b/docs/css/extra.css index ddadfc032dd..b53ce331ce8 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -11,40 +11,40 @@ line-height: 1.6; } -.md-content__button.md-icon { - color: #127ae8 !important; /* Example: deep orange */ +.edit-page-icon svg { + width: 1.7em; + height: 1.7em; + margin-right: 0.4em; + fill: currentColor; } -/* Optional: hover effect */ -.md-content__button.md-icon:hover { - color: #439eff !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 */ - margin-top: -4px; -} - -.md-content__button.md-icon[href*="/edit/"] svg { - width: 34px; - height: 34px; -} - -.md-content__button.md-icon[href*="/edit/"]::after { - content: "Improve this page"; - margin-top: 2px; - font-size: 0.7rem; - color: #2C323E; - text-align: center; - display: block; - width: 100%; +.edit-page-box { + display: flex; + align-items: center; + justify-content: center; + padding: 0.5em 1em; + border: 2px solid #127ae8; + border-radius: 6px; font-weight: bold; + font-size: 1.1em; + color: #127ae8; + background-color: transparent; + text-decoration: none; + width: 100%; + max-width: 100%; + transition: + background-color 0.25s ease, + color 0.25s ease, + transform 0.2s ease, + box-shadow 0.2s ease; + margin-top: 0rem; + cursor: pointer; } +.edit-page-box:hover { + background-color: transparent; + color: #439eff; + transform: translateY(-2px); + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); +} + \ No newline at end of file diff --git a/mkdocs-base.yml b/mkdocs-base.yml index dec4e0491e6..6ac5c4ae72a 100644 --- a/mkdocs-base.yml +++ b/mkdocs-base.yml @@ -51,8 +51,8 @@ theme: - navigation.indexes - content.tooltips - content.tabs.link - - content.action.edit -# - content.action.view +# - content.action.edit + - content.action.view - content.code.copy - content.code.annotate - toc.follow From 98daa10ae15c1e51e5209ab5605003f55d5bf3b3 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Tue, 16 Sep 2025 17:53:40 +0200 Subject: [PATCH 06/11] Changing from the button into a banner modified: _resourcepdf/overrides/main.html new file: _resourcepdf/overrides/partials/edit.html deleted: _resourcepdf/overrides/partials/toc.html modified: docs/css/extra.css --- _resourcepdf/overrides/main.html | 3 ++ _resourcepdf/overrides/partials/edit.html | 11 ++++++ _resourcepdf/overrides/partials/toc.html | 23 ----------- docs/css/extra.css | 48 ++++++++--------------- 4 files changed, 30 insertions(+), 55 deletions(-) create mode 100644 _resourcepdf/overrides/partials/edit.html delete mode 100644 _resourcepdf/overrides/partials/toc.html diff --git a/_resourcepdf/overrides/main.html b/_resourcepdf/overrides/main.html index 758819d8b48..7e3e0883979 100644 --- a/_resourcepdf/overrides/main.html +++ b/_resourcepdf/overrides/main.html @@ -52,6 +52,9 @@
{% include "partials/toc.html" %}
+
+ {% include "partials/edit.html" %} +
{% include "partials/banner.html" %}
diff --git a/_resourcepdf/overrides/partials/edit.html b/_resourcepdf/overrides/partials/edit.html new file mode 100644 index 00000000000..3b5677b63fa --- /dev/null +++ b/_resourcepdf/overrides/partials/edit.html @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/_resourcepdf/overrides/partials/toc.html b/_resourcepdf/overrides/partials/toc.html deleted file mode 100644 index 8ca585535c5..00000000000 --- a/_resourcepdf/overrides/partials/toc.html +++ /dev/null @@ -1,23 +0,0 @@ -{% if page.toc %} - -{% endif %} diff --git a/docs/css/extra.css b/docs/css/extra.css index b53ce331ce8..b02e04ba2bf 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -11,40 +11,24 @@ line-height: 1.6; } -.edit-page-icon svg { - width: 1.7em; - height: 1.7em; - margin-right: 0.4em; - fill: currentColor; -} - -.edit-page-box { - display: flex; +/* Style the link */ +.edit-page-link { + display: inline-flex; align-items: center; - justify-content: center; - padding: 0.5em 1em; - border: 2px solid #127ae8; - border-radius: 6px; - font-weight: bold; - font-size: 1.1em; - color: #127ae8; - background-color: transparent; + gap: 0.6em; text-decoration: none; - width: 100%; - max-width: 100%; - transition: - background-color 0.25s ease, - color 0.25s ease, - transform 0.2s ease, - box-shadow 0.2s ease; - margin-top: 0rem; + color: var(--md-typeset-a-color); + font-size: 1.25rem; + font-weight: 500; + line-height: 1.4; + transition: color 0.2s ease; cursor: pointer; } -.edit-page-box:hover { - background-color: transparent; - color: #439eff; - transform: translateY(-2px); - box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); -} - \ No newline at end of file +/* Bigger icon, aligned with text */ +.edit-page-icon svg { + width: 1.4em; + height: 1.4em; + fill: currentColor; + vertical-align: middle; +} \ No newline at end of file From 74ba8777c7eb43bfd3e76e6c27ab4fc45da9def9 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Thu, 18 Sep 2025 17:16:38 +0200 Subject: [PATCH 07/11] Add more text and center it modified: _resourcepdf/overrides/partials/edit.html modified: docs/css/extra.css --- _resourcepdf/overrides/partials/edit.html | 19 ++++++++----- docs/css/extra.css | 33 +++++++++++++++-------- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a/_resourcepdf/overrides/partials/edit.html b/_resourcepdf/overrides/partials/edit.html index 3b5677b63fa..ef2ab9121c2 100644 --- a/_resourcepdf/overrides/partials/edit.html +++ b/_resourcepdf/overrides/partials/edit.html @@ -1,11 +1,18 @@ \ No newline at end of file diff --git a/docs/css/extra.css b/docs/css/extra.css index b02e04ba2bf..e1a219f965a 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -11,24 +11,35 @@ line-height: 1.6; } -/* Style the link */ .edit-page-link { - display: inline-flex; - align-items: center; - gap: 0.6em; + display: inline-block; /* shrink to content width */ text-decoration: none; color: var(--md-typeset-a-color); + cursor: pointer; font-size: 1.25rem; font-weight: 500; line-height: 1.4; - transition: color 0.2s ease; - cursor: pointer; + text-align: left; /* align left inside container */ +} + +/* First line: icon + text inline */ +.edit-page-line1 { + padding-left: calc(0.5em); + display: flex; + align-items: center; + gap: 0.4em; } -/* Bigger icon, aligned with text */ .edit-page-icon svg { - width: 1.4em; - height: 1.4em; + width: 2em; /* Bigger width */ + height: 2em; /* Bigger height */ fill: currentColor; - vertical-align: middle; -} \ No newline at end of file + display: block; + padding-left: calc(0.5em); +} + +.edit-page-line2 { + padding-left: calc(4.5em); + line-height: 1.2; + white-space: nowrap; +} From 3cebc5ff0809bc8b6745c58ce918fe0de7b293d2 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Fri, 19 Sep 2025 14:21:18 +0200 Subject: [PATCH 08/11] Change the banner location --- _resourcepdf/overrides/main.html | 4 +-- _resourcepdf/overrides/partials/edit.html | 19 +++++--------- docs/css/extra.css | 32 ++++++++--------------- 3 files changed, 19 insertions(+), 36 deletions(-) diff --git a/_resourcepdf/overrides/main.html b/_resourcepdf/overrides/main.html index 7e3e0883979..64e62b0f19b 100644 --- a/_resourcepdf/overrides/main.html +++ b/_resourcepdf/overrides/main.html @@ -53,10 +53,10 @@ {% include "partials/toc.html" %}
- {% include "partials/edit.html" %} + {% include "partials/banner.html" %}
- {% include "partials/banner.html" %} + {% include "partials/edit.html" %}
diff --git a/_resourcepdf/overrides/partials/edit.html b/_resourcepdf/overrides/partials/edit.html index ef2ab9121c2..70f24781c4d 100644 --- a/_resourcepdf/overrides/partials/edit.html +++ b/_resourcepdf/overrides/partials/edit.html @@ -1,18 +1,11 @@ \ No newline at end of file diff --git a/docs/css/extra.css b/docs/css/extra.css index e1a219f965a..d5ba0f86a7a 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -11,35 +11,25 @@ line-height: 1.6; } +/* Style the link */ .edit-page-link { - display: inline-block; /* shrink to content width */ + display: inline-flex; + align-items: center; + gap: 0.8em; text-decoration: none; color: var(--md-typeset-a-color); - cursor: pointer; - font-size: 1.25rem; + font-size: 1.35rem; font-weight: 500; line-height: 1.4; - text-align: left; /* align left inside container */ -} - -/* First line: icon + text inline */ -.edit-page-line1 { - padding-left: calc(0.5em); - display: flex; - align-items: center; - gap: 0.4em; + transition: color 0.2s ease; + cursor: pointer; } +/* Bigger icon, aligned with text */ .edit-page-icon svg { - width: 2em; /* Bigger width */ - height: 2em; /* Bigger height */ + width: 1.4em; + height: 1.4em; fill: currentColor; - display: block; - padding-left: calc(0.5em); + vertical-align: middle; } -.edit-page-line2 { - padding-left: calc(4.5em); - line-height: 1.2; - white-space: nowrap; -} From c5a4e69f0b3b424c9a9df7eb1e91b4f52ae2e424 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Fri, 19 Sep 2025 14:54:09 +0200 Subject: [PATCH 09/11] Change the text --- _resourcepdf/overrides/partials/edit.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_resourcepdf/overrides/partials/edit.html b/_resourcepdf/overrides/partials/edit.html index 70f24781c4d..e3d443922a0 100644 --- a/_resourcepdf/overrides/partials/edit.html +++ b/_resourcepdf/overrides/partials/edit.html @@ -1,11 +1,11 @@ \ No newline at end of file From e7548445817388c9efae4ee42ef2c036204d52b2 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Fri, 19 Sep 2025 15:32:17 +0200 Subject: [PATCH 10/11] Fix the css --- _resourcepdf/overrides/partials/banner.html | 2 +- _resourcepdf/overrides/partials/edit.html | 4 ++-- docs/css/extra.css | 20 ++++++++------------ mkdocs-base.yml | 2 +- 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/_resourcepdf/overrides/partials/banner.html b/_resourcepdf/overrides/partials/banner.html index a5dd5fc0d9a..9da001b8ccf 100644 --- a/_resourcepdf/overrides/partials/banner.html +++ b/_resourcepdf/overrides/partials/banner.html @@ -1,6 +1,6 @@

-

For help, click the link below to get free database assistance or contact our experts for personalized support.

+

Get free database assistance or contact our experts for personalized support.

diff --git a/_resourcepdf/overrides/partials/edit.html b/_resourcepdf/overrides/partials/edit.html index e3d443922a0..43b0d87b1c1 100644 --- a/_resourcepdf/overrides/partials/edit.html +++ b/_resourcepdf/overrides/partials/edit.html @@ -1,11 +1,11 @@ \ No newline at end of file diff --git a/docs/css/extra.css b/docs/css/extra.css index d5ba0f86a7a..c2b0d9f9281 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -11,25 +11,21 @@ line-height: 1.6; } -/* Style the link */ .edit-page-link { + white-space: nowrap; display: inline-flex; align-items: center; - gap: 0.8em; - text-decoration: none; + gap: 0.5em; + font-size: 1.1rem; + font-weight: normal; color: var(--md-typeset-a-color); - font-size: 1.35rem; - font-weight: 500; - line-height: 1.4; - transition: color 0.2s ease; - cursor: pointer; + text-decoration: underline; } -/* Bigger icon, aligned with text */ .edit-page-icon svg { - width: 1.4em; - height: 1.4em; - fill: currentColor; + width: 1.35em; /* Increase from 1em to 1.25em or more */ + height: 1.35em; + fill: currentColor; /* Make the icon match text color */ vertical-align: middle; } diff --git a/mkdocs-base.yml b/mkdocs-base.yml index 6ac5c4ae72a..a892d3025cd 100644 --- a/mkdocs-base.yml +++ b/mkdocs-base.yml @@ -76,7 +76,7 @@ markdown_extensions: toc: permalink: true title: On this page - toc_depth: 3 + toc_depth: 2 md_in_html: {} admonition: {} footnotes: {} From 838465371b5131d0af4db650a6fdeefcdffefada Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Wed, 24 Sep 2025 16:24:35 +0200 Subject: [PATCH 11/11] Change the banners location modified: _resourcepdf/overrides/main.html modified: docs/css/extra.css --- _resourcepdf/overrides/main.html | 4 ++-- docs/css/extra.css | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_resourcepdf/overrides/main.html b/_resourcepdf/overrides/main.html index 64e62b0f19b..53919b23090 100644 --- a/_resourcepdf/overrides/main.html +++ b/_resourcepdf/overrides/main.html @@ -50,13 +50,13 @@ diff --git a/docs/css/extra.css b/docs/css/extra.css index c2b0d9f9281..f099c0a3a38 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -16,16 +16,16 @@ display: inline-flex; align-items: center; gap: 0.5em; - font-size: 1.1rem; + font-size: 1.2rem; font-weight: normal; color: var(--md-typeset-a-color); text-decoration: underline; } .edit-page-icon svg { - width: 1.35em; /* Increase from 1em to 1.25em or more */ - height: 1.35em; - fill: currentColor; /* Make the icon match text color */ + width: 1.40em; + height: 1.40em; + fill: currentColor; vertical-align: middle; }