File tree Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 14
14
< div id ="overlay "> </ div >
15
15
16
16
{% if page.lang != 'en' %}
17
- < div id ="i18n-notice-box " class ="doc-box doc- notice ">
17
+ < div id ="i18n-notice-box " class ="doc-notice ">
18
18
{% include i18n-notice.html %}
19
19
</ div >
20
20
{% endif %}
Original file line number Diff line number Diff line change 15
15
< div id ="overlay "> </ div >
16
16
17
17
{% if page.lang != 'en' %}
18
- < div id ="i18n-notice-box " class ="doc-box doc- notice ">
18
+ < div id ="i18n-notice-box " class ="doc-notice ">
19
19
{% include i18n-notice.html %}
20
20
</ div >
21
21
{% endif %}
Original file line number Diff line number Diff line change 12
12
display : grid;
13
13
grid-template-areas :
14
14
'header'
15
+ 'i18n'
15
16
'content'
16
17
'footer'
17
18
}
@@ -86,20 +87,13 @@ main.home {
86
87
max-width : 75rem ;
87
88
margin : 40px auto 2% ;
88
89
padding-inline : 5% ;
90
+ grid-area : content;
89
91
}
90
92
91
93
# home-content {
92
94
display : flex;
93
95
}
94
96
95
- .non-en-doc : has (# i18n-notice-box .hidden ) # home-content {
96
- margin-top : 150px ;
97
- }
98
-
99
- .non-en-doc : has (# i18n-notice-box : not (.hidden )) .content {
100
- margin-top : 50px ;
101
- }
102
-
103
97
# homepage-leftpane {
104
98
min-width : 500px ;
105
99
margin-right : 30px ;
@@ -619,6 +613,10 @@ table ul {
619
613
}
620
614
621
615
.doc-notice {
616
+ padding-block : 1rem ;
617
+ padding-inline : 2.5rem ;
618
+ color : var (--box-fg );
619
+ border-radius : 0 6px 6px 0 ;
622
620
background : var (--notice-bg );
623
621
border-left : 3px solid var (--notice-accent );
624
622
}
@@ -649,14 +647,16 @@ table ul {
649
647
}
650
648
651
649
# i18n-notice-box {
652
- margin : 100px 3% 20px 3% ;
650
+ margin-inline : auto;
651
+ margin-block-start : 2rem ;
653
652
position : relative;
653
+ grid-area : i18n;
654
654
}
655
655
656
656
# close-i18n-notice-box {
657
657
position : absolute;
658
658
top : 3px ;
659
- right : 4 px ;
659
+ right : 9 px ;
660
660
color : var (--notice-accent );
661
661
cursor : pointer;
662
662
}
@@ -1100,6 +1100,7 @@ h2 a {
1100
1100
display : flex;
1101
1101
justify-content : center;
1102
1102
flex-direction : column;
1103
+ grid-area : content;
1103
1104
}
1104
1105
1105
1106
.content-404 p {
You can’t perform that action at this time.
0 commit comments