123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- html,
- body,
- #root {
- height: 100%;
- margin: 0;
- padding: 0;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
- 'Noto Color Emoji';
- }
- .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;
- }
- @media (max-width: 768px) {
- .ant-table {
- width: 100%;
- overflow-x: auto;
- &-thead>tr,
- &-tbody>tr {
- >th,
- >td {
- white-space: pre;
- >span {
- display: block;
- }
- }
- }
- }
- }
- // 框架格式化
- .ant-pro-top-nav-header-logo>*:first-child>img {
- display: inline-block;
- height: 26px;
- vertical-align: middle;
- }
- .ant-layout-sider {
- .ant-pro-base-menu-inline-item-title {
- font-size: 13px;
- }
- .ant-menu-title-content .anticon {
- font-size: 13px !important;
- min-width: 13px !important;
- }
- .ant-menu-item-selected {
- color: #000 !important;
- }
- .ant-menu-dark .ant-menu-item-selected {
- color: #FFF !important;
- }
- }
- .ant-pro-layout .ant-pro-layout-content {
- padding-block: 0;
- padding-inline: 0;
- }
- .ant-pro-page-container .ant-pro-page-container-warp-page-header {
- padding-block-start: 0;
- padding-block-end: 10px;
- padding-inline-start: 20px;
- padding-inline-end: 20px;
- }
- /** 初始化 表格里样式 */
- .all_table {
- .ant-table-cell {
- padding: 2px 5px !important;
- }
- .progress {
- padding: 0 !important;
- .ant-progress {
- height: 100%;
- .ant-progress-outer {
- height: 100%;
- .ant-progress-inner {
- height: 100%;
- border-radius: 0;
- .ant-progress-bg {
- height: 100% !important;
- border-radius: 0;
- }
- }
- }
- }
- }
- .ant-statistic {
- line-height: 22px;
- .ant-statistic-content {
- font-size: 13px;
- word-break: break-word;
- }
- }
- .ant-typography {
- font-size: 13px;
- }
- .ant-table-summary td {
- font-weight: bold;
- }
- }
- .ringRatio.ant-table-cell {
- padding: 0 !important;
- }
- // 黑夜表格
- .all_table_dark {}
- .header_table_body td {
- font-weight: 600;
- }
- // 自定义拂晓蓝xiao 样式
- .css-dark {
- .ant-pro-sider-logo {
- color: rgba(255, 255, 255, 0.65);
- border-block-end: 1px solid rgba(255, 255, 255, 0.06);
- &>a>h1 {
- color: rgba(255, 255, 255, 0.88);
- }
- }
- .ant-pro-sider-actions {
- color: rgba(255, 255, 255, 0.65);
- }
- aside {
- &.ant-layout-sider.ant-pro-sider {
- background-color: #001529;
- }
- .ant-menu {
- .ant-menu-item,
- .ant-menu-submenu-title {
- color: rgba(255, 255, 255, 0.65);
- }
- .ant-menu-item:not(.ant-menu-item-selected):hover {
- color: rgba(255, 255, 255, 0.88) !important;
- }
- }
- &.ant-layout-sider .ant-menu-item-selected {
- color: #ffffff !important;
- }
- .ant-menu-light {
- .ant-menu-submenu-selected>.ant-menu-submenu-title {
- color: #1890ff;
- }
- .ant-menu-item-selected {
- // background-color: rgba(255, 255, 255, 0.04);
- background-color: #1890ff;
- }
- &:not(.ant-menu-horizontal) {
- .ant-menu-item:not(.ant-menu-item-selected):hover,
- .ant-menu-submenu-title:hover {
- background-color: rgba(255, 255, 255, 0.03);
- }
- }
- }
- .ant-pro-base-menu-inline-group .ant-menu-item-group-title {
- color: rgba(255, 255, 255, 0.65);
- }
- }
- header {
- &.ant-layout-header {
- background-color: #001529 !important;
- }
- .ant-pro-top-nav-header-logo>*:first-child>h1 {
- color: rgba(255, 255, 255, 0.88)
- }
- .ant-pro-global-header-header-actions-avatar>div {
- color: rgba(255, 255, 255, 0.45);
- }
- .ant-menu-light.ant-menu-horizontal>.ant-menu-item-selected {
- color: rgba(255, 255, 255, 0.95)
- }
- }
- }
- ::-webkit-scrollbar {
- width: 6px;
- height: 8px;
- }
- ::-webkit-scrollbar-thumb {
- border-radius: 4px;
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
- background-color: #ddd;
- background: rgba(0, 0, 0, 0);
- }
- :hover::-webkit-scrollbar-thumb {
- background: rgba(82, 82, 82, 0.3);
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
- }
|