File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
packages/graphiql-react/src/style Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @graphiql/react " : patch
3+ " graphiql " : patch
4+ ---
5+
6+ style: improve scrollbar styling on the query editor
Original file line number Diff line number Diff line change @@ -146,3 +146,31 @@ body.graphiql-dark [data-radix-popper-content-wrapper] {
146146 }
147147 }
148148}
149+
150+ /* Transparent scrollbars, without backgrounds */
151+ .graphiql-container .CodeMirror-hscrollbar ,
152+ .graphiql-container .CodeMirror-vscrollbar {
153+ scrollbar-color : # 88888888 transparent;
154+ }
155+
156+ /* The little square between H and V scrollbars */
157+ .graphiql-container .CodeMirror-scrollbar-filler ,
158+ .graphiql-container .CodeMirror-gutter-filler {
159+ background-color : transparent;
160+ }
161+
162+ /* Safari scrollbars */
163+ .graphiql-container .CodeMirror-hscrollbar ::-webkit-scrollbar-track ,
164+ .graphiql-container .CodeMirror-vscrollbar ::-webkit-scrollbar-track ,
165+ .graphiql-container .CodeMirror-hscrollbar ::-webkit-scrollbar ,
166+ .graphiql-container .CodeMirror-vscrollbar ::-webkit-scrollbar {
167+ background-color : transparent;
168+ }
169+
170+ .graphiql-container .CodeMirror-hscrollbar ::-webkit-scrollbar-thumb ,
171+ .graphiql-container .CodeMirror-vscrollbar ::-webkit-scrollbar-thumb {
172+ border-radius : 99px ;
173+ padding : 3px ;
174+ box-shadow : inset 0 0 99px 99px # 88888888 ;
175+ border : solid 3px transparent;
176+ }
You can’t perform that action at this time.
0 commit comments