TopLevelVideoDocument.css 670 B

123456789101112131415161718192021222324252627282930313233
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /*
  6. This CSS stylesheet defines the rules to be applied to VideoDocuments that
  7. are top level (e.g. not iframes).
  8. */
  9. body {
  10. height: 100%;
  11. width: 100%;
  12. margin: 0;
  13. padding: 0;
  14. }
  15. video {
  16. position: absolute;
  17. top: 0;
  18. right: 0;
  19. bottom: 0;
  20. left: 0;
  21. margin: auto;
  22. max-width: 100%;
  23. max-height: 100%;
  24. -moz-user-select: none;
  25. }
  26. video:focus {
  27. outline-width: 0;
  28. }