Update CSS to preserve video aspect ratio
This commit is contained in:
		| @@ -45,12 +45,12 @@ $doorTime = date("H:i", $doorEntry->time); | |||||||
|     		.iframe-container { |     		.iframe-container { | ||||||
|     		  position: relative; |     		  position: relative; | ||||||
|     		  overflow: hidden; |     		  overflow: hidden; | ||||||
|     		  width: 100%; |                   max-width: 100%; | ||||||
|     		  padding-top: 30%; |     		  max-height: 100%; | ||||||
|  |                   aspect-ratio: 16/9; | ||||||
|                   margin: 0 auto; |                   margin: 0 auto; | ||||||
|     		} |     		} | ||||||
|  |  | ||||||
|     		/* Then style the iframe to fit in the container div with full height and width */ |  | ||||||
|     		.responsive-iframe { |     		.responsive-iframe { | ||||||
|     		  position: absolute; |     		  position: absolute; | ||||||
|     		  top: 0; |     		  top: 0; | ||||||
| @@ -58,12 +58,7 @@ $doorTime = date("H:i", $doorEntry->time); | |||||||
|     		  bottom: 0; |     		  bottom: 0; | ||||||
|     		  right: 0; |     		  right: 0; | ||||||
|     		  width: 100%; |     		  width: 100%; | ||||||
|     		  height: 100%; |                   aspect-ratio: 16/9; | ||||||
|     		} |  | ||||||
|                 @media (max-width: 768px) { |  | ||||||
|                     .iframe-container { |  | ||||||
|                         padding-top: 0; |  | ||||||
|                     } |  | ||||||
|     		} |     		} | ||||||
| 		</style> | 		</style> | ||||||
| 		<div class="iframe-container" style="max-width: 100em;"> | 		<div class="iframe-container" style="max-width: 100em;"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user