@@ -913,32 +913,19 @@ blockquote.side-callout {
913
913
.tabs-container {
914
914
/* border-bottom: 1px solid black; */
915
915
white-space : nowrap;
916
+ position : relative;
916
917
917
- /* Lines extend 1rem into gutter on both sides */
918
- width : calc (100% + 2rem );
919
- margin-left : -1rem ;
920
-
921
- display : flex;
922
- flex-direction : row;
923
- align-items : end;
924
-
925
- * {
926
- flex-grow : 0 ;
927
- }
928
-
929
- & > : last-child {
930
- /* Extend the last child */
931
- flex-grow : 1 ;
918
+ & ::after {
919
+ content : "" ;
920
+ position : absolute;
921
+ display : block;
922
+ border-bottom : 1px solid black;
923
+ bottom : 0 ;
924
+ right : 0 ;
925
+ width : 2rem ;
932
926
}
933
927
}
934
928
935
- .tabs-line {
936
- display : block;
937
- background-color : white;
938
- border-bottom : 1px solid black;
939
- width : 2rem ;
940
- }
941
-
942
929
.nav-tabs {
943
930
overflow-x : scroll;
944
931
overflow-y : hidden;
@@ -949,11 +936,51 @@ blockquote.side-callout {
949
936
display : flex;
950
937
justify-content : start;
951
938
margin : 0 ;
952
- padding : 0 ;
939
+ padding : 0 2rem ;
940
+ position : relative;
953
941
954
942
> : not (: last-child ) {
955
943
border-right : none;
956
944
}
945
+
946
+ & ::before {
947
+ content : "" ;
948
+ position : absolute;
949
+ display : block;
950
+ border-bottom : 1px solid black;
951
+ bottom : 0 ;
952
+ left : 0 ;
953
+ width : 2rem ;
954
+ }
955
+
956
+ & ::after {
957
+ content : "" ;
958
+ position : relative;
959
+ display : block;
960
+ border-bottom : 1px solid black;
961
+ bottom : 0 ;
962
+ left : 0 ;
963
+ width : 100% ;
964
+ }
965
+
966
+ --scrollbar-width : 1px ;
967
+ --mask-height : 32px ;
968
+ --mask-image-content : linear-gradient (
969
+ to right,
970
+ transparent,
971
+ black var (--mask-height ),
972
+ black calc (100% - var (--mask-height )),
973
+ transparent
974
+ );
975
+
976
+ --mask-size-content : 100% calc (100% - var (--scrollbar-width ));
977
+
978
+ --mask-image-scrollbar : linear-gradient (black, black);
979
+ --mask-size-scrollbar : 100% var (--scrollbar-width );
980
+ mask-image : var (--mask-image-content ), var (--mask-image-scrollbar );
981
+ mask-size : var (--mask-size-content ), var (--mask-size-scrollbar );
982
+ mask-position : 0 0 , 0 100% ;
983
+ mask-repeat : no-repeat, no-repeat;
957
984
}
958
985
959
986
.nav-item {
0 commit comments