UNPKG

@ccs-design/rc-pro

Version:

ccs design basic react component

246 lines (226 loc) 4.73 kB
// table buttons .buttons { button:not(:last-child)::after { margin: 0 4px 0 6px; color: #e8e8e8; content: '|'; } } .ccs-pl { position: relative; &-icon { color: rgba(0, 0, 0, 0.75); font-size: 16; } &-table-content { // margin: 10px; background: #fff; } &-table-header { margin: 10px; } &-title { padding: 10px 16px; color: rgba(0, 0, 0, 0.85); font-weight: 500; font-size: 16px; background: #fff; border-bottom: 1px solid #f0f0f0; } &-form { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; .ant-form-item { flex-wrap: nowrap; margin-right: 0; margin-left: 10px; } .ant-form-item .ant-form-item-label { padding: 0; } .ant-form-inline { flex-wrap: wrap; align-items: center; justify-content: end; } } &-high-form { position: absolute; top: 0; right: 0; bottom: 0; z-index: 101; height: 100%; overflow-x: hidden; overflow-y: auto; background: #fff; box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03); transition: width 0.3s; .ant-form-item { margin-bottom: 10px !important; } } .ant-form-item-control { line-height: 0; } // .ant-form-item { // margin-bottom: 0; // } .ant-input-number { width: 100%; } .ant-picker { width: 100%; } .ant-drawer-right.ant-drawer-open { width: 100%; transition: none; } .ant-drawer.ant-drawer-open .ant-drawer-mask { animation: none; } &-form-label { .ant-col-24.ant-form-item-label { padding: 0; } } &-simple-toolbar { display: flex; align-items: flex-end; justify-content: space-between; padding: 6px 16px; .ant-form-item-explain { position: absolute; bottom: -20px; z-index: 101; height: 0; overflow: hidden; white-space: nowrap; } } &-compact-toolbar { padding: 10px 16px; .ant-form-item-explain { position: absolute; bottom: -20px; z-index: 101; height: 0; overflow: hidden; white-space: nowrap; } .ant-btn { height: 28px; padding: 0 10px; } .ant-form-item-control-input { min-height: 28px; } .ant-input, .ant-input-affix-wrapper { padding: 2px 11px; } .ant-form-item-label > label { height: 28px; } .ant-input-number-input { height: 26px; } .ant-radio-button-wrapper { height: 28px; line-height: 28px; } .ant-select-single .ant-select-selector .ant-select-selection-item, .ant-select-single .ant-select-selector .ant-select-selection-placeholder { line-height: 26px; } .ant-select-single:not(.ant-select-customize-input) .ant-select-selector { width: 100%; height: 28px; padding: 0 11px; } .ant-picker { padding: 2px 11px; } } &-toolbar { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 16px 16px 16px; .ant-form-item-explain { position: absolute; bottom: -20px; z-index: 101; height: 0; overflow: hidden; white-space: nowrap; } } .ant-table-tbody > tr:nth-child(odd) { td { background: @table-row-bg-color; } } .ant-table-tbody > tr.ant-table-row-selected > td { background: #fff6e6; } .ant-table-tbody > tr.ant-table-row:hover > td { background: #fafafa; } } .compact-theme { .ccs-pl { &-title { padding: 6px 16px; } &-high-form { .ant-form-item { margin-bottom: 0px !important; } } } } .dark-theme { .ccs-pl { &-icon { color: #fff; } &-table-content { background: @dark-color-shallow; } &-title { color: rgba(255, 255, 255, 0.85); background: @dark-color-shallow; border-bottom: 1px solid @dark-border-color; } &-high-form { background-color: #202020; box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03); .ant-card { background-color: #202020; } } .ant-table-tbody > tr:nth-child(odd) { td { background: none; } } .ant-table-tbody > tr.ant-table-row-selected > td { background: #111d2c; } } } // modal drawer ccs-pl 中取消table content padding .ant-modal-body, .ant-drawer-body, .ccs-trigger-container, .ccs-pg-col { .ccs-pl-table-content { margin: 0; } }