global.less 6.62 KB
Newer Older
邓晓峰's avatar
邓晓峰 committed
1 2
@root-entry-name: 'default';
@import (reference) '~antd/es/style/themes/index.less';
dengxiaofeng's avatar
dengxiaofeng committed
3 4 5

html,
body,
6
#root {
dengxiaofeng's avatar
dengxiaofeng committed
7
  height: 100%;
8
  overflow: hidden;
dengxiaofeng's avatar
dengxiaofeng committed
9 10
}

邓晓峰's avatar
邓晓峰 committed
11 12 13 14 15
* {
  margin: 0;
  padding: 0;
}

16 17 18 19
@font-face {
  font-family: 'ZhenyanGB';
  src: url("./assets/fonts/ZhenyanGB.ttf");
}
20 21 22 23
@font-face {
  font-family: 'PangMenZhengDaoBiaoTiTi';
  src: url("./assets/fonts/PangMenZhengDaoBiaoTiTi.ttf");
}
24

dengxiaofeng's avatar
dengxiaofeng committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul,
ol {
  list-style: none;
}
邓晓峰's avatar
邓晓峰 committed
46 47 48
body a {
  text-decoration: none;
  color: inherit;
dengxiaofeng's avatar
dengxiaofeng committed
49 50
  // color: #fff!important;
}
邓晓峰's avatar
邓晓峰 committed
51 52 53 54
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
邓晓峰's avatar
邓晓峰 committed
55
}
dengxiaofeng's avatar
dengxiaofeng committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79

@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;
  }
}

80
#root {
邓晓峰's avatar
邓晓峰 committed
81
  & :global(.ant-pro-basicLayout-content) {
邓晓峰's avatar
邓晓峰 committed
82
    margin: 0 !important;
邓晓峰's avatar
邓晓峰 committed
83
    height: 100%;
dengxiaofeng's avatar
dengxiaofeng committed
84 85
  }
  .subapp-container div[data-qiankun='purehtml'] * {
邓晓峰's avatar
邓晓峰 committed
86
    margin: inherit;
dengxiaofeng's avatar
dengxiaofeng committed
87
  }
邓晓峰's avatar
邓晓峰 committed
88 89 90
  .subapp-container,
  .subapp-container div[data-name='purehtml'],
  .subapp-container .web4_console_component {
dengxiaofeng's avatar
dengxiaofeng committed
91 92
    height: 100%;
  }
