Better videos => automatic resize
This commit is contained in:
		@@ -1,13 +1,17 @@
 | 
			
		||||
/* Center Youtube Videos */
 | 
			
		||||
 | 
			
		||||
iframe {
 | 
			
		||||
  display: block;
 | 
			
		||||
  margin: auto;
 | 
			
		||||
  max-width: 100%;
 | 
			
		||||
// Youtube Videos
 | 
			
		||||
div.yt {
 | 
			
		||||
  position: relative;
 | 
			
		||||
  padding-bottom: 56.25%; /* 16:9, for an aspect ratio of 1:1 change to this value to 100% */
 | 
			
		||||
  iframe {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Video */
 | 
			
		||||
 | 
			
		||||
// Other Videos
 | 
			
		||||
video {
 | 
			
		||||
  max-width: 100%;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user