wyyl/resources/beike/admin/css/filemanager/app.scss

171 lines
3.8 KiB
SCSS

@charset "UTF-8";
$primary: #fd560f;
[v-cloak] {
display: none;
}
body.page-filemanager {
height: 100vh;
overflow: hidden;
.filemanager-wrap {
display: flex;
height: 100vh;
position: relative;
.filemanager-navbar {
width: 20%;
.tree-wrap {
.el-tree-node__content {
height: 36px;
}
.custom-tree-node {
width: 100%;
display: flex;
align-items: center; // flex-start | center
justify-content: space-between; // flex-end | center | space-between
.right {
span {
margin-right: 8px;
&:hover {
color: $primary;
}
}
}
}
}
}
.filemanager-divider {
top: 0;
width: 3px;
cursor: col-resize;
&:hover {
background: $primary;
}
}
.filemanager-content {
// width: 80%;
flex: 1;
// padding-left: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
.content-head {
height: 56px;
position: relative;
display: flex;
background-color: #fff;
align-items: center; // flex-start | center
justify-content: space-between; // flex-end | center | space-between
// flex-wrap: wrap;
padding: 0 16px;
box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
.left {
a {
margin-right: 30px;
&:not(.is-disabled) {
color: #17191c;
}
&.is-disabled {
i {
color: lighten($primary, 20%);
}
}
i {
color: $primary;
font-weight: 600;
}
}
}
}
.content-center {
height: calc(100% - 56px);
display: flex;
align-items: flex-start;
flex-wrap: wrap;
// align-items: center; // flex-start | center
background: #f9fafa;
padding: 20px 10px;
// justify-content: space-between; // flex-end | center | space-between
// flex-wrap: wrap;
// margin-right: -20px;
overflow-y: auto;
&::-webkit-scrollbar {
width: 8px;
height: 1px;
}
&::-webkit-scrollbar-thumb {
border-radius: 2px;
background: $primary;
}
&::-webkit-scrollbar-track {
background: transparent;
}
.image-list {
width: calc(20% - 20px);
display: flex;
flex-direction: column;
// align-items: center;
// margin-bottom: 20px;
background: #fff;
margin: 0 10px 20px;
box-shadow: 0 0 2px 1px rgba(0, 0, 0, .1);
cursor: pointer;
// border: 1px solid transparent;
&.active {
outline: 1px solid $primary;
}
.text {
border-top: 1px solid #eee;
font-size: 12px;
padding: 10px;
display: flex;
align-items: center; // flex-start | center
justify-content: space-between;
// flex-wrap: wrap;
span {
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.el-icon-check {
color: $primary;
font-size: 18px;
font-weight: 600;
}
}
}
}
.content-footer {
height: 56px;
padding: 0 16px;
background-color: #fff;
display: flex;
box-shadow: 0 -2px 4px rgba(0, 0, 0, .1);
align-items: center; // flex-start | center
justify-content: space-between;
}
}
}
}