Home | History | Annotate | Download | only in front_end
      1 /*
      2  * Copyright (C) 2006, 2007, 2008 Apple Inc.  All rights reserved.
      3  * Copyright (C) 2009 Anthony Ricaud <rik (at) 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 
     30 .resource-view {
     31     display: none;
     32     position: absolute;
     33     top: 0;
     34     right: 0;
     35     left: 0;
     36     bottom: 0;
     37     overflow: auto;
     38 }
     39 
     40 .resource-view.visible {
     41     display: block;
     42 }
     43 
     44 .resource-view.font {
     45     font-size: 60px;
     46     white-space: pre-wrap;
     47     word-wrap: break-word;
     48     text-align: center;
     49     padding: 15px;
     50 }
     51 
     52 .resource-view .script-view {
     53     background-color: rgb(240, 240, 240);
     54 }
     55 
     56 .resource-view.image > .image {
     57     padding: 20px 20px 10px 20px;
     58     text-align: center;
     59 }
     60 
     61 .resource-view.image > .info {
     62     padding-bottom: 10px;
     63     font-size: 11px;
     64     -webkit-user-select: text;
     65 }
     66 
     67 .resource-view.image img.resource-image-view {
     68     max-width: 100%;
     69     max-height: 1000px;
     70     background-image: url(Images/checker.png);
     71     box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
     72     -webkit-user-select: text;
     73     -webkit-user-drag: auto;
     74 }
     75 
     76 .resource-status-image {
     77     margin-top: -2px;
     78     margin-right: 3px;
     79     vertical-align: middle;
     80 }
     81 
     82 .resource-view.image .title {
     83     text-align: center;
     84     font-size: 13px;
     85 }
     86 
     87 .resource-view.image .infoList {
     88     margin: 0;
     89 }
     90 
     91 .resource-view.image .infoList dt {
     92     font-weight: bold;
     93     display: inline-block;
     94     width: 50%;
     95     text-align: right;
     96     color: rgb(76, 76, 76);
     97 }
     98 
     99 .resource-view.image .infoList dd {
    100     display: inline-block;
    101     padding-left: 8px;
    102     width: 50%;
    103     text-align: left;
    104     margin: 0;
    105 }
    106 
    107 .resource-view.image .infoList dd::after {
    108     white-space: pre;
    109     content: "\A";
    110 }
    111 
    112 .script-view-fallback {
    113     word-wrap: break-word;
    114     -webkit-user-select: text;
    115     background-color: inherit;
    116 }