优化样式

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

@@ -1,20 +1,24 @@
.ul-descriptions-form {
width: 100%;
.item {
float: left;
width: 50%;
box-sizing: border-box;
padding: 10px;
width: calc(50% - 20px);
.label {
font-size: 13px;
color: #999;
margin-bottom: 6px;
padding: 10px;
}
.value {
font-size: 14px;
color: #333;
padding: 10px;
}
&.full-line {
@@ -23,7 +27,7 @@
&.poster {
.poster-item {
height: 80px;
height: 55px;
}
}
@@ -38,29 +42,73 @@
// 增加边框
&.border {
.item {
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 {
.item {
display: flex;
.label {
width: 80px;
text-align: right;
margin-right: 10px;
white-space: nowrap;
flex-shrink: 0;
float: left;
}
.value {
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;
}
}
}