resourceView.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
  3. * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. * 2. Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
  15. * its contributors may be used to endorse or promote products derived
  16. * from this software without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
  19. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  20. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  21. * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
  22. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  23. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  24. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  25. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  27. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28. */
  29. .resource-view {
  30. display: none;
  31. position: absolute;
  32. top: 0;
  33. right: 0;
  34. left: 0;
  35. bottom: 0;
  36. overflow: auto;
  37. }
  38. .resource-view.visible {
  39. display: block;
  40. }
  41. .resource-view.font {
  42. font-size: 60px;
  43. white-space: pre-wrap;
  44. word-wrap: break-word;
  45. text-align: center;
  46. padding: 15px;
  47. }
  48. .resource-view .script-view {
  49. background-color: rgb(240, 240, 240);
  50. }
  51. .resource-view.image > .image {
  52. padding: 20px 20px 10px 20px;
  53. text-align: center;
  54. }
  55. .resource-view.image > .info {
  56. padding-bottom: 10px;
  57. font-size: 11px;
  58. -webkit-user-select: text;
  59. }
  60. .resource-view.image img.resource-image-view {
  61. max-width: 100%;
  62. max-height: 1000px;
  63. background-image: url(Images/checker.png);
  64. box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  65. -webkit-user-select: text;
  66. -webkit-user-drag: auto;
  67. }
  68. .resource-status-image {
  69. margin-top: -2px;
  70. margin-right: 3px;
  71. vertical-align: middle;
  72. }
  73. .resource-view.image .title {
  74. text-align: center;
  75. font-size: 13px;
  76. }
  77. .resource-view.image .infoList {
  78. margin: 0;
  79. }
  80. .resource-view.image .infoList dt {
  81. font-weight: bold;
  82. display: inline-block;
  83. width: 50%;
  84. text-align: right;
  85. color: rgb(76, 76, 76);
  86. }
  87. .resource-view.image .infoList dd {
  88. display: inline-block;
  89. padding-left: 8px;
  90. width: 50%;
  91. text-align: left;
  92. margin: 0;
  93. }
  94. .resource-view.image .infoList dd::after {
  95. white-space: pre;
  96. content: "\A";
  97. }
  98. .script-view-fallback {
  99. word-wrap: break-word;
  100. -webkit-user-select: text;
  101. background-color: inherit;
  102. }