0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-16 16:52:39 +00:00

Change ToC to use flexbox

This commit is contained in:
G.Ambatte
2022-10-16 20:34:18 +13:00
parent d998381bbe
commit 51f8786905

View File

@@ -683,6 +683,13 @@ body {
ul{ ul{
padding-left : 0; padding-left : 0;
list-style-type : none; list-style-type : none;
margin-top : 0;
a {
width : 100%;
display : flex;
flex-flow : row nowrap;
justify-content : space-between;
}
li + li h3 { li + li h3 {
margin-top : 0.26cm; margin-top : 0.26cm;
line-height : 1em line-height : 1em
@@ -691,29 +698,19 @@ body {
border : none; border : none;
} }
span { span {
display : table-cell; display : contents;
&:first-child { &:first-child::after {
position : relative; content : "";
overflow : hidden; bottom : 0.08cm;
&::after { flex : 1;
content : ""; margin-left : 0.08cm; /* Spacing before dot leaders */
position : absolute; margin-right : 0.16cm;
bottom : 0.08cm; border-bottom : 0.05cm dotted #000;
margin-left : 0.06cm; /* Spacing before dot leaders */ margin-bottom : 0.08cm;
width : 100%;
border-bottom : 0.05cm dotted #000;
}
} }
&:last-child { &:last-child {
font-family : BookInsanityRemake; display : inline-block;
font-size : 0.34cm; align-self : flex-end;
font-weight : normal;
color : black;
text-align : right;
vertical-align : bottom; /* Keep page number bottom-aligned */
width : 1%;
padding-left : 0.06cm; /* Spacing after dot leaders */
/*white-space : nowrap; /* Uncomment if needed */
} }
} }
ul { /*List indent*/ ul { /*List indent*/