|
|
@@ -1,31 +1,23 @@
|
|
|
-// ═══════════════════════════════════════
|
|
|
-// 拟态深色 — 顶部导航栏
|
|
|
-// ═══════════════════════════════════════
|
|
|
-
|
|
|
-$g-bg: #F8F9FA;
|
|
|
-$g-light: #F1F3F5;
|
|
|
-$g-mid: #E9ECEF;
|
|
|
-$g-text: #868E96;
|
|
|
-$g-dark: #343A40;
|
|
|
-$g-black: #1E1E20;
|
|
|
-
|
|
|
-// 深色拟态阴影色
|
|
|
-$h-surface: #2a2a2d;
|
|
|
-$h-light: rgba(255,255,255,0.06);
|
|
|
-$h-dark: rgba(0,0,0,0.4);
|
|
|
+$g-bg: #fafafa;
|
|
|
+$g-light: #f4f4f5;
|
|
|
+$g-mid: #e5e5e5;
|
|
|
+$g-text: #737373;
|
|
|
+$g-dark: #171717;
|
|
|
+$g-black: #171717;
|
|
|
+$h-surface: #ffffff;
|
|
|
+$h-light: rgba(255, 255, 255, 0.9);
|
|
|
+$h-dark: rgba(15, 23, 42, 0.04);
|
|
|
|
|
|
.app-header {
|
|
|
height: 56px;
|
|
|
- background: $g-black;
|
|
|
- background-image: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(0,0,0,0.1));
|
|
|
+ background: $g-bg;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- padding: 0 20px;
|
|
|
- color: $g-light;
|
|
|
- box-shadow:
|
|
|
- 0 2px 6px rgba(0,0,0,0.25),
|
|
|
- inset 0 1px 0 rgba(255,255,255,0.05);
|
|
|
+ padding: 0 16px;
|
|
|
+ color: #334155;
|
|
|
+ border-bottom: 1px solid $g-mid;
|
|
|
+ box-shadow: none;
|
|
|
position: relative;
|
|
|
z-index: 1001;
|
|
|
}
|
|
|
@@ -33,45 +25,48 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
.header-left {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- gap: 16px;
|
|
|
+ gap: 12px;
|
|
|
+ min-width: 216px;
|
|
|
}
|
|
|
|
|
|
.brand-title {
|
|
|
margin: 0;
|
|
|
- font-size: 17px;
|
|
|
+ font-size: 15px;
|
|
|
font-weight: 600;
|
|
|
- letter-spacing: 0.3px;
|
|
|
- color: $g-light;
|
|
|
+ letter-spacing: 0;
|
|
|
+ color: $g-dark;
|
|
|
}
|
|
|
|
|
|
.collapse-toggle {
|
|
|
- background: $h-surface;
|
|
|
- border: none;
|
|
|
+ background: #ffffff;
|
|
|
+ border: 1px solid $g-mid;
|
|
|
color: $g-text;
|
|
|
cursor: pointer;
|
|
|
- width: 28px;
|
|
|
- height: 28px;
|
|
|
- border-radius: 6px;
|
|
|
+ width: 34px;
|
|
|
+ height: 34px;
|
|
|
+ border-radius: 8px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- box-shadow:
|
|
|
- 2px 2px 4px $h-dark,
|
|
|
- -2px -2px 4px $h-light;
|
|
|
- transition: box-shadow 0.25s ease, color 0.25s ease, transform 0.15s ease;
|
|
|
+ box-shadow: none;
|
|
|
+ transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
|
|
|
|
|
|
&:hover {
|
|
|
- box-shadow:
|
|
|
- 1px 1px 3px $h-dark,
|
|
|
- -1px -1px 3px $h-light;
|
|
|
- color: $g-light;
|
|
|
+ border-color: #d1d5db;
|
|
|
+ background: $g-light;
|
|
|
+ color: $g-dark;
|
|
|
+ box-shadow: none;
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
- box-shadow:
|
|
|
- inset 2px 2px 4px $h-dark,
|
|
|
- inset -2px -2px 4px $h-light;
|
|
|
- transform: scale(0.96);
|
|
|
+ background: #f1f5f9;
|
|
|
+ box-shadow: none;
|
|
|
+ transform: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:focus-visible {
|
|
|
+ outline: none;
|
|
|
+ box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.2);
|
|
|
}
|
|
|
|
|
|
.toggle-icon {
|
|
|
@@ -88,45 +83,37 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// ─── 全局搜索 ───
|
|
|
-
|
|
|
.header-search {
|
|
|
flex: 1;
|
|
|
- max-width: 520px;
|
|
|
- margin: 0 32px;
|
|
|
+ max-width: 560px;
|
|
|
+ margin: 0 clamp(16px, 4vw, 56px);
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- background: rgba(0,0,0,0.18);
|
|
|
+ background: #f4f4f5;
|
|
|
border-radius: 10px;
|
|
|
- padding: 0 14px;
|
|
|
- height: 38px;
|
|
|
- border: 1px solid rgba(255,255,255,0.06);
|
|
|
- box-shadow:
|
|
|
- inset 2px 2px 6px rgba(0,0,0,0.4),
|
|
|
- inset -2px -2px 6px rgba(255,255,255,0.03),
|
|
|
- 0 1px 0 rgba(255,255,255,0.04);
|
|
|
- transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
|
|
|
+ padding: 0 12px;
|
|
|
+ height: 36px;
|
|
|
+ border: 1px solid $g-mid;
|
|
|
+ box-shadow: none;
|
|
|
+ transition: box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
|
|
|
|
|
|
&.focused {
|
|
|
- background: rgba(0,0,0,0.25);
|
|
|
- border-color: rgba(99,102,241,0.3);
|
|
|
- box-shadow:
|
|
|
- inset 2px 2px 8px rgba(0,0,0,0.5),
|
|
|
- inset -2px -2px 8px rgba(255,255,255,0.04),
|
|
|
- 0 0 0 3px rgba(99,102,241,0.12);
|
|
|
+ background: #ffffff;
|
|
|
+ border-color: #e5e5e5;
|
|
|
+ box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.2);
|
|
|
}
|
|
|
|
|
|
.search-icon {
|
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- margin-right: 10px;
|
|
|
- opacity: 0.5;
|
|
|
+ margin-right: 8px;
|
|
|
+ opacity: 1;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
color: $g-text;
|
|
|
- transition: opacity 0.25s ease;
|
|
|
+ transition: color 0.16s ease;
|
|
|
|
|
|
::ng-deep svg {
|
|
|
width: 16px;
|
|
|
@@ -135,8 +122,7 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
}
|
|
|
|
|
|
&.focused .search-icon {
|
|
|
- opacity: 0.8;
|
|
|
- color: $g-light;
|
|
|
+ color: #171717;
|
|
|
}
|
|
|
|
|
|
.search-input {
|
|
|
@@ -144,22 +130,32 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
background: none;
|
|
|
border: none;
|
|
|
outline: none;
|
|
|
- color: $g-light;
|
|
|
+ color: $g-dark;
|
|
|
font-size: 13px;
|
|
|
height: 100%;
|
|
|
|
|
|
- &::placeholder { color: $g-text; }
|
|
|
+ &::placeholder {
|
|
|
+ color: #94a3b8;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.search-clear {
|
|
|
+ display: inline-grid;
|
|
|
+ width: 28px;
|
|
|
+ height: 28px;
|
|
|
+ place-items: center;
|
|
|
background: none;
|
|
|
border: none;
|
|
|
color: $g-text;
|
|
|
- font-size: 16px;
|
|
|
cursor: pointer;
|
|
|
- padding: 0 4px;
|
|
|
+ padding: 0;
|
|
|
+ border-radius: 6px;
|
|
|
line-height: 1;
|
|
|
- &:hover { color: $g-light; }
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: #e2e8f0;
|
|
|
+ color: $g-dark;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.search-loading {
|
|
|
@@ -181,7 +177,7 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
|
|
|
@keyframes spin {
|
|
|
from { transform: rotate(0deg); }
|
|
|
- to { transform: rotate(360deg); }
|
|
|
+ to { transform: rotate(360deg); }
|
|
|
}
|
|
|
|
|
|
.search-dropdown {
|
|
|
@@ -189,14 +185,14 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
top: calc(100% + 8px);
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
- background: #fff;
|
|
|
+ background: #ffffff;
|
|
|
border-radius: 12px;
|
|
|
- box-shadow: 0 8px 32px rgba(0,0,0,0.18);
|
|
|
+ box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
|
|
|
border: 1px solid $g-mid;
|
|
|
max-height: 480px;
|
|
|
overflow-y: auto;
|
|
|
z-index: 2000;
|
|
|
- animation: fadeIn 0.2s ease;
|
|
|
+ animation: fadeIn 0.16s ease;
|
|
|
|
|
|
.search-results-header {
|
|
|
padding: 12px 16px 8px;
|
|
|
@@ -226,13 +222,14 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
font-size: 11px;
|
|
|
color: $g-dark;
|
|
|
cursor: pointer;
|
|
|
- transition: all 0.2s;
|
|
|
+ transition: all 0.16s;
|
|
|
+
|
|
|
+ &:hover { background: #eef2f7; }
|
|
|
|
|
|
- &:hover { background: $g-mid; }
|
|
|
&.active {
|
|
|
- background: $g-dark;
|
|
|
- color: #fff;
|
|
|
- border-color: $g-dark;
|
|
|
+ background: #f4f4f5;
|
|
|
+ color: #171717;
|
|
|
+ border-color: #e5e5e5;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -249,7 +246,10 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
cursor: pointer;
|
|
|
transition: background 0.15s;
|
|
|
|
|
|
- &:hover { background: $g-light; }
|
|
|
+ &:hover,
|
|
|
+ &.active {
|
|
|
+ background: #f8fafc;
|
|
|
+ }
|
|
|
|
|
|
.result-left {
|
|
|
display: flex;
|
|
|
@@ -264,11 +264,11 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
|
border-radius: 50%;
|
|
|
- &.critical { background: #DC2626; }
|
|
|
- &.high { background: #F59E0B; }
|
|
|
- &.medium { background: #3B82F6; }
|
|
|
- &.low { background: #10B981; }
|
|
|
- &.info { background: #9CA3AF; }
|
|
|
+ &.critical { background: #dc2626; }
|
|
|
+ &.high { background: #f59e0b; }
|
|
|
+ &.medium { background: #3b82f6; }
|
|
|
+ &.low { background: #10b981; }
|
|
|
+ &.info { background: #9ca3af; }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -315,11 +315,11 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
padding: 1px 6px;
|
|
|
border-radius: 4px;
|
|
|
font-weight: 600;
|
|
|
- &.critical { background: #FEE2E2; color: #DC2626; }
|
|
|
- &.high { background: #FEF3C7; color: #D97706; }
|
|
|
- &.medium { background: #DBEAFE; color: #2563EB; }
|
|
|
- &.low { background: #D1FAE5; color: #059669; }
|
|
|
- &.info { background: $g-light; color: $g-text; }
|
|
|
+ &.critical { background: #fee2e2; color: #dc2626; }
|
|
|
+ &.high { background: #fef3c7; color: #d97706; }
|
|
|
+ &.medium { background: #dbeafe; color: #2563eb; }
|
|
|
+ &.low { background: #d1fae5; color: #059669; }
|
|
|
+ &.info { background: $g-light; color: $g-text; }
|
|
|
}
|
|
|
|
|
|
.result-metric {
|
|
|
@@ -327,7 +327,7 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
color: $g-text;
|
|
|
padding: 1px 6px;
|
|
|
border-radius: 4px;
|
|
|
- background: #F3F4F6;
|
|
|
+ background: #f3f4f6;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -366,7 +366,6 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 搜索历史
|
|
|
.search-history-header {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
@@ -403,6 +402,7 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
color: $g-dark;
|
|
|
|
|
|
&:hover { background: $g-light; }
|
|
|
+
|
|
|
.history-icon {
|
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
|
@@ -416,15 +416,10 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
height: 14px;
|
|
|
}
|
|
|
}
|
|
|
- .history-text { flex: 1; }
|
|
|
- }
|
|
|
|
|
|
- // 活跃结果高亮
|
|
|
- .search-result-item.active {
|
|
|
- background: $g-light;
|
|
|
+ .history-text { flex: 1; }
|
|
|
}
|
|
|
|
|
|
- // 底部快捷键提示
|
|
|
.search-footer {
|
|
|
padding: 8px 16px;
|
|
|
border-top: 1px solid $g-mid;
|
|
|
@@ -441,24 +436,37 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
.header-right {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ justify-content: flex-end;
|
|
|
+ min-width: 216px;
|
|
|
}
|
|
|
|
|
|
.user-profile {
|
|
|
position: relative;
|
|
|
cursor: pointer;
|
|
|
+ border: 1px solid $g-mid;
|
|
|
+ border-radius: 8px;
|
|
|
+ background: #ffffff;
|
|
|
+ box-shadow: none;
|
|
|
+
|
|
|
+ &:hover,
|
|
|
+ &.active {
|
|
|
+ border-color: #d1d5db;
|
|
|
+ background: $g-light;
|
|
|
+ box-shadow: none;
|
|
|
+ }
|
|
|
|
|
|
.avatar-circle {
|
|
|
width: 32px;
|
|
|
height: 32px;
|
|
|
- border-radius: 50%;
|
|
|
- background: $h-surface;
|
|
|
+ border-radius: 7px;
|
|
|
+ background: transparent;
|
|
|
+ border: none;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- box-shadow:
|
|
|
- 2px 2px 4px $h-dark,
|
|
|
- -2px -2px 4px $h-light;
|
|
|
- transition: box-shadow 0.25s ease, transform 0.15s ease;
|
|
|
+ box-shadow: none;
|
|
|
+ color: #475569;
|
|
|
+ transition: color 0.16s ease;
|
|
|
|
|
|
.icon {
|
|
|
font-size: 16px;
|
|
|
@@ -469,7 +477,7 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
justify-content: center;
|
|
|
width: 18px;
|
|
|
height: 18px;
|
|
|
- color: $g-light;
|
|
|
+ color: #475569;
|
|
|
|
|
|
::ng-deep svg {
|
|
|
width: 18px;
|
|
|
@@ -479,17 +487,13 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
- box-shadow:
|
|
|
- 1px 1px 3px $h-dark,
|
|
|
- -1px -1px 3px $h-light;
|
|
|
- transform: translateY(-1px);
|
|
|
+ box-shadow: none;
|
|
|
+ transform: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.active .avatar-circle {
|
|
|
- box-shadow:
|
|
|
- inset 2px 2px 4px $h-dark,
|
|
|
- inset -2px -2px 4px $h-light;
|
|
|
+ box-shadow: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -498,13 +502,13 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
top: 100%;
|
|
|
right: 0;
|
|
|
margin-top: 8px;
|
|
|
- background: #fff;
|
|
|
- border-radius: 8px;
|
|
|
- box-shadow: 0 4px 16px rgba(0,0,0,0.1);
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 10px;
|
|
|
+ box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
|
|
|
border: 1px solid $g-mid;
|
|
|
min-width: 150px;
|
|
|
padding: 4px 0;
|
|
|
- animation: fadeIn 0.25s ease;
|
|
|
+ animation: fadeIn 0.16s ease;
|
|
|
|
|
|
.dropdown-item {
|
|
|
padding: 9px 16px;
|
|
|
@@ -513,7 +517,7 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
gap: 8px;
|
|
|
color: $g-dark;
|
|
|
font-size: 13px;
|
|
|
- transition: background 0.25s ease;
|
|
|
+ transition: background 0.16s ease;
|
|
|
cursor: pointer;
|
|
|
|
|
|
.icon {
|
|
|
@@ -536,22 +540,24 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
&:hover { background: $g-light; }
|
|
|
|
|
|
&.danger {
|
|
|
- color: #D32F2F;
|
|
|
- &:hover { background: #FFF5F5; }
|
|
|
+ color: #dc2626;
|
|
|
+ &:hover { background: #fef2f2; }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes fadeIn {
|
|
|
from { opacity: 0; transform: translateY(-6px); }
|
|
|
- to { opacity: 1; transform: translateY(0); }
|
|
|
+ to { opacity: 1; transform: translateY(0); }
|
|
|
}
|
|
|
|
|
|
-// ─── Modal ───
|
|
|
.modal-overlay {
|
|
|
position: fixed;
|
|
|
- top: 0; left: 0; right: 0; bottom: 0;
|
|
|
- background: rgba(28, 28, 30, 0.5);
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ background: rgba(15, 23, 42, 0.4);
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
@@ -560,10 +566,10 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
}
|
|
|
|
|
|
.modal {
|
|
|
- background: #fff;
|
|
|
+ background: #ffffff;
|
|
|
width: 400px;
|
|
|
border-radius: 12px;
|
|
|
- box-shadow: 0 8px 32px rgba(0,0,0,0.12);
|
|
|
+ box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
|
|
|
border: 1px solid $g-mid;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
@@ -607,14 +613,15 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
height: 36px;
|
|
|
padding: 4px 12px;
|
|
|
border: 1px solid $g-mid;
|
|
|
- border-radius: 6px;
|
|
|
+ border-radius: 8px;
|
|
|
box-sizing: border-box;
|
|
|
font-size: 13px;
|
|
|
- transition: border-color 0.3s ease;
|
|
|
+ transition: border-color 0.16s ease, box-shadow 0.16s ease;
|
|
|
|
|
|
&:focus {
|
|
|
- border-color: $g-dark;
|
|
|
+ border-color: #e5e5e5;
|
|
|
outline: none;
|
|
|
+ box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.2);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -633,180 +640,44 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
.btn {
|
|
|
height: 34px;
|
|
|
padding: 0 18px;
|
|
|
- border-radius: 6px;
|
|
|
+ border-radius: 8px;
|
|
|
border: 1px solid transparent;
|
|
|
cursor: pointer;
|
|
|
font-size: 13px;
|
|
|
font-weight: 500;
|
|
|
- transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
|
|
|
+ transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
|
|
|
|
|
|
&.btn-primary {
|
|
|
- background: $g-dark;
|
|
|
- color: #fff;
|
|
|
+ background: #171717;
|
|
|
+ color: #fafafa;
|
|
|
|
|
|
&:hover {
|
|
|
- background: $g-black;
|
|
|
- transform: translateY(-1px);
|
|
|
+ background: #262626;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.btn-secondary {
|
|
|
- background: #fff;
|
|
|
+ background: #ffffff;
|
|
|
border-color: $g-mid;
|
|
|
color: $g-dark;
|
|
|
|
|
|
&:hover {
|
|
|
- border-color: $g-dark;
|
|
|
- transform: translateY(-1px);
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-/* Professional operations shell overrides. */
|
|
|
-.app-header {
|
|
|
- height: 56px;
|
|
|
- padding: 0 16px;
|
|
|
- border-bottom: 1px solid #e2e8f0;
|
|
|
- background: #ffffff;
|
|
|
- background-image: none;
|
|
|
- box-shadow: none;
|
|
|
- color: #334155;
|
|
|
-}
|
|
|
-
|
|
|
-.header-left {
|
|
|
- min-width: 216px;
|
|
|
- gap: 12px;
|
|
|
-}
|
|
|
-
|
|
|
-.brand-title {
|
|
|
- color: #0f172a;
|
|
|
- font-size: 15px;
|
|
|
- font-weight: 750;
|
|
|
- letter-spacing: 0;
|
|
|
-}
|
|
|
-
|
|
|
-.collapse-toggle {
|
|
|
- width: 34px;
|
|
|
- height: 34px;
|
|
|
- border: 1px solid #e2e8f0;
|
|
|
- border-radius: 6px;
|
|
|
- background: #ffffff;
|
|
|
- box-shadow: none;
|
|
|
- color: #64748b;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- border-color: #cbd5e1;
|
|
|
- background: #f8fafc;
|
|
|
- box-shadow: none;
|
|
|
- color: #0f172a;
|
|
|
- }
|
|
|
-
|
|
|
- &:active {
|
|
|
- background: #f1f5f9;
|
|
|
- box-shadow: none;
|
|
|
- transform: none;
|
|
|
- }
|
|
|
-
|
|
|
- &:focus-visible {
|
|
|
- outline: 2px solid rgba(37, 99, 235, 0.35);
|
|
|
- outline-offset: 1px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.header-search {
|
|
|
- max-width: 600px;
|
|
|
- height: 36px;
|
|
|
- margin: 0 clamp(16px, 4vw, 56px);
|
|
|
- padding: 0 11px;
|
|
|
- border: 1px solid #e2e8f0;
|
|
|
- border-radius: 6px;
|
|
|
- background: #f8fafc;
|
|
|
- box-shadow: none;
|
|
|
-
|
|
|
- &.focused {
|
|
|
- border-color: #93c5fd;
|
|
|
- background: #ffffff;
|
|
|
- box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
|
|
- }
|
|
|
-
|
|
|
- .search-icon,
|
|
|
- &.focused .search-icon {
|
|
|
- margin-right: 8px;
|
|
|
- color: #64748b;
|
|
|
- opacity: 1;
|
|
|
- }
|
|
|
-
|
|
|
- .search-input {
|
|
|
- color: #0f172a;
|
|
|
- font-size: 13px;
|
|
|
- letter-spacing: 0;
|
|
|
-
|
|
|
- &::placeholder {
|
|
|
- color: #94a3b8;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .search-clear {
|
|
|
- display: inline-grid;
|
|
|
- width: 28px;
|
|
|
- height: 28px;
|
|
|
- place-items: center;
|
|
|
- padding: 0;
|
|
|
- border-radius: 5px;
|
|
|
- color: #64748b;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background: #e2e8f0;
|
|
|
- color: #0f172a;
|
|
|
+ border-color: #d1d5db;
|
|
|
+ background: $g-light;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .search-loading {
|
|
|
- color: #64748b;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.search-dropdown {
|
|
|
- border-radius: 8px;
|
|
|
- border-color: #dbe3ec;
|
|
|
- box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
|
|
|
-}
|
|
|
-
|
|
|
-.user-profile {
|
|
|
- border: 1px solid transparent;
|
|
|
- border-radius: 6px;
|
|
|
-
|
|
|
- &:hover,
|
|
|
- &.active {
|
|
|
- border-color: #e2e8f0;
|
|
|
- background: #f8fafc;
|
|
|
- box-shadow: none;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.avatar-circle {
|
|
|
- width: 34px;
|
|
|
- height: 34px;
|
|
|
- border: 1px solid #e2e8f0;
|
|
|
- border-radius: 6px;
|
|
|
- background: #ffffff;
|
|
|
- box-shadow: none;
|
|
|
- color: #475569;
|
|
|
-}
|
|
|
-
|
|
|
-.dropdown-menu {
|
|
|
- border-radius: 8px;
|
|
|
- border-color: #dbe3ec;
|
|
|
- box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
|
|
|
}
|
|
|
|
|
|
@media (max-width: 720px) {
|
|
|
.app-header {
|
|
|
padding: 0 10px;
|
|
|
+ gap: 8px;
|
|
|
}
|
|
|
|
|
|
.header-left {
|
|
|
min-width: 0;
|
|
|
+ flex: 0 0 auto;
|
|
|
+ gap: 0;
|
|
|
}
|
|
|
|
|
|
.brand-title {
|
|
|
@@ -816,22 +687,6 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
- .header-search {
|
|
|
- margin: 0 8px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@media (max-width: 720px) {
|
|
|
- .app-header {
|
|
|
- padding: 0 10px;
|
|
|
- gap: 8px;
|
|
|
- }
|
|
|
-
|
|
|
- .header-left {
|
|
|
- flex: 0 0 auto;
|
|
|
- gap: 0;
|
|
|
- }
|
|
|
-
|
|
|
.brand-container {
|
|
|
display: none;
|
|
|
}
|
|
|
@@ -843,6 +698,7 @@ $h-dark: rgba(0,0,0,0.4);
|
|
|
}
|
|
|
|
|
|
.header-right {
|
|
|
+ min-width: 0;
|
|
|
flex: 0 0 auto;
|
|
|
}
|
|
|
|