You are here

youtube.css in YouTube Field 7

CSS for the YouTube Field module.

File

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