Sha256: 686161f45044c5ba7bd954b6eaeb3309294d5d301a22cec929e1a4e0da645d7a

Contents?: true

Size: 1.3 KB

Versions: 4

Compression:

Stored size: 1.3 KB

Contents

/*
 * Table of Contents page. Also styles page-reference lists marked as .page-ref-list
 */

.contents-page {
	margin-left: auto;
	margin-right: auto;
	a::after, .page-ref-list a::after { 
		content: leader(" ") target-counter(attr(href), page);
		font-variant: prince-opentype(lnum);
	}
	a.frontmatter-reference::after, .page-ref-list a.frontmatter-reference::after {
		content: leader(" ") target-counter(attr(href), page, $frontmatter-reference-style);
	}
	ul, ol {
		list-style-type: none;
	}
	li {
		margin: 0 0 ($line-height-default / 2) 0;
	}
	li li {
		margin: 0;
	}
	h2 {
		font-size: $font-size-default * 1.2;
		margin: $line-height-default 0 ($line-height-default / 2) 0;
	}
}

/* TOCs in individual pages, created in kramdown with a placeholder ol/ul followed by {:toc} */

ul#markdown-toc, ol#markdown-toc {
	list-style-type: none;
	border-top: 0.5pt solid #f9f9f9;
	border-bottom: 0.5pt solid #f9f9f9;
	padding: $line-height-default 0;
	margin: ($line-height-default * 2) 0;
}
#markdown-toc {
	ul, ol {
		list-style-type: none;
		margin: 0;
	}
	li {
		font-variant: prince-opentype(lnum);
		margin: 0;
	}
	li li {
		margin-left: $line-height-default;
	}
	a {
		text-decoration: none;
	}
	a::after {
		content: leader(" ") target-counter(attr(href), page);
	}
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
electric-book-classic-theme-0.1.3 _sass/partials/_print-toc.scss
electric-book-classic-theme-0.1.2 _sass/partials/_print-toc.scss
electric-book-classic-theme-0.1.1 _sass/partials/_print-toc.scss
electric-book-classic-theme-0.1.0 _sass/partials/_print-toc.scss