2
0

popup_note.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. note code {
  2. position: relative;
  3. display: inline-block;
  4. width: auto;
  5. min-width: 14px;
  6. height: auto;
  7. min-height: 14px;
  8. cursor: pointer;
  9. background: url(guide_icon.svg);
  10. background-repeat: no-repeat;
  11. background-size: contain;
  12. margin: 0 6px;
  13. color: var(--tool-color);
  14. }
  15. .language-para {
  16. background: none;
  17. color: unset;
  18. }
  19. code:hover .popup_contence {
  20. display: inline-block;
  21. }
  22. code ul {
  23. list-style-type: disc;
  24. padding-left: 20px;
  25. }
  26. code ol {
  27. list-style-type: decimal;
  28. padding-left: 20px;
  29. }
  30. .popup_contence {
  31. border-top: 7px;
  32. position: absolute;
  33. border: 1px solid var(--border-line-color);
  34. border-radius: 5px;
  35. top: 180%;
  36. width: max-content;
  37. min-width: 18em;
  38. max-width: max(25vw, 100%);
  39. min-height: 15em;
  40. padding: 10px;
  41. background-color: var(--drop-bg-color);
  42. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  43. font-size: 10pt;
  44. text-align: left;
  45. display: none;
  46. margin: 0.3em;
  47. margin: -1px 0px;
  48. box-shadow: 0px 3px 13px 0px var(--shadow-color);
  49. color: var(--main-color);
  50. z-index: 200;
  51. }
  52. .popup_contence:after {
  53. content: "\00a0";
  54. width: 0;
  55. height: 0;
  56. display: block;
  57. border-style: solid;
  58. border-width: 10px;
  59. border-color: transparent transparent var(--drop-bg-color) transparent;
  60. position: absolute;
  61. top: -20px;
  62. }
  63. .popup_contence h1 {
  64. font-size: 1.5em;
  65. font-weight: 700;
  66. }
  67. .popup_contence h2 {
  68. font-size: 1.3em;
  69. font-weight: 700;
  70. }
  71. .popup_contence h3 {
  72. font-size: 1.1em;
  73. font-weight: 700;
  74. }
  75. .popup_contence h4 {
  76. font-size: 1em;
  77. font-weight: 700;
  78. }
  79. .popup_contence li {
  80. white-space: normal;
  81. word-break: normal;
  82. }
  83. .popup_contence pre {
  84. background-color: rgba(0, 0, 0, 0.1);
  85. }
  86. .popup_contence code {
  87. white-space: normal;
  88. word-break: normal;
  89. font-family: arial;
  90. }