@tailwind base; @tailwind components; @tailwind utilities; .quill-editor-container .ql-toolbar { border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom: none; border: none; } .quill-editor-container .ql-container { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; border: none; @apply text-base; } .ag-custom-dragging-class { @apply border-b-2 border-blue-200; } .ant-popover-inner { padding: 0 !important; @apply border border-gray-300; } .ag-header-viewport { z-index: 0; } .ag-cell { display: flex; align-items: center; /* 垂直居中 */ } .ag-cell .ag-cell-wrapper { display: flex; align-items: center; /* 垂直居中 */ } /* 滚动条轨道 */ ::-webkit-scrollbar-track { border-radius: 10px; @apply bg-gray-200; } /* 滚动块 */ ::-webkit-scrollbar-thumb { /* background-color: #888; */ border-radius: 10px; border: 2px solid #f0f0f0; @apply hover:bg-blue-200 transition-all bg-gray-400 ease-in-out rounded-full; } /* 鼠标悬停在滚动块上 */ ::-webkit-scrollbar-thumb:hover { background-color: "tr"; } ::-webkit-scrollbar { height: 8px; width: 10px; /* 滚动条宽度 */ } /* 覆盖 Ant Design 的默认样式 raido button左侧的按钮*/ .ant-radio-button-wrapper-checked:not( .ant-radio-button-wrapper-disabled )::before { background-color: unset !important; } .state-select.ant-select-selector { cursor: pointer !important; /* 强制覆盖默认的禁止样式 */ } .ant-tabs-nav-operations { display: none !important; } .no-wrap-header .ant-table-thead > tr > th { white-space: nowrap; } .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: "标题 1"; } .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: "标题 2"; } .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: "标题 3"; } .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before { content: "标题 4"; } .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before { content: "标题 5"; } .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before { content: "标题 6"; } /* 针对下拉菜单中的选项 */ .ql-snow .ql-picker.ql-header .ql-picker-item:not([data-value])::before, .ql-snow .ql-picker.ql-header .ql-picker-label:not([data-value])::before { content: "正文" !important; } .top-notification-wrapper { position: relative; padding: 10px; margin: 10px 0; } .top-notification-text { border: 20px dashed transparent; background-image: linear-gradient(white, white), repeating-linear-gradient( 45deg, #4CAF50 0, #4CAF50 40px, transparent 40px, transparent 60px, #2196F3 60px, #2196F3 100px, transparent 100px, transparent 120px ); background-origin: border-box; background-clip: padding-box, border-box; padding: 15px; font-size: 16px; line-height: 1.5; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } /* 基础样式修复 */ .custom-staff-select.ant-select { box-sizing: border-box; margin: 0; padding: 0; font-variant: tabular-nums; line-height: 1.5715; list-style: none; font-feature-settings: "tnum"; } /* 输入框样式修复 */ .custom-staff-select .ant-select-selector { position: relative; background-color: #fff; border: 1px solid #d9d9d9; border-radius: 2px; transition: all 0.3s; } /* 下拉框样式修复 */ .custom-staff-select .ant-select-dropdown { background-color: #fff; border-radius: 2px; box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12); } /* 选项样式修复 */ .custom-staff-select .ant-select-item { padding: 5px 12px; line-height: 22px; cursor: pointer; } /* 多选标签样式修复 */ .custom-staff-select .ant-select-selection-item { height: 24px; margin-top: 2px; margin-right: 4px; padding: 0 4px; background-color: #f5f5f5; border-radius: 2px; line-height: 22px; } /* 基础容器样式 */ .custom-tree-select.ant-tree-select { box-sizing: border-box; margin: 0; padding: 0; color: rgba(0, 0, 0, 0.85); font-size: 14px; line-height: 1.5715; list-style: none; position: relative; display: inline-block; width: 100%; } /* 选择框样式 */ .custom-tree-select .ant-select-selector { position: relative; background-color: #fff; border: 1px solid #d9d9d9; border-radius: 2px; transition: all 0.3s; display: flex; flex-wrap: wrap; } /* 下拉面板样式 */ .custom-tree-select .ant-select-tree-list { margin: 0; padding: 0; } /* 树节点样式 */ .custom-tree-select .ant-select-tree-node-content-wrapper { display: inline-block; margin: 0; padding: 0 4px; color: rgba(0, 0, 0, 0.85); line-height: 24px; text-decoration: none; background: transparent; border-radius: 2px; cursor: pointer; transition: all 0.3s; } /* 多选标签样式 */ .custom-tree-select .ant-select-selection-item { position: relative; display: inline-block; height: 20px; margin-top: 2px; margin-right: 4px; margin-bottom: 2px; padding: 0 4px 0 8px; font-size: 14px; line-height: 18px; background: #f5f5f5; border: 1px solid #f0f0f0; border-radius: 2px; } /* 复选框样式 */ .custom-tree-select .ant-select-tree-checkbox { box-sizing: border-box; margin: 0; padding: 0; color: rgba(0, 0, 0, 0.85); font-size: 14px; line-height: 1; list-style: none; position: relative; top: 0.2em; display: inline-block; margin-right: 8px; } /* 展开图标样式 */ .custom-tree-select .ant-select-tree-switcher { position: relative; flex: none; width: 24px; margin: 0; line-height: 24px; text-align: center; cursor: pointer; } /* 加载状态样式 */ .custom-tree-select .ant-select-tree-switcher-loading-icon { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; color: #1890ff; }