mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-29 13:33:06 +00:00
Co-authored-by: Joshua Chen <sidachen2003@gmail.com> Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com> Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com> Co-authored-by: Ben Gubler <nebrelbug@gmail.com> Co-authored-by: Davide Donadio <davide.donadio@it.clara.net> Co-authored-by: Petter Drønnen <36735557+dr0nn1@users.noreply.github.com> Co-authored-by: Moritz Stückler <moritz@bitbetter.de> Co-authored-by: Mysterious_Dev <40738104+Mysterious-Dev@users.noreply.github.com> Co-authored-by: TrueQAP <32407751+trueqap@users.noreply.github.com> Co-authored-by: Kagan <34136752+kagankan@users.noreply.github.com> Co-authored-by: Dewansh Thakur <71703033+dewanshDT@users.noreply.github.com> Co-authored-by: Armano <armano2@users.noreply.github.com> Co-authored-by: Anas <60762285+Anasqx@users.noreply.github.com> Co-authored-by: Tanner Dolby <tannercdolby@gmail.com> Co-authored-by: Davide Donadio <davide.donadio94@gmail.com> Co-authored-by: biplavmz <68702055+biplavmz@users.noreply.github.com> Co-authored-by: Vishruta Patil <72292532+Vishruta-Patil@users.noreply.github.com> fix(theme-classic): fix tab focus bug in dropdown (#8697) (#8699) fix(theme): improve color toggle when using dark navbar (#8615) fix(theme-translations): fix wrong arabic words (tip/next) (#8744) fix(core): baseUrl error banner link anchor case (#8746) fix(search): search page should react to querystring changes + cleanup/refactor (#8757) fix(theme): allow tabs children to be falsy (#8801) fix(theme): codeblock buttons should be kept on the right when using RTL locale (#8803)
88 lines
1.7 KiB
CSS
88 lines
1.7 KiB
CSS
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
.codeBlockContent {
|
|
position: relative;
|
|
/* rtl:ignore */
|
|
direction: ltr;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.codeBlockTitle {
|
|
border-bottom: 1px solid var(--ifm-color-emphasis-300);
|
|
font-size: var(--ifm-code-font-size);
|
|
font-weight: 500;
|
|
padding: 0.75rem var(--ifm-pre-padding);
|
|
border-top-left-radius: inherit;
|
|
border-top-right-radius: inherit;
|
|
}
|
|
|
|
.codeBlock {
|
|
--ifm-pre-background: var(--prism-background-color);
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.codeBlockTitle + .codeBlockContent .codeBlock {
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
|
|
.codeBlockStandalone {
|
|
padding: 0;
|
|
}
|
|
|
|
.codeBlockLines {
|
|
font: inherit;
|
|
/* rtl:ignore */
|
|
float: left;
|
|
min-width: 100%;
|
|
padding: var(--ifm-pre-padding);
|
|
}
|
|
|
|
.codeBlockLinesWithNumbering {
|
|
display: table;
|
|
padding: var(--ifm-pre-padding) 0;
|
|
}
|
|
|
|
@media print {
|
|
.codeBlockLines {
|
|
white-space: pre-wrap;
|
|
}
|
|
}
|
|
|
|
.buttonGroup {
|
|
display: flex;
|
|
column-gap: 0.2rem;
|
|
position: absolute;
|
|
/* rtl:ignore */
|
|
right: calc(var(--ifm-pre-padding) / 2);
|
|
top: calc(var(--ifm-pre-padding) / 2);
|
|
}
|
|
|
|
.buttonGroup button {
|
|
display: flex;
|
|
align-items: center;
|
|
background: var(--prism-background-color);
|
|
color: var(--prism-color);
|
|
border: 1px solid var(--ifm-color-emphasis-300);
|
|
border-radius: var(--ifm-global-radius);
|
|
padding: 0.4rem;
|
|
line-height: 0;
|
|
transition: opacity var(--ifm-transition-fast) ease-in-out;
|
|
opacity: 0;
|
|
}
|
|
|
|
.buttonGroup button:focus-visible,
|
|
.buttonGroup button:hover {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
:global(.theme-code-block:hover) .buttonGroup button {
|
|
opacity: 0.4;
|
|
}
|