邓晓峰's avatar
邓晓峰 committed
93 94 95 96 97 98
  & :global{
    .ant-pro-sider-menu {
      .ant-pro-menu-item {
       // font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
邓晓峰's avatar
邓晓峰 committed
99
      }
邓晓峰's avatar
邓晓峰 committed
100 101 102 103 104

      &:not(.ant-menu-inline-collapsed) {
        .ant-pro-menu-item {
          width: 80px;
        }
dengxiaofeng's avatar
dengxiaofeng committed
105
      }
邓晓峰's avatar
邓晓峰 committed
106 107 108 109 110 111 112 113 114

      //      width: 80px;
      .ant-menu-item-only-child {
        // a {
        //   display: flex;
        //   align-items: center;
        // }
        span.ant-pro-menu-item {
          margin-left: 8px;
dengxiaofeng's avatar
dengxiaofeng committed
115 116
        }
      }
邓晓峰's avatar
邓晓峰 committed
117 118 119 120 121 122

      .ant-menu-submenu {
        div.ant-menu-submenu-title {
          display: flex;
          align-items: center;

dengxiaofeng's avatar
dengxiaofeng committed
123
          img {
邓晓峰's avatar
邓晓峰 committed
124
            margin-right: 8px;
dengxiaofeng's avatar
dengxiaofeng committed
125
          }
邓晓峰's avatar
邓晓峰 committed
126 127 128 129 130 131 132 133 134 135 136 137 138
        }

        ul.ant-menu-sub {
          li {
            img {
              width: 14px !important;
              height: 14px !important;
              // margin-right: 12px;
            }

            .ant-pro-menu-item {
              padding-left: 0 !important;
            }
dengxiaofeng's avatar
dengxiaofeng committed
139 140 141
          }
        }
      }
邓晓峰's avatar
邓晓峰 committed
142 143 144 145 146

      .@{ant-prefix}-layout-slider-dark {
        box-shadow: rgba(0, 0, 0, 0.6) 0px 1px 4px 0px;
        transition: all 0.25s ease-in-out 0s;
      }
dengxiaofeng's avatar
dengxiaofeng committed
147
    }
邓晓峰's avatar
邓晓峰 committed
148 149 150
    .ant-pro-sider .ant-layout-sider-children ::-webkit-scrollbar {
      width: 0;
      height: 0;
dengxiaofeng's avatar
dengxiaofeng committed
151
    }
邓晓峰's avatar
邓晓峰 committed
152 153 154 155 156 157 158 159 160 161
    .@{ant-prefix}-menu-submenu-popup {
      .@{ant-prefix}-menu-item {
        img {
          width: 14px !important;
          height: 14px !important;
          margin-right: 12px;
        }
        .@{ant-prefix}-pro-menu-item {
          padding-left: 0;
        }
dengxiaofeng's avatar
dengxiaofeng committed
162 163
      }
    }
邓晓峰's avatar
邓晓峰 committed
164 165 166 167 168 169 170

    .@{ant-prefix}-menu-dark {
      .@{ant-prefix}-menu-submenu-selected {
        .@{ant-prefix}-menu-item-selected {
          // background: rgb(39, 49, 80);
          // border-left: 3px solid rgb(23, 160, 242);
        }
dengxiaofeng's avatar
dengxiaofeng committed
171 172
      }
    }
邓晓峰's avatar
邓晓峰 committed
173 174 175 176 177 178 179 180 181
    .@{ant-prefix}-pro-sider {
      .@{ant-prefix}-layout-sider-children {
        ::-webkit-scrollbar-thumb {
          border-radius: 0;
        }
        ::-webkit-scrollbar {
          width: 0px;
          height: 0px;
        }
dengxiaofeng's avatar
dengxiaofeng committed
182 183
      }
    }
邓晓峰's avatar
邓晓峰 committed
184
    .@{ant-prefix}-pro-sider-logo {
邓晓峰's avatar
邓晓峰 committed
185
      justify-content: center;
dengxiaofeng's avatar
dengxiaofeng committed
186
    }
邓晓峰's avatar
邓晓峰 committed
187 188 189
    .@{ant-prefix}-layout-sider-collapsed {
      .@{ant-prefix}-pro-sider-logo {
        transform: scale(0.7);
dengxiaofeng's avatar
dengxiaofeng committed
190
      }
邓晓峰's avatar
邓晓峰 committed
191 192 193 194 195 196 197 198 199 200 201 202 203
      .@{ant-prefix}-menu-submenu-vertical {
        .@{ant-prefix}-menu-submenu-title {
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          // margin-bottom: 8px;
        }
      }
      .@{ant-prefix}-menu-dark.@{ant-prefix}-menu-dark:not(.@{ant-prefix}-menu-horizontal) {
        .@{ant-prefix}-menu-item-selected {
          // border-left: 2px solid #1890ff;
          // background-color: #273150;
        }
dengxiaofeng's avatar
dengxiaofeng committed
204 205
      }
    }
邓晓峰's avatar
邓晓峰 committed
206 207 208 209 210
    // .@{ant-prefix}-pro-global-header-layout-side {
    //   > div {
    //     display: flex;
    //   }
    // }
邓晓峰's avatar
邓晓峰 committed
211 212 213 214
    .@{ant-prefix}-pro-basicLayout-side {
      .@{ant-prefix}-pro-sider-extra {
        padding: 0 14px !important;
      }
邓晓峰's avatar
邓晓峰 committed
215
    }
邓晓峰's avatar
邓晓峰 committed
216 217 218 219
    .@{ant-prefix}-pro-fixed-header {
      .@{ant-prefix}-pro-global-header-layout-side {
        padding: 0 0 0 16px;
      }
邓晓峰's avatar
邓晓峰 committed
220 221
    }
  }
