Skip to content

Commit

Permalink
Chore: update index page theme intro english css style
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Jun 27, 2019
1 parent 20594da commit 78f234f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/pages/template/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
color: #FFF;
text-align: center;
font-weight: bold;
font-size: 24px;
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
Expand Down Expand Up @@ -423,6 +423,9 @@
this.showIntroB = false;
},
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.showIntroB = true;
}
Expand All @@ -443,9 +446,6 @@
mounted() {
window.addEventListener('scroll', this.throttledHandleScroll);
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;
addClass(document.body, 'el-loading-parent--hidden');
}
Expand Down

0 comments on commit 78f234f

Please sign in to comment.