Fix <code> block and inline styles
This commit is contained in:
		
							parent
							
								
									703d6933f3
								
							
						
					
					
						commit
						73320e6fb3
					
				
					 5 changed files with 14 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
:root {
 | 
			
		||||
    --highlight-background-color: rgb(var(--super-lt-gray));
 | 
			
		||||
    --highlight-background-color: rgb(250, 250, 250);
 | 
			
		||||
    --highlight-foreground-color: var(--foreground-body-color);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -205,7 +205,7 @@
 | 
			
		|||
    border: 1px solid var(--separator-color);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .highlight code {
 | 
			
		||||
  figure.code code {
 | 
			
		||||
    background-color: inherit;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -86,6 +86,11 @@
 | 
			
		|||
    margin: 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  p code {
 | 
			
		||||
    padding-block-start: 0.1em;
 | 
			
		||||
    padding-inline: 0.25em;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  code.nobg {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
| 
						 | 
				
			
			@ -124,12 +129,13 @@
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  figure.code .line > .ln {
 | 
			
		||||
    grid-column: gutter-start;
 | 
			
		||||
  figure.code {
 | 
			
		||||
    grid-column: content-start / content-end;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  figure.code .line > .cl {
 | 
			
		||||
    grid-column: content-start / content-end;
 | 
			
		||||
  figure.code pre {
 | 
			
		||||
    overflow: auto;
 | 
			
		||||
    padding: 1rem;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  figure > .container {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
@layer root {
 | 
			
		||||
  .highlight .ln a {
 | 
			
		||||
  figure.code .ln a {
 | 
			
		||||
    -webkit-user-select: none;
 | 
			
		||||
    -moz-use-select: none;
 | 
			
		||||
    -ms-user-select: none;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -59,7 +59,7 @@
 | 
			
		|||
        text-align: center;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    figure .highlight .cl {
 | 
			
		||||
    figure.code .cl {
 | 
			
		||||
        white-space: pre-wrap;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue