mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-26 08:19:15 +08:00
style(@vant/cli): fix site style in small screen (#9661)
This commit is contained in:
parent
81cb078396
commit
e901c9cd9e
@ -24,6 +24,4 @@
|
|||||||
|
|
||||||
// simulator
|
// simulator
|
||||||
@van-doc-simulator-width: 360px;
|
@van-doc-simulator-width: 360px;
|
||||||
@van-doc-simulator-small-width: 320px;
|
|
||||||
@van-doc-simulator-height: 620px;
|
@van-doc-simulator-height: 620px;
|
||||||
@van-doc-simulator-small-height: 560px;
|
|
||||||
|
@ -27,6 +27,10 @@ export default {
|
|||||||
|
|
||||||
&--with-simulator {
|
&--with-simulator {
|
||||||
padding-right: @van-doc-simulator-width + @van-doc-padding;
|
padding-right: @van-doc-simulator-width + @van-doc-padding;
|
||||||
|
|
||||||
|
@media (max-width: 1100px) {
|
||||||
|
padding-right: @van-doc-simulator-width - 8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -166,8 +166,6 @@ export function getViteConfigForSiteProd(): InlineConfig {
|
|||||||
outDir,
|
outDir,
|
||||||
brotliSize: false,
|
brotliSize: false,
|
||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
// reduce small CSS files
|
|
||||||
cssCodeSplit: false,
|
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: {
|
input: {
|
||||||
main: join(SITE_SRC_DIR, 'index.html'),
|
main: join(SITE_SRC_DIR, 'index.html'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user