You are here

youtube.responsive.css in YouTube Field 8

Responsive embed CSS for the YouTube Field module output.

Added to the page when when a field's 'size' display setting is 'responsive'.

File

css/youtube.responsive.css
View source
  1. /**
  2. * @file
  3. * Responsive embed CSS for the YouTube Field module output.
  4. *
  5. * Added to the page when when a field's 'size' display setting is 'responsive'.
  6. */
  7. .youtube-container--responsive {
  8. overflow: hidden;
  9. position: relative;
  10. padding-bottom: 56.25%;
  11. height: 0;
  12. }
  13. .youtube-container--responsive iframe {
  14. border: none;
  15. position: absolute;
  16. top: 0;
  17. left: 0;
  18. width: 100%;
  19. height: 100%;
  20. }