File size: 6,695 Bytes
9697ede
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

[data-component="line-comment-v2"] {
  box-sizing: border-box;
  font-family: var(--v2-font-family-sans);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  width: 100%;
  max-width: 400px;
}

[data-component="line-comment-v2"] *,
[data-component="line-comment-v2"] *::before,
[data-component="line-comment-v2"] *::after {
  box-sizing: border-box;
}

[data-component="line-comment-v2"] [data-slot="line-comment-v2-shell"] {
  background: var(--v2-background-bg-layer-01);
  border-radius: 6px;
  box-shadow: var(--v2-elevation-raised);
}

/* --- Display (read) --- */
[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-shell"] {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 12px;
  gap: 8px;
}

[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-column"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-text"] {
  margin: 0;
  width: 100%;
  font-size: 13px;
  font-style: normal;
  font-weight: 440;
  line-height: 1;
  letter-spacing: -0.04px;
  color: var(--v2-text-text-base);
  font-variation-settings: "slnt" 0;
}

[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-meta"] {
  font-size: 11px;
  font-style: normal;
  font-weight: 530;
  line-height: 1;
  letter-spacing: 0.05px;
  color: var(--v2-text-text-faint);
  font-variation-settings: "slnt" 0;
}

[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-tools"] {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-shrink: 0;
}

[data-slot="line-comment-v2-overflow"] {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  padding: 2px;
  gap: 3px;
  margin: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--v2-icon-icon-muted);
  cursor: pointer;
  outline: none;
}

[data-slot="line-comment-v2-overflow"]:focus {
  outline: none;
}

[data-slot="line-comment-v2-overflow"]:focus-visible {
  outline: 2px solid var(--v2-border-border-focus);
  outline-offset: 2px;
}

[data-slot="line-comment-v2-overflow"]:is(:hover, [data-state="hover"]) {
  background-color: var(--v2-overlay-simple-overlay-hover);
}

[data-slot="line-comment-v2-overflow"]:is(:active, [data-state="pressed"]) {
  background-color: var(--v2-overlay-simple-overlay-pressed);
}

[data-slot="line-comment-v2-overflow"] svg {
  display: block;
  flex-shrink: 0;
}

/* --- Editor --- */
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-shell"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  gap: 12px;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-field"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-label"] {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  font-size: 13px;
  font-style: normal;
  font-weight: 530;
  line-height: 1;
  letter-spacing: -0.04px;
  color: var(--v2-text-text-base);
  user-select: none;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-textarea"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 80px;
  padding: 8px;
  margin: 0;
  resize: vertical;
  border: 1px solid var(--v2-border-border-base);
  border-radius: 6px;
  background:
    linear-gradient(180deg, var(--v2-alpha-light-2) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
  font-size: 13px;
  font-style: normal;
  font-weight: 440;
  line-height: 1.35;
  letter-spacing: -0.04px;
  color: var(--v2-text-text-base);
  font-variation-settings: "slnt" 0;
  outline: none;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-textarea"]::placeholder {
  color: var(--v2-text-text-faint);
  user-select: none;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-textarea"]:focus {
  border-color: var(--v2-border-border-focus);
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-footer"] {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-footer-meta"] {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  font-style: normal;
  font-weight: 530;
  line-height: 1;
  letter-spacing: 0.05px;
  color: var(--v2-text-text-faint);
  font-variation-settings: "slnt" 0;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-footer-actions"] {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-list"] {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow: auto;
  margin-top: 8px;
  padding: 4px;
  border: 0.5px solid var(--v2-border-border-muted);
  border-radius: 6px;
  background: var(--v2-background-bg-layer-02);
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-item"] {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--v2-text-text-base);
  text-align: start;
  cursor: pointer;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-item"][data-active] {
  background: var(--v2-background-bg-layer-03);
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-path"] {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 12px;
  line-height: 16px;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-dir"] {
  min-width: 0;
  color: var(--v2-text-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-file"] {
  color: var(--v2-text-text-base);
  white-space: nowrap;
}