2
0

guide.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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: min-content;
  34. max-width: min(80vw,20em);*/
  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: 10px 0 0 0;
  43. box-shadow: 0px 3px 13px 0px var(--shadow-color);
  44. color: var(--main-color);
  45. z-index: 200;
  46. }
  47. .guide_contence:after {
  48. content: "\00a0";
  49. width: 0;
  50. height: 0;
  51. display: block;
  52. border-style: solid;
  53. border-width: 10px;
  54. border-color: transparent transparent var(--drop-bg-color) transparent;
  55. position: absolute;
  56. top: -20px;
  57. }
  58. .guide_contence:before {
  59. content: '';
  60. position: absolute;
  61. bottom: 100%;
  62. width: 100%;
  63. border: 6px solid transparent;
  64. }
  65. .left:after {
  66. left: 10px;
  67. }
  68. .right:after {
  69. right: 10px;
  70. }
  71. .guide_contence h1 {
  72. font-size: 1.5em;
  73. font-weight: 700;
  74. }
  75. .guide_contence h2 {
  76. font-size: 1.3em;
  77. font-weight: 700;
  78. }
  79. .guide_contence h3 {
  80. font-size: 1.1em;
  81. font-weight: 700;
  82. }
  83. .guide_contence h4 {
  84. font-size: 1em;
  85. font-weight: 700;
  86. }
  87. .guide_contence li {
  88. white-space: normal;
  89. word-break: normal;
  90. }
  91. .guide_contence pre {
  92. background-color: rgba(0, 0, 0, 0.1);
  93. }
  94. .guide_contence code {
  95. word-break: normal;
  96. font-family: arial;
  97. }