popup_note.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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:before {
  64. content: '';
  65. position: absolute;
  66. bottom: 100%;
  67. width: 100%;
  68. border: 6px solid transparent;
  69. }
  70. .popup_contence h1 {
  71. font-size: 1.5em;
  72. font-weight: 700;
  73. }
  74. .popup_contence h2 {
  75. font-size: 1.3em;
  76. font-weight: 700;
  77. }
  78. .popup_contence h3 {
  79. font-size: 1.1em;
  80. font-weight: 700;
  81. }
  82. .popup_contence h4 {
  83. font-size: 1em;
  84. font-weight: 700;
  85. }
  86. .popup_contence li {
  87. white-space: normal;
  88. word-break: normal;
  89. }
  90. .popup_contence pre {
  91. background-color: rgba(0, 0, 0, 0.1);
  92. }
  93. .popup_contence code {
  94. white-space: normal;
  95. word-break: normal;
  96. font-family: arial;
  97. }