Skip to content

Commit f2f09b2

Browse files
authored
Remove nested css for ui-server (#2767)
1 parent b5410aa commit f2f09b2

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

server/server/route/ui.go

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,11 @@ func SetRenderRoute(e *echo.Echo, publicPath string) {
265265
border-left-color: #92a4c3;
266266
background: #e8efff;
267267
color: #121416;
268-
p {
269-
font-size: 1.25rem;
270-
line-height: 1.75rem;
271-
}
268+
}
269+
270+
blockquote p {
271+
font-size: 1.25rem;
272+
line-height: 1.75rem;
272273
}
273274
274275
code {
@@ -288,26 +289,29 @@ func SetRenderRoute(e *echo.Echo, publicPath string) {
288289
border-radius: 0.25rem;
289290
background: #e8efff;
290291
color: #121416;
291-
code {
292-
padding: 0;
293-
}
292+
}
293+
294+
pre code {
295+
padding: 0;
294296
}
295297
296298
body[data-theme='light'] {
297299
background-color: #fff;
298300
color: #121416;
299-
a {
300-
color: #444ce7;
301-
}
301+
}
302+
303+
body[data-theme='light'] a {
304+
color: #444ce7;
302305
}
303306
304307
body[data-theme='dark'] {
305308
background-color: #141414;
306309
color: #f8fafc;
307-
a {
310+
}
311+
312+
body[data-theme='dark'] a {
308313
color: #8098f9;
309-
}
310-
}`,
314+
}`,
311315
}
312316

313317
// Set headers

0 commit comments

Comments
 (0)