sakura.css 6.6 KB

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