File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ ol.advanced-steps {
5
5
6
6
list-style : none !important ;
7
7
counter-reset : advanced-step-counter;
8
- padding-left : 0 ;
9
- margin-left : 1 rem ;
8
+ padding-left : 0 !important ;
9
+ margin-left : .3 rem ;
10
10
margin-top : 1rem ;
11
11
position : relative;
12
+ box-sizing : border-box;
12
13
}
13
14
14
15
ol .advanced-steps > li {
@@ -109,6 +110,14 @@ ol.advanced-steps>li ul {
109
110
padding-left : 2rem ;
110
111
}
111
112
113
+ /* Make code blocks inside steps wrap properly
114
+ 修复 mdxrepl展示区包含代码块时, step渲染后左侧溢出问题
115
+ */
116
+ ol .advanced-steps > li pre {
117
+ white-space : pre-wrap;
118
+ word-wrap : break-word;
119
+ }
120
+
112
121
/* Hide the auto-link anchor from headings inside steps */
113
122
ol .advanced-steps > li h2 > a ,
114
123
ol .advanced-steps > li h3 > a ,
You can’t perform that action at this time.
0 commit comments