File tree Expand file tree Collapse file tree 4 files changed +40
-10
lines changed Expand file tree Collapse file tree 4 files changed +40
-10
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ if (frontmatter.toc) {
78
78
<div class =" bd-subtitle" >
79
79
{ frontmatter .description && <Fragment set :html = { processMarkdownToHtml (frontmatter .description )} />}
80
80
</div >
81
- <Ads />
82
81
</div >
83
82
84
- {
85
- frontmatter .toc && headings && (
86
- <div class = " bd-toc mt-3 mb-5 my-lg-0 mb-lg-5 px-sm-1 text-body-secondary" >
83
+
84
+ <div class =" bd-toc mt-3 mb-5 my-lg-0 mb-lg-5 px-sm-1 text-body-secondary" >
85
+ {
86
+ frontmatter .toc && headings && (
87
87
<button
88
88
class = " btn btn-link p-md-0 mb-2 mb-md-0 text-decoration-none bd-toc-toggle d-md-none"
89
89
type = " button"
@@ -104,9 +104,10 @@ if (frontmatter.toc) {
104
104
<TableOfContents headings = { headings } />
105
105
</nav >
106
106
</div >
107
- </div >
108
- )
109
- }
107
+ )
108
+ }
109
+ <Ads />
110
+ </div >
110
111
111
112
<div class =" bd-content ps-lg-2" >
112
113
{
Original file line number Diff line number Diff line change 6
6
7
7
#carbonads {
8
8
position : static ;
9
- display : block ;
10
9
max-width : 400px ;
11
10
padding : 15px 15px 15px 160px ;
12
- margin : 2 rem 0 ;
11
+ margin : 1 rem 0 ;
13
12
overflow : hidden ;
14
13
@include font-size (.8125rem );
15
14
line-height : 1.4 ;
31
30
margin-left : -145px ;
32
31
}
33
32
33
+ @container (max-width: 240px) {
34
+ #carbonads {
35
+ padding-left : 15px ;
36
+ }
37
+
38
+ .carbon-img {
39
+ display : block ;
40
+ float : none ;
41
+ margin-left : 0 ;
42
+ }
43
+
44
+ .carbon-wrap {
45
+ display : flex ;
46
+ flex-direction : column ;
47
+ gap : .5rem ;
48
+ }
49
+
50
+ .carbon-img > img {
51
+ width : 100% ;
52
+ max-width : 100% !important ;
53
+ height : auto ;
54
+ @include border-radius (var (--bs-border-radius-sm ));
55
+ }
56
+ }
57
+
34
58
.carbon-poweredby {
35
59
display : block ;
36
60
margin-top : .75rem ;
37
- color : var (--bs-body-color ) !important ;
61
+ color : var (--bs-fg-3 ) !important ;
38
62
}
Original file line number Diff line number Diff line change 54
54
}
55
55
56
56
#carbonads { // stylelint-disable-line selector-max-id
57
+ max-width : 400px ;
57
58
margin-inline : auto ;
59
+ margin-block : 2rem ;
58
60
}
59
61
60
62
@include media-breakpoint-up (md) {
Original file line number Diff line number Diff line change 1
1
// stylelint-disable selector-max-type, selector-no-qualifying-type
2
2
3
3
.bd-toc {
4
+ font-size : .875rem ;
5
+ container-type : inline-size ;
6
+
4
7
@include media-breakpoint-up (lg) {
5
8
position : sticky ;
6
9
top : 5rem ;
You can’t perform that action at this time.
0 commit comments