@import '~~antd/es/style/variable.less'; // @primary-color: #1685FF; // @primary-1: color(~`colorPalette('@{primary-color}', 1) `); // replace tint(@primary-color, 90%) // @primary-2: color(~`colorPalette('@{primary-color}', 2) `); // replace tint(@primary-color, 80%) // @primary-3: color(~`colorPalette('@{primary-color}', 3) `); // unused // @primary-4: color(~`colorPalette('@{primary-color}', 4) `); // unused // @primary-5: color( // ~`colorPalette('@{primary-color}', 5) ` // ); // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%) // @primary-6: @primary-color; // color used to control the text color of active buttons, don't use, use @primary-color // @primary-7: color(~`colorPalette('@{primary-color}', 7) `); // replace shade(@primary-color, 5%) // @primary-8: color(~`colorPalette('@{primary-color}', 8) `); // unused // @primary-9: color(~`colorPalette('@{primary-color}', 9) `); // unused // @primary-10: color(~`colorPalette('@{primary-color}', 10) `); // unused @slider-light: #fff; @color-black: #fff; .toggleSite { height: 30px; background: rgba(0,0,0,.12); border-radius: 15px; min-width: 10px; border: 1px solid rgba(238,238,238,.25); margin-left: 18px; display: flex; align-items: center; padding-left: 16px; padding-right: 16px; cursor: pointer; // transition: all .3s; .site { width: 16px; height: 16px; } .name { font-family: 'MicrosoftYaHei'; font-weight: bold; color: #FFFFFF; font-size: 14px; margin-left: 9px; word-spacing: normal; text-overflow: ellipsis; overflow: hidden; word-break: keep-all; } .arrow { margin-left: 9px; color: #FFFFFF; } } .weatcher { margin-left: 25px; .icon { width: 22px; height: 22px; margin-right: 12px; margin-left: 25px; } .text { font-weight: 400; color: #FFFFFF; letter-spacing: 2px; } } // & :global { // .@{ant-prefix}-dropdown-menu-item { // display: flex; // flex-direction: row; // align-items: center; // padding: 10px 12px!important; // div { // display: flex; // flex-direction: row; // align-items: center; // span:first-child { // width: 3px; // height: 3px; // background: #7A8E9D; // /* position: absolute; */ // display: flex; // border-radius: 100%; // } // span:last-child { // padding-left: 10px; // } // } // &:hover { // // span:first-child { // // background: @primary-color; // // } // span:last-child { // color: @primary-color; // } // } // } // .@{ant-prefix}-dropdown-menu { // .@{ant-prefix}-divider-horizontal{ // &:last-child { // display: none; // } // } // } // } & :global { .@{ant-prefix}-dropdown-custom-menu { top: 82px!important; //div span:first-child .@{ant-prefix}-dropdown-menu-item { .@{ant-prefix}-dropdown-menu-title-content { &:hover { span:first-child { background: @primary-color!important; } span:last-child { color: @primary-color; } } } } } } .lang { width: 100%; height: 40px; line-height: 44px; text-align: right; :global(.@{ant-prefix}-dropdown-trigger) { margin-right: 24px; } } @media (min-width: @screen-md-min) { .container { // background-image: url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg'); background-repeat: no-repeat; background-position: center 110px; background-size: 100%; } .content { // padding: 32px 0 24px; } } .top { text-align: center; } .header { height: 44px; line-height: 44px; a { text-decoration: none; } } .logo { height: 44px; margin-right: 16px; vertical-align: top; } .title { position: relative; top: 2px; color: @heading-color; font-weight: 600; font-size: 33px; font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif; } .desc { margin-top: 12px; margin-bottom: 40px; color: @text-color-secondary; font-size: @font-size-base; } .shortName { font-size: 12px; position: relative; top: 5px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; // left: -4px; } .minixName { display: block; font-size: 12px !important; } .popverName { display: none; } .fixSliderHeight { :global { .ant-pro-sider-menu { height: 82%; min-height: inherit!important; overflow-y: scroll; } } } :global(.@{ant-prefix}-menu-inline-collapsed-tooltip .panda-pro-layouts-user-layout-minixName) { display: none; } :global(.@{ant-prefix}-menu-inline-collapsed-tooltip .panda-pro-layouts-user-layout-popverName) { display: block; } :global(.@{ant-prefix}-menu-submenu-popup li.@{ant-prefix}-menu-item-only-child) { height: 30px; line-height: 30px; padding: 0 14px; // margin-bottom: 0px; } // :global(.@{ant-prefix}-layout-sider-collapsed .@{ant-prefix}-menu-item.@{ant-prefix}-menu-item-only-child) { // padding-left: 0px!important; // } // :global(.@{ant-prefix}-layout-sider-collapsed // .@{ant-prefix}-menu-inline-collapsed // .@{ant-prefix}-menu-item-only-child.@{ant-prefix}-menu-item-selected) { // border-left: 2px solid @primary-color; // background-color: @menu-dark-inline-submenu-bg!important; // transition: cubic-bezier(0.175, 0.885, 0.32, 1.275); // } :global(.@{ant-prefix}-menu-submenu-popup li.@{ant-prefix}-menu-item-only-child .panda-pro-layouts-user-layout-minixName) { display: none; } :global(.@{ant-prefix}-menu-submenu-popup li.@{ant-prefix}-menu-item-only-child .panda-pro-layouts-user-layout-popverName) { display: block; top: 0 !important; } :global(.@{ant-prefix}-menu-inline-collapsed-tooltip .@{ant-prefix}-tooltip-inner) { display: flex; } :global(.@{ant-prefix}-menu-inline-collapsed-tooltip .@{ant-prefix}-tooltip-inner a) { display: flex; align-items: center; justify-content: center; } :global(.@{ant-prefix}-menu-inline-collapsed-tooltip .@{ant-prefix}-tooltip-inner a .panda-pro-layouts-user-layout-popverName) { padding-left: 4px; top: 0; } .header-title { color: #555; text-shadow: none; font-weight: 100; font-size: 22px; vertical-align: middle; // padding-left: 80px; letter-spacing: 2px; } .spinLoadding { > div { width: 100%; :global { .@{ant-prefix}-spin { display: flex!important; flex-direction: row; align-items: center; flex: 0 1; width: 100px!important; } .anticon-loading { top: 75%!important; left: 0!important; } .@{ant-prefix}-spin-text { font-size: 12px; display: inline-block; top: 30%!important; color: #c3c3c3; width: 100px; left: 10px!important; text-align: left; } } } } .cityContent { .siteName { padding-right: 5px; display: inline; flex-grow: 1; cursor: pointer; text-shadow: none; color: #777; font-size: 14px; vertical-align: middle; padding-left: 15px; letter-spacing: 2px; font-weight: 100; span { padding-left: 5px; text-shadow: none; color: #777; font-size: 14px; vertical-align: middle; } img { margin: 0 !important; } } .weatcher { border-left: 1px solid rgb(170, 170, 170); text-shadow: none; color: #777; font-size: 14px; font-weight: 100; vertical-align: middle; padding-left: 8px; letter-spacing: 2px; span { padding-left: 5px; vertical-align: middle; } img { width: 24px; } } } .stationsWrapper { padding: 20px 10px 0 10px; max-width: 520px; top: 10px; &.stationsTop { top: 26px!important; :global { .ant-popover-arrow { display: none; } } } .focusStations { display: block; // padding: 5px 0px; border-bottom: 1px dotted rgb(217, 217, 217); ul { display: flex; margin-bottom: 0px; flex-wrap: wrap; width: 100%; margin: 0 auto; // justify-content: space-between; gap: 8px 4px; padding: 0; padding-bottom: 6px; // flex-wrap: wrap; li { // margin-top: 10px; a { color: @primary-color; &.city_select { cursor: pointer; } &.showTip { position: relative; } &:hover { color: @primary-7 !important; transition: color 0.3s; } div[title] { display: inline-block; color: #fff; text-align: center; align-items: center; line-height: 20px; position: absolute; top: -10px; font-size: 12px; transform-origin: left; transform: scale(0.8); } div[title='县'] { width: 30px; height: 24px; background: url(https://panda-water.cn/web4/assets/images/云平台/县.png) center center no-repeat; } div[title='市'] { width: 30px; height: 24px; background: url(https://panda-water.cn/web4/assets/images/云平台/市.png) center center no-repeat; } div[title='市'] { width: 30px; height: 24px; background: url(https://panda-water.cn/web4/assets/images/云平台/市.png) center center no-repeat; } div[title='HOT'], div[title='New'] { width: 41px; height: 24px; background: url(https://panda-water.cn/web4/assets/images/云平台/HOT.png) center center no-repeat; } } } } } .city_pane { // padding: 10px; ul { &.py { padding: 0; width: 100%; display: flex; flex-wrap: wrap; //margin-right: -10px; //margin-left: 4px; margin: -10px -10px 0px 4px; //margin-top: -10px; } li { margin-right: 10px; .cityLetter, .noData { color: #ccc; display: inline; cursor: pointer; } .cityLetter { &:hover { color: #337ab7; } a { &:hover { color: @primary-color; transition: color 0.3s; } } } } } .cityContent { min-width: 350px; overflow-y: auto; overflow-x: hidden; .letter { font-size: 24px; line-height: 24px; font-weight: 700; color: #ccc; &:hover { color: #337ab7; } } .Provice { margin-left: 20px; display: flex; margin-top: 2px; .proviceName { color: @primary-color; font-weight: bolder; min-width: 36px; } .city_list { margin-left: 10px; display: flex; margin-right: -5px; flex-wrap: wrap; flex: 1; font-size: 12px; padding: 0 !important; li { margin-right: 8px; margin-bottom: 6px; } } } &::-webkit-scrollbar { width: 0; height: 0; } } } :global(.@{ant-prefix}-spin-nested-loading .@{ant-prefix}-spin) { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } :global(.@{ant-prefix}-popover-arrow) { display: none; } } :global(.@{ant-prefix}-pro-basicLayout .@{ant-prefix}-pro-sider-logo h1) { display: none; } :global(.@{ant-prefix}-pro-basicLayout .@{ant-prefix}-layout-sider-children .@{ant-prefix}-spin-lg .@{ant-prefix}-spin-dot) { font-size: 20px; } :global(.@{ant-prefix}-pro-basicLayout .@{ant-prefix}-layout-sider-children .@{ant-prefix}-spin-lg .@{ant-prefix}-spin-dot i) { width: 9px; height: 9px; } :global(.@{ant-prefix}-layout-sider-collapsed .@{ant-prefix}-menu-dark .@{ant-prefix}-menu-item) { display: flex; align-items: center; justify-content: space-between; text-align: center; padding: 0; } :global(.@{ant-prefix}-layout-sider-collapsed .@{ant-prefix}-menu-dark .@{ant-prefix}-pro-sider-collapsed-button) { display: block; } :global(.@{ant-prefix}-layout-sider-collapsed .@{ant-prefix}-menu-item) { line-height: 14px; } :global(.ant-menu-dark .ant-menu-item, .ant-menu-dark .ant-menu-item-group-title, .ant-menu-dark .ant-menu-item > a, .ant-menu-dark .ant-menu-item> span > a) { width: 48px; display: flex; flex-direction: column; align-items: center; text-align: center; } :global(.@{ant-prefix}-menu-inline-collapsed .@{ant-prefix}-menu-item a) { width: 48px; } :global(.@{ant-prefix}-menu-inline-collapsed .@{ant-prefix}-menu-submenu.@{ant-prefix}-menu-submenu-vertical) { display: flex; align-items: center; } :global(.@{ant-prefix}-menu-inline-collapsed .@{ant-prefix}-menu-submenu .@{ant-prefix}-menu-submenu-title) { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; flex-wrap: inherit !important; padding: 0; width: 100%; line-height: 24px; } //:global(.@{ant-prefix}-menu-inline-collapsed // .@{ant-prefix}-menu-submenu.@{ant-prefix}-menu-submenu-vertical // .@{ant-prefix}-menu-submenu-title // img) { // margin-right: 0px !important; //} :global(.@{ant-prefix}-menu-inline-collapsed .@{ant-prefix}-menu-submenu .@{ant-prefix}-menu-submenu-title img) { margin-right: 0px !important; } .loadding { height: 100%; :global(.@{ant-prefix}-spin-container) { height: 100%; } } .menuItemLink { display: flex; align-items: center; :global { span.@{ant-prefix}-pro-menu-item { position: relative; top: 1px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } } } :global(.@{ant-prefix}-menu-inline-collapsed .panda-pro-layouts-user-layout-menuItemLink) { display: block; } :global(.@{ant-prefix}-menu-inline-collapsed .panda-pro-layouts-user-layout-menuItemLink .panda-pro-layouts-user-layout-minixName) { font-size: 12px !important; } :global(.@{ant-prefix}-menu-inline-collapsed .@{ant-prefix}-menu-submenu .@{ant-prefix}-menu-submenu-title .@{ant-prefix}-pro-menu-item) { top: 0 !important; font-size: 12px !important; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .popup-menu-flex { display: flex; flex-wrap: wrap; flex: 1 1; min-width: 220px; width: 220px; :global { .@{ant-prefix}-menu-item { width: 50%; } } } .menuTabs{ position: relative; padding: 0 10px; } :global(.@{ant-prefix}-spin-container .@{ant-prefix}-tabs .@{ant-prefix}-tabs-nav){ margin: 0; } :global(.@{ant-prefix}-menu-submenu .@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline .@{ant-prefix}menu-item-only-child) { padding-left: 30px!important; }