resourcesPanel.css 8.3 KB

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