Skip to content

Commit

Permalink
fix(v2): make code block nicer (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun authored Apr 2, 2020
1 parent eeebc31 commit 63997a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
}

.codeBlockTitle {
border-top-left-radius: var(--ifm-pre-border-radius);
border-top-right-radius: var(--ifm-pre-border-radius);
font-family: var(--ifm-font-family-monospace);
font-weight: bold;
padding: 4px 12px;
border-bottom: 1px solid;
padding: var(--ifm-pre-padding);
border-bottom: 1px solid var(--ifm-color-emphasis-200);
width: 100%;
}

Expand All @@ -31,10 +30,10 @@
}

.copyButton {
background: rgb(1, 22, 39);
border: 1px solid rgb(214, 222, 235);
background: rgba(0, 0, 0, 0.3);
border: none;
border-radius: var(--ifm-global-radius);
color: rgb(214, 222, 235);
color: var(--ifm-color-content);
cursor: pointer;
line-height: 12px;
opacity: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
}

.codeBlockTitle {
border-top-left-radius: var(--ifm-pre-border-radius);
border-top-right-radius: var(--ifm-pre-border-radius);
font-family: var(--ifm-font-family-monospace);
font-weight: bold;
padding: 4px 12px;
border-bottom: 1px solid;
padding: var(--ifm-pre-padding);
border-bottom: 1px solid var(--ifm-color-emphasis-200);
width: 100%;
}

Expand All @@ -28,10 +27,10 @@
}

.copyButton {
background: rgb(1, 22, 39);
border: 1px solid rgb(214, 222, 235);
background: rgba(0, 0, 0, 0.3);
border: none;
border-radius: var(--ifm-global-radius);
color: rgb(214, 222, 235);
color: var(--ifm-color-content);
cursor: pointer;
line-height: 12px;
opacity: 0;
Expand Down

0 comments on commit 63997a4

Please sign in to comment.