Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.45 KB | None | 0 0
  1. /*** Overall page ***/
  2.  
  3. body {
  4. font-size: 11px /* IDEInspectorBasicStringProperty.xib */;
  5. /* Prevent the user from selecting most of the page. */
  6. -webkit-user-select: none; user-select: none;
  7. }
  8.  
  9. /*** Common elements ***/
  10.  
  11. p {
  12. margin: 0;
  13. margin-bottom: 5px;
  14. }
  15. p:last-child {
  16. margin-bottom: 0;
  17. }
  18.  
  19. pre, code {
  20. font-size: 11px;
  21. }
  22.  
  23. a { color: rgb(9, 61, 146); text-decoration: none; }
  24. a:hover, a:hover span { color: rgb(9, 61, 146); text-decoration: underline; }
  25. a:active { color: rgb(9, 61, 146); text-decoration: none; }
  26.  
  27. /* apple.com site does not explicitly define visited link properties, but we do here */
  28. a:visited { color: #003366; text-decoration: none; }
  29. a:visited:hover, a:visited:hover span { color: #003366; text-decoration: underline; }
  30.  
  31. td, th {
  32. padding: 0;
  33. }
  34.  
  35. tr {
  36. vertical-align: top;
  37. }
  38.  
  39. th[scope=row] {
  40. font-weight: normal;
  41. text-align: right;
  42. }
  43.  
  44. figure > pre {
  45. margin-left: -40px;
  46. margin-right: -40px;
  47. }
  48.  
  49. /* Forcefully broken camel case words */
  50. span.camelCase, span.camelCase > span {
  51. display: inline-block;
  52. }
  53.  
  54. /*** Inspector-like slices ***/
  55.  
  56. #slices {
  57. border-collapse: collapse;
  58. /* Restrict the table to the page width even when a long word may put pressure on the table to expand. */
  59. table-layout: fixed;
  60. width: 100%;
  61. }
  62.  
  63. .slice > th {
  64. width: 90px;
  65. padding-right: 11px;
  66. color: #A1A1A1;
  67. cursor: default;
  68. }
  69.  
  70. .slice > td {
  71. color: #000;
  72. word-wrap: break-word;
  73. /* Let the user select actual content. */
  74. -webkit-user-select: text; user-select: text;
  75. }
  76.  
  77. .slice > * {
  78. padding-bottom: 10px;
  79. }
  80. .slice:last-child > * {
  81. padding-bottom: 0;
  82. }
  83.  
  84. /*** Abstract slice ***/
  85. html.buildSetting #Abstract > td {
  86. white-space: pre-wrap;
  87. }
  88.  
  89. /*** Parameters slice (table in popover, definition list in inspector) ***/
  90.  
  91. .parameter > * {
  92. padding-bottom: 5px;
  93. }
  94. .parameter:last-child > * {
  95. padding-bottom: 0;
  96. }
  97.  
  98. .parameter > th[scope="row"] {
  99. text-align: left;
  100. }
  101.  
  102. .parameter > td {
  103. padding-left: 12px;
  104. }
  105.  
  106. #Parameters > td > table {
  107. border-collapse: collapse;
  108. }
  109.  
  110. #Parameters dl {
  111. margin: 0;
  112. }
  113.  
  114. #Parameters dd {
  115. margin: 0;
  116. margin-bottom: 5px;
  117. padding: 0;
  118. }
  119. #Parameters dd:last-child {
  120. margin: 0;
  121. }
  122.  
  123. /*** Other slices ***/
  124.  
  125. /* Declaration */
  126. pre.declaration {
  127. margin: 0;
  128. white-space: pre-wrap;
  129. }
  130. html.deprecated pre.declaration, html.deprecated pre.declaration span.camelCase {
  131. color: red;
  132. }
  133. html.deprecated pre.declaration, html.deprecated pre.declaration span {
  134. text-decoration: line-through;
  135. }
  136. html.deprecated pre.declaration, html.deprecated pre.declaration span {
  137. color: -webkit-text;
  138. }
  139.  
  140. /* Hide Declaration slices for kinds of symbols that tend to have verbose declarations. */
  141. html.kind-Class #Declaration,
  142. html.kind-Protocol #Declaration {
  143. display: none;
  144. }
  145.  
  146. /* "Deprecated" in Availability slice */
  147. strong.warning {
  148. color: red;
  149. font-weight: normal;
  150. }
  151.  
  152. /* "MyDocument : NSDocument" */
  153. #TokenHierarchy > td {
  154. color: rgb(108, 108, 108);
  155. font-weight: bold;
  156. }
  157.  
  158. /* Remove the Name slice. */
  159. #TokenName {
  160. display: none;
  161. }
  162.  
  163. #TokenScope {
  164. display: none;
  165. }
  166.  
  167. /* Code listings */
  168. pre:not(.declaration) {
  169. word-wrap: normal;
  170. overflow-x: auto;
  171. width: auto;
  172. background-color: rgb(222, 222, 222) /* background2Color */;
  173. border: 1px solid rgb(153, 153, 153) /* headerSliceTopStrokeColor = headerSliceBottomStrokeColor */;
  174. padding: 4px;
  175. }
  176.  
  177. .parameter > td pre {
  178. white-space: pre-wrap;
  179. }
  180.  
  181. /* Tables */
  182. .slice:not(#Parameters) > td > table,
  183. .parameter table {
  184. border-collapse: collapse;
  185. margin: 8px auto;
  186. }
  187.  
  188. .slice:not(#Parameters) > td > table td,
  189. .parameter table td {
  190. border: 1px solid rgb(153, 153, 153) /* headerSliceTopStrokeColor = headerSliceBottomStrokeColor */;
  191. padding: 4px;
  192. }
  193.  
  194. /*** Inline, comma-delimited lists ***/
  195.  
  196. #RelatedAPI ul,
  197. #RelatedDocuments ul,
  198. #RelatedSampleCode ul {
  199. list-style-type: none;
  200. margin: 0;
  201. padding: 0;
  202. }
  203.  
  204. #RelatedAPI li,
  205. #RelatedDocuments li,
  206. #RelatedSampleCode li {
  207. display: inline;
  208. }
  209.  
  210. #RelatedAPI li:after,
  211. #RelatedDocuments li:after,
  212. #RelatedSampleCode li:after {
  213. content:", ";
  214. }
  215. #RelatedAPI li:last-child:after,
  216. #RelatedDocuments li:last-child:after,
  217. #RelatedSampleCode li:last-child:after {
  218. content: none;
  219. }
  220.  
  221. /*** Quick Help messages (indexing, no results, etc.) ***/
  222.  
  223. html.message {
  224. height: 80px;
  225. }
  226.  
  227. /* Vertically center the message contents within the page, with or without the search link. */
  228. html.message > body {
  229. text-align: center;
  230. max-height: 64px;
  231. position: absolute;
  232. top: 0;
  233. left: 0;
  234. right: 0;
  235. bottom: 0;
  236. display: -webkit-box;
  237. -webkit-box-pack: center;
  238. -webkit-box-align: center;
  239. }
  240.  
  241. #badge {
  242. display: block;
  243. cursor: default;
  244. margin-left: auto;
  245. margin-right: auto;
  246. }
  247.  
  248. #badge > svg {
  249. display: inline-block;
  250. white-space: nowrap;
  251. width: 100%;
  252. }
  253.  
  254. /* The “Search Documentation” link block */
  255. #actions {
  256. list-style-type: none;
  257. margin: 0;
  258. margin-top: 6px;
  259. padding: 0;
  260. }
  261.  
  262. /*** Inspector ***/
  263.  
  264. html.Inspector {
  265. /* Prevent nested scroll views. */
  266. overflow-y: hidden;
  267. line-height: 14px;
  268. }
  269.  
  270. html.Inspector:not(.message) > body {
  271. margin-left: 0;
  272. margin-top: 7px;
  273. }
  274.  
  275. /* Use the blackish label color that other inspectors in the IDE do. */
  276. html.Inspector .slice > th {
  277. color: rgb(51, 51, 51) /* inspectorSliverLabelColor */;
  278. width: 77px /* IDESliverLabelSize.width - IDEInspectorSliverLabelXOrigin + 1 */;
  279. font-size: 10px /* inspectorSliverLabelFont */;
  280. padding-left: 3px /* IDEInspectorSliverLabelXOrigin */;
  281. padding-right: 0;
  282. }
  283.  
  284. html.Inspector .slice > td {
  285. padding-left: 6px /* IDEInspectorRightPadding + 1 */;
  286. }
  287.  
  288. html.Inspector .slice > * {
  289. padding-bottom: 5px;
  290. }
  291. html.Inspector .slice:last-child > * {
  292. padding-bottom: 0;
  293. }
  294.  
  295. html.Inspector figure,
  296. html.Inspector figure > pre {
  297. margin-left: 0;
  298. margin-right: 0;
  299. }
  300.  
  301. /* Support for folded contents. */
  302. .expandable-section > .expand-button {
  303. display: none;
  304. }
  305.  
  306. .expandable-section > .expand-button ~ label {
  307. display: block;
  308. text-indent: 10%;
  309. color: rgb(9, 61, 146);
  310. text-decoration: none;
  311. cursor: pointer;
  312. }
  313.  
  314. .expandable-section > .expand-button ~ label:hover {
  315. text-decoration: underline;
  316. }
  317.  
  318. .expandable-section > .expand-button:checked ~ label {
  319. display: none;
  320. }
  321.  
  322. .expandable-section > .expand-button ~ .collapsed-content {
  323. display: none;
  324. }
  325.  
  326. .expandable-section > .expand-button:checked ~ .collapsed-content {
  327. display: initial;
  328. }
  329.  
  330. .special-section {
  331. margin-bottom: 7px;
  332. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement