功能:适配前端宽屏桌面布局
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
--text-secondary: #999999;
|
||||
--border-radius-base: 10px;
|
||||
--border-radius-large: 30px;
|
||||
--frontend-page-max-width: 480px;
|
||||
--admin-content-max-width: 1440px;
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -21,6 +23,7 @@ body {
|
||||
}
|
||||
|
||||
.mobile-container {
|
||||
width: 100%;
|
||||
max-width: 375px;
|
||||
margin: 0 auto;
|
||||
min-height: 100vh;
|
||||
@@ -28,3 +31,9 @@ body {
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.mobile-container {
|
||||
max-width: var(--frontend-page-max-width);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user