415 lines
7.0 KiB
CSS
415 lines
7.0 KiB
CSS
#listingView {
|
|
--item-selected: white;
|
|
transition: all;
|
|
animation-duration: 0.25s;
|
|
user-select: none;
|
|
}
|
|
|
|
body.rtl #listingView {
|
|
margin-right: 16em;
|
|
}
|
|
|
|
#listingView h2 {
|
|
margin: 0 0 0 0.5em;
|
|
font-size: .9em;
|
|
color: rgba(0, 0, 0, 0.38);
|
|
font-weight: 500;
|
|
}
|
|
|
|
#listingView .item div:last-of-type * {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#listingView>div {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
#listingView .item {
|
|
background-color: #fff;
|
|
position: relative;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
color: #6f6f6f;
|
|
transition: .1s ease background, .1s ease opacity;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
overflow:hidden;
|
|
width: var(--item-width);
|
|
height: var(--item-height);
|
|
}
|
|
|
|
#listingView .item div:last-of-type {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#listingView .item p {
|
|
margin: 0;
|
|
}
|
|
|
|
#listingView .item .size,
|
|
#listingView .item .modified {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
#listingView .item i {
|
|
font-size: 4em;
|
|
margin-right: 0.1em;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
#listingView .item img {
|
|
width: 4em;
|
|
height: 4em;
|
|
object-fit: cover;
|
|
margin-right: 0.1em;
|
|
vertical-align: bottom;
|
|
border-radius: 0.5em;
|
|
}
|
|
|
|
.message {
|
|
text-align: center;
|
|
font-size: 2em;
|
|
margin: 1em auto;
|
|
display: block !important;
|
|
width: 95%;
|
|
color: rgba(0, 0, 0, 0.3);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.message i {
|
|
font-size: 2.5em;
|
|
margin-bottom: .2em;
|
|
display: block;
|
|
}
|
|
|
|
#listingView {
|
|
padding-top: 1em;
|
|
padding-bottom: 1em;
|
|
}
|
|
|
|
#listingView.gallery .item,
|
|
#listingView.compact .item,
|
|
#listingView.normal .item,
|
|
#listingView.list .item {
|
|
margin: .5em;
|
|
padding: 0.5em;
|
|
border-radius: 1em;
|
|
box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 3px, rgba(0, 0, 0, 0.12) 0px 1px 2px;
|
|
}
|
|
|
|
#listingView.list .item,
|
|
#listingView.compact .item {
|
|
max-width: 100%;
|
|
border-radius: 0em;
|
|
}
|
|
|
|
#listingView .item:hover {
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24) !important;
|
|
}
|
|
|
|
#listingView .item div:first-of-type {
|
|
width: 5em;
|
|
}
|
|
|
|
#listingView .item div:last-of-type {
|
|
width: 100%;
|
|
}
|
|
|
|
#listingView.gallery .item div {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
padding: 0.5em;
|
|
}
|
|
#listingView.gallery .item {
|
|
min-width: 12em;
|
|
min-height: 12em;
|
|
padding: 0;
|
|
}
|
|
|
|
#listingView.normal .item,
|
|
#listingView.gallery .item {
|
|
transition: width 0.25s, height 0.25s;
|
|
}
|
|
|
|
#listingView.gallery .item .text {
|
|
width: 100%;
|
|
height: 100%;
|
|
display:flex;
|
|
min-width: 12em;
|
|
min-height: 12em;
|
|
text-shadow: 0 0 2px white;
|
|
}
|
|
|
|
#listingView.gallery .item div:last-of-type {
|
|
position: absolute;
|
|
padding: 1em;
|
|
text-align: center;
|
|
display: block;
|
|
}
|
|
|
|
#listingView.gallery .item[data-type=image] div:last-of-type {
|
|
color: white;
|
|
}
|
|
|
|
#listingView.gallery .item i {
|
|
margin: auto;
|
|
font-size: 8em;
|
|
background: none;
|
|
}
|
|
|
|
#listingView.gallery .item span {
|
|
display: flex;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
#listingView.gallery .item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 0.5em;
|
|
}
|
|
|
|
#listingView.gallery .size,
|
|
#listingView.gallery .modified {
|
|
display: none;
|
|
}
|
|
|
|
#listingView.compact {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
#listingView.compact .item {
|
|
width: 100%;
|
|
margin: 0;
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
padding: 0;
|
|
border-top: 0;
|
|
padding-left: .5em;
|
|
}
|
|
|
|
#listingView.compact h2 {
|
|
display: none;
|
|
}
|
|
|
|
#listingView.compact .item div:first-of-type {
|
|
width: 3em;
|
|
}
|
|
|
|
#listingView.compact .item div:first-of-type i {
|
|
font-size: 2em;
|
|
}
|
|
|
|
#listingView.compact .item div:first-of-type img {
|
|
width: 2em;
|
|
height: 2em;
|
|
}
|
|
|
|
#listingView.compact .item div:last-of-type {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
#listingView.compact .header .name,
|
|
#listingView.list .header .name,
|
|
#listingView.list .item .name,
|
|
#listingView.compact .item .name {
|
|
width: 50%;
|
|
}
|
|
|
|
#listingView.compact .header .name,
|
|
#listingView.list .header .name {
|
|
margin-right: 1.5em;
|
|
}
|
|
|
|
#listingView .header > p {
|
|
margin: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#listingView.compact .header .size,
|
|
#listingView.list .header .size,
|
|
#listingView.list .item .size,
|
|
#listingView.compact .item .size {
|
|
width: 25%;
|
|
}
|
|
|
|
#listingView.compact .header i {
|
|
font-size: 1.5em;
|
|
vertical-align: middle;
|
|
margin-left: .2em;
|
|
}
|
|
|
|
#listingView.compact .header {
|
|
z-index: 999;
|
|
padding: .85em;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
border-bottom-left-radius: 0px;
|
|
border-bottom-right-radius: 0px;
|
|
}
|
|
|
|
#listingView.compact .header,
|
|
#listingView.list .header {
|
|
border: 1px solid rgba(0, 0, 0, .1);
|
|
}
|
|
|
|
#listingView.compact .header>div:first-child {
|
|
width: 0;
|
|
}
|
|
|
|
#listingView.compact .header a {
|
|
color: inherit;
|
|
}
|
|
|
|
#listingView.compact .header>div:first-child {
|
|
width: 0;
|
|
}
|
|
|
|
#listingView.compact .name {
|
|
font-weight: normal;
|
|
}
|
|
|
|
#listingView.compact .header span {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#listingView.compact .header i {
|
|
opacity: 0;
|
|
transition: .1s ease all;
|
|
}
|
|
|
|
#listingView.compact .header p:hover i,
|
|
#listingView.compact .header .active i {
|
|
opacity: 1;
|
|
}
|
|
|
|
#listingView.compact .header .active {
|
|
font-weight: bold;
|
|
}
|
|
|
|
#listingView.list {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
#listingView.list .item {
|
|
width: 100%;
|
|
margin: 0;
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
padding: .5em;
|
|
border-top: 0;
|
|
}
|
|
|
|
#listingView .item[aria-selected=true] {
|
|
background: var(--primaryColor) !important;
|
|
color: var(--item-selected) !important;
|
|
}
|
|
|
|
#listingView.list .item div:first-of-type {
|
|
width: 3em;
|
|
}
|
|
|
|
#listingView.list .item div:first-of-type i {
|
|
font-size: 2em;
|
|
}
|
|
|
|
#listingView.list .item div:first-of-type img {
|
|
width: 2em;
|
|
height: 2em;
|
|
border-radius: 0.2em;
|
|
}
|
|
|
|
#listingView.list .item div:last-of-type {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
#listingView .header {
|
|
display: none;
|
|
background: white;
|
|
border-radius: 1em;
|
|
border: 1px solid rgba(0, 0, 0, .1);
|
|
}
|
|
|
|
#listingView.list .header i {
|
|
font-size: 1.5em;
|
|
vertical-align: middle;
|
|
margin-left: .2em;
|
|
}
|
|
|
|
#listingView.compact .header,
|
|
#listingView.list .header {
|
|
display: flex !important;
|
|
border-top-left-radius: 1em;
|
|
border-top-right-radius: 1em;
|
|
z-index: 999;
|
|
padding: .85em;
|
|
width: 100%;
|
|
}
|
|
|
|
#listingView.list .item:first-child {
|
|
margin-top: .5em;
|
|
border-top-left-radius: 1em;
|
|
border-top-right-radius: 1em;
|
|
}
|
|
|
|
#listingView.compact .lastGroup > div:last-child {
|
|
border-bottom-left-radius: 1em;
|
|
border-bottom-right-radius: 1em;
|
|
}
|
|
|
|
#listingView.list .item:last-child {
|
|
border-bottom-left-radius: 1em;
|
|
border-bottom-right-radius: 1em;
|
|
}
|
|
|
|
#listingView.list .item:last-child {
|
|
margin-bottom: .5em;
|
|
}
|
|
|
|
#listingView > * > .header > div {
|
|
display:flex;
|
|
width: 100%;
|
|
}
|
|
#listingView.list .header {
|
|
margin-bottom: .5em;
|
|
}
|
|
|
|
#listingView.list .header a {
|
|
color: inherit;
|
|
}
|
|
|
|
#listingView.list .name {
|
|
font-weight: normal;
|
|
}
|
|
|
|
#listingView.list .header span {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#listingView.list .header i {
|
|
opacity: 0;
|
|
transition: .1s ease all;
|
|
}
|
|
|
|
#listingView.list .header p:hover i,
|
|
#listingView.list .header .active i {
|
|
opacity: 1;
|
|
}
|
|
|
|
#listingView.list .header .active {
|
|
font-weight: bold;
|
|
}
|