$sideWidth: 200px; .layout { min-height: 100vh; .inner-layout { padding: 20px 70px 0 20px; margin-left: $sideWidth; .content { display: flex; flex-direction: column; .search-header { z-index: 9; position: fixed; top: 30px; left: 201px; right: 0; text-align: center; } &.fixed { .search-header { top: 0; background-color: #fff; border-bottom: 1px solid #ccc; } } } } .box { flex: 1; transition: .1s linear; } .collapse { position: absolute; right: 15px; transform: rotate(-270deg); &.active { transform: rotate(-360deg); } } } .logo { z-index: 11; position: fixed; top: 0; left: 0; width: $sideWidth; padding: 10px; padding-left: 15px; background-color: #fff; img { width: 50px; height: 50px; } .site-title { font-weight: 500; font-size: 18px; margin-left: 10px; vertical-align: middle; } } .sider { position: fixed; height: 100vh; left: 0; overflow: auto; .sider-menu { padding-top: 70px; } &::-webkit-scrollbar { width: 6px; height: 6px; } &::-webkit-scrollbar-thumb { background-color: hsla(0, 0%, 100%, .2); border-radius: 3px; } &::-webkit-scrollbar-track { background-color: hsla(0, 0%, 100%, .15); border-radius: 3px; } } ::ng-deep .side-footer { margin-top: 45px !important; & > * { color: #666 !important; } }