fix: 顶栏圆形按钮水平对齐+国旗完整显示
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- header-right: flex + align-items:center + gap:12px - 所有按钮: min-width/min-height:36px + box-sizing - 国旗: overflow:visible, 24x18矩形圆角, 不再被裁切 - margin全部归零, 由gap统一控制间距
This commit is contained in:
@@ -141,11 +141,26 @@ html, body {
|
|||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ============ 顶栏右侧 — 统一对齐 ============ */
|
||||||
|
.header-right {
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
gap: 12px !important;
|
||||||
|
margin-right: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right .header-right-item {
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* ============ 顶栏右侧按钮 — 纯圆形 ============ */
|
/* ============ 顶栏右侧按钮 — 纯圆形 ============ */
|
||||||
/* 购物车按钮 */
|
/* 购物车按钮 */
|
||||||
.header-right .header-right-item .right-item {
|
.header-right .header-right-item .right-item {
|
||||||
width: 36px !important;
|
width: 36px !important;
|
||||||
height: 36px !important;
|
height: 36px !important;
|
||||||
|
min-width: 36px !important;
|
||||||
|
min-height: 36px !important;
|
||||||
background: rgba(255, 255, 255, 0.55) !important;
|
background: rgba(255, 255, 255, 0.55) !important;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.8) !important;
|
border: 1px solid rgba(255, 255, 255, 0.8) !important;
|
||||||
border-radius: 50% !important;
|
border-radius: 50% !important;
|
||||||
@@ -157,6 +172,7 @@ html, body {
|
|||||||
-webkit-backdrop-filter: blur(8px) !important;
|
-webkit-backdrop-filter: blur(8px) !important;
|
||||||
transition: all 0.2s ease !important;
|
transition: all 0.2s ease !important;
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
|
box-sizing: border-box !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-right .header-right-item .right-item:hover {
|
.header-right .header-right-item .right-item:hover {
|
||||||
@@ -168,6 +184,8 @@ html, body {
|
|||||||
.header-right .header-right-item .el-dropdown-country {
|
.header-right .header-right-item .el-dropdown-country {
|
||||||
width: 36px !important;
|
width: 36px !important;
|
||||||
height: 36px !important;
|
height: 36px !important;
|
||||||
|
min-width: 36px !important;
|
||||||
|
min-height: 36px !important;
|
||||||
background: rgba(255, 255, 255, 0.55) !important;
|
background: rgba(255, 255, 255, 0.55) !important;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.8) !important;
|
border: 1px solid rgba(255, 255, 255, 0.8) !important;
|
||||||
border-radius: 50% !important;
|
border-radius: 50% !important;
|
||||||
@@ -178,7 +196,8 @@ html, body {
|
|||||||
backdrop-filter: blur(8px) !important;
|
backdrop-filter: blur(8px) !important;
|
||||||
-webkit-backdrop-filter: blur(8px) !important;
|
-webkit-backdrop-filter: blur(8px) !important;
|
||||||
transition: all 0.2s ease !important;
|
transition: all 0.2s ease !important;
|
||||||
overflow: hidden !important;
|
overflow: visible !important;
|
||||||
|
box-sizing: border-box !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-right .header-right-item .el-dropdown-country:hover {
|
.header-right .header-right-item .el-dropdown-country:hover {
|
||||||
@@ -186,15 +205,16 @@ html, body {
|
|||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 国旗图标 */
|
/* 国旗图标 — 完整显示 */
|
||||||
.header-right .header-right-item .el-dropdown-country img {
|
.header-right .header-right-item .el-dropdown-country img {
|
||||||
width: 20px !important;
|
width: 24px !important;
|
||||||
height: 20px !important;
|
height: 18px !important;
|
||||||
border-radius: 50% !important;
|
border-radius: 3px !important;
|
||||||
object-fit: cover !important;
|
object-fit: cover !important;
|
||||||
|
flex-shrink: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 隐藏国旗下拉箭头(纯圆形内不需要箭头) */
|
/* 隐藏国旗下拉箭头 */
|
||||||
.header-right .header-right-item .el-dropdown-country .right-icon {
|
.header-right .header-right-item .el-dropdown-country .right-icon {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
@@ -203,6 +223,8 @@ html, body {
|
|||||||
.header-right .header-right-item .el-dropdown-header {
|
.header-right .header-right-item .el-dropdown-header {
|
||||||
width: 36px !important;
|
width: 36px !important;
|
||||||
height: 36px !important;
|
height: 36px !important;
|
||||||
|
min-width: 36px !important;
|
||||||
|
min-height: 36px !important;
|
||||||
background: rgba(255, 255, 255, 0.55) !important;
|
background: rgba(255, 255, 255, 0.55) !important;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.8) !important;
|
border: 1px solid rgba(255, 255, 255, 0.8) !important;
|
||||||
border-radius: 50% !important;
|
border-radius: 50% !important;
|
||||||
@@ -214,6 +236,7 @@ html, body {
|
|||||||
-webkit-backdrop-filter: blur(8px) !important;
|
-webkit-backdrop-filter: blur(8px) !important;
|
||||||
transition: all 0.2s ease !important;
|
transition: all 0.2s ease !important;
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
|
box-sizing: border-box !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-right .header-right-item .el-dropdown-header:hover {
|
.header-right .header-right-item .el-dropdown-header:hover {
|
||||||
@@ -241,14 +264,15 @@ html, body {
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 按钮间距统一 */
|
/* 按钮间距统一(由 gap: 12px 控制) */
|
||||||
.header-right .car-item {
|
.header-right .car-item {
|
||||||
margin-right: 12px !important;
|
margin-right: 0 !important;
|
||||||
|
margin-left: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-right .cloum-line-item {
|
.header-right .cloum-line-item {
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
margin-right: 12px !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ali-logo {
|
.ali-logo {
|
||||||
|
|||||||
Reference in New Issue
Block a user