Skip to content

Commit 2c72ac4

Browse files
committed
styles tweaks and fixes
1 parent 0148669 commit 2c72ac4

1 file changed

Lines changed: 30 additions & 11 deletions

File tree

website/src/css/customTheme.scss

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@
2323
--docs-rating-background: #64d7ff33;
2424

2525
--doc-sidebar-width: 266px !important;
26-
--docsearch-container-background: rgba(32, 35, 42, 0.6);
2726
--rn-note-background: rgba(255, 229, 100, 0.25);
2827

28+
--docsearch-container-background: rgba(32, 35, 42, 0.6);
29+
--docsearch-key-shadow:
30+
inset 0 -2px 0 0 var(--ifm-hr-border-color), inset 0 0 1px 1px #fff,
31+
0 1px 2px 1px rgba(30, 35, 90, 0.3);
32+
2933
--ifm-font-family-base:
3034
"Optimistic Display", system-ui, -apple-system, sans-serif;
3135
--ifm-font-family-monospace:
@@ -132,8 +136,8 @@ html[data-theme="dark"] {
132136
--docsearch-footer-background: var(--dark);
133137
--docsearch-key-gradient: var(--deepdark);
134138
--docsearch-key-shadow:
135-
inset 0 -2px 0 0 var(--light), inset 0 0 1px 1px var(--light),
136-
0 1px 2px 1px var(--ifm-table-border-color);
139+
inset 0 -2px 0 0 var(--dark), inset 0 0 1px 1px var(--light),
140+
0 2px 2px 0 rgba(3, 4, 9, 0.3);
137141
--docsearch-container-background: rgba(0, 0, 0, 0.6);
138142

139143
--logo: #58c4dc;
@@ -289,6 +293,19 @@ hr {
289293
vertical-align: initial;
290294
}
291295

296+
kbd {
297+
border: 0;
298+
top: -1px;
299+
margin: 0 2px;
300+
position: relative;
301+
padding: 0.2rem 0.3rem;
302+
background: none;
303+
box-shadow: var(--docsearch-key-shadow);
304+
display: inline-block;
305+
text-align: center;
306+
min-width: 24px;
307+
}
308+
292309
blockquote {
293310
> :last-child {
294311
margin-bottom: 0;
@@ -511,7 +528,7 @@ html[data-theme="dark"] .hash-link {
511528
article .badge {
512529
font-weight: 500;
513530
border-radius: 16px;
514-
margin-bottom: 4px;
531+
margin-bottom: 6px;
515532
}
516533

517534
html[data-theme="dark"] article .badge {
@@ -527,7 +544,7 @@ html[data-theme="dark"] article .badge {
527544
font-size: var(--ifm-blockquote-font-size);
528545
margin-bottom: var(--ifm-paragraph-margin-bottom);
529546
padding: 28px;
530-
border-radius: 20px;
547+
border-radius: var(--ifm-alert-border-radius);
531548
border: 1px solid var(--ifm-alert-background-color-highlight);
532549
box-shadow: none;
533550

@@ -611,7 +628,7 @@ html[data-theme="dark"] .homepage {
611628
font-size: 15px;
612629
line-height: var(--ifm-pre-line-height);
613630
text-align: center;
614-
border-radius: 20px;
631+
border-radius: var(--ifm-alert-border-radius);
615632

616633
a {
617634
color: var(--ifm-font-color-base) !important;
@@ -845,6 +862,7 @@ a[class*="tagRegular"] {
845862
.DocSearch-Button-Key {
846863
font-size: 12px;
847864
font-weight: 600;
865+
background: none;
848866
}
849867

850868
.DocSearch-Button-Keys {
@@ -1192,6 +1210,7 @@ html[data-theme="dark"] .menu {
11921210
div[class^="tableOfContents"] {
11931211
min-width: 100%;
11941212
width: 100%;
1213+
top: calc(var(--ifm-navbar-height) + 34px);
11951214
}
11961215

11971216
.table-of-contents__left-border {
@@ -1222,7 +1241,7 @@ div[class^="tableOfContents"] {
12221241
height: 6px;
12231242
border-radius: 100%;
12241243
left: -2px;
1225-
top: 11px;
1244+
top: 10px;
12261245
white-space: nowrap;
12271246
overflow: hidden;
12281247
color: transparent;
@@ -1231,7 +1250,7 @@ div[class^="tableOfContents"] {
12311250
&.required {
12321251
position: absolute;
12331252
left: -2px;
1234-
top: 11px;
1253+
top: 10px;
12351254
background: #fa5035;
12361255
}
12371256

@@ -1536,7 +1555,7 @@ div[class*="announcementBarContent"] {
15361555
margin-bottom: 2em;
15371556
position: relative;
15381557
overflow: hidden;
1539-
width: calc(100%);
1558+
width: 100%;
15401559
color: var(--dark);
15411560
border-radius: var(--ifm-alert-border-radius);
15421561
}
@@ -1694,6 +1713,7 @@ td .color-box {
16941713
color: #fa5035;
16951714
border-color: #fa5035;
16961715
border-radius: 32px;
1716+
font-weight: 600;
16971717
}
16981718
}
16991719

@@ -1747,7 +1767,6 @@ td .label {
17471767

17481768
&.required {
17491769
margin-left: 6px;
1750-
letter-spacing: 0.02rem;
17511770
padding: 0 6px;
17521771
border-width: 1px;
17531772
margin-right: 0;
@@ -1891,7 +1910,7 @@ html[data-theme="dark"] .component {
18911910
color: var(--ifm-link-color);
18921911
line-height: 32px;
18931912
font-weight: 500;
1894-
border-radius: 20px;
1913+
border-radius: var(--ifm-alert-border-radius);
18951914

18961915
svg {
18971916
height: 1.5em;

0 commit comments

Comments
 (0)