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

fix: 更新编辑按钮在分离时的样式 #41

Merged
merged 1 commit into from
Nov 5, 2024
Merged
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
39 changes: 31 additions & 8 deletions src/SkinCitizen_CSS/modules/pages-style-repair.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@
width: 100%;
max-width: 400px;
}
.buttom-media() {
#p-views {
.citizen-ve-edit-merged#ca-edit,
.citizen-ve-edit-merged#ca-ve-edit {
> a {
border-radius: var(--border-radius--medium);
}
}
.citizen-ve-edit-merged#ca-edit {
border-left: initial;
}
}
}

// 全局 fieldset
fieldset {
Expand All @@ -18,15 +31,25 @@ fieldset {

// 修复可视化和源代码编辑在移动端上两个按钮分离导致样式突兀的问题
@media (min-width: 300px) and (max-width: 345px) {
#p-views {
.citizen-ve-edit-merged#ca-edit {
> a {
border-radius: var(--border-radius--medium);
.buttom-media();
}
ZoruaFox marked this conversation as resolved.
Show resolved Hide resolved
body[class*='page-User'] {
@media (min-width: 348px) and (max-width: 393px) {
.buttom-media();
}

@media (min-width: 300px) and (max-width: 345px) {
#p-views {
.citizen-ve-edit-merged#ca-edit {
border-left: 1px solid var(--color-primary--hover);
> a {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
}
}
.citizen-ve-edit-merged#ca-ve-edit {
> a {
border-radius: var(--border-radius--medium);
.citizen-ve-edit-merged#ca-ve-edit > a {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
}
}
Expand Down