Skip to content

Commit

Permalink
Refactor CSS rules for code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
JessSaavedra committed Mar 1, 2024
1 parent b4686a6 commit b4e1d12
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/docusaurus/src/css/code_block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,29 @@ div.theme-code-block {
& + div {
position: static;
}
}

// Button group
& + div > div {
top: calc(var(--ifm-pre-padding) / 2);
&.language-bash div:not(:only-child):first-child::before{
background: url('/img/terminal-input-icon.svg') 0 50% no-repeat;
width: 1.25em;
}

&:hover {
opacity: 0.75 !important;
}
// Button group
.prism-code + div:has(button) {
top: calc(var(--ifm-pre-padding) / 2);

button {
background: transparent;
border: none;
opacity: 0.75 !important;
&:hover {
opacity: 0.75 !important;
}

svg path {
fill: var(--code-snippets-title-color);
}
button {
background: transparent;
border: none;
opacity: 0.75 !important;

svg path {
fill: var(--code-snippets-title-color);
}
}
}

&.language-bash div:not(:only-child):first-child::before{
background: url('/img/terminal-input-icon.svg') 0 50% no-repeat;
width: 1.25em;
}
}

0 comments on commit b4e1d12

Please sign in to comment.