blog_code-01256533b5.min.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. .dp-highlighter { font-family: "Consolas" , "Courier New" , Courier, mono, serif; font-size: 12px; background-color: #E7E5DC; width: 99%; margin: 18px 0 18px 0 !important; padding-top: 1px; text-align: left; }
  2. /* clear styles */
  3. .dp-highlighter ol, .dp-highlighter ol li, .dp-highlighter ol li span { margin: 0; padding: 0; border: none; }
  4. .dp-highlighter a, .dp-highlighter a:hover { background: none; border: none; padding: 0; margin: 0; }
  5. .dp-highlighter .bar { padding-left: 45px; }
  6. .dp-highlighter.collapsed .bar, .dp-highlighter.nogutter .bar { padding-left: 0px; }
  7. .dp-highlighter ol {
  8. list-style: decimal; /* for ie */
  9. background-color: #fff; margin: 0px 0px 1px 45px !important; /* 1px bottom margin seems to fix occasional Firefox scrolling */
  10. padding: 0px; color: #5C5C5C;
  11. border-right:1px solid #E7E5DC;
  12. }
  13. .dp-highlighter.nogutter ol, .dp-highlighter.nogutter ol li { list-style: none !important; margin-left: 0px !important; }
  14. .dp-highlighter ol li, .dp-highlighter .columns div { list-style: decimal-leading-zero; /* better look for others, override cascade from OL */ list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #F8F8F8; color: #5C5C5C; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 150%; }
  15. .dp-highlighter.nogutter ol li, .dp-highlighter.nogutter .columns div { border: 0; }
  16. .dp-highlighter .columns { background-color: #F8F8F8; color: gray; overflow: hidden; width: 100%; }
  17. .dp-highlighter .columns div { padding-bottom: 5px; }
  18. .dp-highlighter ol li.alt { background-color: #FFF; color: inherit; }
  19. .dp-highlighter ol li span { color: black; background-color: inherit; }
  20. /* Adjust some properties when collapsed */
  21. .dp-highlighter.collapsed ol { margin: 0px; }
  22. .dp-highlighter.collapsed ol li { display: none; }
  23. /* Additional modifications when in print-view */
  24. .dp-highlighter.printing { border: none; }
  25. .dp-highlighter.printing .tools { display: none !important; }
  26. .dp-highlighter.printing li { display: list-item !important; }
  27. /* Styles for the tools */
  28. .dp-highlighter .tools {
  29. padding: 3px 8px 3px 10px;
  30. font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver;
  31. background-color: #f8f8f8;
  32. padding-bottom: 10px;
  33. border-left: 3px solid #6CE26C;
  34. border-right:1px solid #E7E5DC;
  35. }
  36. .dp-highlighter.nogutter .tools { border-left: 0; }
  37. .dp-highlighter.collapsed .tools { border-bottom: 0; }
  38. .dp-highlighter .tools a { font-size: 9px; color: #a0a0a0; background-color: inherit; text-decoration: none; margin-right: 10px; }
  39. .dp-highlighter .tools a:hover { color: red; background-color: inherit; text-decoration: underline; }
  40. /* About dialog styles */
  41. .dp-about { background-color: #fff; color: #333; margin: 0px; padding: 0px; }
  42. .dp-about table { width: 100%; height: 100%; font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; }
  43. .dp-about td { padding: 10px; vertical-align: top; }
  44. .dp-about .copy { border-bottom: 1px solid #ACA899; height: 95%; }
  45. .dp-about .title { color: red; background-color: inherit; font-weight: bold; }
  46. .dp-about .para { margin: 0 0 4px 0; }
  47. .dp-about .footer { background-color: #ECEADB; color: #333; border-top: 1px solid #fff; text-align: right; }
  48. .dp-about .close { font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; background-color: #ECEADB; color: #333; width: 60px; height: 22px; }
  49. /* Language specific styles */
  50. .dp-highlighter .comment, .dp-highlighter .comments { color: #008200; background-color: inherit; }
  51. .dp-highlighter .string { color: blue; background-color: inherit; }
  52. .dp-highlighter .keyword { color: #069; font-weight: bold; background-color: inherit; }
  53. .dp-highlighter .preprocessor { color: gray; background-color: inherit; }
  54. /*xml*/
  55. .dp-xml .cdata { color: #ff1493; }
  56. .dp-xml .tag, .dp-xml .tag-name { color: #993300; font-weight: bold; }
  57. .dp-xml .attribute { color: red; }
  58. .dp-xml .attribute-value { color: blue; }
  59. /*sql*/
  60. .dp-sql .func { color: #ff1493; }
  61. .dp-sql .op { color: #808080; }
  62. /*ruby*/
  63. .dp-rb .symbol { color: #a70; }
  64. .dp-rb .variable { color: #a70; font-weight: bold; }
  65. /*python*/
  66. .dp-py .builtins { color: #ff1493; }
  67. .dp-py .magicmethods { color: #808080; }
  68. .dp-py .exceptions { color: brown; }
  69. .dp-py .types { color: brown; font-style: italic; }
  70. .dp-py .commonlibs { color: #8A2BE2; font-style: italic; }
  71. /*java*/
  72. .dp-j .annotation { color: #646464; }
  73. .dp-j .number { color: #C00000; }
  74. /*delphi*/
  75. .dp-delphi .number { color: blue; }
  76. .dp-delphi .directive { color: #008284; }
  77. .dp-delphi .vars { color: #000; }
  78. /*css*/
  79. .dp-css .value { color: black; }
  80. .dp-css .important { color: red; }
  81. /*csharp*/
  82. .dp-c .vars { color: #d00; }
  83. /*cpp*/
  84. .dp-cpp .datatypes { color: #2E8B57; font-weight: bold; }
  85. /*tools image*/
  86. .dp-highlighter .bar a { background-repeat:no-repeat; background-position:left top; display:inline-block; width:16px; height:16px; padding:1px; text-indent:-2000px; _width:0px; _overflow:hidden; _padding-left:16px; _text-indent:0px; }
  87. .dp-highlighter .bar a:hover { border:solid 1px #ccc; text-decoration:none; padding:0px; background-repeat:no-repeat;_padding-left:16px;}
  88. .dp-highlighter .bar a.ExpandSource {}
  89. .dp-highlighter .bar a.ViewSource { background-image:url(https://csdnimg.cn/release/phoenix/images/ico_plain.gif); }
  90. .dp-highlighter .bar a.CopyToClipboard { background-image:url(https://csdnimg.cn/release/phoenix/images/ico_copy.gif);}
  91. .dp-highlighter .bar a.PrintSource { display:none; }
  92. .dp-highlighter .bar a.About { display:none;}
  93. /* Pretty printing styles. Used with prettify.js. */
  94. /* SPAN elements with the classes below are added by prettyprint. */
  95. .pln { color: #000 } /* plain text */
  96. @media screen {
  97. .str { color: #080 } /* string content */
  98. .kwd { color: #008 } /* a keyword */
  99. .com { color: #800 } /* a comment */
  100. .typ { color: #606 } /* a type name */
  101. .lit { color: #066 } /* a literal value */
  102. /* punctuation, lisp open bracket, lisp close bracket */
  103. .pun, .opn, .clo { color: #660 }
  104. .tag { color: #008 } /* a markup tag name */
  105. .atn { color: #606 } /* a markup attribute name */
  106. .atv { color: #080 } /* a markup attribute value */
  107. .dec, .var { color: #606 } /* a declaration; a variable name */
  108. .fun { color: red } /* a function name */
  109. }
  110. /* Use higher contrast and text-weight for printable form. */
  111. @media print, projection {
  112. .str { color: #060 }
  113. .kwd { color: #006; font-weight: bold }
  114. .com { color: #600; font-style: italic }
  115. .typ { color: #404; font-weight: bold }
  116. .lit { color: #044 }
  117. .pun, .opn, .clo { color: #440 }
  118. .tag { color: #006; font-weight: bold }
  119. .atn { color: #404 }
  120. .atv { color: #060 }
  121. }
  122. /* Put a border around prettyprinted code snippets. */
  123. pre.prettyprint { padding: 2px; border: 0px solid #888 }
  124. /* Specify class=linenums on a pre to get line numbering */
  125. ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
  126. li.L0,
  127. li.L1,
  128. li.L2,
  129. li.L3,
  130. li.L5,
  131. li.L6,
  132. li.L7,
  133. li.L8 { list-style-type: none }
  134. /* Alternate shading for lines
  135. li.L1,
  136. li.L3,
  137. li.L5,
  138. li.L7,
  139. li.L9 { background: #eee }
  140. */