mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-10 03:57:32 +08:00
fix: 优化一些头像属性
This commit is contained in:
@@ -102,6 +102,19 @@ function onError() {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: var(--avatar-placeholder-color, #f0f0f0);
|
background-color: var(--avatar-placeholder-color, #f0f0f0);
|
||||||
|
/* 先用box-sizing: border-box,保证加border后宽高不变,圆形不变形 */
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: 1.5px solid var(--normal-border-color);
|
||||||
|
transition: all 0.6s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.base-user-avatar:hover {
|
||||||
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.base-user-avatar:active {
|
||||||
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.base-user-avatar.is-rounded {
|
.base-user-avatar.is-rounded {
|
||||||
|
|||||||
Reference in New Issue
Block a user