Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛高分屏目录间距过宽 #465

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions source/css/_mixins/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,26 @@ ground-glass($px, $bg-color, $alpha)
@supports not ((-webkit-backdrop-filter: blur($px)) or (backdrop-filter: blur($px)))
&
background rgb(convert($bg-color))

/* iPad Pro 会显示目录
* 4K 等高分屏情况下目录过宽等问题
*/
@media (min-width: 2000px)
.col-lg-2
-ms-flex: 1.1;
flex: 1.1;
max-width: 100%;
.col-lg-8
-ms-flex: 2;
flex: 2;
max-width: 66.666667%;
/* iPad Pro 为 1024
* 这是针对 iPad Pro 而设置的
* 这里的 col-lg-2 权重会大于 d-lg-block
*/
@media (width: 1024px)
.col-lg-8
flex: 1
max-width: 100%;
.col-lg-2
display: none !important;