137 lines
2.3 KiB
CSS
137 lines
2.3 KiB
CSS
/**
|
|
* App 用户管理页。
|
|
* 窄窗口下的重点是两件事:筛选控件换行而不是被挤出可视区;长昵称在单元格里截断而不是撑破表格。
|
|
*/
|
|
|
|
.app-user-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.app-user-toolbar .app-user-keyword {
|
|
flex: 1 1 240px;
|
|
min-width: 200px;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.app-user-toolbar .app-user-status,
|
|
.app-user-toolbar .app-user-country {
|
|
width: 150px;
|
|
flex: 0 0 150px;
|
|
}
|
|
|
|
.app-user-count {
|
|
margin-left: auto;
|
|
color: #858b95;
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* 用户单元格:头像固定宽度,文字块 min-width:0 才能让省略号生效 */
|
|
.app-user-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.app-user-avatar {
|
|
display: grid;
|
|
place-content: center;
|
|
flex: 0 0 34px;
|
|
width: 34px;
|
|
height: 34px;
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
background: #6f7cf0;
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
}
|
|
|
|
.app-user-avatar img,
|
|
.app-user-avatar .app-user-avatar-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.app-user-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.app-user-name,
|
|
.app-user-uid {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.app-user-name {
|
|
color: #302d44;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.app-user-uid {
|
|
color: #9a97a8;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.app-user-mono {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* 详情抽屉 */
|
|
.app-user-drawer .el-drawer__header {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.app-user-summary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 4px 0 16px;
|
|
border-bottom: 1px solid #f0eef4;
|
|
}
|
|
|
|
.app-user-summary .app-user-name {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.app-user-section {
|
|
padding-top: 16px;
|
|
}
|
|
|
|
.app-user-section-title {
|
|
margin: 0 0 8px;
|
|
color: #302d44;
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
/* 抽屉内的表格:内容多时由 .el-drawer__body 统一滚动,这里不再套一层滚动条 */
|
|
.app-user-drawer .el-table {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.app-user-drawer .el-table .el-table__cell {
|
|
padding: 6px 0;
|
|
}
|
|
|
|
html.dark .app-user-name,
|
|
html.dark .app-user-section-title {
|
|
color: #e8e6ef;
|
|
}
|
|
|
|
html.dark .app-user-summary {
|
|
border-bottom-color: #2c2c37;
|
|
}
|