.c-view { height: 100%; background: #eeeeee; //width: 716px; // width: 100%; position: relative; overflow: hidden; } .box { @include webkitbox(2); } .box-hd { padding: 0 16px; border-bottom: 1px solid #d6d6d6; .title-wrap { position: relative; padding: 10px 0; font-size: 14px; color: #000; line-height: 40px; height: 40px; @include clearfix(); &:before { content: ""; display: inline-block; vertical-align: middle; margin-right: 10px; width: 2px; height: 12px; background: #299ef4; } span { float: right; color: #999999; cursor: pointer; } } } .box-bd { padding: 0 16px 16px; @include flex(1); overflow-y: auto; overflow-x: hidden; } .list-group { display: flex; flex-wrap: wrap; margin-right: -10%; } .group-item { margin: 30px 4% 0 0; width: 20%; cursor: pointer; position: relative; @include webkitbox(1); &.current { background: #3f424c; cursor: default; } .info { @include flex(1); position: relative; margin-left: 12px; } h3 { font-size: 12px; color: #333333; line-height: 20px; font-weight: 700; @include ellipsis; } p { font-size: 12px; color: #7c8ca5; margin: 10px 0 12px 0; padding-left: 20px; @include ellipsis; background: url("../../assets/recommend-group.png") 0 center no-repeat; } .avatar-wrap { position: relative; height: 50px; } .user-avatar { width: 50px; height: 50px; line-height: 50px; } img.user-avatar { display: block; } .el-button { padding: 0; border-radius: 2px; width: 48px; height: 20px; font-size: 12px; } .icon-auth { position: absolute; bottom: 0; right: 0; width: 14px; height: 13px; background: url("../../assets/icon-chat-auth.png"); } } @media screen and (max-width: 900px) { .group-item { width: 28%; margin-right: 4%; } } //左侧边栏 .c-panel-nav { .title-wrap { text-align: center; color: #fff; font-size: 12px; padding: 0; border-bottom: 1px solid #3e4046; &::before { display: none; } } .c-view, .box { background: transparent; } .box-hd { border-color: #3e4046; } .box-bd { padding: 0; } .list-group { margin-right: 0; } .group-item { width: 100%; padding: 10px 13px 10px 20px; margin: 0; h3 { color: #fff; font-weight: normal; } p { margin: 6px 0 0 0; } } .avatar-wrap { height: 40px; } .user-avatar { width: 40px; height: 40px; line-height: 40px; } .el-button { position: absolute; top: 10px; right: 0; } } .h5-wrap { .title-wrap { border: 0; font-size: px2rem(27); color: #999999; text-align: center; padding: px2rem(99) 0 px2rem(30) 0; background: #fff; &::before { display: none; } } .c-view, .box { background: #fff; } .box-hd { border: 0; } .box-bd { padding: 0; } .list-group { margin-right: 0; } .group-item { width: 100%; padding: px2rem(24) px2rem(32); margin: 0; border-bottom: 1px solid #eeeeee; h3 { font-weight: normal; font-size: px2rem(32); color: #020202; margin-bottom: px2rem(14); line-height: px2rem(40); max-width: px2rem(420); } p { margin: 6px 0 0 0; font-size: px2rem(24); color: #9b9b9b; line-height: px2rem(40); } } .avatar-wrap { height: px2rem(90); .icon-auth { position: absolute; bottom: 0; right: 0; width: 14px; height: 13px; background: url("../../assets/icon-chat-auth.png"); } } .user-avatar { width: px2rem(90); height: px2rem(90); line-height: px2rem(90); } .el-button { position: absolute; top: 50%; right: 0; margin-top: px2rem(-30); width: px2rem(120); height: px2rem(56); padding: 0; font-size: px2rem(16); } }