170 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
			
		
		
	
	
			170 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
.index-content {
 | 
						|
  margin-top: 20px;
 | 
						|
}
 | 
						|
 | 
						|
.framed {
 | 
						|
  border: 1px solid $accent;
 | 
						|
  padding: 20px;
 | 
						|
 | 
						|
  *:first-child {
 | 
						|
    margin-top: 0;
 | 
						|
  }
 | 
						|
 | 
						|
  *:last-child {
 | 
						|
    margin-bottom: 0;
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.posts {
 | 
						|
  width: 100%;
 | 
						|
}
 | 
						|
 | 
						|
.post {
 | 
						|
  width: 100%;
 | 
						|
  text-align: left;
 | 
						|
  margin: 20px auto;
 | 
						|
  padding: 20px 0;
 | 
						|
 | 
						|
  &:not(:last-of-type) {
 | 
						|
    border-bottom: 1px solid $border-color;
 | 
						|
  }
 | 
						|
 | 
						|
  &-meta {
 | 
						|
    font-size: 1rem;
 | 
						|
    margin-bottom: 10px;
 | 
						|
    color: transparentize($accent, .3);
 | 
						|
  }
 | 
						|
 | 
						|
  &-title {
 | 
						|
    $border: 3px dotted $accent;
 | 
						|
    position: relative;
 | 
						|
    color: $accent;
 | 
						|
    margin: 0 0 15px;
 | 
						|
    padding-bottom: 15px;
 | 
						|
    border-bottom: $border;
 | 
						|
 | 
						|
    &:after {
 | 
						|
      content: '';
 | 
						|
      position: absolute;
 | 
						|
      bottom: 2px;
 | 
						|
      display: block;
 | 
						|
      width: 100%;
 | 
						|
      border-bottom: $border;
 | 
						|
    }
 | 
						|
 | 
						|
    a {
 | 
						|
      text-decoration: none;
 | 
						|
    }
 | 
						|
  }
 | 
						|
 | 
						|
  &-tags {
 | 
						|
    display: block;
 | 
						|
    margin-bottom: 20px;
 | 
						|
    font-size: 1rem;
 | 
						|
    opacity: .5;
 | 
						|
 | 
						|
    a {
 | 
						|
      text-decoration: none;
 | 
						|
    }
 | 
						|
  }
 | 
						|
 | 
						|
  &-content {
 | 
						|
    margin-top: 30px;
 | 
						|
  }
 | 
						|
 | 
						|
  &-cover {
 | 
						|
    border: 20px solid $accent;
 | 
						|
    background: transparent;
 | 
						|
    margin: 40px 0;
 | 
						|
    padding: 20px;
 | 
						|
 | 
						|
    @media ($phone) {
 | 
						|
      padding: 10px;
 | 
						|
      border-width: 10px;
 | 
						|
    }
 | 
						|
  }
 | 
						|
 | 
						|
  ul {
 | 
						|
    list-style: none;
 | 
						|
 | 
						|
    li:not(:empty):before {
 | 
						|
      content: '-';
 | 
						|
      position: absolute;
 | 
						|
      left: -20px;
 | 
						|
      color: $accent;
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.post--regulation {
 | 
						|
  h1 {
 | 
						|
    justify-content: center;
 | 
						|
  }
 | 
						|
 | 
						|
  h2 {
 | 
						|
    justify-content: center;
 | 
						|
    margin-bottom: 10px;
 | 
						|
 | 
						|
    & + h2 {
 | 
						|
      margin-top: -10px;
 | 
						|
      margin-bottom: 20px;
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.hanchor {
 | 
						|
  color: transparentize($accent, .1);
 | 
						|
  text-decoration: none;
 | 
						|
  margin-left: 10px;
 | 
						|
  visibility: hidden;
 | 
						|
}
 | 
						|
 | 
						|
h1:hover a, h2:hover a, h3:hover a, h4:hover a {
 | 
						|
  visibility: visible;
 | 
						|
}
 | 
						|
 | 
						|
.footnotes {
 | 
						|
  color: transparentize($color, .5);
 | 
						|
}
 | 
						|
 | 
						|
/* Auto Numbering */
 | 
						|
// https://codingnconcepts.com/hugo/auto-number-headings-hugo/
 | 
						|
body {
 | 
						|
  counter-reset: h2
 | 
						|
}
 | 
						|
 | 
						|
h2 {
 | 
						|
  counter-reset: h3
 | 
						|
}
 | 
						|
 | 
						|
h3 {
 | 
						|
  counter-reset: h4
 | 
						|
}
 | 
						|
 | 
						|
h4 {
 | 
						|
  counter-reset: h5
 | 
						|
}
 | 
						|
 | 
						|
article[autonumbering] h2:before {
 | 
						|
  counter-increment: h2;
 | 
						|
  content: counter(h2) " "
 | 
						|
}
 | 
						|
 | 
						|
article[autonumbering] h3:before {
 | 
						|
  counter-increment: h3;
 | 
						|
  content: counter(h2) "." counter(h3) " "
 | 
						|
}
 | 
						|
 | 
						|
article[autonumbering] h4:before {
 | 
						|
  counter-increment: h4;
 | 
						|
  content: counter(h2) "." counter(h3) "." counter(h4) " "
 | 
						|
}
 | 
						|
 | 
						|
article[autonumbering] .table-of-contents ul {
 | 
						|
  counter-reset: item
 | 
						|
}
 | 
						|
 | 
						|
article[autonumbering] .table-of-contents li a:before {
 | 
						|
  content: counters(item, ".") " ";
 | 
						|
  counter-increment: item
 | 
						|
} |