@@ -973,11 +973,7 @@ blockquote.side-callout {
973
973
}
974
974
975
975
.tab-content {
976
- border-bottom : 1px solid black;
977
-
978
- /* Lines extend 1rem into gutter on both sides */
979
- width : calc (100% + 2rem );
980
- margin-left : -1rem ;
976
+ position : relative;
981
977
982
978
.tab-pane {
983
979
display : none;
@@ -986,15 +982,21 @@ blockquote.side-callout {
986
982
margin-left : 1rem ;
987
983
}
988
984
989
- .tab-pane * {
990
- margin-left : 0 ;
991
- }
992
-
993
985
.active {
994
986
display : block !important ;
995
987
}
996
988
}
997
989
990
+ .tab-content ::after {
991
+ /* Bottom Horizontal Line for Tabs */
992
+ content : "" ;
993
+ position : absolute;
994
+ border-bottom : 1px solid black;
995
+ left : calc (-1 * var (--overflow-gutter-extension ));
996
+ bottom : 0 ;
997
+ width : calc (100% + (2 * var (--overflow-gutter-extension )));
998
+ }
999
+
998
1000
/* Codeblocks */
999
1001
.highlight {
1000
1002
padding : 0 1rem 0 1rem ;
@@ -1011,6 +1013,16 @@ blockquote.side-callout {
1011
1013
grid-column : 1 ;
1012
1014
}
1013
1015
1016
+ .code-block .code-header : not (: has (.code-type )) {
1017
+ /* Remove margin for codeblocks without a type */
1018
+ margin-top : -1.5rem ;
1019
+ }
1020
+
1021
+ li .code-block {
1022
+ /* For indented code blocks, move 1rem back to align code with text from heading */
1023
+ margin-left : -1rem ;
1024
+ }
1025
+
1014
1026
.icon-code-copy {
1015
1027
background-color : # f2f2f2 ;
1016
1028
border : none;
@@ -1022,21 +1034,29 @@ blockquote.side-callout {
1022
1034
}
1023
1035
1024
1036
.highlight-v2 {
1025
- padding : 0 1rem 0 0 ;
1026
- margin : 0 -1rem 1rem -1rem ;
1037
+ margin : 0 0 1rem 0 ;
1027
1038
border-top : 1px solid # cccccc ;
1028
1039
border-bottom : 1px solid # cccccc ;
1029
1040
overflow-x : scroll;
1030
1041
scrollbar-width : none;
1042
+ width : calc (100% + var (--overflow-gutter-extension ));
1043
+
1044
+ background-image : linear-gradient (to right, white, white),
1045
+ linear-gradient (to right, white, white),
1046
+ linear-gradient (to right, rgba (165 , 165 , 165 , 0.25 ), rgba (255 , 255 , 255 , 0 )),
1047
+ linear-gradient (to left, rgba (165 , 165 , 165 , 0.25 ), rgba (255 , 255 , 255 , 0 ));
1048
+ background-position : left center, right center, left center, right center;
1049
+ background-repeat : no-repeat;
1050
+ background-size : 12px 100% , 12px 100% , 10px 100% , 10px 100% ;
1051
+ background-attachment : local, local, scroll, scroll;
1031
1052
}
1032
1053
1033
1054
.highlight-v2 .single-line {
1034
1055
display : flex;
1035
1056
align-items : center;
1036
- padding : 0 1rem 0 0 ;
1037
1057
border : 1px solid # cccccc ;
1038
1058
overflow-x : scroll;
1039
- width : calc (100% + ( 2 * var (--overflow-gutter-extension ) ));
1059
+ width : calc (100% + var (--overflow-gutter-extension ));
1040
1060
}
1041
1061
1042
1062
.code-header {
@@ -1088,9 +1108,11 @@ figure {
1088
1108
margin : 0 ;
1089
1109
}
1090
1110
1111
+ img ,
1091
1112
.figure-bitmap {
1092
1113
margin-bottom : 0.625rem ;
1093
1114
display : inline-block;
1115
+ width : 100% ;
1094
1116
max-width : 100% ;
1095
1117
}
1096
1118
0 commit comments