优化顶部栏样式与视觉效果
This commit is contained in:
parent
08a1e5d6cb
commit
1a727325d5
@ -114,23 +114,47 @@ export default defineComponent({
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.header {
|
||||
position: relative;
|
||||
height: 48px;
|
||||
border-bottom: 1px solid #e0e4ef;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background: transparent;
|
||||
|
||||
// 玻璃态高光效果
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&.no-border {
|
||||
border: none;
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.navigation {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.action {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile {
|
||||
padding-right: 0;
|
||||
::v-deep(.logo) {
|
||||
@ -141,10 +165,12 @@ export default defineComponent({
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.show-title {
|
||||
::v-deep(.title) {
|
||||
display: block;
|
||||
color: #333;
|
||||
color: hsl(var(--foreground));
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user