@@ -966,11 +966,7 @@ blockquote.side-callout {
966
966
}
967
967
968
968
.tab-content {
969
- border-bottom : 1px solid black;
970
-
971
- /* Lines extend 1rem into gutter on both sides */
972
- width : calc (100% + 2rem );
973
- margin-left : -1rem ;
969
+ position : relative;
974
970
975
971
.tab-pane {
976
972
display : none;
@@ -979,15 +975,20 @@ blockquote.side-callout {
979
975
margin-left : 1rem ;
980
976
}
981
977
982
- .tab-pane * {
983
- margin-left : 0 ;
984
- }
985
-
986
978
.active {
987
979
display : block !important ;
988
980
}
989
981
}
990
982
983
+ .tab-content ::after {
984
+ content : "" ;
985
+ position : absolute;
986
+ border-bottom : 1px solid black;
987
+ left : calc (-1 * var (--overflow-gutter-extension ));
988
+ bottom : 0 ;
989
+ width : calc (100% + (2 * var (--overflow-gutter-extension )));
990
+ }
991
+
991
992
/* Codeblocks */
992
993
.highlight {
993
994
padding : 0 1rem 0 1rem ;
@@ -1004,6 +1005,11 @@ blockquote.side-callout {
1004
1005
grid-column : 1 ;
1005
1006
}
1006
1007
1008
+ li .code-block {
1009
+ /* For indented code blocks, move 1rem back to align code with text from heading */
1010
+ margin-left : -1rem ;
1011
+ }
1012
+
1007
1013
.icon-code-copy {
1008
1014
background-color : # f2f2f2 ;
1009
1015
border : none;
@@ -1016,11 +1022,12 @@ blockquote.side-callout {
1016
1022
1017
1023
.highlight-v2 {
1018
1024
padding : 0 1rem 0 0 ;
1019
- margin : 0 -1 rem 1rem -1 rem ;
1025
+ margin : 0 0 1rem 0 ;
1020
1026
border-top : 1px solid # cccccc ;
1021
1027
border-bottom : 1px solid # cccccc ;
1022
1028
overflow-x : scroll;
1023
1029
scrollbar-width : none;
1030
+ width : calc (100% + var (--overflow-gutter-extension ));
1024
1031
}
1025
1032
1026
1033
.highlight-v2 .single-line {
@@ -1029,7 +1036,7 @@ blockquote.side-callout {
1029
1036
padding : 0 1rem 0 0 ;
1030
1037
border : 1px solid # cccccc ;
1031
1038
overflow-x : scroll;
1032
- width : calc (100% + ( 2 * var (--overflow-gutter-extension ) ));
1039
+ width : calc (100% + var (--overflow-gutter-extension ));
1033
1040
}
1034
1041
1035
1042
.code-header {
0 commit comments