toc
This commit is contained in:
		
							parent
							
								
									3a29f4c86e
								
							
						
					
					
						commit
						b8c011410d
					
				
					 21 changed files with 233 additions and 66 deletions
				
			
		| 
						 | 
				
			
			@ -1,10 +0,0 @@
 | 
			
		|||
header {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  flex-direction: row;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  margin: 1em 0 2em 0;
 | 
			
		||||
  & > h1 {
 | 
			
		||||
    margin: 0;
 | 
			
		||||
    flex: auto;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										27
									
								
								quartz/components/styles/toc.scss
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								quartz/components/styles/toc.scss
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,27 @@
 | 
			
		|||
details.toc {
 | 
			
		||||
  & summary {
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
 | 
			
		||||
    &::marker {
 | 
			
		||||
      color: var(--dark);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    & > * {
 | 
			
		||||
      padding-left: 0.25rem;
 | 
			
		||||
      display: inline-block;
 | 
			
		||||
      margin: 0;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
    
 | 
			
		||||
  & ul {
 | 
			
		||||
    list-style: none;
 | 
			
		||||
    margin: 0.5rem 1.25rem;
 | 
			
		||||
    padding: 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @for $i from 1 through 6 {
 | 
			
		||||
    & .depth-#{$i} {
 | 
			
		||||
      padding-left: calc(1rem * #{$i});
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue