css布局深色客户管理系统后台ui效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局深色客户管理系统后台ui效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.5.0.css">
<style>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap");
:root {
--delay: 0s;
}
* {
outline: none;
box-sizing: border-box;
}
.hidden {
display: none !important;
}
html {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
}
img {
max-width: 100%;
}
body {
font-family: "Inter", sans-serif;
background-color: #252954;
color: #9b9ca7;
}
.wrapper {
max-width: 1600px;
background-color: #0e0e23;
display: flex;
height: 100vh;
overflow: hidden;
margin: 0 auto;
}
.left-side {
width: 6rem;
display: flex;
flex-direction: column;
flex-shrink: 0;
align-items: center;
padding: 117px 0 40px;
-webkit-animation: left 1s var(--delay) both;
animation: left 1s var(--delay) both;
}
.left-side svg {
width: 24px;
cursor: pointer;
}
.left-side svg + svg {
margin-top: 34px;
}
.left-side svg:last-child {
margin-top: auto;
}
.left-side svg.active, .left-side svg:hover {
color: #4255d4;
}
@-webkit-keyframes left {
0% {
transform: translateX(-30px);
opacity: 0;
}
100% {
opacity: 1;
transform: none;
}
}
@keyframes left {
0% {
transform: translateX(-30px);
opacity: 0;
}
100% {
opacity: 1;
transform: none;
}
}
@-webkit-keyframes top {
0% {
transform: translateY(-30px);
opacity: 0;
}
100% {
opacity: 1;
transform: none;
}
}
@keyframes top {
0% {
transform: translateY(-30px);
opacity: 0;
}
100% {
opacity: 1;
transform: none;
}
}
.main-container {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 25px;
/* overflow: auto; */
padding-left: 0;
}
.header {
background: #141834;
background: radial-gradient(circle, #141834 0%, #13162f 100%);
box-shadow: 0 16px 12px #0e0e23;
width: 100%;
padding: 0 30px;
-webkit-animation: top 1s both;
animation: top 1s both;
display: flex;
align-items: center;
border-radius: 6px;
font-size: 15px;
white-space: nowrap;
position: sticky;
top: 0;
left: 0;
z-index: 10;
}
.header:before {
content: "";
width: 100%;
height: 25px;
position: absolute;
top: -25px;
left: 0;
background-color: #0e0e23;
}
.header-link {
color: #9b9ca7;
text-decoration: none;
display: flex;
align-items: center;
padding: 20px;
transition: 0.3s;
border-bottom: 3px solid transparent;
transition: 0.3s;
}
.header-link svg {
width: 20px;
margin-right: 14px;
}
.header-link.active, .header-link:hover {
background: #11132c;
border-bottom: 3px solid #4255d4;
}
.logo {
padding: 20px 50px 20px 0;
font-size: 16px;
color: #e7e8ea;
}
.logo-det {
background: #4255d4;
padding: 8px;
margin-left: -2px;
border-radius: 50%;
font-size: 15px;
}
.user-info {
margin-left: auto;
display: flex;
align-items: center;
}
.user-info svg {
width: 20px;
}
.user-info .profile {
margin: 0 20px 0 12px;
width: 18px;
}
.button {
display: flex;
align-items: center;
color: #9b9ca7;
background: #1a1b3c;
border: none;
padding: 2px 12px;
border-radius: 4px;
margin-right: 20px;
}
.button svg {
margin-left: 10px;
width: 16px;
}
.user-box {
margin-top: 25px;
display: flex;
}
.user-box + .user-box {
margin-top: 20px;
}
.user-box + .user-box .cards-wrapper {
margin-left: 0;
flex-grow: 1;
max-width: none;
}
.user-box + .user-box .today {
margin-left: 30px;
}
.user-box + .user-box .cards-header {
padding: 20px 30px;
justify-content: space-between;
}
.user-box .cards-header,
.user-box .cards-view {
display: flex;
align-items: center;
justify-content: center;
}
.user-box .cards-header svg,
.user-box .cards-view svg {
width: 24px;
}
.user-box .cards-header .title,
.user-box .cards-view .title {
margin: 0 16px;
font-size: 15px;
}
.user-box .cards-header-date svg,
.user-box .cards-view-date svg {
width: 30px;
}
.user-box .cards-header .cards-button,
.user-box .cards-view .cards-button {
background: #15193c;
padding: 10px 16px;
margin-right: 0;
}
.user-box .cards-header .cards-button svg,
.user-box .cards-view .cards-button svg {
width: 16px;
margin: 0 2px 0 0;
}
.user-box .cards-header .date-wrapper,
.user-box .cards-view .date-wrapper {
display: flex;
align-items: center;
margin: auto;
}
.user-box .cards-header .date-wrapper .title,
.user-box .cards-view .date-wrapper .title {
margin: 0 16px;
}
.cards-view > svg {
margin-right: 12px;
}
.today {
position: relative;
}
.today:before {
content: "";
position: absolute;
width: 5px;
height: 5px;
background-color: #ef415c;
bottom: -8px;
right: 50%;
border-radius: 50%;
}
.card {
background: #1a2049;
background: radial-gradient(circle, #1a2049 0%, #13162f 100%);
padding: 40px 30px;
border-radius: 6px;
display: flex;
flex-direction: column;
flex-grow: 1;
max-height: 430px;
width: 100%;
}
.card .title {
font-size: 16px;
font-weight: 500;
}
.card .subtitle {
font-size: 13px;
line-height: 1.6em;
}
.card + .card {
margin-left: 20px;
}
.activity {
max-width: 480px;
}
.activity .title {
margin-bottom: 20px;
}
.activity-links {
display: flex;
align-items: center;
margin-top: auto;
font-size: 15px;
}
.activity-link {
padding-bottom: 10px;
position: relative;
cursor: pointer;
transition: 0.3s;
}
.activity-link + .activity-link {
margin-left: 25px;
}
.activity-link + .activity-link:before {
content: "";
position: absolute;
width: 5px;
height: 5px;
background-color: #ef415c;
top: -2px;
right: -8px;
border-radius: 50%;
}
.activity-link + .activity-link:hover:after {
content: "";
position: absolute;
width: 22px;
height: 2px;
background: #4255d4;
left: 0;
bottom: 0;
}
.activity-link + .activity-link:hover {
color: #bebec4;
-webkit-text-stroke: 0.3px;
}
.activity-link.active {
color: #bebec4;
font-weight: 500;
}
.activity-link.active:before {
content: "";
position: absolute;
width: 22px;
height: 2px;
background: #4255d4;
left: 0;
bottom: 0;
}
.destination {
display: flex;
align-items: center;
margin-top: auto;
}
.destination-card {
background: #1a1d3a;
background: linear-gradient(45deg, #1a1d3a 0%, #212752 100%);
padding: 20px;
width: 100%;
border-radius: 6px;
}
.destination-card + .destination-card {
margin-left: 20px;
background: #1a1d3a;
background: linear-gradient(325deg, #1a1d3a 0%, #212752 100%);
}
.destination-profile {
display: flex;
align-items: center;
font-size: 14px;
}
.destination-profile svg {
width: 18px;
flex-shrink: 0;
margin-right: 8px;
}
.destination-length {
margin-left: auto;
display: flex;
align-items: center;
font-size: 13px;
}
.destination-points {
margin-top: 30px;
}
.profile-img {
width: 46px;
height: 46px;
-o-object-fit: cover;
object-fit: cover;
border-radius: 50%;
padding: 2px;
border: 1px solid #bebec4;
flex-shrink: 0;
}
.point {
font-size: 14px;
color: #bebec4;
font-weight: 500;
}
.sub-point {
font-size: 13px;
margin-top: 4px;
}
.discount {
max-width: 320px;
width: 100%;
}
.discount .title {
margin-bottom: 30px;
}
.discount .subtitle {
margin-bottom: 8px;
}
.discount .subtitle-count {
font-size: 17px;
color: #17a98a;
font-wei.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0