| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- @import '~antd/es/style/themes/default.less';
- html,
- body,
- #root {
- height: 100%;
- }
- .colorWeak {
- filter: invert(80%);
- }
- .ant-layout {
- min-height: 100vh;
- }
- // .ant-menu-submenu-selected .ant-menu-submenu-title {
- // background: #595284;
- // border-left: 3px solid #886ab5;
- // }
- .ant-layout-header {
- background: linear-gradient(
- to right,
- #584475 0%,
- #7c62a4 50%,
- #7c62a4 50%,
- #584475 100%
- ) !important;
- }
- .ant-pro-basicLayout .ant-layout-header.ant-pro-fixed-header {
- background: linear-gradient(
- to right,
- #584475 0%,
- #7c62a4 50%,
- #7c62a4 50%,
- #584475 100%
- ) !important;
- }
- .ant-menu-dark .ant-menu-sub,
- .ant-menu.ant-menu-dark,
- .ant-menu.ant-menu-dark .ant-menu-sub {
- background: none !important;
- }
- .ant-menu-dark .ant-menu-inline.ant-menu-sub {
- background: #ffffff;
- }
- .ant-menu-dark .ant-menu-item-only-child:hover {
- background: #423d68;
- }
- .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
- background: #4a4473;
- border-right: 3px solid #24b3a4;
- }
- .ant-menu-inline .ant-menu-submenu-title {
- margin-bottom: 0;
- }
- // 修复proTable中的列设置,tree list hover效果异常
- .ant-pro-table-column-setting-list > .ant-tree .ant-tree-node-content-wrapper:hover {
- background-color: unset;
- }
- .ant-pro-top-nav-header-logo h1 {
- font-weight: 600;
- font-size: 18px;
- }
- canvas {
- display: block;
- }
- body {
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- ul,
- ol {
- list-style: none;
- }
- @media (max-width: @screen-xs) {
- .ant-table {
- width: 100%;
- overflow-x: auto;
- &-thead > tr,
- &-tbody > tr {
- > th,
- > td {
- white-space: pre;
- > span {
- display: block;
- }
- }
- }
- }
- }
- // 兼容IE11
- @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
- body .ant-design-pro > .ant-layout {
- min-height: 100vh;
- }
- }
- input:-webkit-autofill,
- input:-webkit-autofill:hover,
- input:-webkit-autofill:focus,
- input:-webkit-autofill:active {
- -webkit-transition: color 11111s ease-out, background-color 111111s ease-out;
- -webkit-transition-delay: 111111s;
- }
- .ant-picker {
- width: 100%;
- }
- .ant-drawer-body {
- padding: 0;
- }
- .ant-skeleton-element {
- width: 100% !important;
- }
- // .ant-modal-header {
- // padding: 0;
- // }
- // 弹窗左右结构
- .sheet-box {
- // overflow: hidden;
- .sheet-box-left {
- height: calc(100vh);
- // height: calc(100vh - 15px);
- padding: 24px 0 24px 24px;
- overflow-y: auto;
- .sheet-left-panel {
- // overflow-x: hidden;
- }
- }
- .sheet-box-right {
- background-color: #fafafa;
- border-left: 1px solid #eaeaea;
- }
- }
- .sheet-right-panel,
- .sheet-panel-record {
- height: calc((100vh - 48px - 92px - 64px) / 2);
- overflow-x: hidden;
- overflow-y: auto;
- }
- .sheet-btns {
- height: 54px;
- }
- .sheet-right-panel .ant-card,
- .sheet-right-panel .ant-table {
- background: #fafafa;
- }
- .sheet-right-panel .ant-table-tbody > tr.ant-table-placeholder > td {
- border-bottom: none;
- }
- .sheet-right-panel .ant-table-tbody > tr.ant-table-placeholder:hover > td {
- background: none !important;
- }
- /** 滚动条自定义 */
- ::-webkit-scrollbar {
- width: 8px;
- height: 8px;
- }
- ::-webkit-scrollbar-track {
- background: rgb(239, 239, 239);
- border-radius: 2px;
- }
- ::-webkit-scrollbar-thumb {
- background: #bfbfbf;
- border-radius: 10px;
- }
- ::-webkit-scrollbar-thumb:hover {
- background: #636363;
- }
- .ant-select-selection-item {
- text-overflow: unset;
- }
- .ant-typography {
- color: inherit;
- }
- .my-drawer.ant-drawer-open {
- // width: 100% !important; // mask: false
- > .ant-drawer-content-wrapper {
- width: 70% !important;
- }
- }
- @media (max-width: 767.98px) {
- .my-drawer.ant-drawer-open {
- > .ant-drawer-content-wrapper {
- width: 100% !important;
- }
- }
- }
- // .react-resizable {
- // background-clip: padding-box !important;
- // }
- // .table-resizable-handle {
- // position: absolute;
- // right: -5px;
- // bottom: 0;
- // z-index: 1;
- // width: 10px;
- // height: 100%;
- // cursor: col-resize;
- // }
|