文件
mashangyoujiu/Public/css/menu.css

656 行
13 KiB
CSS
可执行文件

.myInclude-content {
height: 100vh;
width: 160px;
}
.myInclude-content .el-scrollbar__wrap {
overflow-x: hidden;
}
.menu-index-box {
display: flex;
}
.menu-index-left, .menu-index-right-title {
color: white;
}
.menu-index-left {
width: 160px;
min-height: 100vh;
background: #232b42;
}
.menu-index-left-logo > img {
width: 140px;
height: auto;
padding: 10px;
box-sizing: border-box;
margin-left: 0;
margin-right: 0;
}
.menu-index-right {
width: calc(100% - 160px);
height: 100vh;
}
.menu-index-right-title {
width: 100%;
height: 65px;
background: #232b42;
display: flex;
justify-content: space-between;
}
.menu-index-right-header {
height: 40px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
background: #fff;
box-sizing: border-box;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
position: relative;
z-index: 1;
}
.separator-act {
color: #333;
cursor: pointer;
font-weight: 500;
}
.separator-normal {
color: #555;
}
.menu-index-right-content {
box-sizing: border-box;
width: 100%;
height: calc(100vh - 106px);
overflow-y: auto;
margin-top: 1px;
}
.menu-index-list-con .fa {
color: white !important;
font-size: 20px;
}
.menu-index-right-title-nickname {
display: flex;
align-items: center;
padding: 8px 16px;
/* background: #f8fafc; */
border-radius: 10px;
transition: all 0.2s ease;
cursor: pointer;
/* border: 1px solid #e2e8f0; */
gap: 12px;
}
.menu-index-right-title-nickname > img {
display: block;
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 10px;
}
.menu-index-right-title-nickname-detail {
color: white;
font-size: 14px;
width: 140px;
height: 45px;
display: flex;
line-height: 18px;
flex-direction: column;
justify-content: center;
align-items: flex-start;
padding-left: 10px;
}
.menu-index-right-title-nickname-detail > * {
width: 100%;
height: 18px;
line-height: 18px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.menu-index-right-title-quit {
width: 95px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.menu-index-right-title-quit > img {
display: block;
width: 30px;
height: 30px;
}
.menu-index-list {
display: flex;
flex-direction: row;
align-items: center;
margin: 10px 0;
padding-left: 60px;
}
.menu-index-left-name {
width: 109px;
text-align: right;
font-size: 14px;
line-height: 56px;
color: #666;
margin-right: 20px;
}
.menu-index-tips {
text-align: center;
font-size: 12px;
color: #999;
line-height: 30px;
}
.menu-index-center {
text-align: center;
margin-top: 50px;
}
.choose-avatar-btn {
margin-right: 30px;
}
li .fa {
width: 26px;
text-align: center;
}
.menu-index-code-big-box {
margin-bottom: 20px;
}
.menu-index-code-box-con {
position: relative;
}
.menu-index-code-box {
width: 200px;
margin: 0 auto;
}
.menu-index-code-box > img {
margin: 0 auto;
}
.menu-index-code-title {
text-align: center;
padding-bottom: 20px;
font-size: 16px;
font-weight: bold;
color: #333;
}
.menu-index-code-title i {
margin-left: 10px;
color: #999;
}
.menu-index-code-timeout {
position: absolute;
top: 0;
left: 80px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: rgba(255, 255, 255, 0.8);
width: 200px;
height: 200px;
}
.menu-index-code-timeout > span {
font-weight: bold;
color: rgb(68, 68, 68);
}
.menu-index-refresh {
display: inline-block;
height: 32px;
line-height: 32px;
margin-top: 20px;
padding: 0 18px;
background-color: #4394ff;
color: #fff;
white-space: nowrap;
text-align: center;
font-size: 14px;
border: none;
border-radius: 2px;
cursor: pointer;
}
.menu-index-refresh-child-window {
color: #666;
display: flex;
align-items: center;
cursor: pointer;
}
.menu-index-refresh-child-window i {
font-size: 20px;
}
.menu-index-refresh-child-window span {
font-size: 14px;
}
.menu-index-refresh-child-window span::selection {
background-color: transparent;
}
.menu-index-refresh-child-window:hover {
color: #333;
}
.menu-index-refresh-child-window:active {
transform: scale(0.95);
}
#myInclude {
width: 100%;
height: 100%;
position: relative;
}
.include-page {
box-sizing: border-box;
padding: 15px 20px;
overflow-y: auto;
background: #F2F2F2;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.include-page > div {
background: #fff;
padding: 20px;
min-height: 100%;
box-sizing: border-box;
}
.include-page > .el-loading-mask {
background: #fff;
padding: 20px;
min-height: 100%;
box-sizing: border-box;
background: rgba(255, 255, 255, 0.8);
}
.menu-index-notice {
display: flex;
align-items: center;
flex-wrap: nowrap;
}
.menu-index-notice-left {
margin-left: 20px;
display: flex;
align-items: center;
color: #fff;
}
.menu-index-notice-left > span {
font-size: 12px;
white-space: nowrap;
}
.menu-index-notice-left > img {
width: 20px;
height: 20px;
}
.menu-index-notice-right {
min-width: 230px;
height: 65px;
}
.menu-index-user-name {
color: white;
line-height: 65px;
/* height: 65px; */
margin-left: 10px;
white-space: nowrap;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
}
.menu-index-right-list-box {
display: flex;
align-items: center;
justify-content: center;
}
.menu-index-right-list {
line-height: 65px;
font-size: 13px;
display: flex;
align-items: center;
cursor: pointer;
white-space: nowrap;
}
.menu-index-right-list-row {
flex-direction: row;
height: 65px;
}
.menu-index-right-list-column {
width: 100px;
flex-direction: column;
z-index: 999;
align-items: center;
}
.menu-index-right-list-column:before {
content: "更多操作";
color: #fff;
font-size: 13px;
line-height: 65px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.menu-index-right-list-column:before:after {
content: "▼";
font-size: 10px;
margin-left: 5px;
transition: transform 0.3s ease;
}
.menu-index-right-list-column:hover:before:after {
transform: rotate(180deg);
}
.menu-index-right-list-row .menu-index-right-list {
color: white;
margin-right: 20px;
}
.menu-index-right-list-column .menu-index-right-list {
line-height: 36px;
width: 100px;
color: #fff;
padding: 0 10px;
box-sizing: border-box;
background-color: #232b42;
justify-content: center;
transition: 0.3s;
border: none;
height: 0;
}
.menu-index-right-list-column .menu-index-right-list span {
font-size: 0;
}
.menu-index-right-list-column:before:hover {
color: #4394ff;
}
.menu-index-right-list-column:hover .menu-index-right-list {
border-bottom: none;
height: 36px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-index-right-list-column:hover .menu-index-right-list span {
font-size: 13px;
transition: font-size 0.3s ease;
}
.menu-index-right-list-column:hover .menu-index-right-list:nth-last-child(1) {
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
.menu-index-right-list-column:hover .menu-index-right-list:first-child {
border-top-left-radius: 8px;
border-top-right-radius: 8px;
margin-top: 2px;
}
.menu-index-right-list-column .menu-index-right-list:hover {
color: #4394ff;
}
.menu-index-right-list-column .menu-index-right-list i {
display: none;
}
.menu-index-right-list span {
margin-left: 5px;
}
.menu-index-right-title > div {
display: flex;
align-items: flex-start;
line-height: 65px;
position: relative;
}
.menu-index-right-content-loading {
position: fixed;
top: 105px;
left: 160px;
z-index: 100;
width: calc(100vw - 160px);
height: calc(100vh - 105px);
}
.menu-index-item-suc-one-1 > span {
font-weight: bold;
}
.el-submenu__title i {
color: #93C5FD !important;
font-size: 16px !important;
width: 20px !important;
text-align: center !important;
margin-right: 12px !important;
display: inline-block !important;
}
/* 图标库兼容性样式 - 确保所有图标正常显示 */
.menu-index-left i[class*="el-icon-"],
.menu-index-left i[class*="fa-"],
.menu-index-left i[class*="fas"],
.menu-index-left i[class*="far"],
.menu-index-left i[class*="fab"],
.menu-index-left i[class*="bi-"],
.menu-index-left i[class*="layui-icon"],
.menu-index-left i[class*="iconfont"] {
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
vertical-align: baseline;
display: inline-block;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Font Awesome 图标样式 */
.menu-index-left i[class*="fa-"],
.menu-index-left i.fas,
.menu-index-left i.far,
.menu-index-left i.fab {
font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
}
/* Bootstrap Icons 样式 */
.menu-index-left i[class*="bi-"] {
font-family: "bootstrap-icons" !important;
}
/* Element UI 图标样式 */
.menu-index-left i[class*="el-icon-"] {
font-family: "element-icons" !important;
}
/* Layui 图标样式 */
.menu-index-left i[class*="layui-icon"] {
font-family: "layui-icon" !important;
}
/* 自定义图标字体样式 */
.menu-index-left i.iconfont {
font-family: "iconfont" !important;
}
/* 图标默认样式备用方案(排除 Font Awesome 及其家族) */
.menu-index-left i:not(.fa):not([class*="fa-"]):not(.fas):not(.far):not(.fab):before {
content: attr(data-icon);
}
/* 图标加载失败时的备用显示(排除 Font Awesome 及其家族) */
/* 已按你的要求移除该规则,避免显示蓝色圆点 */
/* .menu-index-left i:not(.fa):not([class*="fa-"]):not(.fas):not(.far):not(.fab):empty:before {
content: "●";
color: #409EFF;
} */
.el-submenu .el-menu-item {
height: 44px !important;
line-height: 44px !important;
padding: 0 0 0 50px !important;
min-width: 152px !important;
font-size: 14px !important;
}
.el-menu-item-group__title {
padding: 0 !important;
}
.is-opened .el-menu.el-menu--inline {
background-color: rgba(255, 255, 255, 0.1) !important;
}
.el-menu-item {
background-color: transparent !important;
height: 48px !important;
line-height: 48px !important;
font-size: 15px !important;
padding: 0 20px !important;
}
.el-menu-item i {
color: #93C5FD !important;
font-size: 16px !important;
width: 20px !important;
text-align: center !important;
margin-right: 12px !important;
display: inline-block !important;
}
.menu-index-list-con {
display: flex !important;
align-items: center !important;
}
.menu-index-list-con span {
font-size: 15px !important;
font-weight: 500 !important;
letter-spacing: 0.5px !important;
}
.el-submenu__title {
background-color: transparent !important;
height: 48px !important;
line-height: 48px !important;
font-size: 15px !important;
padding: 0 20px !important;
}
.el-submenu__title span {
font-size: 15px !important;
font-weight: 500 !important;
letter-spacing: 0.5px !important;
}
.menu-index-active {
background-color: rgba(255, 255, 255, 0.2) !important;
}
.el-menu {
border-right: none !important;
}
.is-active > .el-submenu__title {
background-color: rgba(255, 255, 255, 0.2) !important;
}
.is-opened > .el-submenu__title {
background-color: rgba(255, 255, 255, 0.2) !important;
}
.is-opened .is-opened > .el-submenu__title {
background-color: rgba(255, 255, 255, 0.05) !important;
}
.is-opened .is-opened .el-menu.el-menu--inline {
background-color: #ffffff !important;
}
.is-opened .is-active > .el-submenu__title {
background-color: rgba(255, 255, 255, 0.05) !important;
}
.secondIframe-box {
box-sizing: border-box;
padding: 15px 20px;
background: #F2F2F2;
width: 100%;
height: 100%;
}
.secondIframe {
background: #ffffff;
width: 100%;
height: 100%;
}
.login-out {
z-index: 1000000000;
}
/* 隐藏 ElementUI 默认子菜单箭头,使用自定义 Font Awesome 箭头 */
.el-submenu__icon-arrow { display: none !important; }
.el-submenu__title { position: relative; }
.el-submenu__title .fm-submenu-arrow {
position: absolute;
right: 18px;
top: 50%;
transform: translateY(-50%);
transition: transform 0.2s ease;
color: #93C5FD !important;
}
.el-submenu.is-opened > .el-submenu__title .fm-submenu-arrow {
transform: translateY(-50%) rotate(180deg);
}