make highlight a curryfied version of block
This commit is contained in:
		
							parent
							
								
									5bfb2f38ca
								
							
						
					
					
						commit
						663f587f77
					
				
					 1 changed files with 6 additions and 9 deletions
				
			
		| 
						 | 
					@ -22,12 +22,9 @@
 | 
				
			||||||
  v(.7cm)
 | 
					  v(.7cm)
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#let highlight(fill: school-color.lighten(40%)/*luma(230)*/, content) = {
 | 
					#let highlight = block.with(
 | 
				
			||||||
  block(
 | 
					  fill: school-color.lighten(45%), // luma(230)
 | 
				
			||||||
  width: 100%,
 | 
					  width: 100%,
 | 
				
			||||||
  inset: 8pt,
 | 
					  inset: 8pt,
 | 
				
			||||||
  radius: 4pt,
 | 
					  radius: 4pt,
 | 
				
			||||||
    fill: fill,
 | 
					)
 | 
				
			||||||
    content
 | 
					 | 
				
			||||||
  )
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue