Skip to content

Commit 19e958f

Browse files
authored
fix(ui): render code blocks without outlines (#4278)
Code blocks now render as a single panel instead of per-line outlines. Fixes #4273
1 parent 19a320d commit 19e958f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

gcp/website/frontend3/src/styles.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,15 @@ md-icon-button.mdc-data-table__sort-icon-button {
682682
box-shadow: 0 0 2px white;
683683
}
684684

685+
pre code {
686+
display: block;
687+
background: none;
688+
padding: 0;
689+
margin: 0;
690+
border-radius: 0;
691+
box-shadow: none;
692+
}
693+
685694
@media (max-width: $osv-mobile-breakpoint) {
686695
.title {
687696
font-size: $osv-heading-size-mobile;
@@ -1756,6 +1765,15 @@ div.highlight {
17561765
box-shadow: 0 0 2px white;
17571766
}
17581767

1768+
pre code {
1769+
display: block;
1770+
background: none;
1771+
padding: 0;
1772+
margin: 0;
1773+
border-radius: 0;
1774+
box-shadow: none;
1775+
}
1776+
17591777
img {
17601778
border-radius: $osv-border-radius-small;
17611779
box-shadow: 0 0 3px white;

0 commit comments

Comments
 (0)