1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 23:02:26 +00:00
Files
seahub/frontend/src/css/side-panel.css

182 lines
3.0 KiB
CSS
Raw Normal View History

2018-08-06 18:29:12 +08:00
/*
the main reason to icon can not be align is that .folder has a real width it take the place
of .tree-node-inner causing tree-node-icon not aligned , use absolute can make sure .tree-node-icon
is always at the far left of .tree-node-inner
*/
.side-panel {
user-select: none;
height:100%;
}
.side-panel .nav {
border-bottom: 1px solid #eee;
padding-top: 10px;
padding-bottom: 10px;
min-width: 125px;
height: 36px;
}
.side-panel .nav-link {
color: #888;
}
.side-panel .nav-link.active {
color: #eb8205;
}
.side-panel-content {
padding-top: 8px;
padding-bottom: 8px;
height: calc(100% - 36px);
overflow: auto;
font-size: 0.875rem;
}
.image-view {
width: 200px;
height: 150px;
position: absolute;
background-color: #fff;
z-index: 1004;
box-shadow: 0 0 10px #aaa;
border-radius: 3px;
line-height: 150px;
overflow: hidden;
font-size: 0;
text-align: center;
}
.image-view img {
max-width: 100%;
max-height: 100%;
}
.image-view i {
width: 100%;
height: 100%;
text-align: center;
line-height: 150px;
font-size: 30px;
color: #eb8205;
-moz-animation: rotate 1.5s ease infinite;
-webkit-animation: rotate 1.5s ease infinite;
animation: rotate 1.5s ease infinite;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.outline-h2 {
margin-left: 20px;
line-height: 2.5;
color:#364149;
white-space: nowrap;
cursor:pointer;
}
.outline-h2:hover {
color: #eb8205;
}
.outline-h3 {
margin-left: 40px;
line-height: 2.5;
color:#364149;
white-space: nowrap;
cursor:pointer;
}
.outline-h3:hover {
color: #eb8205;
}
/*tree view */
.tree-node:not([type = 'dir']):hover {
background-color: rgb(255,239,178);
}
2018-08-06 18:29:12 +08:00
.tree-view {
padding-left: 10px;
line-height: 1.5;
}
.tree-node-inner {
position: relative;
padding-left: 12px;
height: 24px;
}
.tree-node-inner .tree-node-text {
padding-left: 1.2rem;
width: calc(100% - 1.5rem);
font-size: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tree-node-inner .left-icon {
position: absolute;
display:flex;
justify-content:center;
align-items:center;
top: 0;
left: 0;
padding-left: 0.7rem;
}
.folder-toggle-icon {
position: absolute;
left: 0;
line-height: 1.5;
}
.tree-node-icon {
margin-right: 0.4rem;
margin-left: 0.1rem;
display: inline-block;
width: 1rem;
text-align: center;
}
.tree-node-inner .right-icon {
position: absolute;
top: 0;
right: 0;
width: 1.5rem;
color: #888;
z-index: 2;
font-size: 0.8125rem;
text-align: center;
}
.tree-node-inner .right-icon i {
width: 100%;
height: 100%;
vertical-align: middle;
font-size: 0.8125rem;
line-height: 1.625 !important;
}
.tree-node-hight-light {
background-color: rgb(255,239,178);
}
.dropdown-menu {
min-width: 8rem;
}
.parent-path {
position: relative;
}
.parent-path .form-text {
position: absolute;
top: 50%;
transform: translateY(-50%);
margin-top: 0;
margin-left: 0.25rem;
font-size: 0.9375rem;
}