邓晓峰's avatar
邓晓峰 committed
222 223 224



邓晓峰's avatar
邓晓峰 committed
225 226
}
body {
邓晓峰's avatar
邓晓峰 committed
227 228 229 230 231 232 233 234 235 236
  :global {
    .@{ant-prefix}-menu-submenu-popup {
      .@{ant-prefix}-menu-sub {
        li {
          a {
            display: flex;
            align-items: center;
            .@{ant-prefix}-pro-menu-item {
              margin-left: 8px;
            }
邓晓峰's avatar
邓晓峰 committed
237 238 239 240
          }
        }
      }
    }
邓晓峰's avatar
邓晓峰 committed
241 242 243 244 245
    .@{ant-prefix}-message-notice-content {
      .@{ant-prefix}-message-custom-content {
        display: flex;
        align-items: center;
      }
邓晓峰's avatar
邓晓峰 committed
246
    }
邓晓峰's avatar
邓晓峰 committed
247

邓晓峰's avatar
邓晓峰 committed
248
  }
邓晓峰's avatar
邓晓峰 committed
249 250 251



252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
  //& /deep/ .ant-menu-vertical > .ant-menu-item,
  //.ant-menu-vertical-left > .ant-menu-item,
  //.ant-menu-vertical-right > .ant-menu-item,
  //.ant-menu-inline > .ant-menu-item,
  //.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title,
  //.ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title,
  //.ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title,
  //.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
  //  line-height: 35px!important;
  //  height: 35px!important;
  //}
  //
  //& /deep/ .ant-menu-vertical .ant-menu-item:not(:last-child), .ant-menu-vertical-left .ant-menu-item:not(:last-child), .ant-menu-vertical-right .ant-menu-item:not(:last-child), .ant-menu-inline .ant-menu-item:not(:last-child) {
  //  bottom: 0px!important;
  //}
dengxiaofeng's avatar
dengxiaofeng committed
267
}
邓晓峰's avatar
邓晓峰 committed
268

邓晓峰's avatar
邓晓峰 committed
269
.panda-pro-components-global-header-index-userWrapper {
邓晓峰's avatar
邓晓峰 committed
270 271 272
  & /deep/ .@{ant-prefix}-popover-content > .@{ant-prefix}-popover-arrow {
    border-top-color: #40b3f7 !important;
    border-left-color: #40b3f7 !important;
邓晓峰's avatar
邓晓峰 committed
273 274 275
  }
}

邓晓峰's avatar
邓晓峰 committed
276
.panda-pro-layouts-user-layout-stationsWrapper {
邓晓峰's avatar
邓晓峰 committed
277 278 279
  & /deep/ .@{ant-prefix}-popover-content > .@{ant-prefix}-popover-arrow {
    top: 17px !important;
    left: 24px !important;
邓晓峰's avatar
邓晓峰 committed
280 281 282
  }
}
.panda-pro-layouts-user-layout-city_pane {
邓晓峰's avatar
邓晓峰 committed
283
  & /deep/ .@{ant-prefix}-anchor-ink {
邓晓峰's avatar
邓晓峰 committed
284
    display: none;
邓晓峰's avatar
邓晓峰 committed
285
    .@{ant-prefix}-anchor-link-title {
邓晓峰's avatar
邓晓峰 committed
286 287 288 289 290
      color: #ccc;
    }
  }
}
.panda-pro-layouts-user-layout-cityLetter {
邓晓峰's avatar
邓晓峰 committed
291 292 293
  /deep/ .@{ant-prefix}-anchor-link-title {
    color: #ccc;
  }
邓晓峰's avatar
邓晓峰 committed
294
}
dengxiaofeng's avatar
dengxiaofeng committed
295 296 297 298 299 300 301 302 303 304 305 306

//global scrollbar

::-webkit-scrollbar-thumb {
  border-radius: 0;
}
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

//left menu