guide.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. guide {
  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(--link-color);
  14. }
  15. guide:hover .guide_contence {
  16. display: inline-block;
  17. white-space: nowrap;
  18. width: fit-content;
  19. max-width: unset;
  20. }
  21. guide ul {
  22. list-style-type: disc;
  23. padding-left: 20px;
  24. }
  25. guide ol {
  26. list-style-type: decimal;
  27. padding-left: 20px;
  28. }
  29. .guide_contence {
  30. /*border-top: 7px;*/
  31. position: absolute;
  32. border: 1px solid var(--border-line-color);
  33. border-radius: 5px;
  34. top: 100%;
  35. /*width: max-content;
  36. min-width: min-content;
  37. max-width: min(80vw,20em);*/
  38. min-height: 15em;
  39. padding: 10px;
  40. background-color: var(--drop-bg-color);
  41. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  42. font-size: 10pt;
  43. text-align: left;
  44. display: none;
  45. margin: 10px 0 0 0;
  46. box-shadow: 0px 3px 13px 0px var(--shadow-color);
  47. color: var(--main-color);
  48. z-index: 200;
  49. white-space: nowrap;
  50. }
  51. .guide_contence:after {
  52. content: "\00a0";
  53. width: 0;
  54. height: 0;
  55. display: block;
  56. border-style: solid;
  57. border-width: 10px;
  58. border-color: transparent transparent var(--drop-bg-color) transparent;
  59. position: absolute;
  60. top: -20px;
  61. }
  62. .guide_contence:before {
  63. content: '';
  64. position: absolute;
  65. bottom: 100%;
  66. width: 100%;
  67. border: 6px solid transparent;
  68. }
  69. .left:after {
  70. left: 10px;
  71. }
  72. .right:after {
  73. right: 10px;
  74. }
  75. .guide_contence h1 {
  76. font-size: 1.5em;
  77. font-weight: 700;
  78. }
  79. .guide_contence h2 {
  80. font-size: 1.3em;
  81. font-weight: 700;
  82. }
  83. .guide_contence h3 {
  84. font-size: 1.1em;
  85. font-weight: 700;
  86. }
  87. .guide_contence h4 {
  88. font-size: 1em;
  89. font-weight: 700;
  90. }
  91. .guide_contence li {
  92. white-space: normal;
  93. word-break: normal;
  94. }
  95. .guide_contence pre {
  96. background-color: rgba(0, 0, 0, 0.1);
  97. }
  98. .guide_contence code {
  99. word-break: normal;
  100. font-family: arial;
  101. }