Skip to content

Commit

Permalink
feat: reconcile global border radiuses
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinperaza committed Dec 19, 2022
1 parent 2fbeede commit 69581b0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/shared/Card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
display: flex;
padding: 24px;
box-shadow: var(--ifm-global-shadow-lw);
border-radius: 8px;
border-radius: var(--ifm-global-radius);
background: var(--background-color);
transition: all var(--ifm-transition-slow);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Version.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.version {
background: rgba(0, 164, 186, 0.15);
border-radius: 4px;
border-radius: var(--ifm-global-radius);
padding: 3px 8px;
gap: 4px;
font-weight: 500;
Expand Down
2 changes: 1 addition & 1 deletion src/css/code-block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
}
& code {
border: 1px solid transparent;
border-radius: var(--ifm-code-border-radius);
border-radius: var(--ifm-global-radius);
}
}
2 changes: 1 addition & 1 deletion src/css/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
gap: 24px;
background: var(--bt-sidebar-background-color);
border: 1px solid var(--bt-default-border-color);
border-radius: 8px;
border-radius: var(--ifm-global-radius);

& div {
margin: 0 !important;
Expand Down
3 changes: 1 addition & 2 deletions src/css/ifm-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
--ifm-color-primary-lightest: #00d5f2;
--ifm-code-font-size: 95%;
--ifm-navbar-height: 72px;
--ifm-global-radius: 8px;
--ifm-global-radius: 4px;
--ifm-menu-link-sublist-icon: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.46967 14.5303C7.17678 14.2374 7.17678 13.7626 7.46967 13.4697L11.4697 9.46967C11.7626 9.17678 12.2374 9.17678 12.5303 9.46967L16.5303 13.4697C16.8232 13.7626 16.8232 14.2374 16.5303 14.5303C16.2374 14.8232 15.7626 14.8232 15.4697 14.5303L12 11.0607L8.53033 14.5303C8.23744 14.8232 7.76256 14.8232 7.46967 14.5303Z' fill='%238C90A4' /%3E%3C/svg%3E");

--docusaurus-highlighted-code-line-bg: rgba(83, 131, 255, 0.15);
Expand All @@ -21,7 +21,6 @@
0px 4px 6px -1px rgba(7, 10, 27, 0.05), inset 0px 0px 0px 1px #d1d7ff;
--ifm-code-padding-vertical: 2px;
--ifm-code-padding-horizontal: 4px;
--ifm-code-border-radius: 8px;
--ifm-navbar-shadow: none;
--ifm-navbar-link-color: #8c90a4;

Expand Down
7 changes: 3 additions & 4 deletions src/css/tabs.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* tabs */

div:has(> .bt-tabs) {
--ifm-code-border-radius: 8px;
border-radius: 8px;
border-radius: var(--ifm-global-radius);
background-color: var(--bt-sidebar-background-color);
}

.bt-tabs {
border-radius: 8px 8px 0 0;
border-radius: var(--ifm-global-radius) var(--ifm-global-radius) 0 0;
border-top: 1px solid var(--bt-tabs-border-color);
border-left: 1px solid var(--bt-tabs-border-color);
border-right: 1px solid var(--bt-tabs-border-color);
Expand All @@ -21,7 +20,7 @@ div:has(> .bt-tabs) {
}

& + div .theme-code-block {
border-radius: 0 0 8px 8px !important;
border-radius: 0 0 var(--ifm-global-radius) var(--ifm-global-radius) !important;
}

& > .tabs__item[aria-selected="true"] {
Expand Down

1 comment on commit 69581b0

@vercel
Copy link

@vercel vercel bot commented on 69581b0 Dec 19, 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.