Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2fa970ef
authored
Apr 08, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(adapt): 添加横屏和竖屏适配样式文件
1 parent
b603a744
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
0 deletions
apps/uniappX/uniapp-x-tape/adapt/landscape/1080/login.scss
apps/uniappX/uniapp-x-tape/adapt/landscape/1920/boutique-index.scss
apps/uniappX/uniapp-x-tape/adapt/landscape/1920/login.scss
apps/uniappX/uniapp-x-tape/adapt/portrait/1080/login.scss
apps/uniappX/uniapp-x-tape/adapt/portrait/1920/login.scss
apps/uniappX/uniapp-x-tape/adapt/landscape/1080/login.scss
0 → 100644
View file @
2fa970e
/* 登录选择账号页 横屏 1080 档位适配
* 通过 LayoutRoot 上的 .mode-landscape.res-1080 类控制,仅在横屏 1080 档时生效。
*/
.mode-landscape.res-1080
{
/* 示例:可根据登录页设计调整根容器
* .page-container {
* padding: 0 var(--l-spacing-lg);
* }
*/
}
apps/uniappX/uniapp-x-tape/adapt/landscape/1920/boutique-index.scss
0 → 100644
View file @
2fa970e
/* 精品页 横屏 1920 档位适配(预留) */
.mode-landscape.res-1920
{
/* 示例:后续可在此定义 1920 档变量 */
}
apps/uniappX/uniapp-x-tape/adapt/landscape/1920/login.scss
0 → 100644
View file @
2fa970e
/* 登录选择账号页 横屏 1920 档位适配
* 大屏(如 1920 宽度)下,可在此增加更宽松的留白和布局。
*/
.mode-landscape.res-1920
{
/* 示例:后续按实际设计稿补充
* .page-container {
* max-width: 1600px;
* margin: 0 auto;
* }
*/
}
apps/uniappX/uniapp-x-tape/adapt/portrait/1080/login.scss
0 → 100644
View file @
2fa970e
/* 登录页 竖屏 1080 档位适配(如 360 x 800 等宽度归为 1080 档)
* 通过 .login-page 避免影响其他页面;仅在手机竖屏时生效。
*/
.mode-portrait.res-1080
.login-page
{
.layout
{
justify-content
:
flex-start
;
align-items
:
stretch
;
padding
:
32px
24px
;
}
.login
{
align-items
:
stretch
;
margin-top
:
16px
;
max-width
:
320px
;
margin-left
:
auto
;
margin-right
:
auto
;
}
.login
.title
{
font-size
:
28px
;
margin-bottom
:
12px
;
}
.login
.sub-title
{
font-size
:
14px
;
margin
:
12px
0
20px
;
}
.login
.input
{
width
:
100%
;
height
:
48px
;
border-radius
:
24px
;
margin-bottom
:
16px
;
}
.login
.btn
{
width
:
100%
;
height
:
48px
;
margin-top
:
8px
;
font-size
:
18px
;
}
.form-footer
{
padding-left
:
0
;
margin-top
:
16px
;
}
.app-code
{
bottom
:
12px
;
/* 手机端登录页 APP 编码:完全使用固定像素,不参与变量缩放 */
font-size
:
10px
!
important
;
line-height
:
14px
;
left
:
50%
;
transform
:
translateX
(
-50%
)
scale
(
0
.85
);
}
}
apps/uniappX/uniapp-x-tape/adapt/portrait/1920/login.scss
0 → 100644
View file @
2fa970e
/* 登录选择账号页 竖屏 1920 档位适配(预留)
* 如后续有竖屏大屏设备需求,可在此补充。
*/
.mode-portrait.res-1920
{
/* 预留占位,不影响现有布局 */
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment