approve css change
This commit is contained in:
43
Html/apps/static/css/chatbox_approve_icon.css
Normal file
43
Html/apps/static/css/chatbox_approve_icon.css
Normal file
@@ -0,0 +1,43 @@
|
||||
/* 外层消息气泡 */
|
||||
.chat-message.server-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 > 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;
|
||||
}
|
||||
|
||||
/* 鼠标悬停时改变按钮颜色 */
|
||||
.approve-button:hover {
|
||||
background-color: #45a049;
|
||||
transform: scale(1.1); /* 略微放大 */
|
||||
}
|
||||
|
||||
/* 按钮禁用后的样式 */
|
||||
.approve-button.disabled {
|
||||
background-color: gray;
|
||||
color: white;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user