css实现自适应响应式文件目录云盘管理UI效果代码
代码语言:html
所属分类:响应式
代码描述:css实现自适应响应式文件目录云盘管理UI效果代码
代码标签: 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>
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
html, body {
width: 100%;
height: 100vh;
margin: 0;
}
body {
font-family: "DM Sans", sans-serif;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
overflow: hidden;
overflow-x: hidden;
background-image: linear-gradient(to top, #a3bded 0%, #6991c7 100%);
background-position: center;
background-size: cover;
padding: 20px;
}
:root {
--dark-font: #0f0f10;
--light-font: #79798c;
}
a {
text-decoration: none;
cursor: pointer;
}
.app-container {
position: relative;
border-radius: 10px;
width: 100%;
height: 100%;
max-width: 1200px;
max-height: 900px;
background: linear-gradient(180deg, #e0e9fd 0%, #e9ecf1 90%);
box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.4);
display: flex;
overflow: hidden;
}
.left-area {
padding: 32px;
flex-basis: 1 0 132px;
background-color: rgba(255, 255, 255, 0.9);
display: flex;
flex-direction: column;
align-items: center;
transition: all 300ms cubic-bezier(0.19, 1, 0.56, 1);
position: relative;
overflow: auto;
}
.left-area.show {
transform: translateX(0);
opacity: 1;
}
.app-name {
font-weight: 700;
font-size: 16px;
line-height: 24px;
color: var(--dark-font);
margin-bottom: 32px;
}
.item-link {
color: var(--light-font);
margin-bottom: 32px;
transition: 0.2s;
}
.item-link.active {
color: var(--dark-font);
}
.btn-logout {
border: none;
background-color: transparent;
color: var(--light-font);
margin-top: auto;
cursor: pointer;
transition: 0.2s;
}
.btn-logout:hover {
color: var(--dark-font);
}
.main-area {
flex: 1;
height: 100%;
overflow-y: auto;
background: linear-gradient(97deg, #f2f7fd 0%, #f0f4fd 90%);
border-radius: 0 10px 10px 0;
padding-bottom: 24px;
position: relative;
}
.main-area-header {
padding: 24px 40px;
background: linear-gradient(97deg, #f2f7fd 0%, #f0f4fd 90%);
}
.search-wrapper {
border-radius: 4px;
background-color: #fff;
padding-right: 12px;
height: 40px;
display: flex;
justify-content: space-between;
align-items: center;
color: var(--light-font);
box-shadow: 0 2px 6px 0 rgba(136, 148, 171, 0.2), 0 24px 20px -24px rgba(71, 82, 107, 0.1);
overflow: hidden;
}
.search-input {
border: none;
flex: 1;
outline: none;
height: 100%;
padding: 0 12px;
font-size: 12px;
}
.right-area {
flex-basis: 300px;
flex-grow: 0;
background: linear-gradient(180deg, #e0e9fd 0%, #e9ecf1 90%);
transition: all 300ms cubic-bezier(0.19, 1, 0.56, 1);
}
.right-area.show {
transform: translateX(0);
width: 100%;
opacity: 1;
}
.content-section {
display: block;
margin-top: 32px;
overflow-x: hidden;
padding: 0 40px;
}
.section-header {
font-size: 24px;
line-height: 32px;
margin-bottom: 16px;
}
.section-header-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
}
.section-header-link {
display: block;
font-size: 12px;
line-height: 16px;
color: #8683d6;
}
.access-links {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin: 0 -8px;
}
.access-icon {
width: 100%;
height: 100%;
border-radius: 12px;
padding: 20px;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
.access-icon svg {
width: 36px;
height: 36px;
}
.access-link-wrapper {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 8px;
}
.access-link-wrapper:nth-child(1.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0