style(@vant/cli): fix site style in small screen (#9661)

This commit is contained in:
neverland 2021-10-12 10:02:34 +08:00 committed by GitHub
parent 81cb078396
commit e901c9cd9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -24,6 +24,4 @@
// simulator
@van-doc-simulator-width: 360px;
@van-doc-simulator-small-width: 320px;
@van-doc-simulator-height: 620px;
@van-doc-simulator-small-height: 560px;

View File

@ -27,6 +27,10 @@ export default {
&--with-simulator {
padding-right: @van-doc-simulator-width + @van-doc-padding;
@media (max-width: 1100px) {
padding-right: @van-doc-simulator-width - 8px;
}
}
}
</style>

View File

@ -166,8 +166,6 @@ export function getViteConfigForSiteProd(): InlineConfig {
outDir,
brotliSize: false,
emptyOutDir: true,
// reduce small CSS files
cssCodeSplit: false,
rollupOptions: {
input: {
main: join(SITE_SRC_DIR, 'index.html'),