Skip to content

Commit c843b66

Browse files
PS-9243 Fix the version selector (#329)
deleted: _resource/overrides/partials/copyright.html modified: docs/css/design.css modified: mkdocs-base.yml
1 parent 4960d90 commit c843b66

File tree

3 files changed

+56
-23
lines changed

3 files changed

+56
-23
lines changed

_resource/overrides/partials/copyright.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/css/design.css

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* Prefixed by https://autoprefixer.github.io
43
* PostCSS: v8.4.14,
@@ -216,12 +215,20 @@
216215
.md-tabs__link {
217216
margin-top: 0.55rem;
218217
}
219-
.md-header__topic {
220-
transition: opacity .25s;
221-
}
222-
.md-header__topic:hover {
223-
opacity: 0.7;
218+
/* .md-header__topic .md-ellipsis {
219+
position: relative;
224220
}
221+
.md-header__topic:hover .md-ellipsis::after {
222+
content: "";
223+
position: absolute;
224+
display: block;
225+
right: 0;
226+
bottom: 11px;
227+
left: 0;
228+
width: 100%;
229+
height: 2.5px;
230+
background-color: currentColor;
231+
} */
225232

226233
/* Footer */
227234

@@ -665,6 +672,46 @@ i[warning] [class*="moji"] {
665672
display: none;
666673
}
667674

675+
/* Mike Version Select */
676+
677+
.md-version__current,
678+
.md-version__link {
679+
font-size: 0.9rem;
680+
font-weight: 700;
681+
line-height: 1;
682+
padding: 0.5em;
683+
}
684+
.md-version__current {
685+
top: unset;
686+
margin-left: 0.25em !important;
687+
margin-right: 0.25em !important;
688+
border-radius: 0.1rem;
689+
background-color: rgba(0,0,0,0.2);
690+
}
691+
.md-version__current::after {
692+
width: 0.5em;
693+
height: 0.75em;
694+
}
695+
.md-version__list {
696+
top: 0.1em;
697+
margin: 0.25em;
698+
border-radius: 0.1rem;
699+
}
700+
[dir="ltr"] .md-version__current::after {
701+
margin-left: 0.4em;
702+
}
703+
[dir="rtl"] .md-version__current::after {
704+
margin-right: 0.4em;
705+
}
706+
[dir="ltr"] .md-version__link {
707+
padding-left: 0.5em;
708+
padding-right: 1.4375em;
709+
}
710+
[dir="rtl"] .md-version__link {
711+
padding-left: 1.4375em;
712+
padding-right: 0.5em;
713+
}
714+
668715
/* Media queries */
669716

670717
@media screen and (max-width: 76.1875em) {
@@ -682,4 +729,4 @@ i[warning] [class*="moji"] {
682729
padding: 1em;
683730
}
684731
}
685-
/**/
732+
/**/

mkdocs-base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
site_name: Percona Server for MySQL
44
site_description: Documentation
55
site_author: Percona LLC
6-
6+
copyright: >-
7+
<a href="https://www.percona.com/about">Percona LLC</a> and its affiliates &copy; 2024 — <a href="#" onclick="Osano.cm.showDrawer('osano-cm-dom-info-dialog-open')">Cookie Preferences</a>
78
repo_name: percona/psmysql-docs
89
repo_url: https://github.com/percona/psmysql-docs
910
edit_uri: edit/8.0/docs/

0 commit comments

Comments
 (0)