| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- @import '~antd/es/style/themes/default.less';
- html,
- body,
- #root {
- height: 100%;
- }
- .colorWeak {
- filter: invert(80%);
- }
- .ant-layout {
- max-height: 100vh;
- overflow-y: hidden;
- }
- .ant-pro-basicLayout-content {
- max-height: 100%;
- max-width: 100%;
- overscroll-behavior: none;
- overflow: hidden;
- }
- // .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-submenu-popup {
- background: #7c62a4;
- }
- .ant-menu-dark .ant-menu-inline.ant-menu-sub {
- background: #584475;
- }
- .ant-menu-dark .ant-menu-item-only-child:hover {
- background: @primary-color;
- }
- .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
- background: @primary-color;
- border-right: 3px solid #ffffff;
- }
- .ant-menu-inline .ant-menu-submenu-title {
- margin-bottom: 0;
- }
- .ant-switch-checked {
- background: @primary-color;
- }
- // 修复proTable中的列设置,tree list hover效果异常
- .ant-pro-table-column-setting-list > .ant-tree .ant-tree-node-content-wrapper:hover {
- background-color: unset;
- }
- .ant-btn-primary[disabled],
- .ant-btn-primary[disabled]:hover,
- .ant-btn-primary[disabled]:focus,
- .ant-btn-primary[disabled]:active {
- color: white;
- background: rgba(136, 106, 181, 0.5);
- }
- .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;
- }
- .vditor-reset ul,
- .vditor-reset ol {
- list-style-type: decimal !important;
- }
- @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: 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 - 44px) / 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-table-cell .ant-typography {
- // color: unset;
- }
- .zh-drawer.ant-drawer-open {
- @media (min-width: 1200px) {
- > .ant-drawer-content-wrapper {
- width: 70% !important;
- }
- }
- @media all and (min-width: 768px) and (max-width: 1024px) {
- > .ant-drawer-content-wrapper {
- width: 100% !important;
- }
- }
- @media screen and (min-width: 320px) and (max-width: 750px) {
- > .ant-drawer-content-wrapper {
- width: 100% !important;
- }
- }
- // > .ant-drawer-content-wrapper {
- // width: 70% !important;
- // }
- .ant-drawer-header {
- padding: 0 !important;
- .ant-drawer-header-title {
- position: absolute;
- top: 12px;
- right: 0;
- z-index: 1050;
- }
- }
- }
- .ant-pro-table-list-toolbar-search {
- > .ant-input-group-wrapper {
- width: 250px;
- }
- }
- .card-transition {
- // display: flex;
- // justify-content: center;
- height: calc(11.11111vw - 20px);
- min-height: 130px;
- max-height: 280px;
- -o-object-fit: cover;
- object-fit: cover;
- overflow: hidden;
- border: 1px solid #f0f0f0;
- border-radius: 6px;
- transition: all 0.3s;
- }
- .card-transition:hover {
- // border-color: transparent;
- // box-shadow: 0 6px 16px rgb(107 147 224 / 14%);
- // transform: translateY(-4px);
- }
|