| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- @import '~antd/es/style/themes/default.less';
- html,
- body,
- #root {
- height: 100%;
- // 变成灰色
- //-webkit-filter: grayscale(.95);
- }
- .colorWeak {
- filter: invert(80%);
- }
- .ant-layout {
- min-height: 100vh;
- }
- .ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
- left: unset;
- }
- canvas {
- display: block;
- }
- body {
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- ul,
- ol {
- list-style: none;
- }
- // 菜单图标
- .ant-pro-menu-item {
- display: flex;
- align-items: center;
- img {
- width: 20px;
- height: 20px;
- }
- }
- @media (max-width: @screen-xs) {
- .ant-table {
- width: 100%;
- overflow-x: auto;
- &-thead > tr,
- &-tbody > tr {
- > th,
- > td {
- white-space: pre;
- > span {
- display: block;
- }
- }
- }
- }
- }
- // Compatible with IE11
- @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
- body .ant-design-pro > .ant-layout {
- min-height: 100vh;
- }
- }
- .ant-pro-top-nav-header-logo {
- display: flex;
- justify-content: center;
- }
- .ant-form-item-required {
- &::before {
- position: absolute;
- right: -12px;
- }
- }
- .ant-formily-item-label-content {
- position: relative;
- overflow: unset;
- .ant-formily-item-asterisk {
- float: right;
- margin-right: 0;
- //position: absolute;
- //right: -8px;
- }
- }
- .ant-formily-item-colon {
- display: none;
- }
- .ant-page-header-heading {
- display: none;
- }
- .page-title-show {
- .ant-page-header-heading {
- display: flex;
- }
- }
- .tabs-full-active {
- .ant-tabs-tab-active {
- background-color: @primary-1;
- }
- }
- .ellipsis {
- width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-align: left;
- text-overflow: ellipsis;
- }
- .ellipsis-70 {
- width: 70%;
- overflow: hidden;
- white-space: nowrap;
- text-align: left;
- text-overflow: ellipsis;
- }
- // fuck chrome
- input[type='text'],
- input[type='password'],
- input[type='number'],
- input[type='tel'] {
- &:not([disabled]) {
- box-shadow: inset 0 0 0 100vw white !important;
- }
- }
- //引导遮罩
- #driver-page-overlay {
- opacity: 0.35 !important;
- }
|