1
0

sakura.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. .entry-content blockquote:before,.entry-content blockquote:after {
  2. display: block
  3. }
  4. .entry-content blockquote blockquote:before,.entry-content blockquote blockquote:after {
  5. display: none
  6. }
  7. .entry-content .begin,
  8. .single-begin {
  9. float: left;
  10. font-size: 3.6em;
  11. line-height: 1em;
  12. margin-right: 3px;
  13. margin-top: 2px;
  14. font-weight: 700
  15. }
  16. @media screen and (max-width:860px) {
  17. .entry-content .begin,
  18. .single-begin {
  19. margin-top: 6px
  20. }
  21. }
  22. .entry-content ul {
  23. list-style: disc;
  24. border: 1px dashed #E4E4E4;
  25. padding: 15px 10px 15px 50px;
  26. color: #616161;
  27. margin-left: 0;
  28. border-radius: 10px
  29. }
  30. .entry-content ul ul {
  31. border: none;
  32. padding: 15px 10px 15px 30px;
  33. }
  34. .entry-content ol {
  35. list-style: decimal;
  36. border: 1px dashed #E4E4E4;
  37. padding: 15px 10px 15px 50px;
  38. color: #616161;
  39. margin-left: 0;
  40. border-radius: 10px
  41. }
  42. .entry-content ol li,
  43. .entry-content ul li {
  44. padding: 8px 0
  45. }
  46. .entry-content {
  47. position: relative
  48. }
  49. .entry-content h3, .entry-content h4, .entry-content h5 {
  50. padding-left: 16px;
  51. }
  52. .entry-content h3 {
  53. padding-bottom: 10px;
  54. }
  55. .entry-content h3:after {
  56. content: "#";
  57. position: absolute;
  58. left: 0;
  59. }
  60. .entry-content h4:after {
  61. content: ">";
  62. position: absolute;
  63. left: 0;
  64. }
  65. .entry-content h5:after {
  66. content: "~";
  67. position: absolute;
  68. left: 0;
  69. }
  70. .entry-content a {
  71. text-decoration: none;
  72. }
  73. .entry-content a:hover {
  74. text-decoration: underline;
  75. }
  76. h1.entry-title {
  77. font-size: 24px;
  78. font-weight: 300
  79. }
  80. .entry-content p {
  81. color: #797979
  82. }
  83. .entry-content p {
  84. line-height: 30px
  85. }
  86. .entry-content hr {
  87. margin-top: 40px;
  88. margin-bottom: 40px;
  89. display: block;
  90. border: 0;
  91. text-align: center;
  92. background: 0 0
  93. }
  94. .entry-content hr:before {
  95. content: '...';
  96. display: inline-block;
  97. margin-left: .6em;
  98. color: rgba(0, 0, 0, .8);
  99. position: relative;
  100. top: -30px;
  101. font-size: 28px;
  102. letter-spacing: .6em
  103. }
  104. .entry-content table {
  105. border-collapse: collapse;
  106. width: 100%;
  107. border-radius: 5px
  108. }
  109. .entry-content th, .entry-content td {
  110. padding: 8px;
  111. }
  112. .entry-content tr:nth-child(even){background-color: #f2f2f2}
  113. body.dark .entry-content tr:nth-child(even){background-color: unset}
  114. .entry-content th {
  115. color: white;
  116. }
  117. /*fix code block*/
  118. .entry-content pre th, .entry-content pre td {
  119. padding: 0;
  120. }
  121. .entry-content pre tr:nth-child(even){
  122. background-color: transparent
  123. }
  124. .entry-content pre th {
  125. background-color: transparent !important;
  126. }
  127. .entry-content .highlight-wrap:before {
  128. content: " ";
  129. position: absolute;
  130. -webkit-border-radius: 50%;
  131. border-radius: 50%;
  132. background: #fc625d;
  133. width: 12px;
  134. height: 12px;
  135. left: 12px;
  136. margin-top: -18px;
  137. -webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
  138. box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
  139. z-index: 2
  140. }
  141. .entry-content .highlight-wrap {
  142. position: relative;
  143. background: #21252b;
  144. border-radius: 5px;
  145. font: 15px/22px "Microsoft YaHei", Arial, Sans-Serif;
  146. line-height: 1.6;
  147. margin-bottom: 1.6em;
  148. max-width: 100%;
  149. overflow: auto;
  150. text-shadow: none;
  151. color: #000;
  152. padding-top: 30px;
  153. box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .4)
  154. }
  155. .entry-content .highlight-wrap .copy-code {
  156. color: #fff;
  157. position: absolute;
  158. float: right;
  159. right: 10px;
  160. top: 0;
  161. padding-top: 4px;
  162. padding-right: 2px;
  163. z-index: 2;
  164. font-size: 16px;
  165. }
  166. .entry-content .highlight-wrap .copy-code:hover {
  167. color: rgba(255,255,255,.5);
  168. }
  169. .hljs-ln-line span::-moz-selection,
  170. .hljs-ln-line::-moz-selection {
  171. background: #fff;
  172. color: #21252b
  173. }
  174. .hljs-ln-line span::selection,
  175. .hljs-ln-line::selection {
  176. background: #fff;
  177. color: #21252b
  178. }
  179. .entry-content .highlight-wrap code {
  180. background: #1d1f21;
  181. color: #fff;
  182. word-break: break-word;
  183. font-family: 'Noto Sans SC', monospace, Helvetica, Tahoma, Arial, STXihei, "STHeiti Light", "Microsoft YaHei", sans-serif;
  184. padding: 2px;
  185. text-shadow: none;
  186. border-radius: 0 0 5px 5px;
  187. }
  188. .entry-content .highlight-wrap code[data-rel]:before {
  189. color: #fff;
  190. content: attr(data-rel);
  191. height: 30px;
  192. line-height: 30px;
  193. background: #21252b;
  194. font-size: 16px;
  195. position: absolute;
  196. margin-top: -30px;
  197. left: 0;
  198. width: 100%;
  199. font-family: Ubuntu, sans-serif;
  200. font-weight: 700;
  201. padding: 0 80px;
  202. text-indent: 15px;
  203. text-align: center;
  204. float: left;
  205. z-index: 1;
  206. border-radius: 5px 5px 0 0;
  207. border-top-left-radius: 5px;
  208. border-top-right-radius: 5px;
  209. border-bottom-right-radius: 0;
  210. border-bottom-left-radius: 0;
  211. pointer-events: none
  212. }
  213. .hljs {
  214. display: block;
  215. overflow-x: auto;
  216. padding: .5em;
  217. color: #abb2bf;
  218. background: rgba(254, 250, 199, .5);
  219. border-radius: 10px
  220. }
  221. .hljs-comment,
  222. .hljs-quote {
  223. color: #888f96;
  224. font-style: italic
  225. }
  226. .hljs-doctag,
  227. .hljs-formula,
  228. .hljs-keyword {
  229. color: #c678dd
  230. }
  231. .hljs-deletion,
  232. .hljs-name,
  233. .hljs-section,
  234. .hljs-selector-tag,
  235. .hljs-subst {
  236. color: #e06c75
  237. }
  238. .hljs-literal {
  239. color: #56b6c2
  240. }
  241. .hljs-addition,
  242. .hljs-attribute,
  243. .hljs-meta-string,
  244. .hljs-regexp,
  245. .hljs-string {
  246. color: #98c379
  247. }
  248. .hljs-built_in,
  249. .hljs-class .hljs-title {
  250. color: #e6c07b
  251. }
  252. .hljs-attr,
  253. .hljs-number,
  254. .hljs-selector-attr,
  255. .hljs-selector-class,
  256. .hljs-selector-pseudo,
  257. .hljs-template-variable,
  258. .hljs-type,
  259. .hljs-variable {
  260. color: #d19a66
  261. }
  262. .hljs-bullet,
  263. .hljs-link,
  264. .hljs-meta,
  265. .hljs-selector-id,
  266. .hljs-symbol,
  267. .hljs-title {
  268. color: #61aeee
  269. }
  270. .hljs-emphasis {
  271. font-style: italic
  272. }
  273. .hljs-strong {
  274. font-weight: 700
  275. }
  276. .hljs-link {
  277. text-decoration: underline
  278. }
  279. .hljs-ln {
  280. margin: 6px 0 0 0 !important
  281. }
  282. td.hljs-ln-numbers {
  283. -webkit-touch-callout: none;
  284. -webkit-user-select: none;
  285. -khtml-user-select: none;
  286. -moz-user-select: none;
  287. -ms-user-select: none;
  288. user-select: none;
  289. text-align: center;
  290. color: #888f96;
  291. background: #1d1f21;
  292. font-family: 'Noto Sans SC', monospace, Helvetica, Tahoma, Arial, STXihei, "STHeiti Light", "Microsoft YaHei", sans-serif;
  293. vertical-align: top;
  294. position: absolute;
  295. left: 0;
  296. width: 30px
  297. }
  298. .hljs-ln-code.hljs-ln-line {
  299. margin-left: 25px;
  300. padding-left: 30px
  301. }
  302. .hljs-ln-code.hljs-ln-line:hover {
  303. background-color: rgba(255, 255, 255, .1)
  304. }
  305. .code-block-fullscreen {
  306. position: fixed;
  307. top: 0;
  308. left: 0;
  309. width: 100%;
  310. height: 100%;
  311. min-width: 100%;
  312. z-index: 9999999;
  313. margin: 0;
  314. animation: elastic 1s
  315. }
  316. .code-block-fullscreen code {
  317. --widthA: 100%;
  318. --widthB: calc(var(--widthA) - 30px);
  319. height: var(--widthB);
  320. min-height: 99%;
  321. overflow-y: hidden;
  322. overflow-x: auto;
  323. height: auto
  324. }
  325. .code-block-fullscreen-html-scroll {
  326. overflow: hidden
  327. }