yunpan
Version:
yunpan demo
287 lines (282 loc) • 4.88 kB
CSS
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html , body {
width:100%;
height: 100%;
overflow: hidden;
}
body{
background-color: #eff4f8;
}
.nav{
position: absolute;
height: 56px;
width: 100%;
top: 0;
left: 0;
}
.logo{
width: 160px;
height: 52px;
margin: 2px 10px;
float: left;
background-image: url(../image/logo.svg);
background-size: contain;
background-repeat: no-repeat;
}
.util{
float: right;
width: 32px;
line-height: 32px;
margin-right: 20px;
margin-top: 12px;
}
.logout{
width: 48px;
text-align: center;
color: #666;
border-radius: 5px;
cursor: pointer;
}
.logout:hover{
color:#fff;
background-color: #4a68ec;
}
.aside {
position: absolute;
height: calc(100% - 56px);
width: 180px;
top: 56px;
left: 0;
}
.categoryList{
position: relative;
top: 10px;
}
.category{
height: 45px;
line-height: 45px;
text-indent: 50px;
cursor: pointer;
}
.category.active{
color:#4a68ec;
background-color: #d3d5da;
}
.category:hover{
background-color: #d3d5da;
}
.asideFooter{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 56px;
}
.space{
width: 160px;
margin: 10px auto;
}
.spaceProcess{
width: 100%;
height: 10px;
border-radius: 5px;
background-color: #ccc;
overflow: hidden;
}
.usedSpace{
display: block;
height: 100%;
background-color: #4a68ec;
}
.spaceTip{
font-size: 12px;
color: #999;
margin-top: 5px;
}
.container {
position: absolute;
left: 180px;
top: 56px;
width: calc(100% - 190px);
height: calc(100% - 56px);
background-color: #fff;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
min-width: 800px;
}
.topbar {
position: relative;
height: 80px;
width: 100%;
}
.file-opts{
margin: 10px 20px;
overflow: hidden;
}
.opt-btn {
display: none;
height: 28px;
line-height: 28px;
text-align: center;
color:#4a68ec;
border:1px solid #4a68ec;
padding: 0 10px;
float: left;
cursor: pointer;
font-size: 12px;
border-left: none;
}
.opt-btn:hover{
background-color: #ebeef7;
}
.opt-btn.first-btn{
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
border-left: 1px solid #4a68ec;;
}
.opt-btn.last-btn{
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
.primary-btn {
height: 28px;
line-height: 28px;
text-align: center;
color: #fff;
background-color: #687fe5;
border:none;
border-radius: 5px;
margin-right: 10px;
padding: 0 10px;
float: left;
cursor: pointer;
font-size: 12px;
}
.primary-btn:hover{
background-color: #4a68ec;
}
.opt-other{
float: right;
}
.opt-search{
height: 28px;
line-height: 28px;
overflow: hidden;
border: 1px solid #4a68ec;
border-radius: 14px;
font-size: 12px;
}
.search-input{
float: left;
border: none;
outline: none;
height: 26px;
line-height: 26px;
text-indent: 8px;
font-size: 12px;
}
.search-btn{
float: left;
padding: 0 10px;
line-height: 26px;
border-left: 1px solid #4a68ec;
cursor: pointer;
color:#4a68ec;
}
.file-state{
font-size: 12px;
color: #666;
margin: 10px 20px;
overflow: hidden;
}
.file-path{
float: left;
}
.fileDir{
text-decoration: underline;
cursor: pointer;
}
.fileDir:hover{
color : #4a68ec;
}
.load-state{
float: right;
}
.fileList {
width: 100%;
height: calc(100% - 60px);
overflow: auto;
}
.nofile{
margin: 0 auto;
width: 100px;
}
.item {
float: left;
width: 120px;
border-radius: 5px;
margin: 10px;
cursor: pointer;
border: 1px solid transparent;
}
.item.active{
background-color: #f1f5fa;
border: 1px solid #4a68ec;
}
.item:hover{
background-color: #f1f5fa;
}
.itemImage {
width: 68px;
height: 68px;
margin: 10px auto 0;
background-size: cover;
font-size: 12px;
}
.item-dir .itemImage{
background-image: url(../image/icon/dirIcon.png);
}
.item:not(.item-dir) .itemImage{
background-image: url(../image/icon/fileIcon.png);
}
.itemName {
margin-top:5px;
color:#666;
font-size: 12px;
}
.staticName {
width: 100%;
height: 24px;
line-height: 24px;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
user-select: none;
-webkit-user-select: none;
}
.changeName {
display: none;
}
.rename .changeName {
display: block;
}
.rename .staticName {
display: none;
}
.ipt-name{
outline: none;
border : 1px solid #ccc;
border-radius: 3px;
width: 100%;
height: 24px;
line-height: 24px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-indent: 5px;
}