Jump to content

Index:Ethics (Moore 1912).djvu/styles.css

From Wikisource
.stoc-line {
  margin:0 auto;
  display: grid;
  grid-template-columns: auto max-content;
  max-width: 36em;
  grid-template-areas: "chapter page";
  align-items: end;
  gap: 0 .5em; /* customize the gap to your needs */
}

.stoc-chap {
	text-align:left;
  grid-area: chapter;
  position: relative;
  overflow: hidden;
  	text-indent:-1.50em;
	padding-left:1.50em;
}

.stoc-chap::after {
  position: absolute;
  text-indent:-1.50em;
  padding-left: 1.5em; /* customise the padding to your needs */
  /* adjust the amount of dots to your needs */
  content: " . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . "
    ". . . . . . . . . . . . . . . . . . . . . . . ";
  text-align: right; /* optional, can be removed */
}

.stoc-page {
  width: 12em;
  text-align: left;
}