mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	Add 'align' option to figure shortcode (#256)
Usage: 
{{< figure align=center src="image.jpg" >}}
Parameter values:
  - 'center': align image and captions to center of page
  - anything else neglected
* Appends "#center" to the image's URL in order to utilize existing CSS
rules for centering images.
			
			
This commit is contained in:
		| @@ -242,6 +242,10 @@ | ||||
|     margin: auto | ||||
| } | ||||
|  | ||||
| .post-content figure.align-center { | ||||
| 	text-align: center; | ||||
| } | ||||
|  | ||||
| .post-content figure > figcaption { | ||||
|     color: var(--primary); | ||||
|     font-size: 16px; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kian Kasad
					Kian Kasad