修复边框问题
This commit is contained in:
@@ -172,7 +172,7 @@
|
||||
.quote-line {
|
||||
width: 2px;
|
||||
height: 14px;
|
||||
background: rgba(120, 120, 128, 0.12);
|
||||
background: rgba(120, 120, 128, 0.2);
|
||||
border-radius: 7px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -194,7 +194,7 @@
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 4px 8px;
|
||||
background: rgba(120, 120, 128, 0.12);
|
||||
background: rgba(120, 120, 128, 0.2);
|
||||
border-radius: 20px;
|
||||
width: fit-content;
|
||||
margin-top: 4px;
|
||||
|
||||
@@ -154,18 +154,36 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 4px 16px;
|
||||
border: 0.5px solid #000000;
|
||||
border-radius: 20px;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
background: transparent;
|
||||
|
||||
// 使用伪元素实现真正的 0.5px 边框
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
border: 1px solid #000000;
|
||||
border-radius: 40px; // 20px * 2
|
||||
transform: scale(0.5);
|
||||
transform-origin: 0 0;
|
||||
pointer-events: none;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&:active {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
&.mutual {
|
||||
border-color: rgba(120, 120, 128, 0.12);
|
||||
background: transparent;
|
||||
&::before {
|
||||
border-color: rgba(120, 120, 128, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.button-text {
|
||||
@@ -174,6 +192,8 @@
|
||||
font-size: 12px;
|
||||
line-height: 1.33;
|
||||
color: #000000;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&.mutual .button-text {
|
||||
|
||||
Reference in New Issue
Block a user