css布局实现自适应响应式文件管理系统ui页面效果
代码语言:html
所属分类:响应式
代码描述:css布局实现自适应响应式文件管理系统ui页面效果
代码标签: 自 适应 响应 式 文件 管理系统 ui 页面 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<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) .access-icon {
background-color: #6166fe;
}
.access-link-wrapper:nth-child(2) .access-icon {
background-color: #6166fe;
}
.access-link-wrapper:nth-child(3) .access-icon {
background-color: #3275f7;
}
.access-link-wrapper:nth-child(4) .access-icon {
background-color: #3275f7;
}
.access-link-wrapper:nth-child(5) .access-icon {
background-color: #22244a;
}
.access-link-wrapper:nth-child(6) .access-icon {
background-color: #22244a;
}
.access-text {
color: var(--light-font);
font-size: 12px;
line-height: 24px;
}
.content-section-line,
.content-part-line {
display: flex;
justify-content: space-between;
}
.content-part-line {
height: 100%;
}
.content-section-line {
margin: 0 -8px;
}
.section-part {
flex-basis: 49%;
}
.image-wrapper {
border-radius: 12px;
overflow: hidden;
width: 100%;
height: auto;
position: relative;
flex-basis: 48%;
display: flex;
}
.image-wrapper img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
transition: 0.2s ease-in;
}
.image-wrapper:hover img {
transform: scale(1.125);
}
.image-overlay {
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
background: linear-gradient(0deg, rgba(0, 16, 34, 0.8) 0%, rgba(240, 244, 253, 0.2) 90%);
padding: 12px;
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: flex-end;
}
.video-info-text {
width: calc(100% - 40px);
}
.video-info-text p {
margin: 0;
}
.video-name, .video-subtext {
color: #fff;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.video-name.medium, .video-subtext.medium {
font-size: 14px;
line-height: 24px;
}
.video-name.tiny, .video-subtext.tiny {
font-size: 12px;
line-height: 16px;
}
.video-info {
width: 100%;
display: flex;
justify-content: space-between;
}
.video-subtext {
opacity: 0.8;
}
.files-table {
background-color: #fff;
box-shadow: 0 2px 6px 0 rgba(136, 148, 171, 0.2), 0 24px 20px -24px rgba(71, 82, 107, 0.1);
border-radius: 12px;
padding: 12px;
display: table;
table-layout: auto;
width: 100%;
}
.files-table-header {
display: table-header-group;
}
.files-table-row {
display: table-row-group;
}
.table-cell {
display: table-cell;
font-size: 12px;
line-height: 16px;
color: #000;
padding: 8px;
}
.column-header {
font-size: 12px;
line-height: 16px;
color: #88.........完整代码请登录后点击上方下载按钮下载查看
网友评论0