Skip to content

Commit 8b49dea

Browse files
committed
style: change tip
1 parent 56ff4ad commit 8b49dea

File tree

1 file changed

+7
-51
lines changed

1 file changed

+7
-51
lines changed

src/.vuepress/components/Sidebar.vue

Lines changed: 7 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
</ul>
1717
<div class="help-icon-wrapper">
1818
<div class="help-icon" @click="handleHelpClick">
19-
<span>?</span>
19+
<span>{{ ModelName.Tip }}</span>
2020
</div>
21-
<div class="tooltip">{{ ModelName.Tip }}</div>
2221
</div>
2322
</div>
2423
</template>
@@ -42,11 +41,11 @@ const ModelName = computed(() => {
4241
return currentLang.value === 'zh' ? {
4342
'Tree': '树模型',
4443
'Table': '表模型',
45-
'Tip': '模型选择说明',
44+
'Tip': '模型说明',
4645
} : {
4746
'Tree': 'Tree',
4847
'Table': 'Table',
49-
'Tip': 'Model Choice Description',
48+
'Tip': 'Description',
5049
};
5150
});
5251
@@ -102,64 +101,21 @@ watch(
102101
position: relative;
103102
margin-left: 8px;
104103
overflow: visible;
105-
106-
&:hover .tooltip {
107-
visibility: visible;
108-
opacity: 1;
109-
}
110104
}
111105
112106
.help-icon {
113-
width: 24px;
114107
height: 24px;
115-
border-radius: 50%;
116-
background-color: #e0e0e0;
117108
display: flex;
118109
align-items: center;
119110
justify-content: center;
120111
cursor: pointer;
121-
font-size: 1.1rem;
122-
font-weight: bold;
123-
color: #555;
112+
font-size: 0.875rem;
113+
font-weight: 300;
114+
color: var(--vp-c-accent, #299764);
124115
transition: background-color 0.3s;
125116
126117
&:hover {
127-
background-color: #495ad4;
128-
color: white;
129-
}
130-
}
131-
132-
.tooltip {
133-
position: absolute;
134-
top: -30px;
135-
left: 50%;
136-
transform: translateX(-50%);
137-
background-color: #333;
138-
color: white;
139-
padding: 5px 10px;
140-
border-radius: 4px;
141-
font-size: 12px;
142-
white-space: nowrap;
143-
pointer-events: none;
144-
z-index: 1000; // 提高 z-index 确保不被遮挡
145-
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
146-
visibility: hidden;
147-
opacity: 0;
148-
transition: opacity 0.3s;
149-
150-
&:after {
151-
content: '';
152-
position: absolute;
153-
bottom: -5px;
154-
left: 50%;
155-
transform: translateX(-50%);
156-
border-width: 5px 5px 0;
157-
border-style: solid;
158-
border-color: #333 transparent transparent;
118+
text-decoration: underline;
159119
}
160120
}
161-
162-
.iotdb-sidebar {
163-
overflow: visible !important;
164-
}
165121
</style>

0 commit comments

Comments
 (0)