Skip to content

Commit

Permalink
Update styles for terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
JessSaavedra committed Feb 9, 2024
1 parent c933035 commit 4a1ff95
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
25 changes: 17 additions & 8 deletions docs/docusaurus/src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,19 @@
}
}

.theme-code-block pre code {
background-color: #373F58;
border-top-left-radius: 0;
border-top-right-radius: 0;
font-size: var(--p-md-font-size);
}

div.codeBlockTitle_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-Content-styles-module {
border-bottom: none;

& + div pre code {
background-color: #373F58;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
color: #FAFAFA;
font-size: var(--p-md-font-size);
opacity: 0.75;
text-transform: capitalize;

& + div {
position: static;
Expand All @@ -124,12 +129,16 @@ div.codeBlockTitle_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-C
top: calc(var(--ifm-pre-padding) / 2);

&:hover {
opacity: 1;
opacity: 0.75;
}

button {
border: none;
opacity: 1;
opacity: 0.75;

svg path {
fill: #FAFAFA;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/docusaurus/src/theme/CodeBlock/theme.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const codeBlockTheme = {
plain: {
color: "#FAFAFA",
color: "#9CDCFE",
backgroundColor: "#292F43"
},
styles: [{
Expand Down

0 comments on commit 4a1ff95

Please sign in to comment.