guide.css 1.6 KB

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