diff --git a/_layouts/home.html b/_layouts/home.html
index 3d0939f4..c5f77e29 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -14,7 +14,7 @@
+
{% include i18n-notice.html %}
{% endif %}
diff --git a/_layouts/page.html b/_layouts/page.html
index 587b8461..f86e816d 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -15,7 +15,7 @@
{% if page.lang != 'en' %}
-
+
{% include i18n-notice.html %}
{% endif %}
diff --git a/css/style.css b/css/style.css
index ffc92579..d7494da6 100644
--- a/css/style.css
+++ b/css/style.css
@@ -12,6 +12,7 @@ body {
display: grid;
grid-template-areas:
'header'
+ 'i18n'
'content'
'footer'
}
@@ -86,20 +87,13 @@ main.home {
max-width: 75rem;
margin: 40px auto 2%;
padding-inline: 5%;
+ grid-area: content;
}
#home-content {
display: flex;
}
-.non-en-doc:has(#i18n-notice-box.hidden) #home-content {
- margin-top: 150px;
-}
-
-.non-en-doc:has(#i18n-notice-box:not(.hidden)) .content {
- margin-top: 50px;
-}
-
#homepage-leftpane {
min-width: 500px;
margin-right: 30px;
@@ -619,6 +613,10 @@ table ul {
}
.doc-notice {
+ padding-block: 1rem;
+ padding-inline: 2.5rem;
+ color: var(--box-fg);
+ border-radius: 0 6px 6px 0;
background: var(--notice-bg);
border-left: 3px solid var(--notice-accent);
}
@@ -649,14 +647,16 @@ table ul {
}
#i18n-notice-box {
- margin: 100px 3% 20px 3%;
+ margin-inline: auto;
+ margin-block-start: 2rem;
position: relative;
+ grid-area: i18n;
}
#close-i18n-notice-box {
position: absolute;
top: 3px;
- right: 4px;
+ right: 9px;
color: var(--notice-accent);
cursor: pointer;
}
@@ -1100,6 +1100,7 @@ h2 a {
display: flex;
justify-content: center;
flex-direction: column;
+ grid-area: content;
}
.content-404 p {