48 lines
1.1 KiB
CSS
48 lines
1.1 KiB
CSS
/* 外层消息气泡 */
|
|
.chat-message.server-message.approve-message {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
padding: 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
/* 左边描述部分 */
|
|
.chat-message.server-message.approve-message > div {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
/* 右边批准按钮 */
|
|
.approve-button {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
border: none;
|
|
flex-shrink: 0; /* 保证按钮不被压缩 */
|
|
transition: background-color 0.3s ease, transform 0.2s ease;
|
|
|
|
/* Flexbox 居中对勾 */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
/* 鼠标悬停时改变按钮颜色 */
|
|
.approve-button:hover {
|
|
background-color: #45a049;
|
|
transform: scale(1.1); /* 略微放大 */
|
|
}
|
|
|
|
/* 按钮禁用后的样式 */
|
|
.approve-button.disabled {
|
|
background-color: gray;
|
|
color: white;
|
|
cursor: not-allowed;
|
|
}
|
|
|