Skip to content

Commit 34a18e8

Browse files
authored
fix(1816): fixed an style issue inconsistency on home page (#1817)
1 parent 064fc0b commit 34a18e8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

css/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ main.home {
7979
margin-top: 150px;
8080
}
8181

82+
.non-en-doc:has(#i18n-notice-box.hidden) #home-content {
83+
margin-top: 150px;
84+
}
85+
86+
.non-en-doc:has(#i18n-notice-box:not(.hidden)) .content {
87+
margin-top: 50px;
88+
}
89+
8290
#homepage-leftpane {
8391
min-width: 500px;
8492
margin-right: 30px;

js/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ $(function(){
7979

8080
// i18n notice
8181
if (readCookie('i18nClose')) {
82-
$('#i18n-notice-box').hide()
82+
$('#i18n-notice-box').hide();
83+
$("#i18n-notice-box").addClass("hidden");
8384
}
8485
else {
8586
$('#close-i18n-notice-box').on('click', function () {
86-
$('#i18n-notice-box').hide()
87+
$('#i18n-notice-box').hide();
88+
$("#i18n-notice-box").addClass("hidden");
8789
createCookie('i18nClose', 1);
8890
})
8991
}

0 commit comments

Comments
 (0)