Commit 5acf0101 authored by iamkun's avatar iamkun Committed by Zhi Cun

Chore: update index page theme intro english css style (#16254)

parent 20594da5
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
color: #FFF; color: #FFF;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
font-size: 24px; font-size: 20px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
...@@ -423,6 +423,9 @@ ...@@ -423,6 +423,9 @@
this.showIntroB = false; this.showIntroB = false;
}, },
hideIntroA() { hideIntroA() {
const themeTab = document.querySelector('.nav-item-theme');
this.introBX = themeTab.offsetLeft + (themeTab.clientWidth * 0.5) - (300 / 2);
this.introBY = themeTab.offsetTop + 40;
this.showIntroA = false; this.showIntroA = false;
this.showIntroB = true; this.showIntroB = true;
} }
...@@ -443,9 +446,6 @@ ...@@ -443,9 +446,6 @@
mounted() { mounted() {
window.addEventListener('scroll', this.throttledHandleScroll); window.addEventListener('scroll', this.throttledHandleScroll);
if (localStorage.getItem('KNOW_THEME')) return; if (localStorage.getItem('KNOW_THEME')) return;
const themeTab = document.querySelector('.nav-item-theme');
this.introBX = themeTab.offsetLeft + (themeTab.clientWidth * 0.5) - (300 / 2);
this.introBY = themeTab.offsetTop + 40;
this.showIntroA = true; this.showIntroA = true;
addClass(document.body, 'el-loading-parent--hidden'); addClass(document.body, 'el-loading-parent--hidden');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment