Add side-by-side shortcode
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
		
							parent
							
								
									7a263ce2e5
								
							
						
					
					
						commit
						85ea55402e
					
				@ -470,3 +470,11 @@ blockquote {
 | 
			
		||||
.early-navigation-wrapper {
 | 
			
		||||
    margin-bottom: 3rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.side-by-side {
 | 
			
		||||
    display: flex;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.side-by-side-item {
 | 
			
		||||
  flex-basis: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										3
									
								
								layouts/shortcodes/sidebyside.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								layouts/shortcodes/sidebyside.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
<div class="side-by-side">
 | 
			
		||||
    {{ .Inner }}
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										3
									
								
								layouts/shortcodes/sidebysideitem.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								layouts/shortcodes/sidebysideitem.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
<div class="side-by-side-item" {{ with .Get "weight" }} style="flex-grow: {{ . }};" {{ end }}>
 | 
			
		||||
    {{ .Inner }}
 | 
			
		||||
</div>
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user