-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathroot.css
More file actions
144 lines (127 loc) · 3.76 KB
/
root.css
File metadata and controls
144 lines (127 loc) · 3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
@import 'auto-insertion.css';
@import 'editor.css';
/* a very simple box-model reset, intentionally does not include pseudo elements */
.graphiql-container * {
box-sizing: border-box;
font-variant-ligatures: none;
}
.graphiql-container,
.graphiql-dialog,
.graphiql-dialog-overlay,
.graphiql-tooltip,
[data-radix-popper-content-wrapper] {
/* Colors */
--color-primary: 320, 95%, 43%;
--color-secondary: 242, 51%, 61%;
--color-tertiary: 188, 100%, 36%;
--color-info: 208, 100%, 46%;
--color-success: 158, 60%, 42%;
--color-warning: 36, 100%, 41%;
--color-error: 13, 93%, 58%;
--color-neutral: 219, 28%, 32%;
--color-base: 219, 28%, 100%;
/* Color alpha values */
--alpha-secondary: 0.76;
--alpha-tertiary: 0.5;
--alpha-background-heavy: 0.15;
--alpha-background-medium: 0.1;
--alpha-background-light: 0.07;
/* Font */
--font-family: 'Roboto', sans-serif;
--font-family-mono: 'Fira Code', monospace;
--font-size-hint: calc(12rem / 16);
--font-size-inline-code: calc(13rem / 16);
--font-size-body: calc(15rem / 16);
--font-size-h4: calc(18rem / 16);
--font-size-h3: calc(22rem / 16);
--font-size-h2: calc(29rem / 16);
--font-weight-regular: 400;
--font-weight-medium: 500;
--line-height: 1.5;
/* Spacing */
--px-2: 2px;
--px-4: 4px;
--px-6: 6px;
--px-8: 8px;
--px-10: 10px;
--px-12: 12px;
--px-16: 16px;
--px-20: 20px;
--px-24: 24px;
/* Border radius */
--border-radius-2: 2px;
--border-radius-4: 4px;
--border-radius-8: 8px;
--border-radius-12: 12px;
/* Popover styles (tooltip, dialog, etc) */
--popover-box-shadow:
0px 6px 20px rgba(59, 76, 106, 0.13),
0px 1.34018px 4.46726px rgba(59, 76, 106, 0.0774939),
0px 0.399006px 1.33002px rgba(59, 76, 106, 0.0525061);
--popover-border: none;
/* Layout */
--sidebar-width: 60px;
--toolbar-width: 40px;
--session-header-height: 38.5px;
}
@media (prefers-color-scheme: dark) {
body:not(.graphiql-light) .graphiql-container,
body:not(.graphiql-light) .graphiql-dialog,
body:not(.graphiql-light) .graphiql-dialog-overlay,
body:not(.graphiql-light) .graphiql-tooltip,
body:not(.graphiql-light) [data-radix-popper-content-wrapper] {
--color-primary: 338, 100%, 67%;
--color-secondary: 243, 100%, 77%;
--color-tertiary: 188, 100%, 44%;
--color-info: 208, 100%, 72%;
--color-success: 158, 100%, 42%;
--color-warning: 30, 100%, 80%;
--color-error: 13, 100%, 58%;
--color-neutral: 219, 29%, 78%;
--color-base: 219, 29%, 18%;
--popover-box-shadow: none;
--popover-border: 1px solid hsl(var(--color-neutral));
}
}
body.graphiql-dark .graphiql-container,
body.graphiql-dark .graphiql-dialog,
body.graphiql-dark .graphiql-dialog-overlay,
body.graphiql-dark .graphiql-tooltip,
body.graphiql-dark [data-radix-popper-content-wrapper] {
--color-primary: 338, 100%, 67%;
--color-secondary: 243, 100%, 77%;
--color-tertiary: 188, 100%, 44%;
--color-info: 208, 100%, 72%;
--color-success: 158, 100%, 42%;
--color-warning: 30, 100%, 80%;
--color-error: 13, 100%, 58%;
--color-neutral: 219, 29%, 78%;
--color-base: 219, 29%, 18%;
--popover-box-shadow: none;
--popover-border: 1px solid hsl(var(--color-neutral));
}
.graphiql-container,
.graphiql-dialog {
&,
&:is(button) {
color: hsl(var(--color-neutral));
font-family: var(--font-family);
font-size: var(--font-size-body);
font-weight: var(--font-weight-regular);
line-height: var(--line-height);
}
& input {
color: hsl(var(--color-neutral));
font-family: var(--font-family);
font-size: var(--font-size-caption);
&::placeholder {
color: hsla(var(--color-neutral), var(--alpha-secondary));
}
}
& a {
color: hsl(var(--color-primary));
&:focus {
outline: hsl(var(--color-primary)) auto 1px;
}
}
}