Skip to content

Commit

Permalink
feat: add styles for <code>
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinperaza committed Dec 7, 2022
1 parent 6ab6df4 commit fc4d340
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

--ifm-font-color-base: #606376;

--ifm-code-border-radius: 4px;
--ifm-code-padding-vertical: 2px;
--ifm-code-padding-horizontal: 4px;

--ifm-font-family-base: Inter, ui-sans-serif, system-ui, -apple-system,
BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
Expand Down Expand Up @@ -123,10 +127,6 @@ p {

/* TODO: h4-h6 */

code {
font-family: var(--bt-code-font-family);
}

/*
* Sidebar items hover/selected states
*/
Expand All @@ -153,3 +153,9 @@ code {
.theme-doc-sidebar-item-category > .menu__list-item-collapsible--active:hover {
background: var(--bt-menu-color-background-active-hover);
}

code {
border: 1px solid rgba(0, 0, 0, 0.1);
font-family: "Source Code Pro";
font-weight: 500;
}

1 comment on commit fc4d340

@vercel
Copy link

@vercel vercel bot commented on fc4d340 Dec 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.