/** * @program: kicc-ui * @description: 公共配置 * @author: entfrm开发团队-王翔 * @create: 2022/4/7 */ #app { width: 100%; height: 100%; } // ================================= // 滚动条 // ================================= ::-webkit-scrollbar { width: 7px; height: 8px; } ::-webkit-scrollbar-track { background-color: rgba(0, 0, 0, 0.05); } ::-webkit-scrollbar-thumb { background-color: rgba(144, 147, 153, 0.3); border-radius: 2px; box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2); } ::-webkit-scrollbar-thumb:hover { background-color: @border-color-dark; } // ================================= // nprogress // ================================= #nprogress { pointer-events: none; .bar { position: fixed; top: 0; left: 0; z-index: 99999; width: 100%; height: 2px; background-color: @primary-color; opacity: 0.75; } } // ================================= // Custom Basic Table // ================================= html[data-theme='dark'] { .@{custom-basic-table-prefix-cls} { // [黑暗模式]table顶部插槽多选栏样式 .alert { background-color: #323232; border-color: #424242; } } } .@{custom-basic-table-prefix-cls} { max-width: 100%; height: 100%; &-row__striped { td { background-color: @app-content-background; } } &-form-container { padding: 16px; .ant-form { width: 100%; padding: 12px 10px 6px 10px; margin-bottom: 8px; background-color: @component-background; border-radius: 2px; } } .ant-tag { margin-right: 0; } .ant-table-wrapper { padding: 6px; background-color: @component-background; border-radius: 2px; .ant-table-title { min-height: 40px; padding: 0 0 8px !important; } .ant-table.ant-table-bordered .ant-table-title { border: none !important; } } .ant-table { width: 100%; overflow-x: hidden; &-title { display: flex; padding: 8px 6px; border-bottom: none; justify-content: space-between; align-items: center; } .ant-table-tbody > tr.ant-table-row-selected td { background-color: fade(@primary-color, 8%) !important; } } .ant-pagination { margin: 10px 0 0; } .ant-table-footer { padding: 0; .ant-table-wrapper { padding: 0; } table { border: none !important; } .ant-table-body { overflow-x: hidden !important; } td { padding: 12px 8px; } } // [明亮模式]table顶部插槽多选栏样式 .alert { height: 38px; background-color: #f3f3f3; border-color: #e3e3e3; } &--inset { .ant-table-wrapper { padding: 0; } } // 表格头部工具栏 &__toolbar { flex: 1; display: flex; align-items: center; justify-content: flex-end; > * { margin-right: 8px; } } // 表格列动作列 &__action { display: flex; align-items: center; height: 22px; .action-divider { display: table; } &.left { justify-content: flex-start; } &.center { justify-content: center; } &.right { justify-content: flex-end; } button { display: flex; align-items: center; span { margin-left: 0 !important; } } button.ant-btn-circle { span { margin: auto !important; } } .ant-divider, .ant-divider-vertical { margin: 0 2px; } .icon-more { transform: rotate(90deg); svg { font-size: 1.1em; font-weight: 700; } } } // 表格设置 &__settings { & > * { margin-right: 12px; } svg { width: 1.3em; height: 1.3em; } } }