Skip to content

Commit fccd59c

Browse files
committed
refactor(theme-default): put styles of code blocks together
1 parent 2c5e5c1 commit fccd59c

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

packages/@vuepress/theme-default/src/styles/code.styl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,13 @@ for lang in $codeLang {
149149
}
150150
}
151151
}
152+
153+
// narrow mobile
154+
@media (max-width: $MQMobileNarrow) {
155+
{$contentClass} {
156+
div[class*='language-'] {
157+
margin: 0.85rem -1.5rem;
158+
border-radius: 0;
159+
}
160+
}
161+
}

packages/@vuepress/theme-default/src/styles/layout.styl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,4 @@ h1, h2, h3, h4, h5, h6 {
168168
h1 {
169169
font-size: 1.9rem;
170170
}
171-
172-
{$contentClass} {
173-
div[class*='language-'] {
174-
margin: 0.85rem -1.5rem;
175-
border-radius: 0;
176-
}
177-
}
178171
}

0 commit comments

Comments
 (0)