static/style/menubar.less
// out: ./menubar.css, compress: true
/*
Menubar styles
==========================================================================
*/
@import (less) "mixins.less";
/* theme colors */
@side-margin: 0.8rem;
@tb-margin: 0.6rem;
@fitem-margin-b: 2.4rem;
@name-fsize: 0.8rem;
@header-fsize: 0.8rem;
@spacing04: 0.4rem;
@spacing-ic-txt: @side-margin - 0.4rem;
@lastSynced-fsize: 0.6rem;
@ic-size: 1.2rem;
@win-height: 15rem;
@keyframes spin {
100% {
-webkit-transform: rotate(360deg);
transform : rotate(360deg);
}
}
section#menubar {
min-height : 100%;
position : relative;
background-color: @white;
overflow : hidden;
}
header {
clear : both;
padding : @spacing04 0 @spacing04 @side-margin;
margin : 0;
font-size : @header-fsize;
border-top : 1px solid @light;
border-bottom: 1px solid @light;
}
.left {
-webkit-align-self: flex-start;
align-self : flex-start !important;
}
.right {
margin-left: auto !important;
}
div.fileList {
height : @win-height - @fitem-margin-b;
width : 100%;
overflow-y : auto;
margin-bottom: @fitem-margin-b;
}
.spin {
width : @ic-size;
z-index : 0;
-webkit-animation: spin 4s linear infinite;
animation : spin 4s linear infinite;
}
div.content,
div.type {
display : inline-block;
position: relative;
}
div.content {
width: 80%;
vertical-align: top;
margin-left : @spacing-ic-txt;
}
div.name {
font-size: @name-fsize;
text-overflow: ellipsis;
position: relative;
overflow: hidden;
width: 95%;
}
div.lastSynced {
font-size: @lastSynced-fsize;
}
div.cloudType {
position: absolute;
bottom : -1px;
right : -4px;
}
div.cloudType > img {
height : 0.8rem;
width : auto;
opacity: 1;
}
img.fileType {
width : 1.4rem;
padding-left: @side-margin;
margin : 0;
}
div.item {
width: 100%;
border-top: 1px solid @light;
padding : @spacing04 0;
}
div.status {
display : flex;
display : -webkit-flex;
align-items: center;
left : 0;
bottom : 0;
}
div.status > span {
font-size: 0.9rem;
}
div.head {
display : flex;
display : -webkit-flex;
align-items: center;
}
div.status > img {
margin-right: @spacing-ic-txt !important;
}
footer {
display : flex;
clear : both;
position : absolute;
border-top : 1px solid @light;
width : 100%;
padding-bottom : 0;
background-color: @white;
bottom : 0;
left : 0;
}
img.icon {
height : @ic-size;
display: inline;
margin : @tb-margin @side-margin;
}
div.item:first-child {
border-top: none !important;
}