You are here

background-media.css in Bootstrap Styles 1.0.x

.background-local-video {
  overflow: hidden;
  position: relative;
}

.background-local-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.background-local-video .video-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

File

css/build/plugins/background-media.css
View source
  1. .background-local-video {
  2. overflow: hidden;
  3. position: relative;
  4. }
  5. .background-local-video video {
  6. position: absolute;
  7. top: 50%;
  8. left: 50%;
  9. min-width: 100%;
  10. min-height: 100%;
  11. width: auto;
  12. height: auto;
  13. z-index: 0;
  14. -ms-transform: translateX(-50%) translateY(-50%);
  15. -moz-transform: translateX(-50%) translateY(-50%);
  16. -webkit-transform: translateX(-50%) translateY(-50%);
  17. transform: translateX(-50%) translateY(-50%);
  18. }
  19. .background-local-video .video-content {
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. right: 0;
  24. bottom: 0;
  25. z-index: 1;
  26. }