Skip to content

Commit 900bdcd

Browse files
committed
Fix CSS responsiveness with PrismJS code snippets
1 parent 43636e7 commit 900bdcd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

public/css/index.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ blockquote {
128128
}
129129

130130
.content-wrapper {
131-
display: grid;
132-
grid-auto-flow: column;
133-
grid-template-columns: auto min-content;
134-
margin-left: auto;
135-
margin-right: auto;
131+
display: flex;
132+
margin: 0 auto;
133+
width: 100%;
136134
max-width: 70em;
137135
}
138136

139137
main {
138+
flex: 1;
139+
overflow: auto;
140140
padding-left: 0.5rem;
141141
padding-right: 0.5rem;
142142
color: var(--text-color);
@@ -156,7 +156,6 @@ aside {
156156
pre,
157157
code {
158158
font-family: var(--font-family-monospace);
159-
white-space: break-spaces !important;
160159
}
161160

162161
pre:not([class*="language-"]),

0 commit comments

Comments
 (0)