Skip to content

Commit

Permalink
Revert "Test new version selector (#153)" (#154)
Browse files Browse the repository at this point in the history
This reverts commit e80aed1.
  • Loading branch information
alina-derkach-oaza authored May 7, 2024
1 parent e80aed1 commit 5e5bb8c
Show file tree
Hide file tree
Showing 4 changed files with 257 additions and 96 deletions.
93 changes: 44 additions & 49 deletions docs/css/design.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
--md-primary-fg-color: var(--sky700);

/* Type */
--md-typeset-color: var(--stone900);
--md-typeset-color: #2C323E;
--md-typeset-a-color: var(--sky700);

/* Defaults */
Expand All @@ -93,9 +93,9 @@
--md-accent-fg-color: var(--sky500);

/* Footer */
--md-footer-fg-color: var(--stone900);
--md-footer-fg-color--light: rgba(44,50,62,0.72);
--md-footer-fg-color--lighter: rgba(44,50,62,0.40);
--md-footer-fg-color: var(--md-typeset-color);
--md-footer-fg-color--light: var(--md-default-fg-color--light);
--md-footer-fg-color--lighter: var(--md-default-fg-color--lighter);
--md-footer-bg-color: var(--stone50);
--md-footer-bg-color--dark: var(--stone50);

Expand Down Expand Up @@ -124,10 +124,9 @@
--md-accent-bg-color: var(--stone900);

/* Footer */
--md-footer-fg-color: #FBFBFB;
--md-footer-fg-color--light: rgba(251,251,251,0.72);
--md-footer-fg-color--lighter: rgba(251,251,251,0.4);
--md-footer-bg-color: var(--stone800);
--md-footer-fg-color: var(--md-typeset-color);
--md-footer-fg-color--light: var(--md-default-fg-color--light);
--md-footer-fg-color--lighter: var(--md-default-fg-color--lighter);
--md-footer-bg-color--dark: var(--stone800);

/* Code */
Expand Down Expand Up @@ -209,6 +208,8 @@
margin-top: 0.55rem;
}
.md-header__topic {
-webkit-transition: opacity .25s;
-o-transition: opacity .25s;
transition: opacity .25s;
}
.md-header__topic:hover {
Expand All @@ -233,15 +234,19 @@
font-weight: bold;
padding: 0.4167em 1.6em;
border-radius: 10rem;
-webkit-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}
.md-typeset .md-button--primary {
color: var(--md-accent-bg-color);
box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.20);
-webkit-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.20);
box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.20);
}
.md-typeset .md-button--primary:focus,
.md-typeset .md-button--primary:hover {
box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.20);
-webkit-box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.20);
box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.20);
}
.md-typeset .md-button:not(.md-button--primary):focus,
.md-typeset .md-button:not(.md-button--primary):hover {
Expand All @@ -258,11 +263,13 @@
.md-button code,
[data-md-color-scheme="percona-dark"] .md-button:not(.md-button--primary) code {
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) inset;
-webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) inset;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) inset;
}
.md-button:not(.md-button--primary) code {
background-color: rgba(0, 0, 0, 0.05);
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05) inset;
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05) inset;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05) inset;
}
.md-content .md-button {
margin: 0 0.25em 0.5em 0;
Expand Down Expand Up @@ -301,7 +308,8 @@
border-color: var(--md-default-fg-color--lightest)
}
.md-typeset .tabbed-labels {
box-shadow: 0 -0.05rem var(--md-default-fg-color--lightest) inset;
-webkit-box-shadow: 0 -0.05rem var(--md-default-fg-color--lightest) inset;
box-shadow: 0 -0.05rem var(--md-default-fg-color--lightest) inset;
}
.md-typeset .tabbed-labels > label:hover {
color: var(--md-accent-fg-color);
Expand Down Expand Up @@ -340,7 +348,8 @@
--md-admonition-bg-color: var(--md-default-bg-color);
--md-admonition-fg-color: var(--md-typeset-color);
border-width: 0.1125rem;
box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.md-tabs__link {
font-size: 0.67rem;
Expand All @@ -362,10 +371,13 @@
border: 0.05rem solid var(--md-default-fg-color--lightest);
border-radius: 0.2rem;
/* box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.20); */
-webkit-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}
[data-banner]:hover {
box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.20);
-webkit-box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.20);
box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.20);
}
[data-banner] .title {
font-weight: bold;
Expand Down Expand Up @@ -408,14 +420,24 @@
font-size: 4em;
}
[data-grid] {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -1rem;
}
[data-grid] [data-banner] {
flex: 1 1 320px;
-webkit-box-flex: 1;
-ms-flex: 1 1 320px;
flex: 1 1 320px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
flex-direction: column;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
margin: 0 1rem 1rem 0;
}
[data-grid] .title {
Expand All @@ -426,7 +448,9 @@
margin-top: 0;
}
[data-grid] [data-banner] > p:nth-last-child(2) {
flex-grow: 2;
-webkit-box-flex: 2;
-ms-flex-positive: 2;
flex-grow: 2;
}
[data-grid] + [data-banner] {
margin-top: 0;
Expand Down Expand Up @@ -622,35 +646,6 @@ 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;
}

