All checks were successful
continuous-integration/drone/push Build is passing
- 恢复所有原始rem值(宽度/高度/间距/布局) - 颜色从#E6E8EB改为#1F2937(用户名/标题/文字) - 输入框加8px圆角+1px灰边框+hover/focus效果 - 保存按钮圆角8px+hover悬浮阴影 - 编辑图标hover变蓝 - Tabs下划线美化 - 弹窗圆角12px - 标签颜色#6B7280(灰色更高对比度) - 移除所有卡片容器/Grid/width:100%等会破坏布局的样式
599 lines
11 KiB
CSS
599 lines
11 KiB
CSS
/* ====== Account Page — 简约美化 V4 ====== */
|
||
/* 策略:零布局改动,只改颜色/圆角/阴影 */
|
||
|
||
/* === 页面标题 === */
|
||
.main-card-title {
|
||
font-size: 0.28rem;
|
||
line-height: 0.28rem;
|
||
font-weight: 700;
|
||
color: #1F2937;
|
||
}
|
||
|
||
/* === 内容容器 === */
|
||
.content-box {
|
||
margin-top: 0.4rem;
|
||
}
|
||
|
||
/* === 用户栏 === */
|
||
.box-top {
|
||
height: 1rem;
|
||
width: 100%;
|
||
border-bottom: 1px solid #E5E7EB;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.right-name {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
width: 100%;
|
||
}
|
||
.name-text {
|
||
font-size: 0.32rem;
|
||
font-family: Helvetica;
|
||
font-weight: bold;
|
||
line-height: 0.32rem;
|
||
color: #1F2937 !important;
|
||
}
|
||
.name-country {
|
||
margin-top: 0.1rem;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.country-img {
|
||
height: 0.25rem;
|
||
width: 0.4rem;
|
||
}
|
||
|
||
/* === 实名认证 === */
|
||
.attestation-status {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
cursor: pointer;
|
||
margin-left: 0.04rem;
|
||
}
|
||
.attestation-status > img {
|
||
width: 0.26rem;
|
||
height: 0.26rem;
|
||
}
|
||
.attestation-text {
|
||
cursor: pointer;
|
||
margin-left: 0.1rem;
|
||
font-size: 0.14rem;
|
||
color: #6B7280;
|
||
}
|
||
.bule-text {
|
||
color: var(--color-primary) !important;
|
||
font-weight: 600;
|
||
}
|
||
.bule-text .el-icon-arrow-right {
|
||
margin-left: 0.08rem;
|
||
}
|
||
|
||
/* === 主内容区 === */
|
||
.box-main {
|
||
margin-top: 0.4rem;
|
||
}
|
||
|
||
/* === Popconfirm === */
|
||
.el-popconfirm .el-popconfirm__main {
|
||
margin: 14px 0;
|
||
}
|
||
.el-popconfirm .el-popconfirm__action .el-button {
|
||
display: initial !important;
|
||
}
|
||
|
||
/* === 分组标题 — 美化 === */
|
||
.account-title,
|
||
.basic-title {
|
||
border-left: 3px solid var(--color-primary);
|
||
padding-left: 0.1rem;
|
||
font-size: 0.16rem;
|
||
line-height: 0.16rem;
|
||
font-weight: 600;
|
||
color: #1F2937;
|
||
}
|
||
|
||
/* === 分组区块 — 轻卡片(无 padding 避免压缩布局) === */
|
||
.account {
|
||
margin-top: 0.62rem !important;
|
||
}
|
||
.basic > .el-row,
|
||
.account > .el-row {
|
||
margin-top: 0.43rem;
|
||
}
|
||
.oauth {
|
||
margin-top: 0.62rem;
|
||
}
|
||
.wx-switch {
|
||
margin-top: 0.43rem;
|
||
}
|
||
.oauth-box {
|
||
margin-top: 0.43rem;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
row-gap: 0.43rem;
|
||
}
|
||
|
||
/* === 表单项 === */
|
||
.box-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
font-family: PingFang SC;
|
||
}
|
||
.box-item-t {
|
||
font-size: 0.13rem;
|
||
font-weight: 500;
|
||
height: 0.2rem;
|
||
color: #6B7280;
|
||
margin-bottom: 0.25rem;
|
||
}
|
||
|
||
/* === 输入框 — 圆角边框(保持原始宽度 3.2rem) === */
|
||
.box-item-b > .el-input,
|
||
.box-item-b .el-select,
|
||
.box-item-b .el-textarea {
|
||
width: 3.2rem;
|
||
border: none;
|
||
border-bottom: none;
|
||
}
|
||
.el-textarea .el-textarea__inner {
|
||
padding: 0;
|
||
border: none;
|
||
}
|
||
|
||
/* 核心美化:输入框圆角边框 */
|
||
#account .box-item-b .el-input__inner {
|
||
border: 1px solid #E5E7EB !important;
|
||
border-radius: 8px !important;
|
||
padding: 0 12px;
|
||
background: #FFFFFF !important;
|
||
height: 0.46rem;
|
||
color: #1F2937;
|
||
transition: border-color 200ms, box-shadow 200ms;
|
||
}
|
||
#account .box-item-b .el-input__inner:hover {
|
||
border-color: #D1D5DB !important;
|
||
}
|
||
#account .box-item-b .el-input__inner:focus {
|
||
border-color: var(--color-primary, #4F46E5) !important;
|
||
box-shadow: 0 0 0 3px rgba(79,70,229,0.08) !important;
|
||
outline: none;
|
||
}
|
||
|
||
/* Select 下拉框也要圆角 */
|
||
#account .box-item-b .el-select .el-input__inner {
|
||
border: 1px solid #E5E7EB !important;
|
||
border-radius: 8px !important;
|
||
background: #FFFFFF !important;
|
||
}
|
||
|
||
/* 禁用输入 */
|
||
.el-input.is-disabled .el-input__inner {
|
||
background: #F3F4F6 !important;
|
||
color: #9CA3AF;
|
||
}
|
||
|
||
/* 通用 input 高度 */
|
||
.el-input__inner {
|
||
height: 0.46rem;
|
||
}
|
||
.el-input__suffix {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
/* === 编辑图标 === */
|
||
.edit-icon {
|
||
cursor: pointer;
|
||
padding: 0.15rem;
|
||
color: #9CA3AF;
|
||
transition: color 200ms;
|
||
}
|
||
.edit-icon:hover {
|
||
color: var(--color-primary, #4F46E5);
|
||
}
|
||
|
||
/* Select 前缀 */
|
||
.input-with-select .el-input-group__prepend {
|
||
width: 60px;
|
||
border: none;
|
||
background: #161b22;
|
||
}
|
||
|
||
/* === 保存按钮 — 美化 === */
|
||
.btn-save {
|
||
width: 1.2rem;
|
||
height: 0.4rem;
|
||
margin-top: 0.43rem;
|
||
background: var(--color-primary);
|
||
border-radius: 8px;
|
||
color: #ffffff;
|
||
font-weight: 600;
|
||
font-size: 0.14rem;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 200ms;
|
||
box-shadow: 0 1px 3px rgba(79,70,229,0.2);
|
||
}
|
||
.btn-save:hover {
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 12px rgba(79,70,229,0.3);
|
||
}
|
||
|
||
/* === 弹窗 === */
|
||
#account .el-dialog {
|
||
border-radius: 12px !important;
|
||
overflow: hidden;
|
||
}
|
||
.el-dialog__body {
|
||
padding: 0.3rem 0.8rem;
|
||
font-size: 0.16rem;
|
||
}
|
||
.mian-form {
|
||
margin-top: 0.4rem;
|
||
}
|
||
.input-btn {
|
||
display: flex;
|
||
flex-direction: row;
|
||
}
|
||
.code-btn {
|
||
margin-left: 0.12rem;
|
||
width: 1.3rem;
|
||
background: rgba(79,70,229,0.06);
|
||
border: 1px solid rgba(79,70,229,0.12);
|
||
border-radius: 6px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--color-primary);
|
||
transition: background 200ms;
|
||
}
|
||
.code-btn:hover {
|
||
background: rgba(79,70,229,0.1);
|
||
}
|
||
.select-input {
|
||
width: auto !important;
|
||
min-width: 1.14rem;
|
||
}
|
||
|
||
/* === 搜索栏 === */
|
||
.com-search {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
padding: 0.2rem 0;
|
||
}
|
||
.msg-search {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 0.2rem 0;
|
||
}
|
||
.msgsearch-left {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.msgsearch-left .el-button {
|
||
border-radius: 0.03rem;
|
||
border: 0.01rem solid var(--color-primary);
|
||
color: var(--color-primary);
|
||
font-size: 0.16rem;
|
||
margin-right: 0.1rem;
|
||
}
|
||
.msgsearch-right {
|
||
display: flex;
|
||
}
|
||
.msgsearch-right .el-select {
|
||
width: 2.4rem;
|
||
margin-right: 0.1rem;
|
||
border: none;
|
||
}
|
||
.msgsearch-right .search-btn {
|
||
margin-left: 0.1rem;
|
||
background: var(--color-primary);
|
||
font-size: 0.16rem;
|
||
color: rgba(255, 255, 255, 0.9);
|
||
border-radius: 6px;
|
||
border: none;
|
||
}
|
||
|
||
/* === 链接/消息 === */
|
||
.a-text {
|
||
color: #1F2937;
|
||
}
|
||
.a-text:hover {
|
||
color: var(--color-primary);
|
||
cursor: pointer;
|
||
text-decoration: underline;
|
||
}
|
||
.msg-status {
|
||
margin-right: 0.05rem;
|
||
}
|
||
.is-read {
|
||
color: #9CA3AF;
|
||
}
|
||
.no-read {
|
||
color: var(--color-primary);
|
||
font-weight: 600;
|
||
}
|
||
tr > td {
|
||
padding-left: 20px !important;
|
||
}
|
||
th {
|
||
padding-left: 20px !important;
|
||
}
|
||
|
||
/* === 忘记密码 === */
|
||
.forget-pass {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
line-height: 0.14rem;
|
||
font-size: 0.14rem;
|
||
margin-top: 0.04rem;
|
||
}
|
||
.forget-pass > a {
|
||
color: var(--color-primary);
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* === 修改密码 Tab === */
|
||
.login-top {
|
||
display: flex;
|
||
flex-direction: row;
|
||
margin-top: 0.3rem;
|
||
}
|
||
.login-email,
|
||
.login-phone {
|
||
color: #6B7280;
|
||
cursor: pointer;
|
||
}
|
||
.login-phone {
|
||
margin-left: 0.4rem;
|
||
}
|
||
.active {
|
||
color: var(--color-primary);
|
||
padding-bottom: 0.14rem;
|
||
border-bottom: 2px solid var(--color-primary);
|
||
}
|
||
.form-main {
|
||
margin-top: 0.3rem;
|
||
}
|
||
.form-item {
|
||
margin-top: 0.3rem;
|
||
}
|
||
.code-item {
|
||
display: flex;
|
||
flex-direction: row;
|
||
}
|
||
.rember-item {
|
||
margin-top: 0.2rem;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.rember-item a {
|
||
color: var(--color-primary);
|
||
cursor: pointer;
|
||
}
|
||
.login-btn {
|
||
width: 100%;
|
||
height: 0.46rem;
|
||
background: var(--color-primary);
|
||
}
|
||
.read-item {
|
||
margin-top: 0.2rem;
|
||
}
|
||
.read-item a {
|
||
color: var(--color-primary);
|
||
cursor: pointer;
|
||
}
|
||
.line-item {
|
||
margin-top: 0.4rem;
|
||
}
|
||
.line-item text {
|
||
font-size: 16px;
|
||
color: #1F2937;
|
||
}
|
||
.type-btn {
|
||
width: 100%;
|
||
height: 0.46rem;
|
||
font-size: 0.16rem;
|
||
}
|
||
.code-pass-select {
|
||
width: auto;
|
||
height: 44px;
|
||
border: 1px solid rgba(255,255,255,0.06);
|
||
border-right: none;
|
||
}
|
||
.el-message-box__btns {
|
||
display: flex;
|
||
flex-direction: row-reverse;
|
||
}
|
||
.el-message-box__btns > .el-button {
|
||
display: inline-block;
|
||
margin-left: 10px;
|
||
}
|
||
.mobel {
|
||
display: none;
|
||
}
|
||
|
||
/* === Tabs 美化 === */
|
||
#account .el-tabs__nav-wrap::after {
|
||
height: 1px;
|
||
background: #E5E7EB;
|
||
}
|
||
#account .el-tabs__item {
|
||
font-size: 0.16rem;
|
||
font-weight: 500;
|
||
color: #6B7280;
|
||
transition: color 200ms;
|
||
}
|
||
#account .el-tabs__item:hover {
|
||
color: #374151;
|
||
}
|
||
#account .el-tabs__item.is-active {
|
||
color: #1F2937;
|
||
font-weight: 600;
|
||
}
|
||
#account .el-tabs__active-bar {
|
||
height: 2px;
|
||
border-radius: 2px;
|
||
background: var(--color-primary) !important;
|
||
}
|
||
|
||
/* ====== Responsive ====== */
|
||
@media screen and (max-width: 750px) {
|
||
.main-card-title {
|
||
font-size: 0.48rem;
|
||
}
|
||
.name-text {
|
||
font-size: 0.4rem;
|
||
}
|
||
.basic-title,
|
||
.account-title {
|
||
font-size: 0.36rem;
|
||
font-family: PingFang SC;
|
||
font-weight: 800;
|
||
line-height: 0.36rem;
|
||
color: var(--color-primary);
|
||
border-left: none;
|
||
padding-left: 0;
|
||
}
|
||
.box-item-t {
|
||
font-size: 0.28rem;
|
||
height: 0.28rem;
|
||
}
|
||
.el-row {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.el-col {
|
||
width: 100%;
|
||
}
|
||
.box-item-b > .el-input,
|
||
.box-item-b .el-select,
|
||
.box-item-b .el-textarea {
|
||
width: 100%;
|
||
margin-bottom: 0.4rem;
|
||
}
|
||
.el-input__inner {
|
||
font-size: 0.32rem;
|
||
height: auto;
|
||
}
|
||
.btn-save {
|
||
width: calc(100% - 0.6rem);
|
||
margin: 0 auto;
|
||
margin-top: 0.43rem;
|
||
height: 0.8rem;
|
||
font-size: 0.34rem;
|
||
}
|
||
.code-btn {
|
||
width: auto;
|
||
height: 0.8rem;
|
||
font-size: 0.32rem;
|
||
}
|
||
.dialog-footer {
|
||
flex-direction: column;
|
||
}
|
||
.dialog-footer .btn-ok,
|
||
.dialog-footer .btn-no {
|
||
width: 100%;
|
||
height: 0.8rem;
|
||
font-size: 0.34rem;
|
||
}
|
||
.dialog-footer .btn-no {
|
||
margin-left: 0;
|
||
margin-top: 0.2rem;
|
||
}
|
||
.el-form-item__label {
|
||
font-size: 0.32rem;
|
||
}
|
||
.edit-icon {
|
||
font-size: 0.4rem;
|
||
}
|
||
.dialog-title {
|
||
font-size: 0.36rem;
|
||
}
|
||
.forget-pass {
|
||
font-size: 0.28rem;
|
||
line-height: 0.29rem;
|
||
}
|
||
.content_searchbar .left_tips .tips_item {
|
||
margin-right: 0.1rem;
|
||
}
|
||
.searchbar {
|
||
width: 100%;
|
||
}
|
||
.searchbar .el-input {
|
||
margin-left: 0;
|
||
width: 100% !important;
|
||
}
|
||
.mob-searchbar {
|
||
margin-top: 0.53rem;
|
||
}
|
||
.mob-search-input {
|
||
height: 0.8rem;
|
||
background: rgba(134, 146, 176, 0.1);
|
||
border-radius: 3px 3px 0px 0px;
|
||
}
|
||
.mob-search-input > input {
|
||
height: 0.8rem;
|
||
background: rgba(134, 146, 176, 0.1);
|
||
border-radius: 3px 3px 0px 0px;
|
||
}
|
||
.mob-tabledata {
|
||
display: flex;
|
||
flex-direction: column;
|
||
border: 1px solid #d7d8db;
|
||
border-radius: 0px 0px 3px 3px;
|
||
}
|
||
.mob-tabledata-item {
|
||
height: auto;
|
||
border-bottom: 1px solid #d7d8db;
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 0 0.3rem;
|
||
}
|
||
.mob-item-row {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
margin-top: 0.2rem;
|
||
}
|
||
.mob-item-row1,
|
||
.mob-item-row3,
|
||
.mob-item-row-notes {
|
||
font-size: 0.26rem;
|
||
line-height: 0.27rem;
|
||
color: #8B949E;
|
||
}
|
||
.mob-item-row2-name {
|
||
font-size: 0.32rem;
|
||
line-height: 0.33rem;
|
||
}
|
||
.mob-item-row3 {
|
||
margin-bottom: 0.4rem;
|
||
}
|
||
.back-top-img {
|
||
width: 0.88rem;
|
||
position: fixed;
|
||
right: 0.3rem;
|
||
bottom: 1.17rem;
|
||
}
|
||
.bottom-text {
|
||
font-size: 0.26rem;
|
||
line-height: 0.27rem;
|
||
color: #8B949E;
|
||
margin: 0.4rem 0;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
.basic > .el-row:nth-child(3) {
|
||
margin-top: 0;
|
||
}
|
||
.select-input > .el-input--suffix {
|
||
width: 1.86rem;
|
||
}
|
||
}
|