TopLevelImageDocument.css 941 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 ImageDocuments that
  7. are top level (e.g. not iframes).
  8. */
  9. @media not print {
  10. body {
  11. margin: 0;
  12. }
  13. img {
  14. text-align: center;
  15. position: absolute;
  16. margin: auto;
  17. top: 0;
  18. right: 0;
  19. bottom: 0;
  20. left: 0;
  21. }
  22. img.overflowingVertical {
  23. /* If we're overflowing vertically, we need to set margin-top to
  24. 0. Otherwise we'll end up trying to vertically center, and end
  25. up cutting off the top part of the image. */
  26. margin-top: 0;
  27. }
  28. .completeRotation {
  29. transition: transform 0.3s ease 0s;
  30. }
  31. }
  32. img {
  33. image-orientation: from-image;
  34. }