mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 06:49:45 +03:00 
			
		
		
		
	
							
								
								
									
										25
									
								
								_scss/components/theme/_code.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								_scss/components/theme/_code.scss
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
@import 'utilities/borderradius';
 | 
			
		||||
 | 
			
		||||
code {
 | 
			
		||||
  background: $color-tertiary;
 | 
			
		||||
  font-size: 86%;
 | 
			
		||||
  margin: 0 .2rem;
 | 
			
		||||
  padding: .2rem .5rem;
 | 
			
		||||
  white-space: nowrap;
 | 
			
		||||
 | 
			
		||||
  @include borderradius(.4rem);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pre {
 | 
			
		||||
  background: $color-tertiary;
 | 
			
		||||
  border-left: .3rem solid $color-primary;
 | 
			
		||||
  overflow-x: auto;
 | 
			
		||||
 | 
			
		||||
  & > code {
 | 
			
		||||
    display: block;
 | 
			
		||||
    padding: 1rem 1.5rem;
 | 
			
		||||
    white-space: pre;
 | 
			
		||||
 | 
			
		||||
    @include borderradius(0);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user