Skip to content

Commit 1ed18c0

Browse files
antlioemmerich
andauthored
Adds missing css variables (#2558)
Co-authored-by: Steven H <steven@gitbook.io>
1 parent ca134c8 commit 1ed18c0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/tough-gifts-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
style: adds missing scalar css variables

packages/gitbook/src/components/DocumentView/OpenAPI/scalar.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);
5858
--scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px, rgba(0, 0, 0, 0.08) 0px 3px 8px 0px,
5959
#eeeeed 0px 0 0 1px;
60+
61+
--scalar-selection-background: rgba(96, 175, 255, 0.4);
62+
--scalar-selection-color: rgb(var(--dark-base, 22 22 22));
6063
}
6164
.dark .scalar-modal-layout,
6265
.dark .scalar-app,
@@ -114,6 +117,9 @@
114117
--scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);
115118
--scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px, rgba(15, 15, 15, 0.4) 0px 9px 24px,
116119
0 0 0 1px rgba(255, 255, 255, 0.1);
120+
121+
--scalar-selection-background: rgba(96, 175, 255, 0.4);
122+
--scalar-selection-color: rgb(var(--light-base, 255 255 255));
117123
}
118124
.scalar-modal-layout,
119125
.scalar-app,

0 commit comments

Comments
 (0)