Skip to content

Commit be954bd

Browse files
authored
Improvements to borders and copy buttons (#2023)
* Refactor border-radius styles to use CSS variable for consistency * Update tooltip styles to use CSS variable for border-radius and enable overflow * Add border-radius to inline code elements for improved styling * Increase backdrop blur effect on copy button for enhanced visibility
1 parent 0dccae1 commit be954bd

File tree

9 files changed

+19
-11
lines changed

9 files changed

+19
-11
lines changed

assets/css/autocomplete.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
.autocomplete-suggestions {
109109
background-color: var(--autocompleteBackground);
110-
border-radius: 8px;
110+
border-radius: var(--borderRadius);
111111
box-shadow: 0px 15px 99px 0px var(--autocompleteBorder);
112112
overflow-y: auto;
113113
max-height: 450px;
@@ -168,7 +168,7 @@
168168
align-items: center;
169169
text-decoration: none;
170170
border: 1px solid var(--suggestionBorder);
171-
border-radius: 8px;
171+
border-radius: var(--borderRadius);
172172
transition: color .3s ease-in-out;
173173
background-color: var(--autocompletePreview);
174174
cursor: pointer;

assets/css/content/admonition.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.content-inner section.admonition {
2-
border-radius: 10px;
2+
border-radius: var(--borderRadius);
33
border-left: 0;
44
}
55

assets/css/content/code.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@
1212
.content-inner code {
1313
background-color: var(--codeBackground);
1414
vertical-align: baseline;
15-
border-radius: 2px;
15+
border-radius: var(--borderRadius);
1616
padding: .1em .2em;
1717
border: 1px solid var(--codeBorder);
1818
text-transform: none;
1919
}
2020

21+
.content-inner code.inline {
22+
border-radius: 4px;
23+
}
24+
2125
.content-inner pre {
2226
margin: var(--baseLineHeight) 0;
2327
}
@@ -26,7 +30,7 @@
2630
display: block;
2731
overflow-x: auto;
2832
white-space: inherit;
29-
padding: .5em 1em;
33+
padding: 1em;
3034
scrollbar-width: thin;
3135
}
3236

assets/css/copy-button.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ pre .copy-button:focus {
1414
top: 5px;
1515
right: 5px;
1616
padding: 4px;
17-
background-color: var(--codeBackground);
17+
background-color: transparent;
18+
backdrop-filter: blur(4px);
19+
border-radius: var(--borderRadius);
1820
border: none;
1921
cursor: pointer;
2022
transition: all 150ms;

assets/css/custom-props/common.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* Layout & Whitespace */
33
--content-width: 949px;
44
--content-gutter: 60px;
5-
--borderRadius: 4px;
5+
--borderRadius: 8px;
66
--navTabBorderWidth: 4px;
77

88
/* Font Families */

assets/css/search-bar.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
.search-bar {
1919
border: 1px solid var(--searchBarBorder);
20-
border-radius: 8px;
20+
border-radius: var(--borderRadius);
2121
height: 48px;
2222
position: relative;
2323
width: 100%;
@@ -26,7 +26,7 @@
2626
.top-search .search-bar .search-input {
2727
background-color: var(--searchSearch);
2828
border: 1px solid transparent;
29-
border-radius: 8px;
29+
border-radius: var(--borderRadius);
3030
color: var(--searchAccentMain);
3131
position: relative;
3232
height: 46px;

assets/css/settings.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
background-color: var(--settingsInputBackground);
1515
color: var(--settingsInput);
1616
border: 1px solid var(--settingsInputBorder);
17-
border-radius: 8px;
17+
border-radius: var(--borderRadius);
1818
transition: border-color 150ms;
1919
}
2020
#settings-modal-content .input:focus {

assets/css/toast.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
padding: .7rem 1.2rem;
1010
text-align: center;
1111
font-weight: 700;
12-
border-radius: 10px;
12+
border-radius: var(--borderRadius);
1313
border: 1px solid var(--codeBorder);
1414
background-color: var(--codeBackground);
1515
color: var(--textBody);

assets/css/tooltips.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ as it has absolute positioning, so doesn't impact the layout and click events pa
2929

3030
.tooltip .tooltip-body {
3131
border: 1px solid var(--codeBorder);
32+
border-radius: var(--borderRadius);
33+
overflow: auto;
3234
}
3335

3436
.tooltip .tooltip-body .signature {

0 commit comments

Comments
 (0)