styles.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. /* 固定在头部的输入框样式 */
  2. .fixed-header {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. width: 100%;
  7. background: linear-gradient(135deg, #6e8efb, #a777e3);
  8. z-index: 999;
  9. padding: 15px 0;
  10. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  11. display: flex;
  12. justify-content: center;
  13. align-items: center;
  14. }
  15. .fixed-header .layui-form-item {
  16. margin-bottom: 0;
  17. display: flex;
  18. align-items: center;
  19. }
  20. .fixed-header .layui-form-label {
  21. color: #fff;
  22. font-weight: bold;
  23. margin-right: 10px;
  24. }
  25. .fixed-header .layui-input {
  26. border-radius: 20px;
  27. border: none;
  28. padding: 10px 15px;
  29. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  30. transition: all 0.3s;
  31. }
  32. .fixed-header .layui-input:focus {
  33. box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  34. }
  35. .fixed-header .layui-btn {
  36. border-radius: 20px;
  37. border: none;
  38. background: #fff;
  39. color: #6e8efb;
  40. font-weight: bold;
  41. padding: 10px 20px;
  42. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  43. transition: all 0.3s;
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. height: 40px;
  48. /* 确保按钮高度与输入框一致 */
  49. }
  50. .fixed-header .layui-btn:hover {
  51. background: #f8f8f8;
  52. transform: translateY(-2px);
  53. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  54. }
  55. /* 历史记录下拉菜单 */
  56. .history-dropdown {
  57. position: absolute;
  58. top: 100%;
  59. left: 0;
  60. width: 100%;
  61. max-height: 200px;
  62. overflow-y: auto;
  63. background: #fff;
  64. border-radius: 4px;
  65. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  66. z-index: 1000;
  67. display: none;
  68. }
  69. .history-dropdown div {
  70. padding: 8px 15px;
  71. cursor: pointer;
  72. border-bottom: 1px solid #eee;
  73. }
  74. .history-dropdown div:hover {
  75. background: #f5f5f5;
  76. }
  77. /* 固定左侧面板样式,确保表单项垂直排列且显示在左侧 */
  78. .fixed-left {
  79. position: fixed;
  80. left: 12px;
  81. /* 根据需要微调 */
  82. top: 65px;
  83. /* 与头部高度对齐(调整为实际头部高度) */
  84. width: 260px;
  85. /* 根据需要调整宽度 */
  86. z-index: 999;
  87. background: transparent;
  88. padding: 8px 6px;
  89. }
  90. /* 强制 LayUI 表单项垂直堆叠,消除 layui-input-block 的左右偏移 */
  91. .fixed-left .layui-form {
  92. display: flex;
  93. flex-direction: column;
  94. gap: 8px;
  95. }
  96. .fixed-left .layui-form .layui-form-item {
  97. display: flex;
  98. align-items: center;
  99. }
  100. .fixed-left .layui-form .layui-form-label {
  101. width: 72px;
  102. /* 标签宽度,可调整 */
  103. padding-right: 6px;
  104. }
  105. .fixed-left .layui-form .layui-input-block {
  106. flex: 1;
  107. margin-left: 0;
  108. /* 清除 LayUI 的默认左边距 */
  109. }
  110. /* 按钮横向排列并自适应 */
  111. .fixed-left .layui-btn {
  112. display: inline-block;
  113. vertical-align: middle;
  114. }
  115. /* 使两个按钮并排且间距合适,使用小号按钮样式 */
  116. .inline-btns {
  117. display: flex;
  118. gap: 8px;
  119. align-items: center;
  120. }
  121. /* 可选:更小屏幕时改为竖排按钮 */
  122. @media (max-width: 600px) {
  123. .fixed-left {
  124. position: static;
  125. width: auto;
  126. padding: 0;
  127. }
  128. .fixed-left .layui-form {
  129. gap: 6px;
  130. }
  131. }
  132. /* 调整主内容区域,避免被左侧固定栏遮挡 */
  133. .layui-container {
  134. margin-left: 350px;
  135. }
  136. /* 道具区域的额外右移样式 */
  137. .asset-form {
  138. margin-left: 40px;
  139. /* 向右移动 40px */
  140. }
  141. .layui-input-inline.double-button {
  142. display: flex;
  143. gap: 10px;
  144. width: 290px;
  145. }
  146. .layui-input-inline.gm-input {
  147. width: 300px;
  148. }
  149. .layui-input-inline.handle-gm-btn {
  150. width: 70px;
  151. }
  152. /* GM命令帮助窗口样式 */
  153. .help-btn {
  154. width: 40px !important;
  155. padding: 10px !important;
  156. }
  157. .gm-help-window {
  158. position: absolute;
  159. top: 100%;
  160. right: 0;
  161. width: 500px;
  162. max-height: 600px;
  163. background: #fff;
  164. border-radius: 8px;
  165. box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  166. z-index: 1001;
  167. display: none;
  168. border: 1px solid #e6e6e6;
  169. }
  170. .help-header {
  171. display: flex;
  172. justify-content: space-between;
  173. align-items: center;
  174. padding: 15px 20px;
  175. border-bottom: 1px solid #e6e6e6;
  176. background: #f8f9fa;
  177. border-radius: 8px 8px 0 0;
  178. }
  179. .help-header h3 {
  180. margin: 0;
  181. color: #333;
  182. font-size: 16px;
  183. }
  184. .close-btn {
  185. background: none;
  186. border: none;
  187. font-size: 20px;
  188. cursor: pointer;
  189. color: #999;
  190. padding: 0;
  191. width: 24px;
  192. height: 24px;
  193. display: flex;
  194. align-items: center;
  195. justify-content: center;
  196. }
  197. .close-btn:hover {
  198. color: #333;
  199. background: #e6e6e6;
  200. border-radius: 50%;
  201. }
  202. .help-content {
  203. padding: 20px;
  204. max-height: 400px;
  205. overflow-y: auto;
  206. }
  207. .help-section {
  208. margin-bottom: 20px;
  209. }
  210. .help-section h4 {
  211. margin: 0 0 10px 0;
  212. color: #6e8efb;
  213. font-size: 14px;
  214. font-weight: bold;
  215. }
  216. .help-section ul {
  217. margin: 0;
  218. padding-left: 20px;
  219. }
  220. .help-section li {
  221. margin-bottom: 8px;
  222. font-size: 15px;
  223. line-height: 1.4;
  224. color: #666;
  225. }
  226. .help-section code {
  227. background: #f5f5f5;
  228. padding: 2px 6px;
  229. border-radius: 3px;
  230. font-family: 'Courier New', monospace;
  231. color: #e74c3c;
  232. font-size: 15px;
  233. }