docs: 🐛 more css fixes

Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
slumbering 2021-06-14 10:55:14 +02:00
parent e6a03d2a74
commit cb119b9ee0

View File

@ -175,7 +175,6 @@ html[data-theme="dark"] .table-of-contents__link {
/* codeBlock */ /* codeBlock */
div[class^="codeBlockContainer"] { div[class^="codeBlockContainer"] {
border-radius: var(--ifm-code-border-radius); border-radius: var(--ifm-code-border-radius);
background-color: var(--ifm-color-primary-dark) !important;
margin-bottom: 2.5rem; margin-bottom: 2.5rem;
div[class^="codeBlockTitle"] { div[class^="codeBlockTitle"] {
@ -185,6 +184,7 @@ div[class^="codeBlockContainer"] {
} }
div[class^="codeBlockLines"] { div[class^="codeBlockLines"] {
background-color: var(--ifm-color-primary-dark) !important;
margin-bottom: 0; margin-bottom: 0;
.token-line { .token-line {
color: var(--ifm-color-primary-light) !important; color: var(--ifm-color-primary-light) !important;
@ -232,21 +232,6 @@ button[class^="copyButton"] {
color: var(--ifm-color-primary-light); color: var(--ifm-color-primary-light);
} }
&--active.menu__link--sublist {
color: var(--ifm-color-primary-dark);
&:active,
&:focus {
background-color: var(--ifm-color-primary-light);
}
html[data-theme="dark"] & {
color: var(--ifm-color-primary-light);
}
html[data-theme="dark"] &:active,
html[data-theme="dark"] &:focus {
color: var(--ifm-color-primary-dark);
}
}
html[data-theme="dark"] & { html[data-theme="dark"] & {
color: var(--ifm-color-primary-light); color: var(--ifm-color-primary-light);
} }
@ -271,6 +256,27 @@ button[class^="copyButton"] {
background-color: var(--ifm-color-primary-light); background-color: var(--ifm-color-primary-light);
color: var(--ifm-color-primary-dark); color: var(--ifm-color-primary-dark);
} }
&.menu__link--sublist {
color: var(--ifm-color-primary-dark);
&:active,
&:focus {
background-color: var(--ifm-color-primary-light);
}
html[data-theme="dark"] & {
color: var(--ifm-color-primary-light);
}
html[data-theme="dark"] &:active,
html[data-theme="dark"] &:focus,
html[data-theme="dark"] &:hover {
color: var(--ifm-color-primary-dark);
}
html[data-theme="dark"] &:active:after,
html[data-theme="dark"] &:focus:after,
html[data-theme="dark"] &:hover:after {
filter: none;
}
}
} }
/* docsearch */ /* docsearch */