@import '~@/variable.less'; @menu-span-color: var(--xly-skin-menu-span-color, #ccd6df); .menuList{ width: 142px; height: ~"calc(100vh - 51px)"; position: relative; top: 0; left: 0; // background: #272b2e; background: var(--xly-skin-menu-color, #343848); padding: 20px 0; overflow-y: auto; overflow-x: hidden; border-right: 0px solid #474b4e; .menuMainItem{ &:hover{ //background: rgba(255, 255, 255, 0.05); //.submenuContiner{ // opacity: 1; // // transition: 0.3s ease; // visibility: visible; // //transform: translateX(10px); //} //.menuMainTitle{ // color: @active_color; // .menuMainLeftIcon{ // color: @active_color; // } //} } .menuMainTitle{ line-height: 36px; height: 36px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; color: @menu-span-color; transition: 0.3s ease; padding: 0 16px; padding-right: 11px; cursor: pointer; //.menuMainItemIcon{ // float: right; // font-size: 14px; // color: #fff; // transition: 0.3s ease; //} .menuMainLeftIcon{ margin-right: 10px; float: left; font-size: 14px; color: #fff; transition: 0.3s ease; } } .submenuContiner{ width: auto; width: ~"calc(100vw - 140px)"; height: ~"calc(100vh - 51px)"; background-color: var(--xly-skin-submenu-color, #303538); position: fixed; z-index: 1; left: 141px; top: 50px; opacity: 0; visibility: hidden; //transition: 0.3s; color: #fff; display: flex; flex-wrap: wrap; align-content: flex-start; overflow-y: auto; .paddingDiv{ height: 100%; width: 35px; background: transparent; position: absolute; left: -35px; top: 0; } //.clear_both(); .submenuBody{ box-sizing: content-box; padding-bottom: 12px; margin-bottom: 12px; max-height: 100%; overflow-y: auto; //min-height: 185px; .submenuTitle{ box-sizing: content-box; padding: 20px 20px 8px 20px; font-size: 16px; height: 24px; line-height: 24px; // font-weight: 600; color: @menu-span-color; position: relative; &:before{ content: ''; width: ~'calc(100% - 40px)'; position: absolute; bottom: 0; left: 20px; z-index: 1; height: 1px; background: rgba(255, 255, 255, 0.2); } } .submenuName{ position: relative; min-width: 160px; box-sizing: content-box; height: 32px; line-height: 32px; margin-left: 20px; padding-right: 30px; margin-bottom: 8px; &:hover{ .actionSelect{ margin-left: 5px; top: 11px; right: 8px; z-index: 5; cursor: pointer; color: #fff; // visibility:visible; opacity: 1; } } span{ color: @menu-span-color; cursor: pointer; transition: 0.3s ease; font-size: 13px; &:hover{ color: var(--xly-skin-active-color, @active_color); } } .actionSelect{ margin-left: 5px; top: 11px; right: 8px; z-index: 5; cursor: pointer; color: #fff; // visibility: hidden; opacity: 0; } } } } } .menuMainItem__active{ background: rgba(255, 255, 255, 0.05); .submenuContiner{ opacity: 1; visibility: visible; } .menuMainTitle{ color: var(--xly-skin-active-color, @active_color); .menuMainLeftIcon{ color: var(--xly-skin-active-color, @active_color); } } } } .allBtnNavStyle{ display: flex; justify-content: space-between; align-items: center; background: var(--xly-skin-menu-color, #343848); width: 141px; height: 50px; line-height: 50px; :global { .ant-btn[disabled] { color: rgba(0,0,0,.25); background: none; } } } .logo { float: left; font-size: 10px; color: #fff; padding-left: 35px; width: 40px; height: 40px; line-height: 45px; font-weight: 700; background: var(--xly-login-header-logo, url(../../assets/logo_pic.png)) no-repeat 0 center; background-size: auto; background-position: right; } .menuList::-webkit-scrollbar { width: 3px; background-color: #474b4e; } .submenuBody::-webkit-scrollbar { width: 3px; background-color: #474b4e; } .submenuContiner::-webkit-scrollbar { width: 3px; background-color: #474b4e; } :global{ .actionSelect__selected{ // visibility: visible!important; opacity: 1 !important; color: #f6c136 !important; } } // 英文版样式 .xlyerpEnglish { .menuList { width: 200px; .menuMainItem { .submenuContiner { width: ~"calc(100vw - 198px)"; left: 198px; } } } } .submenuReadonly { color: #a2a2a2 !important; cursor: not-allowed !important; }