-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathfields-list.css
More file actions
123 lines (105 loc) · 2.61 KB
/
Copy pathfields-list.css
File metadata and controls
123 lines (105 loc) · 2.61 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
.graphiql-doc-explorer-fields-list {
flex: 1;
overflow: auto;
display: flex;
flex-direction: column;
padding: var(--px-4) 0;
}
/* Section header — "FIELDS · N" */
.graphiql-doc-explorer-fields-list-header {
display: flex;
align-items: center;
gap: var(--px-6);
padding: var(--px-6) var(--px-16) var(--px-4);
background: transparent;
border: none;
cursor: pointer;
color: oklch(var(--fg-subtle));
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
width: 100%;
text-align: left;
& svg {
width: 9px;
height: 9px;
flex-shrink: 0;
}
&:hover {
color: oklch(var(--fg-muted));
}
&:focus-visible {
outline: 2px solid oklch(var(--accent-blue));
outline-offset: -2px;
}
}
.graphiql-doc-explorer-fields-list-count {
color: oklch(var(--fg-dim));
font-weight: 500;
}
.graphiql-doc-explorer-fields-list-body {
display: flex;
flex-direction: column;
}
/* Individual field row */
.graphiql-doc-explorer-field-row {
display: flex;
flex-direction: column;
gap: var(--px-4);
padding: 5px var(--px-12) 5px var(--px-24);
background: transparent;
border: none;
border-left: 2px solid transparent;
cursor: pointer;
text-align: left;
width: 100%;
transition: background var(--transition-fast);
&:hover {
background: oklch(var(--bg-subtle));
}
&:focus-visible {
outline: 2px solid oklch(var(--accent-blue));
outline-offset: -2px;
}
}
/* Active row — blue accent, reserved for the selected field */
.graphiql-doc-explorer-field-row--active {
background: oklch(var(--accent-blue) / 0.08);
border-left-color: oklch(var(--accent-blue));
margin-left: -2px;
&:hover {
background: oklch(var(--accent-blue) / 0.12);
}
}
.graphiql-doc-explorer-field-row--deprecated {
opacity: 0.6;
}
/* Signature line: name : type */
.graphiql-doc-explorer-field-row-sig {
display: flex;
align-items: baseline;
gap: var(--px-6);
font-family: var(--font-family-mono);
font-size: 12px;
}
.graphiql-doc-explorer-field-row-name {
color: oklch(var(--accent-green-light));
}
.graphiql-doc-explorer-field-row-colon {
color: oklch(var(--fg-disabled));
}
/* The type-name anchor colors itself by category (see type-link.css); this
wrapper only styles the surrounding list/non-null punctuation ([, ], !). */
.graphiql-doc-explorer-field-row-type {
color: oklch(var(--fg-default));
}
/* Optional description */
.graphiql-doc-explorer-field-row-desc {
font-size: 11px;
color: oklch(var(--fg-subtle));
line-height: 15px;
}
.graphiql-doc-explorer-fields-list-show-deprecated {
margin: var(--px-8) var(--px-16);
}