forked from tsc-vfl/hugo-page
		
	Make the list of rooms mobile aware
This commit is contained in:
		
							parent
							
								
									46aa612ed5
								
							
						
					
					
						commit
						8d41136787
					
				@ -10,10 +10,14 @@ menu:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Vereinsheim vorne und mitte
 | 
					## Vereinsheim vorne und mitte
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{{< tsc/rooms/room >}}
 | 
				
			||||||
 | 
					{{< tsc/rooms/image image="vereinsheim.png" >}}
 | 
				
			||||||
 | 
					{{% tsc/rooms/address %}}
 | 
				
			||||||
Rudolf-Harbig-Str. 6  
 | 
					Rudolf-Harbig-Str. 6  
 | 
				
			||||||
71063 Sindelfingen
 | 
					71063 Sindelfingen
 | 
				
			||||||
 | 
					{{% /tsc/rooms/address %}}
 | 
				
			||||||
 | 
					{{< /tsc/rooms/room >}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Das Bild zeigt unsere zwei Trainingsräume im Vereinsheim mit geöffneter Trennwand.
 | 
					Das Bild zeigt unsere zwei Trainingsräume im Vereinsheim mit geöffneter Trennwand.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -21,7 +25,11 @@ Abgeteilt in zwei Räume  "VH Mitte" und "VH Vorn"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Neuer Saal "VH" neu"
 | 
					## Neuer Saal "VH" neu"
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 | 
					{{< tsc/rooms/room >}}
 | 
				
			||||||
 | 
					{{< tsc/rooms/image image="VH_Neu.jpg" >}}
 | 
				
			||||||
 | 
					{{% tsc/rooms/address %}}
 | 
				
			||||||
Rudolf-Harbig-Str. 6  
 | 
					Rudolf-Harbig-Str. 6  
 | 
				
			||||||
71063 Sindelfingen
 | 
					71063 Sindelfingen
 | 
				
			||||||
 | 
					{{% /tsc/rooms/address %}}
 | 
				
			||||||
 | 
					{{< /tsc/rooms/room >}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -612,6 +612,27 @@ h1 {
 | 
				
			|||||||
    max-width: 100%;
 | 
					    max-width: 100%;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.room {
 | 
				
			||||||
 | 
					    .image {
 | 
				
			||||||
 | 
					        max-width: 70%;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @include media-large() {
 | 
				
			||||||
 | 
					        display: flex;
 | 
				
			||||||
 | 
					        align-items: start;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        .image {
 | 
				
			||||||
 | 
					            flex: 50% 0 1;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        .address {
 | 
				
			||||||
 | 
					            margin-left: 10px;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        p {
 | 
				
			||||||
 | 
					            margin: 0;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:root {
 | 
					:root {
 | 
				
			||||||
    --color-vhvorne: #ddcb55;
 | 
					    --color-vhvorne: #ddcb55;
 | 
				
			||||||
    --color-vhmitte: #c98879;
 | 
					    --color-vhmitte: #c98879;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										1
									
								
								themes/tsc_vfl/layouts/shortcodes/tsc/rooms/address.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								themes/tsc_vfl/layouts/shortcodes/tsc/rooms/address.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					<div class="address">{{ .Inner }}</div>
 | 
				
			||||||
							
								
								
									
										4
									
								
								themes/tsc_vfl/layouts/shortcodes/tsc/rooms/image.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								themes/tsc_vfl/layouts/shortcodes/tsc/rooms/image.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					<div class="image">
 | 
				
			||||||
 | 
					    {{ $resource := .Page.Resources.GetMatch (.Get "image") }}
 | 
				
			||||||
 | 
					    <img src="{{ $resource.RelPermalink}} ">
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
							
								
								
									
										1
									
								
								themes/tsc_vfl/layouts/shortcodes/tsc/rooms/room.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								themes/tsc_vfl/layouts/shortcodes/tsc/rooms/room.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					<div class="room">{{ .Inner }}</div>
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user