Skip to content

Commit

Permalink
PXC-4426 Fix the version selector (#154)
Browse files Browse the repository at this point in the history
deleted:    _resource/overrides/partials/copyright.html
	modified:   docs/css/design.css
	modified:   mkdocs-base.yml
  • Loading branch information
alina-derkach-oaza authored May 29, 2024
1 parent 1474a1c commit d817bae
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 22 deletions.
15 changes: 0 additions & 15 deletions _resource/overrides/partials/copyright.html

This file was deleted.

89 changes: 83 additions & 6 deletions docs/css/design.css
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,20 @@
.md-tabs__link {
margin-top: 0.55rem;
}
.md-header__topic {
transition: opacity .25s;
}
.md-header__topic:hover {
opacity: 0.7;
/* .md-header__topic .md-ellipsis {
position: relative;
}
.md-header__topic:hover .md-ellipsis::after {
content: "";
position: absolute;
display: block;
right: 0;
bottom: 11px;
left: 0;
width: 100%;
height: 2.5px;
background-color: currentColor;
} */

/* Footer */

Expand Down Expand Up @@ -635,6 +643,75 @@ i[warning] [class*="moji"] {
vertical-align: -0.3125em;
}

/* Version Select */

.version-select::after {
content: "\25BE";
display: inline-block;
margin-left: -1em;
transform: translate(-0.625em, -0.0625em);
pointer-events: none;
}
#versionSelect {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
align-self: center;
font-family: var(--fHeading);
font-size: 0.9rem;
line-height: 1;
font-weight: 700;
padding: 0.5em 1.375em 0.5em 0.5em;
margin: 0 0.25em;
background-color: rgba(0,0,0,0.2);
color: inherit;
border: none;
border-radius: 0.1rem;
}
#versionSelect::-ms-expand {
display: none;
}

/* Mike Version Select */

.md-version__current,
.md-version__link {
font-size: 0.9rem;
font-weight: 700;
line-height: 1;
padding: 0.5em;
}
.md-version__current {
top: unset;
margin-left: 0.25em !important;
margin-right: 0.25em !important;
border-radius: 0.1rem;
background-color: rgba(0,0,0,0.2);
}
.md-version__current::after {
width: 0.5em;
height: 0.75em;
}
.md-version__list {
top: 0.1em;
margin: 0.25em;
border-radius: 0.1rem;
}
[dir="ltr"] .md-version__current::after {
margin-left: 0.4em;
}
[dir="rtl"] .md-version__current::after {
margin-right: 0.4em;
}
[dir="ltr"] .md-version__link {
padding-left: 0.5em;
padding-right: 1.4375em;
}
[dir="rtl"] .md-version__link {
padding-left: 1.4375em;
padding-right: 0.5em;
}

/* Media queries */

@media screen and (max-width: 76.1875em) {
Expand All @@ -652,4 +729,4 @@ i[warning] [class*="moji"] {
padding: 1em;
}
}
/**/
/**/
3 changes: 2 additions & 1 deletion mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
site_name: Percona XtraDB Cluster
site_description: Documentation
site_author: Percona LLC

copyright: >-
<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>
repo_name: percona/pxc-docs
repo_url: https://github.com/percona/pxc-docs
edit_uri: edit/8.0/docs/
Expand Down

0 comments on commit d817bae

Please sign in to comment.