import { Env } from "../tools/env";

export function importStyle() {
    if ("node" === Env.mode) return;
    const styleElement = document.createElement("style");
    styleElement.id = "vtable-sheet-formula-bar-styleSheet", styleElement.textContent = "\n  /* 公式栏样式 */\n.vtable-sheet-formula-bar {\n  height: 30px;\n  padding: 0;\n  border-bottom: 1px solid #e0e0e0;\n  display: flex;\n  align-items: center;\n  background-color: #fff;\n  position: relative;\n  z-index: 10;\n  box-shadow: 0 1px 2px rgba(0,0,0,0.05);\n  flex-grow: 1; /* 占据剩余宽度 */\n  height: 100%; /* 确保高度填满父容器 */\n  \n}\n\n/* 单元格地址显示 */\n.vtable-sheet-cell-address {\n  width: 60px;\n  padding: 0 10px;\n  display: flex;\n  align-items: center;\n  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,\n    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n  color: #333;\n  height: 100%;\n  border: 1px solid #e0e0e0;\n  font-size: 13px;\n}\n\n/* fx图标 */\n.vtable-sheet-formula-icon {\n  font-weight: normal;\n  font-style: italic;\n  margin: 0 8px;\n  font-size: 14px;\n  color: #666;\n  font-family: 'Roboto Mono', monospace;\n  width: 20px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n/* 公式输入框 */\n.vtable-sheet-formula-input {\n  flex: 1;\n  padding: 0 8px;\n  border: none;\n  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,\n    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n  outline: none;\n  font-size: 13px;\n  height: 100%;\n  color: #333;\n  background-color: transparent;\n}\n\n.vtable-sheet-formula-input:focus {\n  outline: none;\n}\n\n/* 公式操作按钮容器 */\n.vtable-sheet-formula-actions {\n  flex: 0;\n  display: flex;\n  align-items: right;\n  height: 100%;\n  width: 100px;\n  padding: 0 4px;\n  border-left: 1px solid #e0e0e0;\n}\n\n/* 公式操作按钮 */\n.vtable-sheet-formula-button {\n  width: 24px;\n  height: 24px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background: none;\n  border: none;\n  cursor: pointer;\n  font-size: 12px;\n  color: #666;\n  margin: 0 2px;\n  padding: 0;\n  border-radius: 2px;\n  transition: all 0.2s;\n}\n\n/* 取消按钮 */\n.vtable-sheet-formula-cancel:hover {\n  color: #d93025;\n  background-color: #f8f8f8;\n}\n\n/* 确认按钮 */\n.vtable-sheet-formula-confirm:hover {\n  color: #1e8e3e;\n  background-color: #f8f8f8;\n}\n\n/* 其他按钮样式 - 当有更多功能时使用 */\n.vtable-sheet-formula-more {\n  width: 24px;\n  height: 24px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background: none;\n  border: none;\n  cursor: pointer;\n  font-size: 16px;\n  color: #666;\n  margin: 0 2px;\n  padding: 0;\n}\n\n.vtable-sheet-formula-more:hover {\n  color: #1a73e8;\n}\n\n/* 取消之前不需要的工具栏样式 */\n.vtable-sheet-toolbar,\n.vtable-sheet-toolbar-group {\n  display: none;\n} \n", 
    document.head.appendChild(styleElement);
}
//# sourceMappingURL=formula-bar.js.map