index.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. html, body {
  2. height: 100%;
  3. margin: 0;
  4. padding: 0;
  5. }
  6. .fe-whole-page {
  7. width: 152px;
  8. font-size: 14px;
  9. user-select: none;
  10. padding: 0;
  11. margin: 0;
  12. position: relative;
  13. }
  14. .fe-hide {
  15. display: none;
  16. }
  17. .fe-function-title {
  18. padding: 8px 12px;
  19. color: #2b2d42;
  20. font-weight: 600;
  21. cursor: default;
  22. border-bottom: 1px solid rgba(67, 97, 238, 0.1);
  23. background: linear-gradient(to right, #f8f9ff, #f0f2ff);
  24. font-size: 12px;
  25. letter-spacing: 0.5px;
  26. }
  27. .fe-function-title span {
  28. font-weight: normal;
  29. color: #999;
  30. font-size: 10px;
  31. }
  32. ul.fe-function-list {
  33. padding: 0;
  34. list-style: none;
  35. width: 100%;
  36. margin: 0;
  37. }
  38. ul.fe-function-list li {
  39. padding: 2px 10px 2px 38px;
  40. cursor: pointer;
  41. color: #4a4c6d;
  42. transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  43. display: block;
  44. align-items: center;
  45. height: 28px;
  46. border-radius: 6px;
  47. margin: 2px 0;
  48. border-bottom: 1px solid rgba(67, 97, 238, 0.05);
  49. text-align: justify;
  50. position: relative;
  51. line-height: 28px;
  52. }
  53. ul.fe-function-list li:last-child {
  54. border-bottom: none;
  55. }
  56. ul.fe-function-list li.x-hovered,
  57. ul.fe-function-list li:hover {
  58. color: #000;
  59. background: rgba(67, 97, 238, 0.08);
  60. box-shadow: 0 2px 6px rgba(67, 97, 238, 0.08);
  61. font-weight: 600;
  62. }
  63. ul.fe-function-list li > span {
  64. padding-left: 24px;
  65. }
  66. ul.fe-function-list li:after {
  67. content: ' ';
  68. display: inline-block;
  69. width: 100%;
  70. overflow: hidden;
  71. height: 0;
  72. }
  73. ul.fe-function-list li > b {
  74. width: 20px;
  75. height: 20px;
  76. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  77. display: inline-flex;
  78. align-items: center;
  79. justify-content: center;
  80. background: rgba(0,0,0,0.1);
  81. padding: 0px;
  82. border-radius: 50%;
  83. margin-right: 2px;
  84. color: currentColor;
  85. filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.1));
  86. position: absolute;
  87. left: 10px;
  88. top: 6px;
  89. }
  90. /* 暗黑模式适配 */
  91. .dark-mode .fe-function-list li > b {
  92. background: rgba(255,255,255,0.1);
  93. }
  94. ul.fe-function-list li:hover > b {
  95. -webkit-transform: rotate(360deg);
  96. }
  97. ul.fe-function-list li i {
  98. color: #aaa;
  99. font-weight: 700;
  100. font-style: normal;
  101. }
  102. .fe-feedback {
  103. font-size: 13px;
  104. border-top: 1px solid rgba(67, 97, 238, 0.08);
  105. padding: 8px 16px;
  106. margin-top: 0px;
  107. background: linear-gradient(to right, rgba(67, 97, 238, 0.05), rgba(67, 97, 238, 0.05));
  108. color: var(--text-color);
  109. opacity: 0.9;
  110. }
  111. .fe-feedback a {
  112. color: #666;
  113. text-decoration: none;
  114. text-align: left;
  115. }
  116. .fe-feedback a:hover {
  117. color: #c00;
  118. }
  119. svg:not(:root) {
  120. overflow: hidden;
  121. }
  122. .fe-feedback svg {
  123. vertical-align: middle;
  124. display: inline-block;
  125. fill: currentColor;
  126. margin-right: 3px;
  127. }
  128. .fe-feedback img {
  129. opacity: 0.6;
  130. position: relative;
  131. top: 1px;
  132. }
  133. .fe-feedback a:hover img {
  134. opacity: 1.0;
  135. }
  136. .fe-feedback .x-settings {
  137. float: right;
  138. cursor: pointer;
  139. margin-left: 5px;
  140. display: inline-flex;
  141. align-items: center;
  142. color: #666;
  143. }
  144. .fe-feedback .x-settings:hover {
  145. color: #c00;
  146. }
  147. .fe-feedback .x-fb,
  148. .fe-feedback .x-settings
  149. {
  150. float: right;
  151. }
  152. /* 加载状态样式 */
  153. .fe-loading {
  154. display: flex;
  155. flex-direction: column;
  156. align-items: center;
  157. justify-content: center;
  158. padding: 20px;
  159. min-height: 60px;
  160. }
  161. .loading-spinner {
  162. width: 20px;
  163. height: 20px;
  164. border: 2px solid rgba(67, 97, 238, 0.1);
  165. border-left: 2px solid #4361ee;
  166. border-radius: 50%;
  167. animation: spin 1s linear infinite;
  168. margin-bottom: 8px;
  169. }
  170. .loading-text {
  171. color: #666;
  172. font-size: 12px;
  173. text-align: center;
  174. }
  175. @keyframes spin {
  176. 0% { transform: rotate(0deg); }
  177. 100% { transform: rotate(360deg); }
  178. }
  179. /* 无工具状态样式 */
  180. .fe-no-tools {
  181. padding: 20px;
  182. text-align: center;
  183. }
  184. .no-tools-message p {
  185. color: #666;
  186. font-size: 12px;
  187. margin: 0 0 12px 0;
  188. }
  189. .install-tools-btn {
  190. background: #4361ee;
  191. color: white;
  192. border: none;
  193. border-radius: 4px;
  194. padding: 6px 12px;
  195. font-size: 11px;
  196. cursor: pointer;
  197. transition: all 0.2s ease;
  198. }
  199. .install-tools-btn:hover {
  200. background: #3651d4;
  201. transform: translateY(-1px);
  202. }
  203. /* 暗色模式适配 */
  204. html[dark-mode="on"] .loading-text,
  205. html[dark-mode="on"] .no-tools-message p {
  206. color: #ccc;
  207. }
  208. html[dark-mode="on"] .loading-spinner {
  209. border-color: rgba(255, 255, 255, 0.1);
  210. border-left-color: #4361ee;
  211. }