优化样式

This commit is contained in:
2024-02-22 09:28:47 +08:00
parent ce464185b2
commit d427261737
3 changed files with 91 additions and 17 deletions

View File

@@ -1108,26 +1108,28 @@
margin-bottom: 6px; margin-bottom: 6px;
} }
.ul-descriptions-form {
width: 100%;
}
.ul-descriptions-form .item { .ul-descriptions-form .item {
float: left; float: left;
width: 50%; width: calc(50% - 20px);
box-sizing: border-box;
padding: 10px;
} }
.ul-descriptions-form .item .label { .ul-descriptions-form .item .label {
font-size: 13px; font-size: 13px;
color: #999; color: #999;
margin-bottom: 6px; padding: 10px;
} }
.ul-descriptions-form .item .value { .ul-descriptions-form .item .value {
font-size: 14px; font-size: 14px;
color: #333; color: #333;
padding: 10px;
} }
.ul-descriptions-form .item.full-line { .ul-descriptions-form .item.full-line {
width: 100%; width: 100%;
} }
.ul-descriptions-form .item.poster .poster-item { .ul-descriptions-form .item.poster .poster-item {
height: 80px; height: 55px;
} }
.ul-descriptions-form .item .article-item { .ul-descriptions-form .item .article-item {
color: #666; color: #666;
@@ -1135,23 +1137,47 @@
word-wrap: break-word; word-wrap: break-word;
} }
.ul-descriptions-form.border { .ul-descriptions-form.border {
width: calc(100% - 2px);
border: 1px solid #e8e8e8; border: 1px solid #e8e8e8;
border-right: 0;
border-bottom: 0;
} }
.ul-descriptions-form.border .item { .ul-descriptions-form.border .item {
border: 1px solid #e8e8e8; border: 1px solid #e8e8e8;
width: 50%;
border-top: 0;
border-left: 0;
margin-top: -1px;
margin-left: -1px;
} }
.ul-descriptions-form.space-between .item { .ul-descriptions-form.border .item.full-line {
display: flex; width: 100%;
} }
.ul-descriptions-form.space-between .item .label { .ul-descriptions-form.space-between .item .label {
width: 80px; width: 80px;
text-align: right; text-align: right;
margin-right: 10px; margin-right: 10px;
white-space: nowrap; white-space: nowrap;
flex-shrink: 0; float: left;
} }
.ul-descriptions-form.space-between .item .value { .ul-descriptions-form.space-between .item .value {
margin-left: 5px; margin-left: 5px;
float: left;
}
.ul-descriptions-form.space-between .item.full-line .label {
width: calc(100% - 20px);
text-align: center;
margin-right: 0;
}
.ul-descriptions-form.space-between .item.full-line .value {
margin-left: 0;
}
.ul-descriptions-form.space-between.border .item .label {
border-right: 1px solid #e8e8e8;
}
.ul-descriptions-form.space-between.border .item.full-line .label {
border-right: 0;
border-bottom: 1px solid #e8e8e8;
} }
.ul-descriptions-form::after { .ul-descriptions-form::after {
content: ""; content: "";

File diff suppressed because one or more lines are too long

View File

@@ -1,20 +1,24 @@
.ul-descriptions-form { .ul-descriptions-form {
width: 100%;
.item { .item {
float: left; float: left;
width: 50%; width: calc(50% - 20px);
box-sizing: border-box;
padding: 10px;
.label { .label {
font-size: 13px; font-size: 13px;
color: #999; color: #999;
margin-bottom: 6px; padding: 10px;
} }
.value { .value {
font-size: 14px; font-size: 14px;
color: #333; color: #333;
padding: 10px;
} }
&.full-line { &.full-line {
@@ -23,7 +27,7 @@
&.poster { &.poster {
.poster-item { .poster-item {
height: 80px; height: 55px;
} }
} }
@@ -40,27 +44,71 @@
&.border { &.border {
.item { .item {
border: 1px solid #e8e8e8;
}
border: 1px solid #e8e8e8; border: 1px solid #e8e8e8;
width: 50%;
border-top: 0;
border-left: 0;
margin-top: -1px;
margin-left: -1px;
&.full-line {
width: 100%;
}
}
width: calc(100% - 2px);
border: 1px solid #e8e8e8;
border-right: 0;
border-bottom: 0;
} }
// 左右排列 // 左右排列
&.space-between { &.space-between {
.item { .item {
display: flex;
.label { .label {
width: 80px; width: 80px;
text-align: right; text-align: right;
margin-right: 10px; margin-right: 10px;
white-space: nowrap; white-space: nowrap;
flex-shrink: 0; float: left;
} }
.value { .value {
margin-left: 5px; margin-left: 5px;
float: left;
}
&.full-line {
.label {
width: calc(100% - 20px);
text-align: center;
margin-right: 0;
}
.value {
margin-left: 0;
}
}
}
}
&.space-between.border {
.item {
.label {
border-right: 1px solid #e8e8e8;
}
&.full-line {
.label {
border-right: 0;
border-bottom: 1px solid #e8e8e8;
}
} }
} }