refine premium webui command bar

This commit is contained in:
Your Name committed 2026-06-01 15:39:10 +08:00
1 parent a0bfb70b34
commit 6df926eabd
1 file changed
+110 -26
+110 -26
View File
@@ -1013,7 +1013,8 @@ body {
display: flex;
flex: 1 1 auto;
justify-content: flex-end;
gap: 6px;
align-items: center;
gap: 8px;
margin-top: 0;
}
@@ -1021,7 +1022,8 @@ body {
.secondaryActions {
display: flex;
grid-template-columns: none;
gap: 7px;
align-items: center;
gap: 6px;
min-width: 0;
}
@@ -1031,31 +1033,52 @@ body {
}
.header .btn {
min-height: 32px;
padding: 0 9px;
border-radius: 7px;
min-height: 34px;
padding: 0 12px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
white-space: nowrap;
}
.header .btnPrimary {
border-color: #dedffb;
color: #574ce7;
background: #f5f4ff;
box-shadow: none;
border-color: #111827;
color: #ffffff;
background: #070b13;
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.header .btnDanger,
.header .btnDangerSoft,
.header .btnSoft,
.header .btnGhost {
border-color: #e5e8f0;
border-color: #d9dee9;
color: #475467;
background: #ffffff;
box-shadow: none;
}
.header .btnDanger,
.header .btnDangerSoft,
.header .btnSoft,
.header .btnGhost,
.header .btnIconOnly {
width: 34px;
min-width: 34px;
padding: 0;
overflow: hidden;
font-size: 0;
gap: 0;
}
.header .btnDanger .btnIcon,
.header .btnDangerSoft .btnIcon,
.header .btnSoft .btnIcon,
.header .btnGhost .btnIcon,
.header .btnIconOnly .btnIcon {
margin: 0;
}
.header .btnIcon {
width: 14px;
height: 14px;
@@ -2187,8 +2210,8 @@ body {
.header {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
padding: 10px;
gap: 7px;
padding: 8px 10px;
border-radius: 8px;
}
@@ -2199,13 +2222,13 @@ body {
}
.brandMark {
flex-basis: 34px;
width: 34px;
height: 34px;
flex-basis: 32px;
width: 32px;
height: 32px;
}
.title {
font-size: 20px;
font-size: 19px;
font-weight: 800;
}
@@ -2220,32 +2243,82 @@ body {
.header-actions {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
grid-template-columns: 1fr auto;
align-items: center;
gap: 7px;
margin-top: 0;
}
.primaryActions,
.secondaryActions {
.primaryActions {
display: grid;
grid-auto-flow: row;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
}
.secondaryActions {
display: grid;
grid-template-columns: repeat(3, 34px);
gap: 6px;
justify-content: end;
}
.header .btn {
min-height: 34px;
min-height: 32px;
padding: 0 8px;
font-size: 13px;
font-size: 12px;
border-radius: 8px;
}
.header .btnIcon {
width: 15px;
height: 15px;
width: 14px;
height: 14px;
}
.header .btnSoft,
.header .btnGhost,
.header .btnIconOnly {
width: 34px;
min-width: 34px;
min-height: 32px;
padding: 0;
overflow: hidden;
font-size: 0;
gap: 0;
}
.header .btnSoft .btnIcon,
.header .btnGhost .btnIcon,
.header .btnIconOnly .btnIcon {
margin: 0;
}
#btnLoad,
#btnSave,
#btnTheme {
width: auto;
width: 34px;
min-width: 34px;
min-height: 32px;
height: 32px;
padding: 0;
grid-column: auto;
}
#btnLoad::after,
#btnSave::after {
display: none;
}
.secondaryActions #btnSave {
color: #ffffff;
border-color: #070b13;
background: #070b13;
font-size: 0;
gap: 0;
}
.secondaryActions #btnSave .btnIcon {
margin: 0;
}
.overview {
@@ -2521,11 +2594,22 @@ body {
}
@media (max-width: 430px) {
.actionGroup,
.actionGroup:not(.secondaryActions),
.btnGroup {
grid-template-columns: 1fr 1fr;
}
.secondaryActions {
grid-template-columns: repeat(3, 34px);
}
.secondaryActions #btnSave {
width: 34px;
min-width: 34px;
min-height: 32px;
grid-column: auto;
}
.overview {
grid-template-columns: 1fr;
}