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 .resources.panel .sidebar-resizer-vertical {
     31     top: 23px;
     32 }
     33 
     34 .resources.panel .sidebar {
     35     padding-left: 0;
     36     z-index: 10;
     37 }
     38 
     39 .resources.panel .sidebar li {
     40     height: 18px;
     41     white-space: nowrap;
     42 }
     43 
     44 .resources.panel .sidebar li.selected {
     45     color: white;
     46     text-shadow: rgba(0, 0, 0, 0.33) 1px 1px 0;
     47 }
     48 
     49 .resources.panel .sidebar li.selected .selection {
     50     background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(162, 177, 207)), to(rgb(120, 138, 177)));
     51     border-top: 1px solid #979797;
     52     height: 18px;
     53 }
     54 
     55 .resources.panel .sidebar :focus li.selected .selection {
     56     background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(92, 147, 213)), to(rgb(21, 83, 170)));
     57     border-top: 1px solid rgb(68, 128, 200);
     58 }
     59 
     60 body.inactive .resources.panel .sidebar li.selected .selection {
     61     background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(180, 180, 180)), to(rgb(138, 138, 138)));
     62     border-top: 1px solid rgb(151, 151, 151);
     63 }
     64 
     65 .resources.panel .sidebar .icon {
     66     width: 16px;
     67     height: 16px;
     68     float: left;
     69 }
     70 
     71 .resources.panel .base-storage-tree-element-title {
     72     overflow: hidden;
     73     position: relative;
     74     text-overflow: ellipsis;
     75     padding-left: 2px;
     76     top: 1px;
     77 }
     78 
     79 li.selected .base-storage-tree-element-subtitle {
     80     color: white;
     81 }
     82 
     83 .base-storage-tree-element-subtitle {
     84     padding-left: 2px;
     85     color: rgb(80, 80, 80);
     86     text-shadow: none;
     87 }
     88 
     89 .resources.panel .status {
     90     float: right;
     91     height: 16px;
     92     margin-top: 1px;
     93     margin-left: 4px;
     94     line-height: 1em;
     95 }
     96 
     97 .resources.panel li .status .bubble {
     98     height: 13px;
     99     padding-top: 0;
    100 }
    101 
    102 .storage-view {
    103     display: none;
    104     overflow: hidden;
    105     position: absolute;
    106     top: 0;
    107     left: 0;
    108     right: 0;
    109     bottom: 0;
    110 }
    111 
    112 .storage-view.visible {
    113     display: block;
    114 }
    115 
    116 .storage-view {
    117     overflow: hidden;
    118 }
    119 
    120 .storage-view .data-grid:not(.inline) {
    121     border: none;
    122     height: 100%;
    123 }
    124 
    125 .storage-view .storage-table-error {
    126     color: rgb(66%, 33%, 33%);
    127 }
    128 
    129 .storage-view.query {
    130     padding: 2px 0;
    131     overflow-y: overlay;
    132     overflow-x: hidden;
    133 }
    134 
    135 .database-query-prompt {
    136     position: relative;
    137     padding: 1px 22px 1px 24px;
    138     min-height: 16px;
    139     white-space: pre-wrap;
    140     -webkit-user-modify: read-write-plaintext-only;
    141     -webkit-user-select: text;
    142 }
    143 
    144 .database-user-query::before,
    145 .database-query-prompt::before,
    146 .database-query-result::before {
    147     position: absolute;
    148     display: block;
    149     content: "";
    150     left: 7px;
    151     top: 0.8em;
    152     width: 10px;
    153     height: 10px;
    154     margin-top: -7px;
    155     -webkit-user-select: none;
    156     background-image: url(Images/statusbarButtonGlyphs.png);
    157     background-size: 320px 120px;
    158 }
    159 
    160 @media (-webkit-min-device-pixel-ratio: 1.5) {
    161 .database-user-query::before,
    162 .database-query-prompt::before,
    163 .database-query-result::before {
    164     background-image: url(Images/statusbarButtonGlyphs2x.png);
    165 }
    166 } /* media */
    167 
    168 .database-query-prompt::before {
    169     background-position: -192px -96px;
    170 }
    171 
    172 .database-user-query {
    173     position: relative;
    174     border-bottom: 1px solid rgb(245, 245, 245);
    175     padding: 1px 22px 1px 24px;
    176     min-height: 16px;
    177 }
    178 
    179 .database-user-query::before {
    180     background-position: -192px -107px;
    181 }
    182 
    183 .database-query-text {
    184     color: rgb(0, 128, 255);
    185     -webkit-user-select: text;
    186 }
    187 
    188 .database-query-result {
    189     position: relative;
    190     padding: 1px 22px 1px 24px;
    191     min-height: 16px;
    192     margin-left: -24px;
    193     padding-right: 0;
    194 }
    195 
    196 .database-query-result.error {
    197     color: red;
    198     -webkit-user-select: text;
    199 }
    200 
    201 .database-query-result.error::before {
    202     background-position: -213px -96px;
    203 }
    204 
    205 .resource-sidebar-tree-item .icon {
    206     content: url(Images/resourcePlainIcon.png);
    207 }
    208 
    209 .children.small .resource-sidebar-tree-item .icon {
    210     content: url(Images/resourcePlainIconSmall.png);
    211 }
    212 
    213 .resource-sidebar-tree-item.resources-type-image .icon {
    214     position: relative;
    215     background-image: url(Images/resourcePlainIcon.png);
    216     background-repeat: no-repeat;
    217     content: "";
    218 }
    219 
    220 .resources-type-image .image-resource-icon-preview {
    221     position: absolute;
    222     margin: auto;
    223     top: 3px;
    224     bottom: 4px;
    225     left: 5px;
    226     right: 5px;
    227     max-width: 18px;
    228     max-height: 21px;
    229     min-width: 1px;
    230     min-height: 1px;
    231 }
    232 
    233 .children.small .resource-sidebar-tree-item.resources-type-image .icon {
    234     background-image: url(Images/resourcePlainIconSmall.png);
    235     content: "";
    236 }
    237 
    238 .children.small .resources-type-image .image-resource-icon-preview {
    239     top: 2px;
    240     bottom: 1px;
    241     left: 3px;
    242     right: 3px;
    243     max-width: 8px;
    244     max-height: 11px;
    245 }
    246 
    247 .resource-sidebar-tree-item.resources-type-document .icon {
    248     content: url(Images/resourceDocumentIcon.png);
    249 }
    250 
    251 .children.small .resource-sidebar-tree-item.resources-type-document .icon {
    252     content: url(Images/resourceDocumentIconSmall.png);
    253 }
    254 
    255 .resource-sidebar-tree-item.resources-type-stylesheet .icon {
    256     content: url(Images/resourceCSSIcon.png);
    257 }
    258 
    259 .children.small .resource-sidebar-tree-item.resources-type-stylesheet .icon {
    260     content: url(Images/resourceDocumentIconSmall.png);
    261 }
    262 
    263 .resource-sidebar-tree-item.resources-type-image .icon {
    264     position: relative;
    265     background-image: url(Images/resourcePlainIcon.png);
    266     background-repeat: no-repeat;
    267     content: "";
    268 }
    269 
    270 .children.small .resource-sidebar-tree-item.resources-type-image .icon {
    271     background-image: url(Images/resourcePlainIconSmall.png);
    272     content: "";
    273 }
    274 
    275 .resource-sidebar-tree-item.resources-type-font .icon {
    276     content: url(Images/resourcePlainIcon.png);
    277 }
    278 
    279 .children.small .resource-sidebar-tree-item.resources-type-font .icon {
    280     content: url(Images/resourcePlainIconSmall.png);
    281 }
    282 
    283 .resource-sidebar-tree-item.resources-type-script .icon {
    284     content: url(Images/resourceJSIcon.png);
    285 }
    286 
    287 .children.small .resource-sidebar-tree-item.resources-type-script .icon {
    288     content: url(Images/resourceDocumentIconSmall.png);
    289 }
    290 
    291 .resource-sidebar-tree-item.resources-type-xhr .icon {
    292     content: url(Images/resourcePlainIcon.png);
    293 }
    294 
    295 .children.small .resource-sidebar-tree-item.resources-type-xhr .icon {
    296     content: url(Images/resourceDocumentIconSmall.png);
    297 }
    298 
    299 .frame-storage-tree-item .icon {
    300     content: url(Images/frame.png);
    301 }
    302 
    303 .database-storage-tree-item .icon {
    304     content: url(Images/database.png);
    305 }
    306 
    307 .database-table-storage-tree-item .icon {
    308     content: url(Images/databaseTable.png);
    309 }
    310 
    311 .indexed-db-storage-tree-item .icon {
    312     content: url(Images/indexedDB.png);
    313 }
    314 
    315 .indexed-db-object-store-storage-tree-item .icon {
    316     content: url(Images/indexedDBObjectStore.png);
    317 }
    318 
    319 .indexed-db-index-storage-tree-item .icon {
    320     content: url(Images/indexedDBIndex.png);
    321 }
    322 
    323 .domstorage-storage-tree-item.local-storage .icon {
    324     content: url(Images/localStorage.png);
    325 }
    326 
    327 .domstorage-storage-tree-item.session-storage .icon {
    328     content: url(Images/sessionStorage.png);
    329 }
    330 
    331 .cookie-storage-tree-item .icon {
    332     content: url(Images/cookie.png);
    333 }
    334 
    335 .application-cache-storage-tree-item .icon {
    336     content: url(Images/applicationCache.png);
    337 }
    338 
    339 .file-system-storage-tree-item .icon {
    340     content: url(Images/fileSystem.png);
    341 }
    342