light.css 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339
  1. /**
  2. teedoc light theme css
  3. @author neucrack
  4. @copyright (c) neucrack CZD666666@gmail.com with MIT License
  5. @changes 2021.1.26 add basic attrributes
  6. */
  7. /* global template */
  8. body {
  9. color: #606975;
  10. background-color: white;
  11. transition: 0.4s;
  12. margin: 0;
  13. display: flex;
  14. flex-direction: column;
  15. justify-content: space-between;
  16. min-height: 100vh;
  17. letter-spacing: 0.03em;
  18. font-family: "Microsoft YaHei",Helvetica,"Meiryo UI","Malgun Gothic","Segoe UI","Trebuchet MS",Monaco,monospace,Tahoma,STXihei,"华文细黑",STHeiti,"Helvetica Neue","Droid Sans","wenquanyi micro hei",FreeSans,Arimo,Arial,SimSun,"宋体",Heiti,"黑体",sans-serif;
  19. }
  20. a {
  21. color: #606975;
  22. text-decoration: none;
  23. }
  24. a:visited {
  25. color: #606975;
  26. }
  27. a:hover {
  28. background-color: #d8d8d8;
  29. border-radius: 5px;
  30. transition: 0.4s;
  31. }
  32. h1 {
  33. text-align: center;
  34. font-size: 2.2em;
  35. }
  36. h2 {
  37. font-size: 2em;
  38. }
  39. h3 {
  40. font-size: 1.5em;
  41. }
  42. h4 {
  43. font-size: 1.17em;
  44. }
  45. h5 {
  46. font-size: 1em;
  47. }
  48. h6 {
  49. font-size: 0.83em;
  50. }
  51. p {
  52. /* text-align: justify; */
  53. line-height: 2em;
  54. }
  55. blockquote {
  56. border-left: 4px solid #4caf7d;
  57. margin: 0 0 1em 2px;
  58. padding: 1px;
  59. padding-left: 1em;
  60. background-color: #f1f1f1;
  61. border-radius: 0 5px 5px 0;
  62. transition: 0.4s;
  63. }
  64. blockquote.spoiler {
  65. border-left: 5px solid #FF9800;
  66. background-color: #ffd65b;
  67. }
  68. *::-webkit-scrollbar {
  69. width : 0.8rem;
  70. height: 0.8rem;
  71. min-width: 0.8rem;
  72. min-height: 0.6rem;
  73. }
  74. #sidebar ul::-webkit-scrollbar {
  75. width : 0.45rem;
  76. height: 0.8rem;
  77. min-width: 0.45rem;
  78. min-height: 0.6rem;
  79. }
  80. *::-webkit-scrollbar-thumb {
  81. border-radius : 0.6rem;
  82. background-color: #b8b8b8;
  83. }
  84. *::-webkit-scrollbar-track {
  85. background : #ededed;
  86. border-radius: 10px;
  87. }
  88. sup a {
  89. font-size: 1.1em;
  90. background-color: #f1f1f1;
  91. padding: 4px;
  92. border-left: 1px solid #4caf7d;
  93. border-right: 1px solid #4caf7d;
  94. }
  95. dl > dt {
  96. font-weight: bold;
  97. }
  98. table {
  99. border-collapse: collapse;
  100. border-spacing: 0;
  101. display: block;
  102. width: 100%;
  103. overflow: auto;
  104. word-break: keep-all;
  105. border-color: transparent;
  106. }
  107. tr {
  108. background-color: #f1f1f1;
  109. border-top: 1px solid #ccc;
  110. }
  111. td, th {
  112. padding: 6px 13px;
  113. transition: 0.4s;
  114. }
  115. th {
  116. font-weight: 700;
  117. color: white;
  118. filter: brightness(110%);
  119. border: 2px solid #4caf7d;
  120. background-color: #4caf7d;
  121. }
  122. td {
  123. background-color: #fbfbfb;
  124. border: 2px solid #f1f1f1;
  125. }
  126. code {
  127. background-color: #f1f1f1;
  128. border-radius: 0.2em;
  129. transition: 0.4s;
  130. font-family: Menlo, Consolas, "DejaVu Sans Mono", Bitstream Vera Sans Mono, Courier New, monospace, Monaco, 'Andale Mono', 'Ubuntu Mono', "Microsoft YaHei";
  131. font-size: 85%;
  132. padding: 0.2em 0.4em;
  133. color: #4caf7d;
  134. }
  135. pre[class*="language-"].line-numbers > code {
  136. background: none;
  137. padding: 0;
  138. }
  139. .btn,
  140. #page_content .btn,
  141. #content_body .btn {
  142. color: white;
  143. border-radius: 5px;
  144. transition: 0.2s;
  145. padding: 1em;
  146. cursor: pointer;
  147. transition: 0.2s;
  148. background: #4caf7d;
  149. }
  150. .btn:hover,
  151. #page_content .btn:hover,
  152. #content_body .btn:hover {
  153. background: #4caf7d;
  154. box-shadow: 1px 1px 5px 0px green;
  155. }
  156. .btn:visited,
  157. #page_content .btn:visited,
  158. #content_body .btn:visited {
  159. color: white;
  160. }
  161. /* wrapper */
  162. .type_doc #wrapper {
  163. margin-top: 1.5em;
  164. }
  165. #wrapper {
  166. display: flex;
  167. flex-grow: 1;
  168. }
  169. #page_wrapper {
  170. display: flex;
  171. flex-grow: 1;
  172. flex-direction: column;
  173. justify-content: space-between;
  174. text-align: center;
  175. }
  176. /* page */
  177. #page_content {
  178. width: 100%;
  179. flex-grow: 1;
  180. display: flex;
  181. flex-direction: row;
  182. }
  183. #page_content > div {
  184. flex-grow: 1;
  185. align-self: center;
  186. }
  187. #page_content a {
  188. color: #c33a3a;
  189. }
  190. /* navbar */
  191. #navbar {
  192. display: flex;
  193. justify-content: start;
  194. z-index: 100;
  195. }
  196. #navbar * {
  197. display: flex;
  198. align-items: center;
  199. }
  200. #navbar_menu_btn {
  201. display: none;
  202. }
  203. #navbar #navbar_items {
  204. display: flex;
  205. flex-grow: 1;
  206. justify-content: space-between;
  207. padding-right: 1em;
  208. word-break: keep-all;
  209. }
  210. #navbar h2 {
  211. color: #4caf7d;
  212. }
  213. #navbar a{
  214. margin: 5px;
  215. padding: 10px 15px;
  216. cursor: pointer;
  217. }
  218. #navbar a.site_title{
  219. padding: 0;
  220. }
  221. #navbar a.site_title:hover{
  222. background-color: transparent;
  223. }
  224. #navbar .site_logo {
  225. max-height: 60px;
  226. }
  227. #navbar ul {
  228. list-style: none;
  229. padding-inline-start: 10px;
  230. }
  231. #navbar .sub_items {
  232. position: relative;
  233. display: block;
  234. }
  235. #navbar .sub_items > a {
  236. margin: 5px;
  237. padding: 10px 15px;
  238. }
  239. #navbar .sub_items > a:hover + ul {
  240. visibility: visible;
  241. }
  242. #navbar .sub_items ul {
  243. display: block;
  244. position: absolute;
  245. left: 0;
  246. box-shadow: 0 0 9px 0px #dadada;
  247. border-radius: 5px;
  248. padding: 0;
  249. width: max-content;
  250. min-width: 100%;
  251. background-color: white;
  252. visibility: hidden;
  253. margin-top: -5px;
  254. z-index: 101;
  255. }
  256. #navbar .sub_items ul:hover {
  257. visibility: visible;
  258. }
  259. #navbar .sub_items ul li {
  260. display: block;
  261. }
  262. /* sidebar */
  263. #sidebar_wrapper {
  264. width: 300px;
  265. }
  266. /* sidebar splitter */
  267. .gutter_icon {
  268. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);
  269. width: 3px;
  270. height: 2em;
  271. background-repeat: no-repeat;
  272. position: fixed;
  273. top: 50%;
  274. }
  275. .gutter {
  276. background-color: #eee;
  277. background-repeat: no-repeat;
  278. background-position: 50%;
  279. transition: 0.2s;
  280. border-radius: 5px;
  281. display: block;
  282. }
  283. .gutter.gutter-horizontal {
  284. /* background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=='); */
  285. cursor: col-resize;
  286. }
  287. #sidebar {
  288. /* width: 300px;
  289. min-width: 200px;
  290. position: sticky;
  291. top: 0;
  292. overflow-x: hidden; */
  293. /* min-width: 200px; */
  294. /* position: sticky; */
  295. /* top: 0; */
  296. /* overflow-x: hidden; */
  297. display: flex;
  298. flex-direction: column;
  299. height: 100vh;
  300. position: -webkit-sticky;
  301. position: sticky;
  302. top: 0;
  303. padding-top: var(--ifm-navbar-height);
  304. /* width: var(--doc-sidebar-width); */
  305. transition: opacity 50ms;
  306. padding-top: 0;
  307. z-index: 1;
  308. }
  309. #sidebar ul {
  310. padding-inline-start: 20px;
  311. display: none;
  312. }
  313. #sidebar > ul {
  314. padding-inline-start: 0;
  315. padding: .5rem;
  316. display: block;
  317. padding-bottom: 3em;
  318. margin: 0;
  319. overflow-y: auto;
  320. overflow-x: hidden;
  321. }
  322. #sidebar ul .show{
  323. /* display: block; */ /* js instead, just reserve this item*/
  324. }
  325. #sidebar ul .active_parent {
  326. display: block;
  327. }
  328. #sidebar ul .active_parent > ul{
  329. display: block;
  330. }
  331. #sidebar ul.collapsed, #sidebar ul .active_parent > ul.collapsed{
  332. /* display: none; */ /* js instead, just reserve this item*/
  333. }
  334. #sidebar ul .active_parent > a{
  335. background-color: #f1f1f1;
  336. border-radius: 5px;
  337. transition: 0.4s;
  338. }
  339. #sidebar li {
  340. list-style: none;
  341. margin: 2px 0;
  342. position: relative;
  343. }
  344. #sidebar li > a {
  345. display: flex;
  346. justify-content: space-between;
  347. padding: 0;
  348. font-size: 0.9em;
  349. }
  350. #sidebar a:hover {
  351. cursor: pointer;
  352. }
  353. #sidebar .active > a, #navbar .active > a, #navbar .active_parent > a{
  354. background-color: #f1f1f1;
  355. border-radius: 5px;
  356. color: #4caf7d;
  357. transition: 0.4s;
  358. }
  359. #navbar .sub_items .active > a {
  360. transition: 0s;
  361. }
  362. #sidebar .active > a {
  363. transition: 0.4s;
  364. }
  365. #sidebar li > a > .label {
  366. padding: 10px;
  367. display: inline-block;
  368. white-space: nowrap;
  369. width: 100%;
  370. overflow: hidden;
  371. text-overflow: ellipsis;
  372. }
  373. #sidebar li > a:hover,
  374. #sidebar li.active_parent > a:hover,
  375. #navbar li > a:hover,
  376. #navbar .sub_items > a:hover{
  377. background-color: #d8d8d8;
  378. border-radius: 5px;
  379. transition: 0.4s;
  380. }
  381. #sidebar .sub_indicator {
  382. transition: transform 0.4s linear;
  383. background: url("/static/image/theme_default/indicator.svg");
  384. background-size: contain;
  385. background-repeat: no-repeat;
  386. background-position: center;
  387. align-self: center;
  388. height: 1.25rem;
  389. width: 1.25rem;
  390. -ms-transform: rotate(-45deg);
  391. -moz-transform: rotate(-45deg);
  392. -webkit-transform: rotate(-45deg);
  393. transform: rotate(-45deg);
  394. transition: 0.2s;
  395. }
  396. #sidebar .sub_indicator:hover,
  397. #sidebar li.no_link > a:hover > .sub_indicator,
  398. #sidebar li.no_link > a.sub_indicator:hover,
  399. #sidebar li.no_link > a.sub_indicator{
  400. height: 1.6em;
  401. width: 1.6em;
  402. }
  403. #sidebar .sub_indicator_collapsed {
  404. -ms-transform: rotate(0deg);
  405. -moz-transform: rotate(0deg);
  406. -webkit-transform: rotate(0deg);
  407. transform: rotate(0deg);
  408. }
  409. #sidebar li.sidebar_category {
  410. font-size: 0.9em;
  411. color: #9e9e9e;
  412. margin: 1em 0 0.1em 0;
  413. }
  414. #sidebar .tip {
  415. position: fixed;
  416. color: white;
  417. left: 300px;
  418. top: 18%;
  419. box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.19);
  420. border-radius: 0.2em;
  421. padding: 1em;
  422. display: flex;
  423. flex-direction: column;
  424. width: max-content;
  425. transition: 0.4s;
  426. visibility: hidden;
  427. opacity: 0;
  428. background: #4caf7d;
  429. }
  430. #sidebar li > a:hover+.tip, #sidebar .tip:hover {
  431. visibility: visible;
  432. opacity: 1;
  433. }
  434. .blog_info > span {
  435. margin: 0.4em;
  436. }
  437. .blog_tags {
  438. text-align: center;
  439. margin-top: 1em;
  440. }
  441. .blog_tags > span {
  442. border-radius: 0.2em;
  443. padding: 0.2em;
  444. margin: 0.4em;
  445. filter: brightness(120%);
  446. border: 1px solid #4caf7d;
  447. }
  448. #blog_list > ul {
  449. padding-left: 0;
  450. }
  451. #blog_list > ul > li {
  452. list-style: none;
  453. box-shadow: 0px 0px 7px #00000033;
  454. margin: 2em 1em;
  455. padding: 2em;
  456. border-radius: 0.4em;
  457. }
  458. #blog_list > ul > li a, #blog_list > ul > li a:visited {
  459. padding: 0;
  460. color: #4caf7d;
  461. }
  462. html[lang^=zh] #article_content #blog_list h2:before {
  463. content: "";
  464. }
  465. #blog_list .blog_tags {
  466. text-align: left;
  467. }
  468. #blog_list .blog_info {
  469. color: #ababab;
  470. }
  471. #blog_list .blog_brief {
  472. color: #828282;
  473. }
  474. .blog_cover {
  475. text-align: center;
  476. margin-top: 1em;
  477. }
  478. .blog_cover > img {
  479. width: 100%;
  480. }
  481. #menu_wrapper {
  482. width: 2%;
  483. }
  484. #menu {
  485. background: url("/static/image/theme_default/menu.svg");
  486. background-size: contain;
  487. background-repeat: no-repeat;
  488. background-position: center;
  489. border-radius: 5px;
  490. min-height: 2rem;
  491. min-width: 2rem;
  492. transition: 0.2s;
  493. cursor: pointer;
  494. position: sticky;
  495. top: 1em;
  496. z-index: 99;
  497. margin-left: 0.2em;
  498. }
  499. /* article */
  500. #article {
  501. display: flex;
  502. width: 98%;
  503. margin: auto;
  504. justify-content: space-evenly;
  505. }
  506. #toc_wrapper {
  507. width: 25%;
  508. }
  509. #article #toc {
  510. background-color: white;
  511. position: sticky;
  512. transition: 0.4s;
  513. top: 15%;
  514. max-height: calc(100vh - 15vh);
  515. overflow-y: auto;
  516. }
  517. #article #toc a{
  518. padding: 0.2em 0.0em;
  519. display: block;
  520. font-size: 0.9em;
  521. }
  522. #article #toc ul, #article #toc ol {
  523. list-style: none;
  524. padding-left: 1.5em;
  525. }
  526. #article #toc > div > ul, #article #toc > div > ol {
  527. padding-left: 1em;
  528. }
  529. /* add numbers for toc */
  530. #toc {counter-reset: toc_l1;}
  531. #toc #toc_content {counter-reset: toc_l2;}
  532. #toc a.node-name--H1 {
  533. counter-reset: toc_l2;
  534. }
  535. #toc a.node-name--H2 {
  536. counter-reset: toc_l3;
  537. }
  538. #toc a.node-name--H1:before {
  539. counter-increment: toc_l1;
  540. }
  541. #toc a.node-name--H2:before {
  542. counter-increment: toc_l2;
  543. content: counter(toc_l2, decimal) ".\00a0";
  544. }
  545. html[lang^=zh] #toc a.node-name--H2:before {
  546. counter-increment: toc_l2;
  547. content: counter(toc_l2, simp-chinese-informal) "、";
  548. }
  549. #toc a.node-name--H3:before {
  550. counter-increment: toc_l3;
  551. content: counter(toc_l2, decimal) "." counter(toc_l3, decimal) ".\00a0";
  552. }
  553. .heading_no_counter #toc a.node-name--H2:before {
  554. content: "";
  555. }
  556. .heading_no_counter #toc a.node-name--H3:before {
  557. content: "";
  558. }
  559. html[lang^=zh].heading_no_counter #toc a.node-name--H2:before {
  560. content: "";
  561. }
  562. /* add numbers for titles toc*/
  563. /* article content */
  564. #content_wrapper {
  565. flex-grow: 1;
  566. justify-content: space-between;
  567. flex-direction: column;
  568. display: flex;
  569. width: 65%;
  570. }
  571. #content_body {
  572. max-width: 50em;
  573. width: 90%;
  574. display: flex;
  575. flex-direction: column;
  576. justify-content: space-between;
  577. line-height: 2em;
  578. margin: auto;
  579. }
  580. #content_body h1 {
  581. line-height: initial;
  582. }
  583. #content_body a, #content_body a:visited {
  584. color: #c33a3a;
  585. padding: 0.2em;
  586. }
  587. #content_body a:hover {
  588. background-color: #fde1e1;
  589. padding: 0.2em;
  590. border-radius: 0.2em;
  591. }
  592. #content_body img {
  593. max-width: 100%;
  594. object-fit: contain;
  595. cursor: zoom-in;
  596. }
  597. /* add numbers for titles */
  598. #article_content {
  599. /* counter-reset: h2section h3section h4section; */
  600. min-height: 50vh;
  601. word-break: break-word;
  602. }
  603. #article_content h1 {
  604. /* counter-reset: h2section h3section h4section; */
  605. line-height: 1.3em;
  606. }
  607. #article_content h2 {
  608. /* counter-reset: h3section h4section; */
  609. line-height: 1.3em;
  610. }
  611. /* #article_content h3 {
  612. counter-reset: h4section;
  613. }
  614. #article_content h2:before
  615. {
  616. counter-increment: h2section;
  617. content: counter(h2section, upper-roman) "、";
  618. }
  619. #article_content h3:before
  620. {
  621. counter-increment: h3section;
  622. content: counter(h2section, decimal) "." counter(h3section, decimal) "、";
  623. }
  624. #article_content h4:before
  625. {
  626. counter-increment: h4section;
  627. content: counter(h2section, decimal) "." counter(h3section, decimal) "." counter(h4section, decimal) "、";
  628. }
  629. html[lang^=zh] #article_content h2:before {
  630. content: counter(h2section, simp-chinese-informal) "、";
  631. }
  632. html[lang^=zh] #article_content h3:before {
  633. content: counter(h2section, decimal) "." counter(h3section, decimal) "、";
  634. }
  635. html[lang^=zh] #article_content h4:before {
  636. content: counter(h2section, decimal) "." counter(h3section, decimal) "." counter(h4section, decimal) "、";
  637. }
  638. .heading_no_counter #article_content h2:before {
  639. content: "";
  640. }
  641. .heading_no_counter #article_content h3:before {
  642. content: "";
  643. }
  644. .heading_no_counter #article_content h4:before {
  645. content: "";
  646. }
  647. html[lang^=zh].heading_no_counter #article_content h2:before {
  648. content: "";
  649. }
  650. html[lang^=zh].heading_no_counter #article_content h3:before {
  651. content: "";
  652. }
  653. html[lang^=zh].heading_no_counter #article_content h4:before {
  654. content: "";
  655. } */
  656. /* add numbers for titles end*/
  657. #article_head {
  658. margin-bottom: 2em;
  659. }
  660. #article_tags ul {
  661. list-style: none;
  662. display: flex;
  663. align-items: baseline;
  664. justify-content: flex-end;
  665. padding: 0
  666. }
  667. #article_tags ul li{
  668. margin: 5px;
  669. padding: 8px;
  670. border-radius: 5px;
  671. color: #ffffffcc;
  672. font-size: 0.9em;
  673. background-color: #4caf7d;
  674. }
  675. #article_info {
  676. display: flex;
  677. flex-direction: row;
  678. justify-content: space-between;
  679. }
  680. #article_info > div {
  681. align-self: center;
  682. display: flex;
  683. flex-direction: row;
  684. align-items: center;
  685. }
  686. #article_info > div > div {
  687. margin: 2px;
  688. }
  689. #article_info #print_page {
  690. height: 1em;
  691. width: 1em;
  692. cursor: pointer;
  693. background-repeat: no-repeat;
  694. background-size: contain;
  695. background-image: url("/static/image/theme_default/print.svg");
  696. }
  697. #article_info>div>span {
  698. padding: 0.2em;
  699. color: #4caf7d;
  700. }
  701. #source_link {
  702. display: flex;
  703. flex-direction: row;
  704. justify-content: flex-end;
  705. }
  706. /* cover prism.css */
  707. :not(pre) > code[class*="language-"], pre[class*="language-"] {
  708. background: #2d2d2d;
  709. border-radius: 5px;
  710. }
  711. div.code-toolbar > .toolbar a, div.code-toolbar > .toolbar button, div.code-toolbar > .toolbar span {
  712. color: #fff;
  713. font-size: .8em;
  714. padding: 1em;
  715. background: #f5f2f0;
  716. background: rgba(224, 224, 224, 0.2);
  717. box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
  718. border-radius: .5em;
  719. cursor: pointer;
  720. }
  721. div.code-toolbar > .toolbar a:hover, div.code-toolbar > .toolbar a:focus, div.code-toolbar > .toolbar button:hover, div.code-toolbar > .toolbar button:focus, div.code-toolbar > .toolbar span:hover, div.code-toolbar > .toolbar span:focus {
  722. color: #a9ffe0;
  723. text-decoration: none;
  724. }
  725. /* back to top button */
  726. /* #to_top_wrapper {
  727. } */
  728. #to_top {
  729. background: url("/static/image/theme_default/to-top.svg");
  730. background-size: 2em;
  731. background-repeat: no-repeat;
  732. background-position: center;
  733. align-self: flex-end;
  734. position: sticky;
  735. bottom: 6em;
  736. right: 3em;
  737. margin: 1em;
  738. height: 3rem;
  739. width: 3rem;
  740. cursor: pointer;
  741. transition: 0.4s;
  742. z-index: 97;
  743. border-radius: 100%;
  744. padding: 2px;
  745. background-color: #f1f1f1;
  746. box-shadow: 8px 8px 20px rgba(0,0,0,0.13);
  747. }
  748. #to_top:hover {
  749. background-size: 2.5em;
  750. box-shadow: 8px 8px 20px rgba(0,0,0,0.24);
  751. }
  752. #to_top:active {
  753. box-shadow: 0px 0px 20px rgba(0,0,0,0.05);
  754. }
  755. /* footer article */
  756. #previous_next {
  757. min-height: 3em;
  758. margin-top: 2em;
  759. display: flex;
  760. border-top: 1px solid #f1f1f1;
  761. padding: 1em;
  762. transition: 0.4s;
  763. display: flex;
  764. justify-content: space-between;
  765. }
  766. #previous_next > div {
  767. margin: 1em;
  768. }
  769. #previous_next a{
  770. padding: 1em;
  771. border-radius: 5px;
  772. display: flex;
  773. align-items: center;
  774. background-color: #f1f1f1;
  775. justify-content: flex-start;
  776. }
  777. #previous_next a:hover {
  778. background-color: #dedede;
  779. }
  780. #previous_next #previous a > .label{
  781. flex-grow: 1;
  782. text-align: center;
  783. padding-right: 2.5em;
  784. }
  785. #previous_next #previous a > .icon{
  786. transition: transform 0.4s linear;
  787. background: url("/static/image/theme_default/to-top.svg");
  788. background-size: 2em;
  789. background-repeat: no-repeat;
  790. background-position: center;
  791. min-height: 2.5rem;
  792. min-width: 2.5rem;
  793. -ms-transform: rotate(-90deg);
  794. -moz-transform: rotate(-90deg);
  795. -webkit-transform: rotate(-90deg);
  796. transform: rotate(-90deg);
  797. padding-right: 2em;
  798. padding: 0;
  799. }
  800. #previous_next #next a {
  801. justify-content: flex-end;
  802. }
  803. #previous_next #next a > .label{
  804. flex-grow: 1;
  805. text-align: center;
  806. padding-left: 2.5em;
  807. }
  808. #previous_next #next a > .icon{
  809. transition: transform 0.4s linear;
  810. background: url("/static/image/theme_default/to-top.svg");
  811. background-size: 2em;
  812. background-repeat: no-repeat;
  813. background-position: center;
  814. min-height: 2.5rem;
  815. min-width: 2.5rem;
  816. -ms-transform: rotate(90deg);
  817. -moz-transform: rotate(90deg);
  818. -webkit-transform: rotate(90deg);
  819. transform: rotate(90deg);
  820. padding-left: 2em;
  821. padding: 0;
  822. }
  823. .footnotes {
  824. margin-top: 5em;
  825. }
  826. #doc_footer {
  827. min-height: 2em;
  828. display: flex;
  829. background-color: #2d2d2d;
  830. border-top: 1px solid #2d2d2d;
  831. padding: 1em;
  832. transition: 0.4s;
  833. }
  834. #page_footer {
  835. min-height: 2em;
  836. /* margin-top: 5em; */
  837. display: flex;
  838. padding: 1em;
  839. transition: 0.4s;
  840. background-color: #292929;
  841. }
  842. #footer {
  843. display: flex;
  844. flex-direction: column;
  845. align-items: center;
  846. width: 100%;
  847. line-height: 1em;
  848. }
  849. #footer ul {
  850. list-style: none;
  851. padding: 0;
  852. margin: 0;
  853. }
  854. #footer a, #footer a:visited{
  855. color: #848fa0;
  856. display: flex;
  857. padding: 0.2em;
  858. font-size: 0.9em;
  859. }
  860. #footer a:hover {
  861. background-color: #e6e6e6;
  862. border-radius: 0.1em;
  863. padding: 0.2em;
  864. }
  865. #footer_top {
  866. width: 100%;
  867. }
  868. #footer_top > ul {
  869. display: flex;
  870. justify-content: space-around;
  871. flex-direction: row;
  872. }
  873. #footer_top > ul > li > a {
  874. color: #cecece;
  875. font-weight: 700;
  876. margin: 1em 0 0.5em 0;
  877. }
  878. #footer_top > ul > li > a:hover {
  879. background-color: transparent;
  880. }
  881. #footer_bottom {
  882. margin-top: 2em;
  883. }
  884. #footer_bottom a {
  885. justify-content: center;
  886. }
  887. /* TOC */
  888. .anchor {
  889. opacity: 0;
  890. transition: 0.4s;
  891. }
  892. h2:hover > .anchor, h3:hover > .anchor, h4:hover > .anchor, h5:hover > .anchor {
  893. opacity: 1;
  894. }
  895. .anchor:hover {
  896. opacity: 1;
  897. }
  898. .anchor-link {
  899. display: none;
  900. }
  901. #toc_content>.toc-list {
  902. overflow: hidden;
  903. position: relative
  904. }
  905. #toc_content>.toc-list li {
  906. list-style: none
  907. }
  908. .toc-list {
  909. margin: 0;
  910. padding-left: 10px
  911. }
  912. #toc_content > .toc-list > .toc-list-item {
  913. border-left: 2px solid #f1f1f1;
  914. }
  915. a.toc-link {
  916. color: currentColor;
  917. height: 100%
  918. }
  919. .is-collapsible {
  920. /* max-height: 1000px; */
  921. overflow: hidden;
  922. transition: all 300ms ease-in-out
  923. }
  924. .is-collapsed {
  925. max-height: 0
  926. }
  927. .is-position-fixed {
  928. position: fixed !important;
  929. top: 0
  930. }
  931. .is-active-link {
  932. font-weight: 700
  933. }
  934. .toc-link::before {
  935. content: ' ';
  936. display: inline-block;
  937. height: inherit;
  938. left: 0;
  939. margin-top: -1px;
  940. padding-left: 6px;
  941. margin-left: -2px;
  942. }
  943. .is-active-link::before {
  944. border-left: 2px solid #4caf7d;
  945. }
  946. /* class template */
  947. .md_page #page_content > div {
  948. width: 90%;
  949. max-width: 50em;
  950. margin: auto;
  951. line-height: 2em;
  952. }
  953. /* jupyter notebook parser */
  954. .jp-InputArea {
  955. display: flex;
  956. flex-direction: row;
  957. }
  958. .jp-InputPrompt {
  959. word-break: keep-all;
  960. margin-right: 0.2em;
  961. font-size: 0.8em;
  962. }
  963. .jp-CodeMirrorEditor {
  964. flex-grow: 1;
  965. overflow: auto;
  966. }
  967. .jp-OutputArea-child {
  968. display: flex;
  969. flex-direction: row;
  970. }
  971. .jp-OutputPrompt {
  972. word-break: keep-all;
  973. margin-right: 0.2em;
  974. font-size: 0.8em;
  975. min-width: 2.7em;
  976. }
  977. .jp-OutputArea-output {
  978. flex-grow: 1;
  979. overflow: auto;
  980. background: #2d2d2d;
  981. }
  982. /* google translate */
  983. #navbar #google_translate_element {
  984. padding: 0;
  985. }
  986. #navbar #google_translate_element .goog-te-gadget-simple {
  987. border-radius: 5px;
  988. transition: 0.4s;
  989. }
  990. #navbar #google_translate_element .goog-te-gadget-simple .goog-te-menu-value {
  991. transition: 0.4s;
  992. }
  993. /* tabset */
  994. .tabset {
  995. display: flex;
  996. flex-direction: column;
  997. align-items: normal;
  998. border: 0.2em solid #ebedf0;
  999. border-radius: 0.5em;
  1000. margin: 0.5em 0;
  1001. }
  1002. .tabset-title {
  1003. font-size: medium;
  1004. font-weight: 500;
  1005. padding: 0.5em 1em;
  1006. }
  1007. .tabset-content {
  1008. display: flex;
  1009. flex-direction: column;
  1010. align-items: normal;
  1011. }
  1012. .tabset-tab {
  1013. display: flex;
  1014. flex-direction: row;
  1015. padding: 0 1em;
  1016. }
  1017. .tabset-tab-label {
  1018. cursor: pointer;
  1019. font-size: large;
  1020. font-weight: 700;
  1021. padding: 0.5em 1em;
  1022. border-top-left-radius: 0.2em;
  1023. border-top-right-radius: 0.2em;
  1024. }
  1025. .tabset-tab-label:hover {
  1026. background-color: #0000000d;
  1027. }
  1028. .tabset-tab-active {
  1029. background-color: #0000000d;
  1030. border-bottom: 0.2em solid #4caf7d;
  1031. color: #4caf7d;
  1032. }
  1033. .tabset-text-container {
  1034. padding: 1em;
  1035. background-color: #0000000d;
  1036. }
  1037. .tabset-text-container > div {
  1038. display: none;
  1039. }
  1040. .tabset-text-container > div.tabset-text-active {
  1041. display: block;
  1042. }
  1043. /* details */
  1044. details {
  1045. display: flex;
  1046. flex-direction: column;
  1047. align-items: normal;
  1048. border: 0.2em solid #ebedf0;
  1049. border-radius: 0.5em;
  1050. margin: 0.5em 0;
  1051. transition: 0.4s;
  1052. }
  1053. details > summary {
  1054. font-size: medium;
  1055. font-weight: 500;
  1056. padding: 0.5em 1em;
  1057. cursor: pointer;
  1058. }
  1059. details > summary {
  1060. list-style-type:none;
  1061. position: relative;
  1062. padding-left: 2em;
  1063. }
  1064. details > summary:before {
  1065. display:inline-block;
  1066. content: url("/static/image/theme_default/array.svg");
  1067. transform:rotate(90deg);
  1068. transition: 0.4s;
  1069. left: 0.5em;
  1070. position: absolute;
  1071. top: 0.45rem;
  1072. }
  1073. details[open] > summary:before {
  1074. transform:rotate(180deg);
  1075. top: 0.35rem;
  1076. }
  1077. details[open] summary ~ * {
  1078. animation: sweep .4s ease-in-out;
  1079. }
  1080. @keyframes sweep {
  1081. 0% {opacity: 0; margin-left: -10px}
  1082. 100% {opacity: 1; margin-left: 0px}
  1083. }
  1084. details > .details-content, details > div {
  1085. padding: 1em;
  1086. background-color: #0000000d;
  1087. }
  1088. #update_history {
  1089. overflow-x: auto;
  1090. }
  1091. #update_history details > div {
  1092. padding: 0;
  1093. }
  1094. #update_history details {
  1095. width: fit-content;
  1096. }
  1097. /* mobile phone */
  1098. @media screen and (max-width: 900px) {
  1099. #navbar {
  1100. display: block;
  1101. border-bottom: 1px solid #f1f1f1;
  1102. z-index: 89;
  1103. }
  1104. #navbar * {
  1105. display: block;
  1106. }
  1107. #navbar a.site_title {
  1108. display: flex;
  1109. }
  1110. #navbar_menu {
  1111. display: flex;
  1112. justify-content: space-between;
  1113. }
  1114. #navbar ul {
  1115. padding-left: 0;
  1116. }
  1117. #navbar_menu_btn {
  1118. background: url("/static/image/theme_default/menu.svg");
  1119. background-size: contain;
  1120. background-repeat: no-repeat;
  1121. background-position: center;
  1122. border-radius: 5px;
  1123. cursor: pointer;
  1124. width: 1em;
  1125. height: 1em;
  1126. display: block;
  1127. }
  1128. #navbar #navbar_items {
  1129. display: none;
  1130. padding-right: 0;
  1131. }
  1132. #navbar .sub_items ul {
  1133. left: 0;
  1134. right: auto;
  1135. }
  1136. #sidebar_wrapper {
  1137. position: fixed;
  1138. top: 0;
  1139. left: 0;
  1140. bottom: 0;
  1141. background-color: white;
  1142. box-shadow: 0 0 20px 0px #bbbbbb;
  1143. width: 100%;
  1144. z-index: 98;
  1145. display: none;
  1146. }
  1147. #sidebar {
  1148. position: relative;
  1149. width: 100%;
  1150. }
  1151. .gutter {
  1152. display: none;
  1153. }
  1154. #sidebar > ul {
  1155. padding-top: 4em;
  1156. }
  1157. #menu_wrapper {
  1158. z-index: 99;
  1159. }
  1160. #menu_wrapper.m_menu_fixed {
  1161. position: fixed;
  1162. left: 0;
  1163. top: 0;
  1164. width: 100%;
  1165. height: 4em;
  1166. background-color: rgb(255, 255, 255, 0.9);
  1167. box-shadow: 0px 1px 10px 0px rgb(0, 0, 0, 0.06);
  1168. }
  1169. #menu_wrapper.m_menu_fixed > #menu {
  1170. position: fixed;
  1171. left: 0.2em;
  1172. top: 1em;
  1173. }
  1174. #menu.close {
  1175. background: url("/static/image/theme_default/back.svg");
  1176. background-size: contain;
  1177. background-repeat: no-repeat;
  1178. background-position: center;
  1179. border-radius: 5px;
  1180. min-height: 2em;
  1181. min-width: 2em;
  1182. }
  1183. #content_body {
  1184. width: 90%;
  1185. }
  1186. #toc_wrapper {
  1187. display: none;
  1188. position: fixed;
  1189. width: 100vh;
  1190. height: 100vh;
  1191. top: 0;
  1192. left: 0;
  1193. background-color: rgb(0, 0, 0, 0.5);
  1194. z-index: 999;
  1195. transition: 0.4s;
  1196. }
  1197. #toc_wrapper.show {
  1198. display: block;
  1199. }
  1200. #article #toc{
  1201. position: fixed;
  1202. top: 4em;
  1203. right: 0;
  1204. z-index: 200;
  1205. width: 90%;
  1206. padding: 1em 0 1em 0;
  1207. border-radius: 0.3em 0 0 0.3em;
  1208. }
  1209. #previous_next {
  1210. flex-direction: column;
  1211. }
  1212. .m_hide {
  1213. display: none;
  1214. }
  1215. #footer_top > ul {
  1216. flex-direction: column;
  1217. }
  1218. .md_page #page_content > div {
  1219. margin: 1.5em;
  1220. }
  1221. #article_tools {
  1222. width: 100%;
  1223. display: flex;
  1224. flex-direction: column;
  1225. align-items: flex-end;
  1226. position: -webkit-sticky;
  1227. position: sticky;
  1228. top: 1em;
  1229. z-index: 97;
  1230. }
  1231. #toc_btn {
  1232. background: url("/static/image/theme_default/anchor.svg");
  1233. background-size: contain;
  1234. background-repeat: no-repeat;
  1235. background-position: center;
  1236. border-radius: 5px;
  1237. min-height: 2em;
  1238. min-width: 2em;
  1239. -ms-transform: rotate(12deg);
  1240. -moz-transform: rotate(12deg);
  1241. -webkit-transform: rotate(12deg);
  1242. transform: rotate(12deg);
  1243. }
  1244. }
  1245. /* special */
  1246. #themes{
  1247. padding: 2px 5px;
  1248. cursor: pointer;
  1249. }
  1250. #navbar .light, #navbar .dark:hover {
  1251. background: url("/static/image/theme_default/light_mode.svg");
  1252. background-size: contain;
  1253. background-repeat: no-repeat;
  1254. background-position: center;
  1255. min-height: 1rem;
  1256. min-width: 1rem;
  1257. }
  1258. #navbar .dark, #navbar .light:hover {
  1259. background: url("/static/image/theme_default/dark_mode.svg");
  1260. background-size: contain;
  1261. background-repeat: no-repeat;
  1262. background-position: center;
  1263. min-height: 1rem;
  1264. min-width: 1rem;
  1265. }
  1266. @media print {
  1267. code[class*="language-"], pre[class*="language-"] {
  1268. white-space: pre-wrap;
  1269. }
  1270. pre[class*="language-"].line-numbers {
  1271. border: 1px solid #2d2d2d;
  1272. }
  1273. #navbar,
  1274. #sidebar_wrapper, .gutter, #menu_wrapper,
  1275. #toc, #to_top, #doc_footer,
  1276. #previous_next,
  1277. #source_link, #print_page,
  1278. #comments-container {
  1279. display: none;
  1280. }
  1281. #article {
  1282. width: 100%;
  1283. }
  1284. #content_body {
  1285. max-width: 100%;
  1286. width: 100%;
  1287. }
  1288. /* .line-numbers-rows {
  1289. display: none;
  1290. } */
  1291. .gutter {
  1292. display: none;
  1293. }
  1294. }