File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -215,12 +215,17 @@ h3.plumbing {
215
215
216
216
// New inline TOC box styles
217
217
.toc-box {
218
+ position : fixed ;
219
+ left : calc (940px + 5px + (100vw - 940px )/ 2 );
220
+ max-height : calc (100vh - 150px );
221
+ overflow : scroll ;
222
+ top : 124px ;
218
223
float : right ;
219
- width : 200 px ;
220
- margin : 0 0 15 px 20 px ;
224
+ width : 160 px ;
225
+ margin : 0 ;
221
226
padding : 10px 12px ;
222
227
font-size : 13px ;
223
- background-color : var (--callout-color );
228
+ background-color : var (--main-bg );
224
229
border : 1px solid var (--base-border-color );
225
230
@include border-radius (3px );
226
231
@@ -266,8 +271,22 @@ h3.plumbing {
266
271
}
267
272
268
273
// Stack TOC box full-width on small screens
274
+ @media (max-width : $default + 380px ) {
275
+ .toc-box {
276
+ position : inherit ;
277
+ left : inherit ;
278
+ top : inherit ;
279
+ width : 200px ;
280
+ margin : 0 0 15px 20px ;
281
+ background-color : var (--callout-color );
282
+ }
283
+ }
284
+
269
285
@media (max-width : $mobile-m ) {
270
286
.toc-box {
287
+ position : relative ;
288
+ left : inherit ;
289
+ top : inherit ;
271
290
float : none ;
272
291
width : 80% ;
273
292
max-width : none ;
You can’t perform that action at this time.
0 commit comments