/* Media queries */

@media screen and (max-width: 76.1875em) {
Expand All @@ -668,4 +663,4 @@ i[warning] [class*="moji"] {
padding: 1em;
}
}
/**/
/**/
12 changes: 6 additions & 6 deletions docs/css/extra.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@media print {
/* Adjusts positioning of admonition icon */
.md-typeset :is(.admonition-title,summary):before {
top: 0.6rem;
left: 0.6rem;
}
}
/* Adjusts positioning of admonition icon */
.md-typeset :is(.admonition-title,summary):before {
top: 0.6rem;
left: 0.6rem;
}
}
148 changes: 148 additions & 0 deletions docs/css/percona.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
[data-md-color-scheme="percona-light"] {
--md-primary-fg-color: #0d184c;
--md-primary-fg-color--light: #3e4875;
--md-default-fg-color--lightest: #9096b0;
--md-primary-fg-color--dark: #080e2e;
--md-typeset-a-color: #2cbea2;
}
[data-md-color-scheme="slate"] {
--md-primary-fg-color: #0d184c;
/*
--md-primary-fg-color--light: #3e4875;
--md-primary-fg-color--dark: #080e2e;
*/
--md-typeset-a-color: #2cbea2;
--md-hue: 210; /* [0, 360] */
}
ul li p {
margin: 0;
}

.md-clipboard {
color: #2cbea2;
}

.md-typeset {
font-size: .7rem;
line-height: 1.5;
}

.md-typeset h1 {
color: var(--md-default-fg-color--light);
font-size: 2em;
font-weight: 400;
line-height: 1.3;
margin: 0 0 0.9em;
}

.md-typeset h2 {
font-size: 1.5625em;
line-height: 1.4;
margin: 1em 0 .54em;
}

article table {
page-break-before: auto !important;
page-break-inside: auto !important;
}

article ol {
page-break-before: auto !important;
page-break-inside: auto !important;
}

.md-typeset .md-button {
border: .1rem solid;
border-radius: 50px;
color: var(--md-typeset-a-color);
cursor: pointer;
display: inline-block;
font-weight: 700;
padding: .625em 2em;
transition:color 125ms, background-color 125ms, border-color 125ms
}

.md-typeset .md-button--primary {
background-color: var(--md-typeset-a-color);
border-color: var(--md-typeset-a-color);
color:var(--md-primary-bg-color)
}

.md-typeset .md-button:focus, .md-typeset .md-button:hover {
background-color: var(--md-accent-fg-color);
border-color: var(--md-accent-fg-color);
color:var(--md-accent-bg-color)
}

section {
page-break-before: auto !important;
page-break-inside: auto !important;
}

/* Custom Banner */
[data-banner] {
padding: 1.5em;
margin: 2em 0;
border: 0.05rem solid var(--md-default-fg-color--lighter);
/* border: 0.05rem solid var(--md-typeset-table-color); */
border-radius: 0.2rem;
}
[data-banner] .title {
font-weight: normal;
margin: 0;
}
[data-banner] > :last-child {
margin-bottom: 0;
}
[data-banner] a:link {
font-weight: bold;
}
[data-banner] .actions > p {
margin: 0;
}
[data-banner] .actions a {
display: inline-block;
margin: 0.5em 1.5em 0 0;
}
[data-banner] > :only-child,
[data-banner] .actions a:first-of-type {
margin-top: 0;
}
[data-banner] a [class*="moji"] {
height: 1.3333em;
vertical-align: -0.3333em;
}
[data-banner] a [class*="moji"] svg {
width: 1.3333em;
}
[data-grid] {
display: flex;
flex-wrap: wrap;
margin-right: -1rem;
}
[data-grid] [data-banner] {
flex: 1 1 320px;
display: flex;
flex-direction: column;
margin: 0 1rem 1rem 0;
}
[data-grid] .title {
font-size: 0.8rem;
font-weight: bold;
}
[data-grid] [data-banner] > p:last-child {
margin-top: 0;
}
[data-grid] [data-banner] > p:nth-last-child(2) {
flex-grow: 2;
}
[data-grid] + [data-banner] {
margin-top: 0;
}
[data-grid] .md-button {
margin: 0.5em 0.25em 0 0;
}

/*.git-revision-date-localized-plugin:before {
content: url('https://api.iconify.design/mdi/clock-edit-outline.svg');
}*/
Loading

0 comments on commit 5e5bb8c

Please sign in to comment.